From dffe0a61e5bbe3ad5307ef6730da4314cc197739 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 9 Mar 2022 16:55:47 +0000 Subject: [PATCH] CodeGen from PR 18154 in Azure/azure-rest-api-specs Merge 1a8486d9d6276099d80948951dd2b6d6cb2a08ab into 5e638554b6284a41ef1918ef5d700f70ec338799 --- .../azure-resourcemanager-kusto/CHANGELOG.md | 4 ++- .../azure-resourcemanager-kusto/README.md | 2 +- .../resourcemanager/kusto/KustoManager.java | 10 +++--- .../AttachedDatabaseConfigurationInner.java | 4 --- ...tachedDatabaseConfigurationProperties.java | 11 +++--- .../fluent/models/AzureResourceSkuInner.java | 4 --- .../fluent/models/CheckNameResultInner.java | 4 --- .../kusto/fluent/models/ClusterInner.java | 7 ++-- .../ClusterPrincipalAssignmentInner.java | 4 --- .../models/ClusterPrincipalProperties.java | 11 +++--- .../fluent/models/ClusterProperties.java | 4 --- .../fluent/models/DataConnectionInner.java | 4 --- .../models/DataConnectionValidationInner.java | 4 --- ...taConnectionValidationListResultInner.java | 4 --- .../kusto/fluent/models/DatabaseInner.java | 4 --- .../DatabasePrincipalAssignmentInner.java | 4 --- .../fluent/models/DatabasePrincipalInner.java | 11 +++--- .../DatabasePrincipalListResultInner.java | 4 --- .../models/DatabasePrincipalProperties.java | 11 +++--- .../DiagnoseVirtualNetworkResultInner.java | 4 --- .../models/EventGridConnectionProperties.java | 24 ++++++------- .../models/EventHubConnectionProperties.java | 22 ++++++------ .../FollowerDatabaseDefinitionInner.java | 9 +++-- .../models/IotHubConnectionProperties.java | 11 +++--- .../fluent/models/LanguageExtensionInner.java | 4 --- .../models/ManagedPrivateEndpointInner.java | 4 --- .../ManagedPrivateEndpointProperties.java | 9 +++-- .../kusto/fluent/models/OperationInner.java | 4 --- .../OperationResultErrorProperties.java | 4 --- .../fluent/models/OperationResultInner.java | 4 --- .../models/OperationResultProperties.java | 4 --- ...boundNetworkDependenciesEndpointInner.java | 4 --- ...NetworkDependenciesEndpointProperties.java | 5 --- .../PrivateEndpointConnectionInner.java | 4 --- .../PrivateEndpointConnectionProperties.java | 7 ++-- .../models/PrivateLinkResourceInner.java | 4 --- .../models/PrivateLinkResourceProperties.java | 4 --- .../ReadOnlyFollowingDatabaseProperties.java | 4 --- .../models/ReadWriteDatabaseProperties.java | 4 --- .../kusto/fluent/models/ScriptInner.java | 4 --- .../kusto/fluent/models/ScriptProperties.java | 4 --- .../fluent/models/SkuDescriptionInner.java | 4 --- ...achedDatabaseConfigurationsClientImpl.java | 3 -- .../AttachedDatabaseConfigurationsImpl.java | 27 +++++++------- ...ClusterPrincipalAssignmentsClientImpl.java | 3 -- .../ClusterPrincipalAssignmentsImpl.java | 27 +++++++------- .../implementation/ClustersClientImpl.java | 3 -- .../kusto/implementation/ClustersImpl.java | 19 +++++----- .../DataConnectionsClientImpl.java | 3 -- .../implementation/DataConnectionsImpl.java | 3 +- ...atabasePrincipalAssignmentsClientImpl.java | 3 -- .../DatabasePrincipalAssignmentsImpl.java | 35 +++++++++---------- .../implementation/DatabasesClientImpl.java | 3 -- .../kusto/implementation/DatabasesImpl.java | 3 +- .../KustoManagementClientImpl.java | 6 ++-- .../ManagedPrivateEndpointsClientImpl.java | 3 -- .../ManagedPrivateEndpointsImpl.java | 27 +++++++------- .../implementation/OperationsClientImpl.java | 3 -- .../kusto/implementation/OperationsImpl.java | 3 +- .../OperationsResultsClientImpl.java | 3 -- .../implementation/OperationsResultsImpl.java | 3 +- .../OperationsResultsLocationsClientImpl.java | 3 -- .../OperationsResultsLocationsImpl.java | 3 +- .../PrivateEndpointConnectionsClientImpl.java | 3 -- .../PrivateEndpointConnectionsImpl.java | 27 +++++++------- .../PrivateLinkResourcesClientImpl.java | 3 -- .../PrivateLinkResourcesImpl.java | 3 +- .../implementation/ScriptsClientImpl.java | 3 -- .../kusto/implementation/ScriptsImpl.java | 35 +++++++++---------- .../kusto/models/AcceptedAudiences.java | 4 --- ...tachedDatabaseConfigurationListResult.java | 4 --- ...atabaseConfigurationsCheckNameRequest.java | 8 ++--- .../kusto/models/AzureCapacity.java | 7 ++-- .../kusto/models/AzureSku.java | 9 +++-- .../kusto/models/CheckNameRequest.java | 9 +++-- .../kusto/models/ClusterCheckNameRequest.java | 7 ++-- .../kusto/models/ClusterListResult.java | 4 --- ...erPrincipalAssignmentCheckNameRequest.java | 7 ++-- .../ClusterPrincipalAssignmentListResult.java | 4 --- .../kusto/models/ClusterUpdate.java | 4 --- .../kusto/models/ClustersUpdateHeaders.java | 4 --- .../DataConnectionCheckNameRequest.java | 7 ++-- .../models/DataConnectionListResult.java | 4 --- .../DataConnectionValidationResult.java | 4 --- .../models/DataConnectionsUpdateHeaders.java | 4 --- .../kusto/models/DatabaseListResult.java | 4 --- ...sePrincipalAssignmentCheckNameRequest.java | 7 ++-- ...DatabasePrincipalAssignmentListResult.java | 4 --- .../models/DatabasePrincipalListRequest.java | 4 --- .../kusto/models/DatabaseStatistics.java | 4 --- .../kusto/models/DatabasesUpdateHeaders.java | 4 --- .../kusto/models/EndpointDependency.java | 4 --- .../kusto/models/EndpointDetail.java | 4 --- .../kusto/models/EventGridDataConnection.java | 12 +++---- .../kusto/models/EventHubDataConnection.java | 12 +++---- .../models/FollowerDatabaseListResult.java | 4 --- .../kusto/models/Identity.java | 7 ++-- .../IdentityUserAssignedIdentities.java | 4 --- .../kusto/models/IotHubDataConnection.java | 4 --- .../kusto/models/KeyVaultProperties.java | 4 --- .../kusto/models/LanguageExtensionsList.java | 4 --- .../kusto/models/ListResourceSkusResult.java | 4 --- .../ManagedPrivateEndpointListResult.java | 4 --- ...nagedPrivateEndpointsCheckNameRequest.java | 7 ++-- .../ManagedPrivateEndpointsUpdateHeaders.java | 4 --- .../kusto/models/OperationDisplay.java | 4 --- .../kusto/models/OperationListResult.java | 4 --- .../kusto/models/OptimizedAutoscale.java | 4 --- ...NetworkDependenciesEndpointListResult.java | 8 ++--- .../PrivateEndpointConnectionListResult.java | 4 --- .../kusto/models/PrivateEndpointProperty.java | 4 --- .../models/PrivateLinkResourceListResult.java | 4 --- ...ateLinkServiceConnectionStateProperty.java | 4 --- .../models/ReadOnlyFollowingDatabase.java | 4 --- .../kusto/models/ReadWriteDatabase.java | 4 --- .../kusto/models/ScriptCheckNameRequest.java | 7 ++-- .../kusto/models/ScriptListResult.java | 4 --- .../kusto/models/ScriptsUpdateHeaders.java | 4 --- .../kusto/models/SkuDescriptionList.java | 4 --- .../kusto/models/SkuLocationInfoItem.java | 7 ++-- .../models/TableLevelSharingProperties.java | 4 --- .../kusto/models/TrustedExternalTenant.java | 4 --- .../models/VirtualNetworkConfiguration.java | 11 +++--- 123 files changed, 230 insertions(+), 576 deletions(-) diff --git a/sdk/kusto/azure-resourcemanager-kusto/CHANGELOG.md b/sdk/kusto/azure-resourcemanager-kusto/CHANGELOG.md index 8acbf43302ff0..4826e80593639 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/CHANGELOG.md +++ b/sdk/kusto/azure-resourcemanager-kusto/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.5 (Unreleased) +## 1.0.0-beta.1 (2022-03-09) + +- Azure Resource Manager Kusto client library for Java. This package contains Microsoft Azure SDK for Kusto Management SDK. The Azure Kusto management API provides a RESTful set of web services that interact with Azure Kusto services to manage your clusters and databases. The API enables you to create, update, and delete clusters and databases. Package tag package-2022-02. 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/kusto/azure-resourcemanager-kusto/README.md b/sdk/kusto/azure-resourcemanager-kusto/README.md index e7b742650327f..e19d73a1ebedf 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/README.md +++ b/sdk/kusto/azure-resourcemanager-kusto/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-kusto - 1.0.0-beta.4 + 1.0.0-beta.5 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/KustoManager.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/KustoManager.java index 91a9d28610dd6..1229fc5342d63 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/KustoManager.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/KustoManager.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 KustoManager authenticate(TokenCredential credential, AzureProfile profil .append("-") .append("com.azure.resourcemanager.kusto") .append("/") - .append("1.0.0-beta.4"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/AttachedDatabaseConfigurationInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/AttachedDatabaseConfigurationInner.java index 6dd3fcaaee342..d7d28a8841c35 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/AttachedDatabaseConfigurationInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/AttachedDatabaseConfigurationInner.java @@ -6,19 +6,15 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.DefaultPrincipalsModificationKind; import com.azure.resourcemanager.kusto.models.ProvisioningState; import com.azure.resourcemanager.kusto.models.TableLevelSharingProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Class representing an attached database configuration. */ @Fluent public final class AttachedDatabaseConfigurationInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AttachedDatabaseConfigurationInner.class); - /* * Resource location. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/AttachedDatabaseConfigurationProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/AttachedDatabaseConfigurationProperties.java index 820febeb8970e..c18ce57488428 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/AttachedDatabaseConfigurationProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/AttachedDatabaseConfigurationProperties.java @@ -9,15 +9,12 @@ import com.azure.resourcemanager.kusto.models.DefaultPrincipalsModificationKind; import com.azure.resourcemanager.kusto.models.ProvisioningState; import com.azure.resourcemanager.kusto.models.TableLevelSharingProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Class representing the an attached database configuration properties of kind specific. */ @Fluent public final class AttachedDatabaseConfigurationProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AttachedDatabaseConfigurationProperties.class); - /* * The provisioned state of the resource. */ @@ -169,20 +166,20 @@ public AttachedDatabaseConfigurationProperties withTableLevelSharingProperties( */ public void validate() { if (databaseName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property databaseName in model AttachedDatabaseConfigurationProperties")); } if (clusterResourceId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property clusterResourceId in model" + " AttachedDatabaseConfigurationProperties")); } if (defaultPrincipalsModificationKind() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property defaultPrincipalsModificationKind in model" @@ -192,4 +189,6 @@ public void validate() { tableLevelSharingProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(AttachedDatabaseConfigurationProperties.class); } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/AzureResourceSkuInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/AzureResourceSkuInner.java index 70f01a247b23a..3f1effd5fbea2 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/AzureResourceSkuInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/AzureResourceSkuInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.kusto.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.AzureCapacity; import com.azure.resourcemanager.kusto.models.AzureSku; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Azure resource SKU definition. */ @Fluent public final class AzureResourceSkuInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureResourceSkuInner.class); - /* * Resource Namespace and Type. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/CheckNameResultInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/CheckNameResultInner.java index 68673f6999036..f62824a480bd4 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/CheckNameResultInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/CheckNameResultInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.kusto.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.Reason; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The result returned from a check name availability request. */ @Fluent public final class CheckNameResultInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CheckNameResultInner.class); - /* * Specifies a Boolean value that indicates if the name is available. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterInner.java index 0ca9fa7654678..a151a202f33fd 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterInner.java @@ -22,7 +22,6 @@ import com.azure.resourcemanager.kusto.models.State; import com.azure.resourcemanager.kusto.models.TrustedExternalTenant; import com.azure.resourcemanager.kusto.models.VirtualNetworkConfiguration; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; @@ -30,8 +29,6 @@ /** Class representing a Kusto cluster. */ @Fluent public final class ClusterInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterInner.class); - /* * The SKU of the cluster. */ @@ -638,7 +635,7 @@ public List privateEndpointConnections() { */ public void validate() { if (sku() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property sku in model ClusterInner")); } else { @@ -651,4 +648,6 @@ public void validate() { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(ClusterInner.class); } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterPrincipalAssignmentInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterPrincipalAssignmentInner.java index 390c1efe33313..9fd1fe89ccd60 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterPrincipalAssignmentInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterPrincipalAssignmentInner.java @@ -6,18 +6,14 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.ClusterPrincipalRole; import com.azure.resourcemanager.kusto.models.PrincipalType; import com.azure.resourcemanager.kusto.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Class representing a cluster principal assignment. */ @Fluent public final class ClusterPrincipalAssignmentInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterPrincipalAssignmentInner.class); - /* * The cluster principal. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterPrincipalProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterPrincipalProperties.java index 5ecfc75b92c54..431c3f01f0fb0 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterPrincipalProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterPrincipalProperties.java @@ -9,14 +9,11 @@ import com.azure.resourcemanager.kusto.models.ClusterPrincipalRole; import com.azure.resourcemanager.kusto.models.PrincipalType; import com.azure.resourcemanager.kusto.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A class representing cluster principal property. */ @Fluent public final class ClusterPrincipalProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterPrincipalProperties.class); - /* * The principal ID assigned to the cluster principal. It can be a user * email, application ID, or security group name. @@ -191,21 +188,23 @@ public String aadObjectId() { */ public void validate() { if (principalId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property principalId in model ClusterPrincipalProperties")); } if (role() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property role in model ClusterPrincipalProperties")); } if (principalType() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property principalType in model ClusterPrincipalProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(ClusterPrincipalProperties.class); } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterProperties.java index 2d46169da7989..23cb3e6041e72 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterProperties.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.kusto.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.AcceptedAudiences; import com.azure.resourcemanager.kusto.models.ClusterNetworkAccessFlag; import com.azure.resourcemanager.kusto.models.EngineType; @@ -18,15 +17,12 @@ import com.azure.resourcemanager.kusto.models.State; import com.azure.resourcemanager.kusto.models.TrustedExternalTenant; import com.azure.resourcemanager.kusto.models.VirtualNetworkConfiguration; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Class representing the Kusto cluster properties. */ @Fluent public final class ClusterProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterProperties.class); - /* * The state of the resource. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DataConnectionInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DataConnectionInner.java index ba6d8314d5020..1ed3f3ae50856 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DataConnectionInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DataConnectionInner.java @@ -6,11 +6,9 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.EventGridDataConnection; import com.azure.resourcemanager.kusto.models.EventHubDataConnection; import com.azure.resourcemanager.kusto.models.IotHubDataConnection; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -30,8 +28,6 @@ }) @Fluent public class DataConnectionInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataConnectionInner.class); - /* * Resource location. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DataConnectionValidationInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DataConnectionValidationInner.java index 1af06baf97389..5a0188af4e629 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DataConnectionValidationInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DataConnectionValidationInner.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.kusto.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; /** Class representing an data connection validation. */ @Fluent public final class DataConnectionValidationInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataConnectionValidationInner.class); - /* * The name of the data connection. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DataConnectionValidationListResultInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DataConnectionValidationListResultInner.java index 1244c23b4dfbc..f1f593b06bd32 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DataConnectionValidationListResultInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DataConnectionValidationListResultInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.kusto.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.DataConnectionValidationResult; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list Kusto data connection validation result. */ @Fluent public final class DataConnectionValidationListResultInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataConnectionValidationListResultInner.class); - /* * The list of Kusto data connection validation errors. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabaseInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabaseInner.java index c9ae8759baaed..fe1c964d6d84e 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabaseInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabaseInner.java @@ -6,10 +6,8 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.ReadOnlyFollowingDatabase; import com.azure.resourcemanager.kusto.models.ReadWriteDatabase; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -28,8 +26,6 @@ }) @Fluent public class DatabaseInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabaseInner.class); - /* * Resource location. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalAssignmentInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalAssignmentInner.java index cbe068ed2cbab..8af1268845433 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalAssignmentInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalAssignmentInner.java @@ -6,18 +6,14 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.DatabasePrincipalRole; import com.azure.resourcemanager.kusto.models.PrincipalType; import com.azure.resourcemanager.kusto.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Class representing a database principal assignment. */ @Fluent public final class DatabasePrincipalAssignmentInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabasePrincipalAssignmentInner.class); - /* * The database principal. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalInner.java index c3bf3d9b6cbe2..ba9cbc2ed10d1 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalInner.java @@ -8,14 +8,11 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.DatabasePrincipalRole; import com.azure.resourcemanager.kusto.models.DatabasePrincipalType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A class representing database principal entity. */ @Fluent public final class DatabasePrincipalInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabasePrincipalInner.class); - /* * Database principal role. */ @@ -194,19 +191,21 @@ public String tenantName() { */ public void validate() { if (role() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property role in model DatabasePrincipalInner")); } if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property name in model DatabasePrincipalInner")); } if (type() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property type in model DatabasePrincipalInner")); } } + + private static final ClientLogger LOGGER = new ClientLogger(DatabasePrincipalInner.class); } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalListResultInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalListResultInner.java index 73313f38d6778..de5db2b56fbfb 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalListResultInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalListResultInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.kusto.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; /** The list Kusto database principals operation response. */ @Fluent public final class DatabasePrincipalListResultInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabasePrincipalListResultInner.class); - /* * The list of Kusto database principals. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalProperties.java index 00b21471a84c6..b2e3346ad71b1 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalProperties.java @@ -9,14 +9,11 @@ import com.azure.resourcemanager.kusto.models.DatabasePrincipalRole; import com.azure.resourcemanager.kusto.models.PrincipalType; import com.azure.resourcemanager.kusto.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A class representing database principal property. */ @Fluent public final class DatabasePrincipalProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabasePrincipalProperties.class); - /* * The principal ID assigned to the database principal. It can be a user * email, application ID, or security group name. @@ -191,22 +188,24 @@ public String aadObjectId() { */ public void validate() { if (principalId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property principalId in model DatabasePrincipalProperties")); } if (role() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property role in model DatabasePrincipalProperties")); } if (principalType() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property principalType in model DatabasePrincipalProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(DatabasePrincipalProperties.class); } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DiagnoseVirtualNetworkResultInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DiagnoseVirtualNetworkResultInner.java index 53be097824111..8609a947f528f 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DiagnoseVirtualNetworkResultInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DiagnoseVirtualNetworkResultInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.kusto.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; /** The DiagnoseVirtualNetworkResult model. */ @Fluent public final class DiagnoseVirtualNetworkResultInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DiagnoseVirtualNetworkResultInner.class); - /* * The list of network connectivity diagnostic finding */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/EventGridConnectionProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/EventGridConnectionProperties.java index 978dde91b846f..c2472b23a629c 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/EventGridConnectionProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/EventGridConnectionProperties.java @@ -10,14 +10,11 @@ import com.azure.resourcemanager.kusto.models.DatabaseRouting; import com.azure.resourcemanager.kusto.models.EventGridDataFormat; import com.azure.resourcemanager.kusto.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Class representing the Kusto event grid connection properties. */ @Fluent public final class EventGridConnectionProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EventGridConnectionProperties.class); - /* * The resource ID of the storage account where the data resides. */ @@ -78,8 +75,9 @@ public final class EventGridConnectionProperties { private BlobStorageEventType blobStorageEventType; /* - * The resource ID of a managed identity (system or user assigned) to be - * used to authenticate with event hub and storage account. + * Empty for non-managed identity based data connection. For system + * assigned identity, provide cluster resource Id. For user assigned + * identity (UAI) provide the UAI resource Id. */ @JsonProperty(value = "managedIdentityResourceId") private String managedIdentityResourceId; @@ -294,8 +292,8 @@ public EventGridConnectionProperties withBlobStorageEventType(BlobStorageEventTy } /** - * Get the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be - * used to authenticate with event hub and storage account. + * Get the managedIdentityResourceId property: Empty for non-managed identity based data connection. For system + * assigned identity, provide cluster resource Id. For user assigned identity (UAI) provide the UAI resource Id. * * @return the managedIdentityResourceId value. */ @@ -304,8 +302,8 @@ public String managedIdentityResourceId() { } /** - * Set the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be - * used to authenticate with event hub and storage account. + * Set the managedIdentityResourceId property: Empty for non-managed identity based data connection. For system + * assigned identity, provide cluster resource Id. For user assigned identity (UAI) provide the UAI resource Id. * * @param managedIdentityResourceId the managedIdentityResourceId value to set. * @return the EventGridConnectionProperties object itself. @@ -362,22 +360,24 @@ public ProvisioningState provisioningState() { */ public void validate() { if (storageAccountResourceId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property storageAccountResourceId in model EventGridConnectionProperties")); } if (eventHubResourceId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property eventHubResourceId in model EventGridConnectionProperties")); } if (consumerGroup() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property consumerGroup in model EventGridConnectionProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(EventGridConnectionProperties.class); } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/EventHubConnectionProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/EventHubConnectionProperties.java index bb2d49a23b01d..5d50899f232d3 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/EventHubConnectionProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/EventHubConnectionProperties.java @@ -10,15 +10,12 @@ import com.azure.resourcemanager.kusto.models.DatabaseRouting; import com.azure.resourcemanager.kusto.models.EventHubDataFormat; import com.azure.resourcemanager.kusto.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Class representing the Kusto event hub connection properties. */ @Fluent public final class EventHubConnectionProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EventHubConnectionProperties.class); - /* * The resource ID of the event hub to be used to create a data connection. */ @@ -71,8 +68,9 @@ public final class EventHubConnectionProperties { private ProvisioningState provisioningState; /* - * The resource ID of a managed identity (system or user assigned) to be - * used to authenticate with event hub. + * Empty for non-managed identity based data connection. For system + * assigned identity, provide cluster resource Id. For user assigned + * identity (UAI) provide the UAI resource Id. */ @JsonProperty(value = "managedIdentityResourceId") private String managedIdentityResourceId; @@ -246,8 +244,8 @@ public ProvisioningState provisioningState() { } /** - * Get the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be - * used to authenticate with event hub. + * Get the managedIdentityResourceId property: Empty for non-managed identity based data connection. For system + * assigned identity, provide cluster resource Id. For user assigned identity (UAI) provide the UAI resource Id. * * @return the managedIdentityResourceId value. */ @@ -256,8 +254,8 @@ public String managedIdentityResourceId() { } /** - * Set the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be - * used to authenticate with event hub. + * Set the managedIdentityResourceId property: Empty for non-managed identity based data connection. For system + * assigned identity, provide cluster resource Id. For user assigned identity (UAI) provide the UAI resource Id. * * @param managedIdentityResourceId the managedIdentityResourceId value to set. * @return the EventHubConnectionProperties object itself. @@ -305,16 +303,18 @@ public EventHubConnectionProperties withDatabaseRouting(DatabaseRouting database */ public void validate() { if (eventHubResourceId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property eventHubResourceId in model EventHubConnectionProperties")); } if (consumerGroup() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property consumerGroup in model EventHubConnectionProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(EventHubConnectionProperties.class); } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/FollowerDatabaseDefinitionInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/FollowerDatabaseDefinitionInner.java index c034c8bdf5bc3..ffa435b0ff3d4 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/FollowerDatabaseDefinitionInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/FollowerDatabaseDefinitionInner.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; /** A class representing follower database request. */ @Fluent public final class FollowerDatabaseDefinitionInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(FollowerDatabaseDefinitionInner.class); - /* * Resource id of the cluster that follows a database owned by this * cluster. @@ -95,17 +92,19 @@ public String databaseName() { */ public void validate() { if (clusterResourceId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property clusterResourceId in model FollowerDatabaseDefinitionInner")); } if (attachedDatabaseConfigurationName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property attachedDatabaseConfigurationName in model" + " FollowerDatabaseDefinitionInner")); } } + + private static final ClientLogger LOGGER = new ClientLogger(FollowerDatabaseDefinitionInner.class); } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/IotHubConnectionProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/IotHubConnectionProperties.java index 0473e6cddf3fa..6b411c7d443aa 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/IotHubConnectionProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/IotHubConnectionProperties.java @@ -9,15 +9,12 @@ import com.azure.resourcemanager.kusto.models.DatabaseRouting; import com.azure.resourcemanager.kusto.models.IotHubDataFormat; import com.azure.resourcemanager.kusto.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Class representing the Kusto Iot hub connection properties. */ @Fluent public final class IotHubConnectionProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubConnectionProperties.class); - /* * The resource ID of the Iot hub to be used to create a data connection. */ @@ -260,22 +257,24 @@ public ProvisioningState provisioningState() { */ public void validate() { if (iotHubResourceId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property iotHubResourceId in model IotHubConnectionProperties")); } if (consumerGroup() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property consumerGroup in model IotHubConnectionProperties")); } if (sharedAccessPolicyName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property sharedAccessPolicyName in model IotHubConnectionProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(IotHubConnectionProperties.class); } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/LanguageExtensionInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/LanguageExtensionInner.java index c50b194ff78b3..a9804d458e0cc 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/LanguageExtensionInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/LanguageExtensionInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.kusto.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.LanguageExtensionName; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The language extension object. */ @Fluent public final class LanguageExtensionInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LanguageExtensionInner.class); - /* * The language extension name. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ManagedPrivateEndpointInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ManagedPrivateEndpointInner.java index ee015bdaf0cb4..78882c5a20fe7 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ManagedPrivateEndpointInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ManagedPrivateEndpointInner.java @@ -7,16 +7,12 @@ 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.azure.resourcemanager.kusto.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Class representing a managed private endpoint. */ @Fluent public final class ManagedPrivateEndpointInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedPrivateEndpointInner.class); - /* * A managed private endpoint. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ManagedPrivateEndpointProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ManagedPrivateEndpointProperties.java index 53f0f40307f2b..6f43bdd0accdd 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ManagedPrivateEndpointProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ManagedPrivateEndpointProperties.java @@ -7,14 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A class representing the properties of a managed private endpoint object. */ @Fluent public final class ManagedPrivateEndpointProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedPrivateEndpointProperties.class); - /* * The ARM resource ID of the resource for which the managed private * endpoint is created. @@ -147,16 +144,18 @@ public ProvisioningState provisioningState() { */ public void validate() { if (privateLinkResourceId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property privateLinkResourceId in model ManagedPrivateEndpointProperties")); } if (groupId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property groupId in model ManagedPrivateEndpointProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(ManagedPrivateEndpointProperties.class); } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationInner.java index 35a0e11045505..162b8b5b95529 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.kusto.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.OperationDisplay; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A REST API operation. */ @Fluent public final class OperationInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class); - /* * The operation name. This is of the format * {provider}/{resource}/{operation}. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultErrorProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultErrorProperties.java index 124e0214b0f09..4c12411e8d70c 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultErrorProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultErrorProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.kusto.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; /** Operation result error properties. */ @Fluent public final class OperationResultErrorProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationResultErrorProperties.class); - /* * The code of the error. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultInner.java index fe0b75c1eb44b..547a011faa64d 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultInner.java @@ -5,18 +5,14 @@ package com.azure.resourcemanager.kusto.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.ProvisioningState; import com.azure.resourcemanager.kusto.models.Status; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Operation Result Entity. */ @Fluent public final class OperationResultInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationResultInner.class); - /* * ID of the resource. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultProperties.java index f2684b67be307..f3c74a33b2257 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.kusto.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Operation result properties. */ @Fluent public final class OperationResultProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationResultProperties.class); - /* * The kind of the operation. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OutboundNetworkDependenciesEndpointInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OutboundNetworkDependenciesEndpointInner.java index edaad6ddf49db..9e22a79c4c35c 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OutboundNetworkDependenciesEndpointInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OutboundNetworkDependenciesEndpointInner.java @@ -6,18 +6,14 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.EndpointDependency; import com.azure.resourcemanager.kusto.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Endpoints accessed for a common purpose that the Kusto Service Environment requires outbound network access to. */ @Fluent public final class OutboundNetworkDependenciesEndpointInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OutboundNetworkDependenciesEndpointInner.class); - /* * The outbound environment endpoint properties. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OutboundNetworkDependenciesEndpointProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OutboundNetworkDependenciesEndpointProperties.java index 137259a593b07..f4e79da517510 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OutboundNetworkDependenciesEndpointProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OutboundNetworkDependenciesEndpointProperties.java @@ -5,19 +5,14 @@ package com.azure.resourcemanager.kusto.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.EndpointDependency; import com.azure.resourcemanager.kusto.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Endpoints accessed for a common purpose that the Kusto Service Environment requires outbound network access to. */ @Fluent public final class OutboundNetworkDependenciesEndpointProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(OutboundNetworkDependenciesEndpointProperties.class); - /* * The type of service accessed by the Kusto Service Environment, e.g., * Azure Storage, Azure SQL Database, and Azure Active Directory. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/PrivateEndpointConnectionInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/PrivateEndpointConnectionInner.java index 8e0fdaa2c0a49..38e7a154c16ac 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/PrivateEndpointConnectionInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/PrivateEndpointConnectionInner.java @@ -7,17 +7,13 @@ 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.azure.resourcemanager.kusto.models.PrivateEndpointProperty; import com.azure.resourcemanager.kusto.models.PrivateLinkServiceConnectionStateProperty; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A private endpoint connection. */ @Fluent public final class PrivateEndpointConnectionInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class); - /* * Resource properties. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/PrivateEndpointConnectionProperties.java index 61b7a8e9e42d2..2e54989b2816e 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/PrivateEndpointConnectionProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/PrivateEndpointConnectionProperties.java @@ -8,14 +8,11 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.PrivateEndpointProperty; import com.azure.resourcemanager.kusto.models.PrivateLinkServiceConnectionStateProperty; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Properties of a private endpoint connection. */ @Fluent public final class PrivateEndpointConnectionProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionProperties.class); - /* * Private endpoint which the connection belongs to. */ @@ -98,7 +95,7 @@ public void validate() { privateEndpoint().validate(); } if (privateLinkServiceConnectionState() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property privateLinkServiceConnectionState in model" @@ -107,4 +104,6 @@ public void validate() { privateLinkServiceConnectionState().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionProperties.class); } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/PrivateLinkResourceInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/PrivateLinkResourceInner.java index 7f2c9d5f60ffa..659c42256a0d3 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/PrivateLinkResourceInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/PrivateLinkResourceInner.java @@ -7,16 +7,12 @@ 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; import java.util.List; /** A private link resource. */ @Fluent public final class PrivateLinkResourceInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceInner.class); - /* * Resource properties. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/PrivateLinkResourceProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/PrivateLinkResourceProperties.java index 0022b8caae992..cbd112a374dd1 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/PrivateLinkResourceProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/PrivateLinkResourceProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.kusto.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.util.List; /** Properties of a private link resource. */ @Immutable public final class PrivateLinkResourceProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceProperties.class); - /* * The private link resource group id. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ReadOnlyFollowingDatabaseProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ReadOnlyFollowingDatabaseProperties.java index 20b4444e5a4dc..748b4ff75f5d8 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ReadOnlyFollowingDatabaseProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ReadOnlyFollowingDatabaseProperties.java @@ -5,19 +5,15 @@ package com.azure.resourcemanager.kusto.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.DatabaseStatistics; import com.azure.resourcemanager.kusto.models.PrincipalsModificationKind; import com.azure.resourcemanager.kusto.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.Duration; /** Class representing the Kusto database properties. */ @Fluent public final class ReadOnlyFollowingDatabaseProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ReadOnlyFollowingDatabaseProperties.class); - /* * The provisioned state of the resource. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ReadWriteDatabaseProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ReadWriteDatabaseProperties.java index 50ea2493e673c..88d53d56ec9c9 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ReadWriteDatabaseProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ReadWriteDatabaseProperties.java @@ -5,18 +5,14 @@ package com.azure.resourcemanager.kusto.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.DatabaseStatistics; import com.azure.resourcemanager.kusto.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.Duration; /** Class representing the Kusto database properties. */ @Fluent public final class ReadWriteDatabaseProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ReadWriteDatabaseProperties.class); - /* * The provisioned state of the resource. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ScriptInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ScriptInner.java index 06a3498cfe13a..e4d15a2ed459e 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ScriptInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ScriptInner.java @@ -7,16 +7,12 @@ 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.azure.resourcemanager.kusto.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Class representing a database script. */ @Fluent public final class ScriptInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ScriptInner.class); - /* * The database script. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ScriptProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ScriptProperties.java index f904a179e5307..e7ed6e57e749f 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ScriptProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ScriptProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.kusto.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A class representing database script property. */ @Fluent public final class ScriptProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ScriptProperties.class); - /* * The url to the KQL script blob file. Must not be used together with * scriptContent property diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/SkuDescriptionInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/SkuDescriptionInner.java index f1104f4a5584f..87f3dcc9824fd 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/SkuDescriptionInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/SkuDescriptionInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.kusto.fluent.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.SkuLocationInfoItem; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The Kusto SKU description of given resource type. */ @Immutable public final class SkuDescriptionInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SkuDescriptionInner.class); - /* * The resource type */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/AttachedDatabaseConfigurationsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/AttachedDatabaseConfigurationsClientImpl.java index 4407285f4bb1d..e9a2248296dbc 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/AttachedDatabaseConfigurationsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/AttachedDatabaseConfigurationsClientImpl.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.kusto.fluent.AttachedDatabaseConfigurationsClient; @@ -44,8 +43,6 @@ /** An instance of this class provides access to all the operations defined in AttachedDatabaseConfigurationsClient. */ public final class AttachedDatabaseConfigurationsClientImpl implements AttachedDatabaseConfigurationsClient { - private final ClientLogger logger = new ClientLogger(AttachedDatabaseConfigurationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final AttachedDatabaseConfigurationsService service; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/AttachedDatabaseConfigurationsImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/AttachedDatabaseConfigurationsImpl.java index c9b4eafba5e33..4b7302c68883e 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/AttachedDatabaseConfigurationsImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/AttachedDatabaseConfigurationsImpl.java @@ -16,10 +16,9 @@ import com.azure.resourcemanager.kusto.models.AttachedDatabaseConfigurations; import com.azure.resourcemanager.kusto.models.AttachedDatabaseConfigurationsCheckNameRequest; import com.azure.resourcemanager.kusto.models.CheckNameResult; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class AttachedDatabaseConfigurationsImpl implements AttachedDatabaseConfigurations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AttachedDatabaseConfigurationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(AttachedDatabaseConfigurationsImpl.class); private final AttachedDatabaseConfigurationsClient innerClient; @@ -115,7 +114,7 @@ public void delete( public AttachedDatabaseConfiguration getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -123,14 +122,14 @@ public AttachedDatabaseConfiguration getById(String id) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String attachedDatabaseConfigurationName = Utils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); if (attachedDatabaseConfigurationName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -147,7 +146,7 @@ public AttachedDatabaseConfiguration 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 @@ -155,14 +154,14 @@ public Response getByIdWithResponse(String id, Co } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String attachedDatabaseConfigurationName = Utils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); if (attachedDatabaseConfigurationName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -177,7 +176,7 @@ public Response getByIdWithResponse(String id, Co public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -185,14 +184,14 @@ public void deleteById(String id) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String attachedDatabaseConfigurationName = Utils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); if (attachedDatabaseConfigurationName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -207,7 +206,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 @@ -215,14 +214,14 @@ public void deleteByIdWithResponse(String id, Context context) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String attachedDatabaseConfigurationName = Utils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); if (attachedDatabaseConfigurationName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterPrincipalAssignmentsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterPrincipalAssignmentsClientImpl.java index 393c43c5c3589..b75098772d3af 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterPrincipalAssignmentsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterPrincipalAssignmentsClientImpl.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.kusto.fluent.ClusterPrincipalAssignmentsClient; @@ -44,8 +43,6 @@ /** An instance of this class provides access to all the operations defined in ClusterPrincipalAssignmentsClient. */ public final class ClusterPrincipalAssignmentsClientImpl implements ClusterPrincipalAssignmentsClient { - private final ClientLogger logger = new ClientLogger(ClusterPrincipalAssignmentsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final ClusterPrincipalAssignmentsService service; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterPrincipalAssignmentsImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterPrincipalAssignmentsImpl.java index dd5ed3c5e76a7..1d421f57ae5b1 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterPrincipalAssignmentsImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterPrincipalAssignmentsImpl.java @@ -16,10 +16,9 @@ import com.azure.resourcemanager.kusto.models.ClusterPrincipalAssignment; import com.azure.resourcemanager.kusto.models.ClusterPrincipalAssignmentCheckNameRequest; import com.azure.resourcemanager.kusto.models.ClusterPrincipalAssignments; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class ClusterPrincipalAssignmentsImpl implements ClusterPrincipalAssignments { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterPrincipalAssignmentsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(ClusterPrincipalAssignmentsImpl.class); private final ClusterPrincipalAssignmentsClient innerClient; @@ -114,7 +113,7 @@ public PagedIterable list( public ClusterPrincipalAssignment getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -122,14 +121,14 @@ public ClusterPrincipalAssignment getById(String id) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -143,7 +142,7 @@ public ClusterPrincipalAssignment 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 @@ -151,14 +150,14 @@ public Response getByIdWithResponse(String id, Conte } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -172,7 +171,7 @@ public Response getByIdWithResponse(String id, Conte public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -180,14 +179,14 @@ public void deleteById(String id) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -201,7 +200,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 @@ -209,14 +208,14 @@ public void deleteByIdWithResponse(String id, Context context) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClustersClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClustersClientImpl.java index 89047e216e5a7..a9075150b73ad 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClustersClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClustersClientImpl.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.kusto.fluent.ClustersClient; @@ -57,8 +56,6 @@ /** An instance of this class provides access to all the operations defined in ClustersClient. */ public final class ClustersClientImpl implements ClustersClient { - private final ClientLogger logger = new ClientLogger(ClustersClientImpl.class); - /** The proxy service used to perform REST calls. */ private final ClustersService service; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClustersImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClustersImpl.java index 61505157f94dd..3b60361f11d89 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClustersImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClustersImpl.java @@ -29,10 +29,9 @@ import com.azure.resourcemanager.kusto.models.LanguageExtensionsList; import com.azure.resourcemanager.kusto.models.OutboundNetworkDependenciesEndpoint; import com.azure.resourcemanager.kusto.models.SkuDescription; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class ClustersImpl implements Clusters { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ClustersImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(ClustersImpl.class); private final ClustersClient innerClient; @@ -261,7 +260,7 @@ public void removeLanguageExtensions( public Cluster getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -269,7 +268,7 @@ public Cluster getById(String id) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); @@ -280,7 +279,7 @@ public Cluster 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 @@ -288,7 +287,7 @@ public Response getByIdWithResponse(String id, Context context) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); @@ -299,7 +298,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 @@ -307,7 +306,7 @@ public void deleteById(String id) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); @@ -318,7 +317,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 @@ -326,7 +325,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DataConnectionsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DataConnectionsClientImpl.java index 29c8fc4621e04..3164e2f68d379 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DataConnectionsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DataConnectionsClientImpl.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.kusto.fluent.DataConnectionsClient; @@ -47,8 +46,6 @@ /** An instance of this class provides access to all the operations defined in DataConnectionsClient. */ public final class DataConnectionsClientImpl implements DataConnectionsClient { - private final ClientLogger logger = new ClientLogger(DataConnectionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final DataConnectionsService service; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DataConnectionsImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DataConnectionsImpl.java index 91905324bfbee..12f49e6875115 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DataConnectionsImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DataConnectionsImpl.java @@ -19,10 +19,9 @@ import com.azure.resourcemanager.kusto.models.DataConnectionCheckNameRequest; import com.azure.resourcemanager.kusto.models.DataConnectionValidationListResult; import com.azure.resourcemanager.kusto.models.DataConnections; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class DataConnectionsImpl implements DataConnections { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataConnectionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(DataConnectionsImpl.class); private final DataConnectionsClient innerClient; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasePrincipalAssignmentsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasePrincipalAssignmentsClientImpl.java index 7a36e4097e99f..5af83a6d086a8 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasePrincipalAssignmentsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasePrincipalAssignmentsClientImpl.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.kusto.fluent.DatabasePrincipalAssignmentsClient; @@ -44,8 +43,6 @@ /** An instance of this class provides access to all the operations defined in DatabasePrincipalAssignmentsClient. */ public final class DatabasePrincipalAssignmentsClientImpl implements DatabasePrincipalAssignmentsClient { - private final ClientLogger logger = new ClientLogger(DatabasePrincipalAssignmentsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final DatabasePrincipalAssignmentsService service; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasePrincipalAssignmentsImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasePrincipalAssignmentsImpl.java index 4933c6081113c..146e96c2b5bcc 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasePrincipalAssignmentsImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasePrincipalAssignmentsImpl.java @@ -16,10 +16,9 @@ import com.azure.resourcemanager.kusto.models.DatabasePrincipalAssignment; import com.azure.resourcemanager.kusto.models.DatabasePrincipalAssignmentCheckNameRequest; import com.azure.resourcemanager.kusto.models.DatabasePrincipalAssignments; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class DatabasePrincipalAssignmentsImpl implements DatabasePrincipalAssignments { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabasePrincipalAssignmentsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(DatabasePrincipalAssignmentsImpl.class); private final DatabasePrincipalAssignmentsClient innerClient; @@ -132,7 +131,7 @@ public PagedIterable list( public DatabasePrincipalAssignment getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -140,21 +139,21 @@ public DatabasePrincipalAssignment getById(String id) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String databaseName = Utils.getValueFromIdByName(id, "databases"); if (databaseName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); } String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -170,7 +169,7 @@ public DatabasePrincipalAssignment 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 @@ -178,21 +177,21 @@ public Response getByIdWithResponse(String id, Cont } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String databaseName = Utils.getValueFromIdByName(id, "databases"); if (databaseName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); } String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -206,7 +205,7 @@ public Response getByIdWithResponse(String id, Cont public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -214,21 +213,21 @@ public void deleteById(String id) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String databaseName = Utils.getValueFromIdByName(id, "databases"); if (databaseName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); } String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -242,7 +241,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 @@ -250,21 +249,21 @@ public void deleteByIdWithResponse(String id, Context context) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String databaseName = Utils.getValueFromIdByName(id, "databases"); if (databaseName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); } String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasesClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasesClientImpl.java index 4e750b8f6adcf..0fe834fd8c21d 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasesClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasesClientImpl.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.kusto.fluent.DatabasesClient; @@ -48,8 +47,6 @@ /** An instance of this class provides access to all the operations defined in DatabasesClient. */ public final class DatabasesClientImpl implements DatabasesClient { - private final ClientLogger logger = new ClientLogger(DatabasesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final DatabasesService service; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasesImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasesImpl.java index 5cf62ad97ab60..3fb558a0accb3 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasesImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasesImpl.java @@ -21,10 +21,9 @@ import com.azure.resourcemanager.kusto.models.DatabasePrincipalListRequest; import com.azure.resourcemanager.kusto.models.DatabasePrincipalListResult; import com.azure.resourcemanager.kusto.models.Databases; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class DatabasesImpl implements Databases { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabasesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(DatabasesImpl.class); private final DatabasesClient innerClient; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/KustoManagementClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/KustoManagementClientImpl.java index 7765f6e1434b7..20ec9ccb27bb0 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/KustoManagementClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/KustoManagementClientImpl.java @@ -48,8 +48,6 @@ /** Initializes a new instance of the KustoManagementClientImpl type. */ @ServiceClient(builder = KustoManagementClientBuilder.class) public final class KustoManagementClientImpl implements KustoManagementClient { - private final ClientLogger logger = new ClientLogger(KustoManagementClientImpl.class); - /** * Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms * part of the URI for every service call. @@ -404,7 +402,7 @@ public Mono getLroFinalResultOrError(AsyncPollResponse, managementError = null; } } catch (IOException | RuntimeException ioe) { - logger.logThrowableAsWarning(ioe); + LOGGER.logThrowableAsWarning(ioe); } } } else { @@ -463,4 +461,6 @@ public Mono getBodyAsString(Charset charset) { return Mono.just(new String(responseBody, charset)); } } + + private static final ClientLogger LOGGER = new ClientLogger(KustoManagementClientImpl.class); } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ManagedPrivateEndpointsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ManagedPrivateEndpointsClientImpl.java index 5dfa213be01d3..4dbdc1ec9bba9 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ManagedPrivateEndpointsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ManagedPrivateEndpointsClientImpl.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.kusto.fluent.ManagedPrivateEndpointsClient; @@ -45,8 +44,6 @@ /** An instance of this class provides access to all the operations defined in ManagedPrivateEndpointsClient. */ public final class ManagedPrivateEndpointsClientImpl implements ManagedPrivateEndpointsClient { - private final ClientLogger logger = new ClientLogger(ManagedPrivateEndpointsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final ManagedPrivateEndpointsService service; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ManagedPrivateEndpointsImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ManagedPrivateEndpointsImpl.java index e82dfd237b7dc..2d7c4cb751a3e 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ManagedPrivateEndpointsImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ManagedPrivateEndpointsImpl.java @@ -16,10 +16,9 @@ import com.azure.resourcemanager.kusto.models.ManagedPrivateEndpoint; import com.azure.resourcemanager.kusto.models.ManagedPrivateEndpoints; import com.azure.resourcemanager.kusto.models.ManagedPrivateEndpointsCheckNameRequest; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class ManagedPrivateEndpointsImpl implements ManagedPrivateEndpoints { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedPrivateEndpointsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(ManagedPrivateEndpointsImpl.class); private final ManagedPrivateEndpointsClient innerClient; @@ -110,7 +109,7 @@ public void delete( public ManagedPrivateEndpoint getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -118,14 +117,14 @@ public ManagedPrivateEndpoint getById(String id) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String managedPrivateEndpointName = Utils.getValueFromIdByName(id, "managedPrivateEndpoints"); if (managedPrivateEndpointName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -141,7 +140,7 @@ public ManagedPrivateEndpoint 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 @@ -149,14 +148,14 @@ public Response getByIdWithResponse(String id, Context c } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String managedPrivateEndpointName = Utils.getValueFromIdByName(id, "managedPrivateEndpoints"); if (managedPrivateEndpointName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -170,7 +169,7 @@ public Response getByIdWithResponse(String id, Context c public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -178,14 +177,14 @@ public void deleteById(String id) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String managedPrivateEndpointName = Utils.getValueFromIdByName(id, "managedPrivateEndpoints"); if (managedPrivateEndpointName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -199,7 +198,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 @@ -207,14 +206,14 @@ public void deleteByIdWithResponse(String id, Context context) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String managedPrivateEndpointName = Utils.getValueFromIdByName(id, "managedPrivateEndpoints"); if (managedPrivateEndpointName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsClientImpl.java index f8b07cdddf7b9..da146286fccc4 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsClientImpl.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.kusto.fluent.OperationsClient; import com.azure.resourcemanager.kusto.fluent.models.OperationInner; import com.azure.resourcemanager.kusto.models.OperationListResult; @@ -33,8 +32,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/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsImpl.java index eeb99e1a3c5be..2f2afbf0ec2a9 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.kusto.fluent.models.OperationInner; import com.azure.resourcemanager.kusto.models.Operation; import com.azure.resourcemanager.kusto.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/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsClientImpl.java index 3303d5a3a998e..31006a24b78cb 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsClientImpl.java @@ -21,15 +21,12 @@ 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.kusto.fluent.OperationsResultsClient; import com.azure.resourcemanager.kusto.fluent.models.OperationResultInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in OperationsResultsClient. */ public final class OperationsResultsClientImpl implements OperationsResultsClient { - private final ClientLogger logger = new ClientLogger(OperationsResultsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final OperationsResultsService service; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsImpl.java index 537c06e36a313..b75902502cfd7 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.kusto.fluent.models.OperationResultInner; import com.azure.resourcemanager.kusto.models.OperationResult; import com.azure.resourcemanager.kusto.models.OperationsResults; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class OperationsResultsImpl implements OperationsResults { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationsResultsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(OperationsResultsImpl.class); private final OperationsResultsClient innerClient; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsClientImpl.java index 1217985b1a951..1dd711474a4a3 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsClientImpl.java @@ -20,14 +20,11 @@ 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.kusto.fluent.OperationsResultsLocationsClient; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in OperationsResultsLocationsClient. */ public final class OperationsResultsLocationsClientImpl implements OperationsResultsLocationsClient { - private final ClientLogger logger = new ClientLogger(OperationsResultsLocationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final OperationsResultsLocationsService service; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsImpl.java index 09cff38f47344..cdcddeebcc034 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsImpl.java @@ -9,10 +9,9 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.fluent.OperationsResultsLocationsClient; import com.azure.resourcemanager.kusto.models.OperationsResultsLocations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class OperationsResultsLocationsImpl implements OperationsResultsLocations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationsResultsLocationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(OperationsResultsLocationsImpl.class); private final OperationsResultsLocationsClient innerClient; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateEndpointConnectionsClientImpl.java index d67b6c71f4c8e..18796d3d28f31 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateEndpointConnectionsClientImpl.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.kusto.fluent.PrivateEndpointConnectionsClient; @@ -41,8 +40,6 @@ /** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpointConnectionsClient { - private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final PrivateEndpointConnectionsService service; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateEndpointConnectionsImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateEndpointConnectionsImpl.java index 55b7085c82765..b24cb3b3c178a 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateEndpointConnectionsImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateEndpointConnectionsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.kusto.fluent.models.PrivateEndpointConnectionInner; import com.azure.resourcemanager.kusto.models.PrivateEndpointConnection; import com.azure.resourcemanager.kusto.models.PrivateEndpointConnections; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionsImpl.class); private final PrivateEndpointConnectionsClient innerClient; @@ -80,7 +79,7 @@ public void delete( public PrivateEndpointConnection getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -88,14 +87,14 @@ public PrivateEndpointConnection getById(String id) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -111,7 +110,7 @@ public PrivateEndpointConnection 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 @@ -119,14 +118,14 @@ public Response getByIdWithResponse(String id, Contex } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -140,7 +139,7 @@ public Response getByIdWithResponse(String id, Contex public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -148,14 +147,14 @@ public void deleteById(String id) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -169,7 +168,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 @@ -177,14 +176,14 @@ public void deleteByIdWithResponse(String id, Context context) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateLinkResourcesClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateLinkResourcesClientImpl.java index f55c22e4e2881..3b226d2a5cd48 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateLinkResourcesClientImpl.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.kusto.fluent.PrivateLinkResourcesClient; import com.azure.resourcemanager.kusto.fluent.models.PrivateLinkResourceInner; import com.azure.resourcemanager.kusto.models.PrivateLinkResourceListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */ public final class PrivateLinkResourcesClientImpl implements PrivateLinkResourcesClient { - private final ClientLogger logger = new ClientLogger(PrivateLinkResourcesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final PrivateLinkResourcesService service; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateLinkResourcesImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateLinkResourcesImpl.java index fbbc8a8fbf1fd..ebef4461894f8 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateLinkResourcesImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateLinkResourcesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.kusto.fluent.models.PrivateLinkResourceInner; import com.azure.resourcemanager.kusto.models.PrivateLinkResource; import com.azure.resourcemanager.kusto.models.PrivateLinkResources; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class PrivateLinkResourcesImpl implements PrivateLinkResources { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourcesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkResourcesImpl.class); private final PrivateLinkResourcesClient innerClient; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ScriptsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ScriptsClientImpl.java index 100a7b08709da..c44c4c70423cc 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ScriptsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ScriptsClientImpl.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.kusto.fluent.ScriptsClient; @@ -45,8 +44,6 @@ /** An instance of this class provides access to all the operations defined in ScriptsClient. */ public final class ScriptsClientImpl implements ScriptsClient { - private final ClientLogger logger = new ClientLogger(ScriptsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final ScriptsService service; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ScriptsImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ScriptsImpl.java index 57f0d4510d175..7232d9d021060 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ScriptsImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ScriptsImpl.java @@ -16,10 +16,9 @@ import com.azure.resourcemanager.kusto.models.Script; import com.azure.resourcemanager.kusto.models.ScriptCheckNameRequest; import com.azure.resourcemanager.kusto.models.Scripts; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class ScriptsImpl implements Scripts { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ScriptsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(ScriptsImpl.class); private final ScriptsClient innerClient; @@ -111,7 +110,7 @@ public Response checkNameAvailabilityWithResponse( public Script getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -119,21 +118,21 @@ public Script getById(String id) { } String clusterName = Utils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } String databaseName = Utils.getValueFromIdByName(id, "databases"); if (databaseName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); } String scriptName = Utils.getValueFromIdByName(id, "scripts"); if (scriptName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'scripts'.", id))); @@ -144,7 +143,7 @@ public Script getById(String id) { public Response