diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md index fde0d391833a1..4db66f80efc20 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md +++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.9 (Unreleased) +## 1.0.0-beta.1 (2022-03-14) + +- Azure Resource Manager NetAppFiles client library for Java. This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2021-10-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md index 107de6ef5521b..2354f1c897e20 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/README.md +++ b/sdk/netapp/azure-resourcemanager-netapp/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-netapp - 1.0.0-beta.8 + 1.0.0-beta.9 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java index 04f3e802fd8c0..9c94de5565a7e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java @@ -126,7 +126,7 @@ public static Configurable configure() { /** The Configurable allowing configurations to be set. */ public static final class Configurable { - private final ClientLogger logger = new ClientLogger(Configurable.class); + private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); private HttpClient httpClient; private HttpLogOptions httpLogOptions; @@ -200,9 +200,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) { * @return the configurable object itself. */ public Configurable withDefaultPollInterval(Duration defaultPollInterval) { - this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null."); + this.defaultPollInterval = + Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null."); if (this.defaultPollInterval.isNegative()) { - throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative")); + throw LOGGER + .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative")); } return this; } @@ -224,7 +226,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.netapp") .append("/") - .append("1.0.0-beta.8"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java index 742cb02e4c7c0..27f7ac66283ce 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java @@ -5,18 +5,14 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.AccountEncryption; import com.azure.resourcemanager.netapp.models.ActiveDirectory; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** NetApp account properties. */ @Fluent public final class AccountProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AccountProperties.class); - /* * Azure lifecycle management */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java index 159048fd47bd9..ce1c66b22fcb0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java @@ -8,15 +8,12 @@ import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.BackupType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Backup of a Volume. */ @Fluent public final class BackupInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupInner.class); - /* * Resource location */ @@ -176,16 +173,18 @@ public BackupInner withUseExistingSnapshot(Boolean useExistingSnapshot) { */ public void validate() { if (location() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property location in model BackupInner")); } if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property innerProperties in model BackupInner")); } else { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(BackupInner.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java index 2ab7daad6c932..06f56ff742fa6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java @@ -9,7 +9,6 @@ import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.VolumeBackups; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; @@ -17,8 +16,6 @@ /** Backup policy information. */ @Fluent public final class BackupPolicyInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPolicyInner.class); - /* * A unique read-only string that changes whenever the resource is updated. */ @@ -213,7 +210,7 @@ public List volumeBackups() { */ public void validate() { if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property innerProperties in model BackupPolicyInner")); @@ -221,4 +218,6 @@ public void validate() { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(BackupPolicyInner.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java index 493e91eaa8766..d52f6bc85dc06 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.VolumeBackups; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Backup policy properties. */ @Fluent public final class BackupPolicyProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPolicyProperties.class); - /* * Backup Policy Resource ID */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java index 5204b90e9f818..bded98966e810 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.BackupType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Backup properties. */ @Fluent public final class BackupProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupProperties.class); - /* * backupId UUID v4 used to identify the Backup */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java index 9e95ebd57afbc..46054e55e5f01 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.MirrorState; import com.azure.resourcemanager.netapp.models.RelationshipStatus; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Backup status. */ @Immutable public final class BackupStatusInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupStatusInner.class); - /* * Backup health status */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java index b2ad8d776a109..473c58889bb10 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java @@ -11,15 +11,12 @@ import com.azure.resourcemanager.netapp.models.EncryptionType; import com.azure.resourcemanager.netapp.models.QosType; import com.azure.resourcemanager.netapp.models.ServiceLevel; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** Capacity pool resource. */ @Fluent public final class CapacityPoolInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CapacityPoolInner.class); - /* * A unique read-only string that changes whenever the resource is updated. */ @@ -241,7 +238,7 @@ public CapacityPoolInner withEncryptionType(EncryptionType encryptionType) { */ public void validate() { if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property innerProperties in model CapacityPoolInner")); @@ -249,4 +246,6 @@ public void validate() { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(CapacityPoolInner.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java index d161dbac43e78..dd7e8330f0742 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.InAvailabilityReasonType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Information regarding availability of a resource. */ @Fluent public final class CheckAvailabilityResponseInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CheckAvailabilityResponseInner.class); - /* * true indicates name is valid and available. * false indicates the name is invalid, unavailable, or both. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java index e1f9505a02125..f9b279297cfc4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/MountTargetProperties.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Mount target properties. */ @Fluent public final class MountTargetProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MountTargetProperties.class); - /* * mountTargetId UUID v4 used to identify the MountTarget */ @@ -103,10 +100,12 @@ public MountTargetProperties withSmbServerFqdn(String smbServerFqdn) { */ public void validate() { if (fileSystemId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property fileSystemId in model MountTargetProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(MountTargetProperties.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java index c282eeb78e76b..65b61afcc1c4c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java @@ -7,10 +7,8 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.AccountEncryption; import com.azure.resourcemanager.netapp.models.ActiveDirectory; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; @@ -18,8 +16,6 @@ /** NetApp account resource. */ @Fluent public final class NetAppAccountInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(NetAppAccountInner.class); - /* * A unique read-only string that changes whenever the resource is updated. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java index 2a4977ad8d34a..8d4b210a0797a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.OperationDisplay; import com.azure.resourcemanager.netapp.models.ServiceSpecification; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Microsoft.NetApp REST API operation definition. */ @Fluent public final class OperationInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class); - /* * Operation name: {provider}/{resource}/{operation} */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java index 4ce35159cf1e0..41cf61910a9e8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.ServiceSpecification; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Properties of operation, include metric specifications. */ @Fluent public final class OperationProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationProperties.class); - /* * One property of operation, include metric specifications. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java index 93b9566574152..464b93a73c421 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.QosType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Patchable pool properties. */ @Fluent public final class PoolPatchProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PoolPatchProperties.class); - /* * size Provisioned size of the pool (in bytes). Allowed values are in 1TiB * chunks (value must be multiply of 4398046511104). diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java index 45e1af855c683..19202edcad863 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java @@ -9,14 +9,11 @@ import com.azure.resourcemanager.netapp.models.EncryptionType; import com.azure.resourcemanager.netapp.models.QosType; import com.azure.resourcemanager.netapp.models.ServiceLevel; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Pool properties. */ @Fluent public final class PoolProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PoolProperties.class); - /* * poolId UUID v4 used to identify the Pool */ @@ -221,9 +218,11 @@ public PoolProperties withEncryptionType(EncryptionType encryptionType) { */ public void validate() { if (serviceLevel() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property serviceLevel in model PoolProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(PoolProperties.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java index dfeae58906d3f..6c401681ee634 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.MirrorState; import com.azure.resourcemanager.netapp.models.RelationshipStatus; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Replication status. */ @Fluent public final class ReplicationStatusInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ReplicationStatusInner.class); - /* * Replication health check */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java index 2316df0c254b1..248084df03e38 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.MirrorState; import com.azure.resourcemanager.netapp.models.RelationshipStatus; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Restore status. */ @Immutable public final class RestoreStatusInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RestoreStatusInner.class); - /* * Restore health status */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java index 48777cd6f8070..6c0c2bfbbbeb2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java @@ -7,15 +7,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Snapshot of a Volume. */ @Fluent public final class SnapshotInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotInner.class); - /* * Resource location */ @@ -91,7 +88,7 @@ public String provisioningState() { */ public void validate() { if (location() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property location in model SnapshotInner")); } @@ -99,4 +96,6 @@ public void validate() { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(SnapshotInner.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java index 3292a15b8bcdf..3e9956a2a23f9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java @@ -12,15 +12,12 @@ import com.azure.resourcemanager.netapp.models.HourlySchedule; import com.azure.resourcemanager.netapp.models.MonthlySchedule; import com.azure.resourcemanager.netapp.models.WeeklySchedule; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** Snapshot policy information. */ @Fluent public final class SnapshotPolicyInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotPolicyInner.class); - /* * A unique read-only string that changes whenever the resource is updated. */ @@ -211,7 +208,7 @@ public String provisioningState() { */ public void validate() { if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property innerProperties in model SnapshotPolicyInner")); @@ -219,4 +216,6 @@ public void validate() { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(SnapshotPolicyInner.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java index 910410b147b65..b991388d71011 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java @@ -5,19 +5,15 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.DailySchedule; import com.azure.resourcemanager.netapp.models.HourlySchedule; import com.azure.resourcemanager.netapp.models.MonthlySchedule; import com.azure.resourcemanager.netapp.models.WeeklySchedule; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Snapshot policy properties. */ @Fluent public final class SnapshotPolicyProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotPolicyProperties.class); - /* * Schedule for hourly snapshots */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java index 1424329cf5ced..85f34c9ae3778 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Volumes associated with snapshot policy. */ @Fluent public final class SnapshotPolicyVolumeListInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotPolicyVolumeListInner.class); - /* * List of volumes */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java index 0f6d1ae6981fc..2971b475f2fed 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Snapshot properties. */ @Immutable public final class SnapshotProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotProperties.class); - /* * snapshotId UUID v4 used to identify the Snapshot */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java index 50bfde34117e4..52211a3f57dc3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java @@ -7,15 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Information regarding Subscription Quota Item. */ @Fluent public final class SubscriptionQuotaItemInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SubscriptionQuotaItemInner.class); - /* * SubscriptionQuotaItem properties */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemProperties.java index b6d4675311652..503b16294bab9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** SubscriptionQuotaItem Properties. */ @Immutable public final class SubscriptionQuotaItemProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SubscriptionQuotaItemProperties.class); - /* * The current quota value. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java index bf4e4d0812fe6..a71c4298ca28a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java @@ -7,15 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Subvolume Information properties. */ @Fluent public final class SubvolumeInfoInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumeInfoInner.class); - /* * Subvolume Properties */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java index 47490e1d0ef75..e7203d37283da 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Result of the post subvolume and action is to get metadata of the subvolume. */ @Fluent public final class SubvolumeModelInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumeModelInner.class); - /* * Resource Id */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java index 1ec95abace801..a81a51fa61da3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Properties which represents actual subvolume model which is stored as a file in the system. */ @Fluent public final class SubvolumeModelProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumeModelProperties.class); - /* * path Path to the subvolume */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java index f27c617c0d48e..70603a89eef28 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Parameters with which a subvolume can be updated. */ @Fluent public final class SubvolumePatchParams { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumePatchParams.class); - /* * size Truncate subvolume to the provided size in bytes */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java index a887160fe9b0d..3694df6f18c3e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** This represents path associated with the subvolume. */ @Fluent public final class SubvolumeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumeProperties.class); - /* * path Path to the subvolume */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultInner.java index 6fe4f732175e6..b7947496a06ef 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultInner.java @@ -7,14 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Vault information. */ @Fluent public final class VaultInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VaultInner.class); - /* * Resource location */ @@ -86,16 +83,18 @@ public VaultInner withVaultName(String vaultName) { */ public void validate() { if (location() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property location in model VaultInner")); } if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property innerProperties in model VaultInner")); } else { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(VaultInner.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultProperties.java index 21295214eddeb..53cd65c38aad5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VaultProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Vault properties. */ @Fluent public final class VaultProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VaultProperties.class); - /* * Vault Name */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java index 838ac7cdc7d6a..0697c63c41256 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java @@ -5,10 +5,8 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata; import com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -17,8 +15,6 @@ /** Volume group resource for create. */ @Fluent public final class VolumeGroupDetailsInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupDetailsInner.class); - /* * Resource location */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java index c10124f594129..6ef907c59aa16 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -15,8 +13,6 @@ /** Volume group resource. */ @Fluent public final class VolumeGroupInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupInner.class); - /* * Resource location */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java index 3dbed5328b864..1d67a3966eed1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Volume group properties. */ @Fluent public final class VolumeGroupListProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupListProperties.class); - /* * Azure lifecycle management */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java index 15ed0c8828943..7fbdd123f2cf4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java @@ -5,18 +5,14 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.VolumeGroupMetadata; import com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Volume group properties. */ @Fluent public final class VolumeGroupProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupProperties.class); - /* * Azure lifecycle management */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java index d0cb6d5013d29..b0b7f5090a49b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java @@ -17,7 +17,6 @@ import com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection; import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy; import com.azure.resourcemanager.netapp.models.VolumeStorageToNetworkProximity; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; @@ -25,8 +24,6 @@ /** Volume resource. */ @Fluent public final class VolumeInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeInner.class); - /* * A unique read-only string that changes whenever the resource is updated. */ @@ -966,11 +963,13 @@ public VolumeInner withEnableSubvolumes(EnableSubvolumes enableSubvolumes) { */ public void validate() { if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property innerProperties in model VolumeInner")); } else { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(VolumeInner.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java index 3b7b5aad70820..9d29ce42ac836 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java @@ -5,18 +5,14 @@ package com.azure.resourcemanager.netapp.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.models.ServiceLevel; import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection; import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Patchable volume properties. */ @Fluent public final class VolumePatchProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumePatchProperties.class); - /* * serviceLevel The service level of the file system */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java index d3d03fc75db7d..3b1a2b86ac4a9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java @@ -15,15 +15,12 @@ import com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection; import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy; import com.azure.resourcemanager.netapp.models.VolumeStorageToNetworkProximity; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Volume properties. */ @Fluent public final class VolumeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeProperties.class); - /* * FileSystem ID Unique FileSystem Identifier. */ @@ -1095,7 +1092,7 @@ public VolumeProperties withEnableSubvolumes(EnableSubvolumes enableSubvolumes) */ public void validate() { if (creationToken() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property creationToken in model VolumeProperties")); } @@ -1103,7 +1100,7 @@ public void validate() { exportPolicy().validate(); } if (subnetId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property subnetId in model VolumeProperties")); } @@ -1117,4 +1114,6 @@ public void validate() { placementRules().forEach(e -> e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(VolumeProperties.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java index 88da32b3b1596..9cb53522c9c7a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java @@ -27,7 +27,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.AccountBackupsClient; @@ -39,8 +38,6 @@ /** An instance of this class provides access to all the operations defined in AccountBackupsClient. */ public final class AccountBackupsClientImpl implements AccountBackupsClient { - private final ClientLogger logger = new ClientLogger(AccountBackupsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final AccountBackupsService service; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsImpl.java index bb26b306532ea..bc060d9d9ff84 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.netapp.fluent.models.BackupInner; import com.azure.resourcemanager.netapp.models.AccountBackups; import com.azure.resourcemanager.netapp.models.Backup; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class AccountBackupsImpl implements AccountBackups { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AccountBackupsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(AccountBackupsImpl.class); private final AccountBackupsClient innerClient; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java index 796f3dcd9fea4..7267b525b22ce 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java @@ -30,7 +30,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.AccountsClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in AccountsClient. */ public final class AccountsClientImpl implements AccountsClient { - private final ClientLogger logger = new ClientLogger(AccountsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final AccountsService service; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java index 6958ee3434aca..f697fea7b9c94 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner; import com.azure.resourcemanager.netapp.models.Accounts; import com.azure.resourcemanager.netapp.models.NetAppAccount; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class AccountsImpl implements Accounts { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AccountsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(AccountsImpl.class); private final AccountsClient innerClient; @@ -83,7 +82,7 @@ public void delete(String resourceGroupName, String accountName, Context context public NetAppAccount getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -91,7 +90,7 @@ public NetAppAccount getById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -103,7 +102,7 @@ public NetAppAccount getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -111,7 +110,7 @@ public Response getByIdWithResponse(String id, Context context) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -123,7 +122,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -131,7 +130,7 @@ public void deleteById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -143,7 +142,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -151,7 +150,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java index 5d4a8d578ec39..407ff4557cf70 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java @@ -30,7 +30,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in BackupPoliciesClient. */ public final class BackupPoliciesClientImpl implements BackupPoliciesClient { - private final ClientLogger logger = new ClientLogger(BackupPoliciesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final BackupPoliciesService service; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java index fd0b0279c8680..8ed1aa144eeee 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner; import com.azure.resourcemanager.netapp.models.BackupPolicies; import com.azure.resourcemanager.netapp.models.BackupPolicy; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class BackupPoliciesImpl implements BackupPolicies { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPoliciesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(BackupPoliciesImpl.class); private final BackupPoliciesClient innerClient; @@ -73,7 +72,7 @@ public void delete(String resourceGroupName, String accountName, String backupPo public BackupPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -81,7 +80,7 @@ public BackupPolicy getById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -89,7 +88,7 @@ public BackupPolicy getById(String id) { } String backupPolicyName = Utils.getValueFromIdByName(id, "backupPolicies"); if (backupPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -101,7 +100,7 @@ public BackupPolicy getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -109,7 +108,7 @@ public Response getByIdWithResponse(String id, Context context) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -117,7 +116,7 @@ public Response getByIdWithResponse(String id, Context context) { } String backupPolicyName = Utils.getValueFromIdByName(id, "backupPolicies"); if (backupPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -129,7 +128,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -137,7 +136,7 @@ public void deleteById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -145,7 +144,7 @@ public void deleteById(String id) { } String backupPolicyName = Utils.getValueFromIdByName(id, "backupPolicies"); if (backupPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -157,7 +156,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -165,7 +164,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -173,7 +172,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String backupPolicyName = Utils.getValueFromIdByName(id, "backupPolicies"); if (backupPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java index 9b7178c643d74..18ca1ae949e30 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java @@ -30,7 +30,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.BackupsClient; @@ -45,8 +44,6 @@ /** An instance of this class provides access to all the operations defined in BackupsClient. */ public final class BackupsClientImpl implements BackupsClient { - private final ClientLogger logger = new ClientLogger(BackupsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final BackupsService service; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java index e9271be237e4e..1e170be3bf535 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java @@ -17,10 +17,9 @@ import com.azure.resourcemanager.netapp.models.BackupStatus; import com.azure.resourcemanager.netapp.models.Backups; import com.azure.resourcemanager.netapp.models.RestoreStatus; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class BackupsImpl implements Backups { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(BackupsImpl.class); private final BackupsClient innerClient; @@ -147,7 +146,7 @@ public void delete( public Backup getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -155,7 +154,7 @@ public Backup getById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -163,21 +162,21 @@ public Backup getById(String id) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String backupName = Utils.getValueFromIdByName(id, "backups"); if (backupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'backups'.", id))); @@ -190,7 +189,7 @@ public Backup getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -198,7 +197,7 @@ public Response getByIdWithResponse(String id, Context context) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -206,21 +205,21 @@ public Response getByIdWithResponse(String id, Context context) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String backupName = Utils.getValueFromIdByName(id, "backups"); if (backupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'backups'.", id))); @@ -231,7 +230,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -239,7 +238,7 @@ public void deleteById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -247,21 +246,21 @@ public void deleteById(String id) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String backupName = Utils.getValueFromIdByName(id, "backups"); if (backupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'backups'.", id))); @@ -272,7 +271,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -280,7 +279,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -288,21 +287,21 @@ public void deleteByIdWithResponse(String id, Context context) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String backupName = Utils.getValueFromIdByName(id, "backups"); if (backupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'backups'.", id))); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java index 0f7cc459c3cd9..0561c4e3d3430 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java @@ -49,8 +49,6 @@ /** Initializes a new instance of the NetAppManagementClientImpl type. */ @ServiceClient(builder = NetAppManagementClientBuilder.class) public final class NetAppManagementClientImpl implements NetAppManagementClient { - private final ClientLogger logger = new ClientLogger(NetAppManagementClientImpl.class); - /** * Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of * the URI for every service call. @@ -418,7 +416,7 @@ public Mono getLroFinalResultOrError(AsyncPollResponse, managementError = null; } } catch (IOException | RuntimeException ioe) { - logger.logThrowableAsWarning(ioe); + LOGGER.logThrowableAsWarning(ioe); } } } else { @@ -477,4 +475,6 @@ public Mono getBodyAsString(Charset charset) { return Mono.just(new String(responseBody, charset)); } } + + private static final ClientLogger LOGGER = new ClientLogger(NetAppManagementClientImpl.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java index 6643fbc6327ea..a7431ba34cb3a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient; import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItemList; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in NetAppResourceQuotaLimitsClient. */ public final class NetAppResourceQuotaLimitsClientImpl implements NetAppResourceQuotaLimitsClient { - private final ClientLogger logger = new ClientLogger(NetAppResourceQuotaLimitsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final NetAppResourceQuotaLimitsService service; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java index 4ad68db430cb2..0d7e1ca3a8427 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimits; import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItem; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class NetAppResourceQuotaLimitsImpl implements NetAppResourceQuotaLimits { - @JsonIgnore private final ClientLogger logger = new ClientLogger(NetAppResourceQuotaLimitsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(NetAppResourceQuotaLimitsImpl.class); private final NetAppResourceQuotaLimitsClient innerClient; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java index 10d44b71f313a..bb97b7eb1fe7e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java @@ -22,7 +22,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient; import com.azure.resourcemanager.netapp.fluent.models.CheckAvailabilityResponseInner; import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest; @@ -32,8 +31,6 @@ /** An instance of this class provides access to all the operations defined in NetAppResourcesClient. */ public final class NetAppResourcesClientImpl implements NetAppResourcesClient { - private final ClientLogger logger = new ClientLogger(NetAppResourcesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final NetAppResourcesService service; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java index d8602db57aab3..4c128e3f9081a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java @@ -15,10 +15,9 @@ import com.azure.resourcemanager.netapp.models.NetAppResources; import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest; import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class NetAppResourcesImpl implements NetAppResources { - @JsonIgnore private final ClientLogger logger = new ClientLogger(NetAppResourcesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(NetAppResourcesImpl.class); private final NetAppResourcesClient innerClient; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java index 0a01ea3885824..e7202a1809b45 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java @@ -24,7 +24,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.OperationsClient; import com.azure.resourcemanager.netapp.fluent.models.OperationInner; import com.azure.resourcemanager.netapp.models.OperationListResult; @@ -32,8 +31,6 @@ /** An instance of this class provides access to all the operations defined in OperationsClient. */ public final class OperationsClientImpl implements OperationsClient { - private final ClientLogger logger = new ClientLogger(OperationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final OperationsService service; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsImpl.java index 0701a4f76fed1..dcc8a71d326b8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.netapp.fluent.models.OperationInner; import com.azure.resourcemanager.netapp.models.Operation; import com.azure.resourcemanager.netapp.models.Operations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class OperationsImpl implements Operations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class); private final OperationsClient innerClient; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java index 06b5f1d1fbb13..d692846414e00 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java @@ -30,7 +30,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.PoolsClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in PoolsClient. */ public final class PoolsClientImpl implements PoolsClient { - private final ClientLogger logger = new ClientLogger(PoolsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final PoolsService service; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java index 8052c1eff8d36..184fc6421d7b7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner; import com.azure.resourcemanager.netapp.models.CapacityPool; import com.azure.resourcemanager.netapp.models.Pools; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class PoolsImpl implements Pools { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PoolsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(PoolsImpl.class); private final PoolsClient innerClient; @@ -72,7 +71,7 @@ public void delete(String resourceGroupName, String accountName, String poolName public CapacityPool getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -80,7 +79,7 @@ public CapacityPool getById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -88,7 +87,7 @@ public CapacityPool getById(String id) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); @@ -99,7 +98,7 @@ public CapacityPool getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -107,7 +106,7 @@ public Response getByIdWithResponse(String id, Context context) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -115,7 +114,7 @@ public Response getByIdWithResponse(String id, Context context) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); @@ -126,7 +125,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -134,7 +133,7 @@ public void deleteById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -142,7 +141,7 @@ public void deleteById(String id) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); @@ -153,7 +152,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -161,7 +160,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -169,7 +168,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java index 922f4cd5f6281..bcaa1c0e273aa 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java @@ -30,7 +30,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient; @@ -44,8 +43,6 @@ /** An instance of this class provides access to all the operations defined in SnapshotPoliciesClient. */ public final class SnapshotPoliciesClientImpl implements SnapshotPoliciesClient { - private final ClientLogger logger = new ClientLogger(SnapshotPoliciesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SnapshotPoliciesService service; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java index 77390c932f2d9..7850ef99f35b4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java @@ -15,10 +15,9 @@ import com.azure.resourcemanager.netapp.models.SnapshotPolicies; import com.azure.resourcemanager.netapp.models.SnapshotPolicy; import com.azure.resourcemanager.netapp.models.SnapshotPolicyVolumeList; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SnapshotPoliciesImpl implements SnapshotPolicies { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotPoliciesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SnapshotPoliciesImpl.class); private final SnapshotPoliciesClient innerClient; @@ -101,7 +100,7 @@ public Response listVolumesWithResponse( public SnapshotPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -109,7 +108,7 @@ public SnapshotPolicy getById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -117,7 +116,7 @@ public SnapshotPolicy getById(String id) { } String snapshotPolicyName = Utils.getValueFromIdByName(id, "snapshotPolicies"); if (snapshotPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -130,7 +129,7 @@ public SnapshotPolicy getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -138,7 +137,7 @@ public Response getByIdWithResponse(String id, Context context) } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -146,7 +145,7 @@ public Response getByIdWithResponse(String id, Context context) } String snapshotPolicyName = Utils.getValueFromIdByName(id, "snapshotPolicies"); if (snapshotPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -159,7 +158,7 @@ public Response getByIdWithResponse(String id, Context context) public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -167,7 +166,7 @@ public void deleteById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -175,7 +174,7 @@ public void deleteById(String id) { } String snapshotPolicyName = Utils.getValueFromIdByName(id, "snapshotPolicies"); if (snapshotPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -188,7 +187,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -196,7 +195,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -204,7 +203,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String snapshotPolicyName = Utils.getValueFromIdByName(id, "snapshotPolicies"); if (snapshotPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java index 5c079c528b319..6cab263a662d2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java @@ -31,7 +31,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.SnapshotsClient; @@ -44,8 +43,6 @@ /** An instance of this class provides access to all the operations defined in SnapshotsClient. */ public final class SnapshotsClientImpl implements SnapshotsClient { - private final ClientLogger logger = new ClientLogger(SnapshotsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SnapshotsService service; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java index f6c6c5b4b9954..b7c632d42aefe 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java @@ -14,10 +14,9 @@ import com.azure.resourcemanager.netapp.models.Snapshot; import com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles; import com.azure.resourcemanager.netapp.models.Snapshots; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SnapshotsImpl implements Snapshots { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SnapshotsImpl.class); private final SnapshotsClient innerClient; @@ -152,7 +151,7 @@ public void restoreFiles( public Snapshot getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -160,7 +159,7 @@ public Snapshot getById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -168,21 +167,21 @@ public Snapshot getById(String id) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String snapshotName = Utils.getValueFromIdByName(id, "snapshots"); if (snapshotName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'snapshots'.", id))); @@ -195,7 +194,7 @@ public Snapshot getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -203,7 +202,7 @@ public Response getByIdWithResponse(String id, Context context) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -211,21 +210,21 @@ public Response getByIdWithResponse(String id, Context context) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String snapshotName = Utils.getValueFromIdByName(id, "snapshots"); if (snapshotName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'snapshots'.", id))); @@ -236,7 +235,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -244,7 +243,7 @@ public void deleteById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -252,21 +251,21 @@ public void deleteById(String id) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String snapshotName = Utils.getValueFromIdByName(id, "snapshots"); if (snapshotName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'snapshots'.", id))); @@ -277,7 +276,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -285,7 +284,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -293,21 +292,21 @@ public void deleteByIdWithResponse(String id, Context context) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String snapshotName = Utils.getValueFromIdByName(id, "snapshots"); if (snapshotName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'snapshots'.", id))); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java index 9f4fbb27103b4..b752c53bcc790 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java @@ -31,7 +31,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.SubvolumesClient; @@ -45,8 +44,6 @@ /** An instance of this class provides access to all the operations defined in SubvolumesClient. */ public final class SubvolumesClientImpl implements SubvolumesClient { - private final ClientLogger logger = new ClientLogger(SubvolumesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SubvolumesService service; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java index 80f3a9b01f217..d5ed31cd0d173 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java @@ -15,10 +15,9 @@ import com.azure.resourcemanager.netapp.models.SubvolumeInfo; import com.azure.resourcemanager.netapp.models.SubvolumeModel; import com.azure.resourcemanager.netapp.models.Subvolumes; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SubvolumesImpl implements Subvolumes { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SubvolumesImpl.class); private final SubvolumesClient innerClient; @@ -124,7 +123,7 @@ public SubvolumeModel getMetadata( public SubvolumeInfo getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -132,7 +131,7 @@ public SubvolumeInfo getById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -140,21 +139,21 @@ public SubvolumeInfo getById(String id) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String subvolumeName = Utils.getValueFromIdByName(id, "subvolumes"); if (subvolumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'subvolumes'.", id))); @@ -167,7 +166,7 @@ public SubvolumeInfo getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -175,7 +174,7 @@ public Response getByIdWithResponse(String id, Context context) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -183,21 +182,21 @@ public Response getByIdWithResponse(String id, Context context) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String subvolumeName = Utils.getValueFromIdByName(id, "subvolumes"); if (subvolumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'subvolumes'.", id))); @@ -208,7 +207,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -216,7 +215,7 @@ public void deleteById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -224,21 +223,21 @@ public void deleteById(String id) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String subvolumeName = Utils.getValueFromIdByName(id, "subvolumes"); if (subvolumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'subvolumes'.", id))); @@ -249,7 +248,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -257,7 +256,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -265,21 +264,21 @@ public void deleteByIdWithResponse(String id, Context context) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } String subvolumeName = Utils.getValueFromIdByName(id, "subvolumes"); if (subvolumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'subvolumes'.", id))); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VaultsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VaultsClientImpl.java index ac04c94e35d17..04e737ea465c0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VaultsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VaultsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.VaultsClient; import com.azure.resourcemanager.netapp.fluent.models.VaultInner; import com.azure.resourcemanager.netapp.models.VaultList; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in VaultsClient. */ public final class VaultsClientImpl implements VaultsClient { - private final ClientLogger logger = new ClientLogger(VaultsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final VaultsService service; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VaultsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VaultsImpl.java index 30878336324b3..0ef005530ea2e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VaultsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VaultsImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.netapp.fluent.models.VaultInner; import com.azure.resourcemanager.netapp.models.Vault; import com.azure.resourcemanager.netapp.models.Vaults; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class VaultsImpl implements Vaults { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VaultsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(VaultsImpl.class); private final VaultsClient innerClient; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java index 97775c00a0ceb..d476f46b9f0ca 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java @@ -29,7 +29,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient; @@ -42,8 +41,6 @@ /** An instance of this class provides access to all the operations defined in VolumeGroupsClient. */ public final class VolumeGroupsClientImpl implements VolumeGroupsClient { - private final ClientLogger logger = new ClientLogger(VolumeGroupsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final VolumeGroupsService service; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java index 5dfbdeb34c1a4..59cf36c160302 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java @@ -15,10 +15,9 @@ import com.azure.resourcemanager.netapp.models.VolumeGroup; import com.azure.resourcemanager.netapp.models.VolumeGroupDetails; import com.azure.resourcemanager.netapp.models.VolumeGroups; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class VolumeGroupsImpl implements VolumeGroups { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(VolumeGroupsImpl.class); private final VolumeGroupsClient innerClient; @@ -78,7 +77,7 @@ public void delete(String resourceGroupName, String accountName, String volumeGr public VolumeGroupDetails getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -86,7 +85,7 @@ public VolumeGroupDetails getById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -94,7 +93,7 @@ public VolumeGroupDetails getById(String id) { } String volumeGroupName = Utils.getValueFromIdByName(id, "volumeGroups"); if (volumeGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumeGroups'.", id))); @@ -105,7 +104,7 @@ public VolumeGroupDetails getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -113,7 +112,7 @@ public Response getByIdWithResponse(String id, Context conte } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -121,7 +120,7 @@ public Response getByIdWithResponse(String id, Context conte } String volumeGroupName = Utils.getValueFromIdByName(id, "volumeGroups"); if (volumeGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumeGroups'.", id))); @@ -132,7 +131,7 @@ public Response getByIdWithResponse(String id, Context conte public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -140,7 +139,7 @@ public void deleteById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -148,7 +147,7 @@ public void deleteById(String id) { } String volumeGroupName = Utils.getValueFromIdByName(id, "volumeGroups"); if (volumeGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumeGroups'.", id))); @@ -159,7 +158,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -167,7 +166,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -175,7 +174,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String volumeGroupName = Utils.getValueFromIdByName(id, "volumeGroups"); if (volumeGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumeGroups'.", id))); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java index e82effdb435b1..6d6effb75e5f8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java @@ -31,7 +31,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.netapp.fluent.VolumesClient; @@ -49,8 +48,6 @@ /** An instance of this class provides access to all the operations defined in VolumesClient. */ public final class VolumesClientImpl implements VolumesClient { - private final ClientLogger logger = new ClientLogger(VolumesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final VolumesService service; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java index 93f1ff6c8aedd..01896b3132da6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java @@ -19,10 +19,9 @@ import com.azure.resourcemanager.netapp.models.Volume; import com.azure.resourcemanager.netapp.models.VolumeRevert; import com.azure.resourcemanager.netapp.models.Volumes; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class VolumesImpl implements Volumes { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(VolumesImpl.class); private final VolumesClient innerClient; @@ -213,7 +212,7 @@ public void poolChange( public Volume getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -221,7 +220,7 @@ public Volume getById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -229,14 +228,14 @@ public Volume getById(String id) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); @@ -247,7 +246,7 @@ public Volume getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -255,7 +254,7 @@ public Response getByIdWithResponse(String id, Context context) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -263,14 +262,14 @@ public Response getByIdWithResponse(String id, Context context) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); @@ -281,7 +280,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -289,7 +288,7 @@ public void deleteById(String id) { } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -297,14 +296,14 @@ public void deleteById(String id) { } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); @@ -316,7 +315,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Boolean forceDelete, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -324,7 +323,7 @@ public void deleteByIdWithResponse(String id, Boolean forceDelete, Context conte } String accountName = Utils.getValueFromIdByName(id, "netAppAccounts"); if (accountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -332,14 +331,14 @@ public void deleteByIdWithResponse(String id, Boolean forceDelete, Context conte } String poolName = Utils.getValueFromIdByName(id, "capacityPools"); if (poolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'capacityPools'.", id))); } String volumeName = Utils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java index c1aabf218b63a..4a33917c38edb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Encryption settings. */ @Fluent public final class AccountEncryption { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AccountEncryption.class); - /* * Encryption Key Source. Possible values are: 'Microsoft.NetApp'. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java index fa2d0fa8e0e9f..62f3d2d47b65c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Active Directory. */ @Fluent public final class ActiveDirectory { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ActiveDirectory.class); - /* * Id of the Active Directory */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java index 29285c40434cb..014c4f46ee583 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Authorize request. */ @Fluent public final class AuthorizeRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AuthorizeRequest.class); - /* * Resource id of the remote volume */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java index b7d7f5531cfbb..557678c9ea861 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.BackupProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; @@ -16,8 +14,6 @@ /** Backup patch. */ @Fluent public final class BackupPatch { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPatch.class); - /* * Resource tags */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPoliciesList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPoliciesList.java index 08f6b65355469..85136b4b6be5d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPoliciesList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPoliciesList.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of Backup Policies. */ @Fluent public final class BackupPoliciesList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPoliciesList.class); - /* * A list of backup policies */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java index 7e668d30f8872..cbd70c629637f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java @@ -6,9 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; @@ -16,8 +14,6 @@ /** Backup policy Details for create and update. */ @Fluent public final class BackupPolicyPatch extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupPolicyPatch.class); - /* * Backup policy Properties */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsList.java index 0b6696a5dd6b5..e2f70c82a6227 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BackupsList.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.BackupInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of Backups. */ @Fluent public final class BackupsList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupsList.class); - /* * A list of Backups */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java index b334b31a8c54a..19b54ac899c5e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Break replication request. */ @Fluent public final class BreakReplicationRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BreakReplicationRequest.class); - /* * If replication is in status transferring and you want to force break the * replication, set to true diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolList.java index 57f1b9266ae17..ff4043b3848e2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolList.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of capacity pool resources. */ @Fluent public final class CapacityPoolList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CapacityPoolList.class); - /* * List of Capacity pools */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java index 9b1829fec471e..20bd3f84f4951 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java @@ -6,17 +6,13 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.PoolPatchProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** Capacity pool patch resource. */ @Fluent public final class CapacityPoolPatch extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CapacityPoolPatch.class); - /* * Capacity pool properties */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java index bf9bf7a5364b7..edcba36701036 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Daily Schedule properties. */ @Fluent public final class DailySchedule { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DailySchedule.class); - /* * Daily snapshot count to keep */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Dimension.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Dimension.java index 1a3e90bfc9509..5eb5332350f1e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Dimension.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Dimension.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Dimension of blobs, possibly be blob type or access tier. */ @Fluent public final class Dimension { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Dimension.class); - /* * Display name of dimension. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java index d8712b2fa56d1..1d531173aab5b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Volume Export Policy Rule. */ @Fluent public final class ExportPolicyRule { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ExportPolicyRule.class); - /* * Order index */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java index 6b532fa852cf9..24a8a8b00ffc2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** File path availability request content - availability is based on the name and the subnetId. */ @Fluent public final class FilePathAvailabilityRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(FilePathAvailabilityRequest.class); - /* * File path to verify. */ @@ -76,16 +73,18 @@ public FilePathAvailabilityRequest withSubnetId(String subnetId) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property name in model FilePathAvailabilityRequest")); } if (subnetId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property subnetId in model FilePathAvailabilityRequest")); } } + + private static final ClientLogger LOGGER = new ClientLogger(FilePathAvailabilityRequest.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java index 55c9fdafa75e3..de364d96856ce 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Hourly Schedule properties. */ @Fluent public final class HourlySchedule { - @JsonIgnore private final ClientLogger logger = new ClientLogger(HourlySchedule.class); - /* * Hourly snapshot count to keep */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java index 9796f003e9fe0..38481031856b5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** LDAP search scope. */ @Fluent public final class LdapSearchScopeOpt { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LdapSearchScopeOpt.class); - /* * This specifies the user DN, which overrides the base DN for user * lookups. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java index 68ef6cc2b7d35..a0a69568eb4fb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Log Definition of a single resource metric. */ @Fluent public final class LogSpecification { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LogSpecification.class); - /* * Name of log specification. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java index b5c8f85507749..c4ea1557b19a7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Metric specification of operation. */ @Fluent public final class MetricSpecification { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MetricSpecification.class); - /* * Name of metric specification. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java index e52042b5622d4..97791817a92c5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Monthly Schedule properties. */ @Fluent public final class MonthlySchedule { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MonthlySchedule.class); - /* * Monthly snapshot count to keep */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountList.java index 18d16c5d6a9de..95d4bd0d0df3e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountList.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of NetApp account resources. */ @Fluent public final class NetAppAccountList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(NetAppAccountList.class); - /* * Multiple NetApp accounts */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java index ca02631d05a9c..16e614a1e53f4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java @@ -6,9 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.AccountProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; @@ -16,8 +14,6 @@ /** NetApp account patch resource. */ @Fluent public final class NetAppAccountPatch extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(NetAppAccountPatch.class); - /* * NetApp Account properties */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java index c6a4eb56751cc..7ba683e55acc2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Display metadata associated with the operation. */ @Fluent public final class OperationDisplay { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationDisplay.class); - /* * Service provider: Microsoft NetApp. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationListResult.java index 33ed0ad62cec6..1bf6be3c0b02c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationListResult.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/OperationListResult.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.OperationInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -17,8 +15,6 @@ */ @Fluent public final class OperationListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationListResult.class); - /* * List of Storage operations supported by the Storage resource provider. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java index 49267ff7b8f2c..58ae99ba812a5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Application specific parameters for the placement of volumes in the volume group. */ @Fluent public final class PlacementKeyValuePairs { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PlacementKeyValuePairs.class); - /* * Key for an application specific parameter for the placement of volumes * in the volume group @@ -77,14 +74,16 @@ public PlacementKeyValuePairs withValue(String value) { */ public void validate() { if (key() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property key in model PlacementKeyValuePairs")); } if (value() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property value in model PlacementKeyValuePairs")); } } + + private static final ClientLogger LOGGER = new ClientLogger(PlacementKeyValuePairs.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java index 7f4ff5aab0a0e..0bbd7b5ac6b68 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Pool change request. */ @Fluent public final class PoolChangeRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PoolChangeRequest.class); - /* * Resource id of the pool to move volume to */ @@ -47,10 +44,12 @@ public PoolChangeRequest withNewPoolResourceId(String newPoolResourceId) { */ public void validate() { if (newPoolResourceId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property newPoolResourceId in model PoolChangeRequest")); } } + + private static final ClientLogger LOGGER = new ClientLogger(PoolChangeRequest.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java index 331c0db047348..8a6c3449dde10 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Quota availability request content. */ @Fluent public final class QuotaAvailabilityRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(QuotaAvailabilityRequest.class); - /* * Name of the resource to verify. */ @@ -99,20 +96,22 @@ public QuotaAvailabilityRequest withResourceGroup(String resourceGroup) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property name in model QuotaAvailabilityRequest")); } if (type() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property type in model QuotaAvailabilityRequest")); } if (resourceGroup() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property resourceGroup in model QuotaAvailabilityRequest")); } } + + private static final ClientLogger LOGGER = new ClientLogger(QuotaAvailabilityRequest.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java index ae79fab80acf5..0884e92d00d75 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Replication properties. */ @Fluent public final class ReplicationObject { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ReplicationObject.class); - /* * Id */ @@ -154,10 +151,12 @@ public ReplicationObject withRemoteVolumeRegion(String remoteVolumeRegion) { */ public void validate() { if (remoteVolumeResourceId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property remoteVolumeResourceId in model ReplicationObject")); } } + + private static final ClientLogger LOGGER = new ClientLogger(ReplicationObject.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java index 24ec34ac130f4..3e18fa755cd4c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Resource name availability request content. */ @Fluent public final class ResourceNameAvailabilityRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ResourceNameAvailabilityRequest.class); - /* * Resource name to verify. */ @@ -99,22 +96,24 @@ public ResourceNameAvailabilityRequest withResourceGroup(String resourceGroup) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property name in model ResourceNameAvailabilityRequest")); } if (type() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property type in model ResourceNameAvailabilityRequest")); } if (resourceGroup() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property resourceGroup in model ResourceNameAvailabilityRequest")); } } + + private static final ClientLogger LOGGER = new ClientLogger(ResourceNameAvailabilityRequest.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java index 2bebb9ff204cc..87769d52e5052 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** One property of operation, include metric specifications. */ @Fluent public final class ServiceSpecification { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServiceSpecification.class); - /* * Metric specifications of operation. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPoliciesList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPoliciesList.java index 9760eae3f76f4..a0df640062e52 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPoliciesList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPoliciesList.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of Snapshot Policies. */ @Fluent public final class SnapshotPoliciesList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotPoliciesList.class); - /* * A list of snapshot policies */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java index e090fcf800386..3ae51ba4e83e2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -15,8 +13,6 @@ /** Snapshot policy Details for create and update. */ @Fluent public final class SnapshotPolicyPatch { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotPolicyPatch.class); - /* * Resource location */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java index 4abe5aae71308..b775edddaf151 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java @@ -6,15 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Restore payload for Single File Snapshot Restore. */ @Fluent public final class SnapshotRestoreFiles { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotRestoreFiles.class); - /* * List of files to be restored */ @@ -74,9 +71,11 @@ public SnapshotRestoreFiles withDestinationPath(String destinationPath) { */ public void validate() { if (filePaths() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property filePaths in model SnapshotRestoreFiles")); } } + + private static final ClientLogger LOGGER = new ClientLogger(SnapshotRestoreFiles.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotsList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotsList.java index 054800ade20cf..9cc7b268d60c1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotsList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotsList.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.SnapshotInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of Snapshots. */ @Fluent public final class SnapshotsList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SnapshotsList.class); - /* * A list of Snapshots */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItemList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItemList.java index 97d1fb8b7ae6a..0b2322d334854 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItemList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItemList.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of Subscription Quota Items. */ @Fluent public final class SubscriptionQuotaItemList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SubscriptionQuotaItemList.class); - /* * A list of SubscriptionQuotaItems */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java index f4003c36f2b1c..f766f48b6e794 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.SubvolumePatchParams; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Subvolume Patch Request properties. */ @Fluent public final class SubvolumePatchRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumePatchRequest.class); - /* * Subvolume Properties */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java index be7da064bbdcd..05e2cc84b1809 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SubvolumesList.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of Subvolumes. */ @Fluent public final class SubvolumesList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SubvolumesList.class); - /* * A list of Subvolumes */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VaultList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VaultList.java index 5392f171c952a..382e645afa1cc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VaultList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VaultList.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.VaultInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of Vaults. */ @Fluent public final class VaultList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VaultList.class); - /* * A list of vaults */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupProperties.java index ed59afbc95c63..0f91c94d50d31 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Volume Backup Properties. */ @Fluent public final class VolumeBackupProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeBackupProperties.class); - /* * Backup Policy Resource ID */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java index 83d6d152f7e0a..8ac4930e3165c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Volume details using the backup policy. */ @Fluent public final class VolumeBackups { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeBackups.class); - /* * Volume name */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupList.java index 5fdd44cc5183d..0e8190dda01ca 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupList.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of volume group resources. */ @Fluent public final class VolumeGroupList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupList.class); - /* * List of volume Groups */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java index 404a22053d0fc..e53bbd42d89e8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Volume group properties. */ @Fluent public final class VolumeGroupMetadata { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupMetadata.class); - /* * Group Description */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java index f906fe0ffe04d..4672310276de1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java @@ -9,7 +9,6 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.MountTargetProperties; import com.azure.resourcemanager.netapp.fluent.models.VolumeProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -18,8 +17,6 @@ /** Volume resource. */ @Fluent public final class VolumeGroupVolumeProperties extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeGroupVolumeProperties.class); - /* * Resource name */ @@ -968,7 +965,7 @@ public VolumeGroupVolumeProperties withEnableSubvolumes(EnableSubvolumes enableS */ public void validate() { if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property innerProperties in model VolumeGroupVolumeProperties")); @@ -976,4 +973,6 @@ public void validate() { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(VolumeGroupVolumeProperties.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeList.java index 46a96f5821ebd..8ab8debd66e2b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeList.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeList.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.VolumeInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of volume resources. */ @Fluent public final class VolumeList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeList.class); - /* * List of volumes */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java index 75abb67731f31..edbc8f0db90e8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java @@ -6,17 +6,13 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.models.VolumePatchProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** Volume patch resource. */ @Fluent public final class VolumePatch extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumePatch.class); - /* * Patchable volume properties */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java index f56a6dbdd01cd..26b45311055ae 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** DataProtection DataProtection type volumes include an object containing details of the replication. */ @Fluent public final class VolumePatchPropertiesDataProtection { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumePatchPropertiesDataProtection.class); - /* * Backup Properties */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java index 92c1a0378f0f1..ba993dca64b5e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** exportPolicy Set of export policy rules. */ @Fluent public final class VolumePatchPropertiesExportPolicy { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumePatchPropertiesExportPolicy.class); - /* * Export policy rule */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java index 48eae8c7d1134..8bc20cae6d8b1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** DataProtection DataProtection type volumes include an object containing details of the replication. */ @Fluent public final class VolumePropertiesDataProtection { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumePropertiesDataProtection.class); - /* * Backup Properties */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java index d01226c7b59fe..1368a3a3489eb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** exportPolicy Set of export policy rules. */ @Fluent public final class VolumePropertiesExportPolicy { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumePropertiesExportPolicy.class); - /* * Export policy rule */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java index ae33a731af3f6..961747d5f5292 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** revert a volume to the snapshot. */ @Fluent public final class VolumeRevert { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeRevert.class); - /* * Resource id of the snapshot */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java index 65cb1f1a8fec0..8cdeb9d915637 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Volume Snapshot Properties. */ @Fluent public final class VolumeSnapshotProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VolumeSnapshotProperties.class); - /* * Snapshot Policy ResourceId */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java index 95a94f47299e0..141e2e1050a0d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.netapp.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Weekly Schedule properties, make a snapshot every week at a specific day or days. */ @Fluent public final class WeeklySchedule { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WeeklySchedule.class); - /* * Weekly snapshot count to keep */