From 14a6008bea91a53ad358db8e1a8a2a7bc9ce40ca Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 18 Mar 2022 03:36:33 +0000 Subject: [PATCH] CodeGen from PR 18303 in Azure/azure-rest-api-specs Merge 0e628a4161f9eb4eb223dd696c0e3f8d80d47819 into bcc31e55442c9fea21243154b626dd720ddd3058 --- .../CHANGELOG.md | 4 +- .../azure-resourcemanager-synapse/README.md | 2 +- .../azure-resourcemanager-synapse/SAMPLE.md | 85 ++ .../synapse/SynapseManager.java | 26 +- .../AzureADOnlyAuthenticationsClient.java | 13 +- .../synapse/fluent/BigDataPoolsClient.java | 13 +- .../fluent/DataMaskingRulesClient.java | 4 +- ...ndedSqlPoolBlobAuditingPoliciesClient.java | 4 +- ...tegrationRuntimeObjectMetadatasClient.java | 5 +- .../fluent/IntegrationRuntimesClient.java | 29 +- .../synapse/fluent/IpFirewallRulesClient.java | 19 +- .../synapse/fluent/KeysClient.java | 4 +- .../synapse/fluent/KustoOperationsClient.java | 4 +- ...lAttachedDatabaseConfigurationsClient.java | 17 +- .../KustoPoolDataConnectionsClient.java | 27 +- ...oolDatabasePrincipalAssignmentsClient.java | 17 +- .../fluent/KustoPoolDatabasesClient.java | 17 +- .../KustoPoolPrincipalAssignmentsClient.java | 17 +- .../synapse/fluent/KustoPoolsClient.java | 53 +- .../fluent/LibrariesOperationsClient.java | 4 +- .../PrivateEndpointConnectionsClient.java | 13 +- ...pointConnectionsPrivateLinkHubsClient.java | 4 +- ...vateLinkHubPrivateLinkResourcesClient.java | 4 +- .../synapse/fluent/PrivateLinkHubsClient.java | 13 +- .../fluent/PrivateLinkResourcesClient.java | 4 +- .../RestorableDroppedSqlPoolsClient.java | 4 +- .../SparkConfigurationsOperationsClient.java | 4 +- .../SqlPoolBlobAuditingPoliciesClient.java | 4 +- .../SqlPoolGeoBackupPoliciesClient.java | 4 +- .../fluent/SqlPoolOperationsClient.java | 4 +- .../fluent/SqlPoolReplicationLinksClient.java | 6 +- .../fluent/SqlPoolRestorePointsClient.java | 9 +- .../synapse/fluent/SqlPoolSchemasClient.java | 4 +- .../SqlPoolSecurityAlertPoliciesClient.java | 4 +- .../SqlPoolSensitivityLabelsClient.java | 8 +- .../fluent/SqlPoolTableColumnsClient.java | 4 +- .../synapse/fluent/SqlPoolTablesClient.java | 4 +- ...lPoolTransparentDataEncryptionsClient.java | 6 +- .../synapse/fluent/SqlPoolUsagesClient.java | 4 +- ...oolVulnerabilityAssessmentScansClient.java | 9 +- ...SqlPoolVulnerabilityAssessmentsClient.java | 4 +- .../SqlPoolWorkloadClassifiersClient.java | 17 +- .../fluent/SqlPoolWorkloadGroupsClient.java | 15 +- .../synapse/fluent/SqlPoolsClient.java | 21 +- .../fluent/SynapseManagementClient.java | 8 + .../fluent/WorkspaceAadAdminsClient.java | 11 +- ...nagedIdentitySqlControlSettingsClient.java | 7 +- ...edSqlServerBlobAuditingPoliciesClient.java | 9 +- ...rDedicatedSqlMinimalTlsSettingsClient.java | 162 ++++ ...edSqlServerEncryptionProtectorsClient.java | 15 +- ...verExtendedBlobAuditingPoliciesClient.java | 11 +- ...gedSqlServerRecoverableSqlPoolsClient.java | 6 +- ...dSqlServerSecurityAlertPoliciesClient.java | 13 +- ...WorkspaceManagedSqlServerUsagesClient.java | 6 +- ...lServerVulnerabilityAssessmentsClient.java | 4 +- .../fluent/WorkspaceSqlAadAdminsClient.java | 11 +- .../synapse/fluent/WorkspacesClient.java | 21 +- .../fluent/models/AadAdminProperties.java | 4 - .../AttachedDatabaseConfigurationInner.java | 4 - ...tachedDatabaseConfigurationProperties.java | 11 +- .../models/AvailableRpOperationInner.java | 4 - .../AzureADOnlyAuthenticationInner.java | 4 - .../AzureADOnlyAuthenticationProperties.java | 4 - .../fluent/models/AzureResourceSkuInner.java | 4 - .../models/BigDataPoolResourceInfoInner.java | 4 - .../models/BigDataPoolResourceProperties.java | 4 - .../CheckNameAvailabilityResponseInner.java | 4 - .../fluent/models/CheckNameResultInner.java | 4 - .../ClusterPrincipalAssignmentInner.java | 4 - .../models/ClusterPrincipalProperties.java | 11 +- .../models/CmdkeySetupTypeProperties.java | 11 +- .../fluent/models/DataConnectionInner.java | 4 - .../models/DataConnectionValidationInner.java | 4 - ...taConnectionValidationListResultInner.java | 4 - .../fluent/models/DataMaskingPolicyInner.java | 4 - .../models/DataMaskingPolicyProperties.java | 7 +- .../fluent/models/DataMaskingRuleInner.java | 4 - .../models/DataMaskingRuleProperties.java | 13 +- .../DataWarehouseUserActivitiesInner.java | 4 - ...DataWarehouseUserActivitiesProperties.java | 4 - .../synapse/fluent/models/DatabaseInner.java | 4 - .../DatabasePrincipalAssignmentInner.java | 4 - .../models/DatabasePrincipalProperties.java | 11 +- .../DedicatedSQLminimalTlsSettingsInner.java | 77 ++ ...icatedSQLminimalTlsSettingsProperties.java | 46 + .../models/EncryptionProtectorInner.java | 4 - .../models/EncryptionProtectorProperties.java | 7 +- ...nvironmentVariableSetupTypeProperties.java | 9 +- .../models/EventGridConnectionProperties.java | 11 +- .../models/EventHubConnectionProperties.java | 9 +- ...ExtendedServerBlobAuditingPolicyInner.java | 4 - ...dedServerBlobAuditingPolicyProperties.java | 7 +- ...xtendedSqlPoolBlobAuditingPolicyInner.java | 4 - ...edSqlPoolBlobAuditingPolicyProperties.java | 7 +- .../FollowerDatabaseDefinitionInner.java | 9 +- .../fluent/models/GeoBackupPolicyInner.java | 7 +- .../models/GeoBackupPolicyProperties.java | 7 +- .../IntegrationRuntimeAuthKeysInner.java | 4 - ...IntegrationRuntimeConnectionInfoInner.java | 3 - ...IntegrationRuntimeMonitoringDataInner.java | 4 - .../IntegrationRuntimeNodeIpAddressInner.java | 4 - ...orkDependenciesEndpointsResponseInner.java | 6 - .../IntegrationRuntimeResourceInner.java | 7 +- ...IntegrationRuntimeStatusResponseInner.java | 7 +- .../models/IotHubConnectionProperties.java | 11 +- .../models/IpFirewallRuleInfoInner.java | 4 - .../models/IpFirewallRuleProperties.java | 4 - .../synapse/fluent/models/KeyInner.java | 4 - .../synapse/fluent/models/KeyProperties.java | 4 - .../synapse/fluent/models/KustoPoolInner.java | 7 +- .../models/KustoPoolListResultInner.java | 4 - .../fluent/models/KustoPoolProperties.java | 4 - .../fluent/models/LanguageExtensionInner.java | 4 - .../synapse/fluent/models/LibraryInfo.java | 4 - .../fluent/models/LibraryResourceInner.java | 7 +- .../LicensedComponentSetupTypeProperties.java | 7 +- .../models/MaintenanceWindowOptionsInner.java | 4 - .../MaintenanceWindowOptionsProperties.java | 4 - .../models/MaintenanceWindowsInner.java | 4 - .../models/MaintenanceWindowsProperties.java | 4 - ...dIdentitySqlControlSettingsModelInner.java | 4 - ...titySqlControlSettingsModelProperties.java | 5 - ...RuntimeManagedVirtualNetworkReference.java | 5 - ...ntegrationRuntimeStatusTypeProperties.java | 5 - ...nagedIntegrationRuntimeTypeProperties.java | 4 - .../models/MetadataSyncConfigInner.java | 4 - .../models/MetadataSyncConfigProperties.java | 4 - .../synapse/fluent/models/OperationInner.java | 4 - .../models/OperationMetaPropertyInfo.java | 4 - .../fluent/models/OperationResourceInner.java | 4 - ...pointConnectionForPrivateLinkHubInner.java | 5 - .../PrivateEndpointConnectionInner.java | 4 - .../PrivateEndpointConnectionProperties.java | 4 - .../fluent/models/PrivateLinkHubInner.java | 4 - .../models/PrivateLinkHubProperties.java | 4 - .../models/PrivateLinkResourceInner.java | 4 - .../ReadOnlyFollowingDatabaseProperties.java | 4 - .../models/ReadWriteDatabaseProperties.java | 4 - ...endedSensitivityLabelUpdateProperties.java | 13 +- .../models/RecoverableSqlPoolInner.java | 4 - .../models/RecoverableSqlPoolProperties.java | 4 - ...llFirewallRulesOperationResponseInner.java | 5 - .../fluent/models/ReplicationLinkInner.java | 4 - .../models/ReplicationLinkProperties.java | 4 - .../models/RestorableDroppedSqlPoolInner.java | 4 - .../RestorableDroppedSqlPoolProperties.java | 4 - .../fluent/models/RestorePointInner.java | 4 - .../fluent/models/RestorePointProperties.java | 4 - .../models/SecurityAlertPolicyProperties.java | 7 +- ...SelfHostedIntegrationRuntimeNodeInner.java | 3 - ...ntegrationRuntimeStatusTypeProperties.java | 5 - ...ostedIntegrationRuntimeTypeProperties.java | 4 - .../fluent/models/SensitivityLabelInner.java | 4 - .../models/SensitivityLabelProperties.java | 4 - .../models/SensitivityLabelUpdateInner.java | 4 - ...SensitivityLabelUpdatePropertiesInner.java | 13 +- .../models/ServerBlobAuditingPolicyInner.java | 4 - .../ServerBlobAuditingPolicyProperties.java | 7 +- .../ServerSecurityAlertPolicyInner.java | 4 - .../ServerSecurityAlertPolicyProperties.java | 7 +- .../fluent/models/ServerUsageInner.java | 4 - .../ServerVulnerabilityAssessmentInner.java | 4 - ...rverVulnerabilityAssessmentProperties.java | 7 +- .../fluent/models/SkuDescriptionInner.java | 4 - .../fluent/models/SparkConfigurationInfo.java | 7 +- .../SparkConfigurationResourceInner.java | 7 +- .../SqlPoolBlobAuditingPolicyInner.java | 4 - .../SqlPoolBlobAuditingPolicyProperties.java | 7 +- .../fluent/models/SqlPoolColumnInner.java | 4 - .../models/SqlPoolColumnProperties.java | 4 - .../models/SqlPoolConnectionPolicyInner.java | 4 - .../SqlPoolConnectionPolicyProperties.java | 4 - .../synapse/fluent/models/SqlPoolInner.java | 4 - .../fluent/models/SqlPoolOperationInner.java | 4 - .../models/SqlPoolOperationProperties.java | 4 - .../models/SqlPoolResourceProperties.java | 4 - .../fluent/models/SqlPoolSchemaInner.java | 4 - .../SqlPoolSecurityAlertPolicyInner.java | 4 - .../fluent/models/SqlPoolTableInner.java | 4 - .../fluent/models/SqlPoolUsageInner.java | 4 - .../SqlPoolVulnerabilityAssessmentInner.java | 4 - ...PoolVulnerabilityAssessmentProperties.java | 4 - ...nerabilityAssessmentRuleBaselineInner.java | 5 - ...ilityAssessmentRuleBaselineProperties.java | 9 +- ...abilityAssessmentScanExportProperties.java | 5 - ...lnerabilityAssessmentScansExportInner.java | 5 - .../SsisObjectMetadataListResponseInner.java | 4 - ...SsisObjectMetadataStatusResponseInner.java | 4 - .../TransparentDataEncryptionInner.java | 4 - .../TransparentDataEncryptionProperties.java | 4 - ...ulnerabilityAssessmentScanRecordInner.java | 4 - ...abilityAssessmentScanRecordProperties.java | 4 - .../models/WorkloadClassifierInner.java | 4 - .../models/WorkloadClassifierProperties.java | 7 +- .../fluent/models/WorkloadGroupInner.java | 4 - .../models/WorkloadGroupProperties.java | 4 - .../models/WorkspaceAadAdminInfoInner.java | 4 - .../synapse/fluent/models/WorkspaceInner.java | 4 - .../models/WorkspacePatchProperties.java | 4 - .../fluent/models/WorkspaceProperties.java | 4 - .../AzureADOnlyAuthenticationsClientImpl.java | 27 +- .../AzureADOnlyAuthenticationsImpl.java | 15 +- .../BigDataPoolsClientImpl.java | 27 +- .../implementation/BigDataPoolsImpl.java | 27 +- .../DataMaskingPoliciesClientImpl.java | 3 - .../DataMaskingPoliciesImpl.java | 15 +- .../DataMaskingRulesClientImpl.java | 11 +- .../implementation/DataMaskingRulesImpl.java | 19 +- .../DedicatedSQLminimalTlsSettingsImpl.java | 49 + ...SqlPoolBlobAuditingPoliciesClientImpl.java | 11 +- ...tendedSqlPoolBlobAuditingPoliciesImpl.java | 15 +- ...onRuntimeAuthKeysOperationsClientImpl.java | 3 - ...egrationRuntimeAuthKeysOperationsImpl.java | 3 +- ...ationRuntimeConnectionInfosClientImpl.java | 3 - ...IntegrationRuntimeConnectionInfosImpl.java | 3 +- ...tegrationRuntimeCredentialsClientImpl.java | 3 - .../IntegrationRuntimeCredentialsImpl.java | 3 +- ...ationRuntimeMonitoringDatasClientImpl.java | 3 - ...IntegrationRuntimeMonitoringDatasImpl.java | 3 +- ...timeNodeIpAddressOperationsClientImpl.java | 3 - ...ionRuntimeNodeIpAddressOperationsImpl.java | 4 +- .../IntegrationRuntimeNodesClientImpl.java | 3 - .../IntegrationRuntimeNodesImpl.java | 3 +- ...ationRuntimeObjectMetadatasClientImpl.java | 11 +- ...IntegrationRuntimeObjectMetadatasImpl.java | 3 +- ...tionRuntimeStatusOperationsClientImpl.java | 3 - ...ntegrationRuntimeStatusOperationsImpl.java | 3 +- .../IntegrationRuntimesClientImpl.java | 59 +- .../IntegrationRuntimesImpl.java | 27 +- .../IpFirewallRulesClientImpl.java | 39 +- .../implementation/IpFirewallRulesImpl.java | 27 +- .../implementation/KeysClientImpl.java | 11 +- .../synapse/implementation/KeysImpl.java | 27 +- .../KustoOperationsClientImpl.java | 11 +- .../implementation/KustoOperationsImpl.java | 3 +- ...achedDatabaseConfigurationsClientImpl.java | 35 +- ...oolAttachedDatabaseConfigurationsImpl.java | 35 +- .../KustoPoolChildResourcesClientImpl.java | 3 - .../KustoPoolChildResourcesImpl.java | 3 +- .../KustoPoolDataConnectionsClientImpl.java | 55 +- .../KustoPoolDataConnectionsImpl.java | 3 +- ...atabasePrincipalAssignmentsClientImpl.java | 35 +- ...oPoolDatabasePrincipalAssignmentsImpl.java | 43 +- .../KustoPoolDatabasesClientImpl.java | 35 +- .../KustoPoolDatabasesImpl.java | 3 +- ...stoPoolPrincipalAssignmentsClientImpl.java | 35 +- .../KustoPoolPrincipalAssignmentsImpl.java | 35 +- .../implementation/KustoPoolsClientImpl.java | 107 +- .../implementation/KustoPoolsImpl.java | 27 +- .../implementation/LibrariesClientImpl.java | 3 - .../synapse/implementation/LibrariesImpl.java | 3 +- .../LibrariesOperationsClientImpl.java | 11 +- .../LibrariesOperationsImpl.java | 3 +- .../implementation/OperationsClientImpl.java | 3 - .../implementation/OperationsImpl.java | 3 +- .../PrivateEndpointConnectionsClientImpl.java | 27 +- .../PrivateEndpointConnectionsImpl.java | 27 +- ...tConnectionsPrivateLinkHubsClientImpl.java | 11 +- ...ndpointConnectionsPrivateLinkHubsImpl.java | 4 +- ...LinkHubPrivateLinkResourcesClientImpl.java | 11 +- ...rivateLinkHubPrivateLinkResourcesImpl.java | 3 +- .../PrivateLinkHubsClientImpl.java | 27 +- .../implementation/PrivateLinkHubsImpl.java | 19 +- .../PrivateLinkResourcesClientImpl.java | 11 +- .../PrivateLinkResourcesImpl.java | 3 +- .../RestorableDroppedSqlPoolsClientImpl.java | 11 +- .../RestorableDroppedSqlPoolsImpl.java | 3 +- .../SparkConfigurationsClientImpl.java | 3 - .../SparkConfigurationsImpl.java | 3 +- ...arkConfigurationsOperationsClientImpl.java | 11 +- .../SparkConfigurationsOperationsImpl.java | 3 +- ...SqlPoolBlobAuditingPoliciesClientImpl.java | 11 +- .../SqlPoolBlobAuditingPoliciesImpl.java | 15 +- .../SqlPoolColumnsClientImpl.java | 3 - .../implementation/SqlPoolColumnsImpl.java | 3 +- .../SqlPoolConnectionPoliciesClientImpl.java | 3 - .../SqlPoolConnectionPoliciesImpl.java | 3 +- ...DataWarehouseUserActivitiesClientImpl.java | 3 - ...qlPoolDataWarehouseUserActivitiesImpl.java | 3 +- .../SqlPoolGeoBackupPoliciesClientImpl.java | 11 +- .../SqlPoolGeoBackupPoliciesImpl.java | 19 +- ...oolMaintenanceWindowOptionsClientImpl.java | 3 - .../SqlPoolMaintenanceWindowOptionsImpl.java | 3 +- .../SqlPoolMaintenanceWindowsClientImpl.java | 3 - .../SqlPoolMaintenanceWindowsImpl.java | 3 +- .../SqlPoolMetadataSyncConfigsClientImpl.java | 3 - .../SqlPoolMetadataSyncConfigsImpl.java | 3 +- .../SqlPoolOperationResultsClientImpl.java | 3 - .../SqlPoolOperationResultsImpl.java | 3 +- .../SqlPoolOperationsClientImpl.java | 11 +- .../implementation/SqlPoolOperationsImpl.java | 3 +- ...ecommendedSensitivityLabelsClientImpl.java | 3 - ...lPoolRecommendedSensitivityLabelsImpl.java | 3 +- .../SqlPoolReplicationLinksClientImpl.java | 15 +- .../SqlPoolReplicationLinksImpl.java | 3 +- .../SqlPoolRestorePointsClientImpl.java | 19 +- .../SqlPoolRestorePointsImpl.java | 3 +- .../SqlPoolSchemasClientImpl.java | 13 +- .../implementation/SqlPoolSchemasImpl.java | 3 +- ...qlPoolSecurityAlertPoliciesClientImpl.java | 11 +- .../SqlPoolSecurityAlertPoliciesImpl.java | 19 +- .../SqlPoolSensitivityLabelsClientImpl.java | 23 +- .../SqlPoolSensitivityLabelsImpl.java | 27 +- .../SqlPoolTableColumnsClientImpl.java | 13 +- .../SqlPoolTableColumnsImpl.java | 3 +- .../SqlPoolTablesClientImpl.java | 13 +- .../implementation/SqlPoolTablesImpl.java | 3 +- ...lTransparentDataEncryptionsClientImpl.java | 15 +- ...SqlPoolTransparentDataEncryptionsImpl.java | 19 +- .../SqlPoolUsagesClientImpl.java | 11 +- .../implementation/SqlPoolUsagesImpl.java | 3 +- ...lityAssessmentRuleBaselinesClientImpl.java | 3 - ...nerabilityAssessmentRuleBaselinesImpl.java | 52 +- ...ulnerabilityAssessmentScansClientImpl.java | 19 +- ...lPoolVulnerabilityAssessmentScansImpl.java | 3 +- ...oolVulnerabilityAssessmentsClientImpl.java | 11 +- .../SqlPoolVulnerabilityAssessmentsImpl.java | 35 +- .../SqlPoolWorkloadClassifiersClientImpl.java | 33 +- .../SqlPoolWorkloadClassifiersImpl.java | 43 +- .../SqlPoolWorkloadGroupsClientImpl.java | 31 +- .../SqlPoolWorkloadGroupsImpl.java | 35 +- .../implementation/SqlPoolsClientImpl.java | 43 +- .../synapse/implementation/SqlPoolsImpl.java | 27 +- .../SynapseManagementClientImpl.java | 23 +- .../WorkspaceAadAdminsClientImpl.java | 23 +- .../WorkspaceAadAdminsImpl.java | 3 +- ...dIdentitySqlControlSettingsClientImpl.java | 15 +- ...ManagedIdentitySqlControlSettingsImpl.java | 4 +- ...lServerBlobAuditingPoliciesClientImpl.java | 19 +- ...agedSqlServerBlobAuditingPoliciesImpl.java | 17 +- ...icatedSqlMinimalTlsSettingsClientImpl.java | 911 ++++++++++++++++++ ...verDedicatedSqlMinimalTlsSettingsImpl.java | 115 +++ ...lServerEncryptionProtectorsClientImpl.java | 31 +- ...agedSqlServerEncryptionProtectorsImpl.java | 17 +- ...xtendedBlobAuditingPoliciesClientImpl.java | 24 +- ...erverExtendedBlobAuditingPoliciesImpl.java | 16 +- ...qlServerRecoverableSqlPoolsClientImpl.java | 15 +- ...nagedSqlServerRecoverableSqlPoolsImpl.java | 4 +- ...ServerSecurityAlertPoliciesClientImpl.java | 26 +- ...gedSqlServerSecurityAlertPoliciesImpl.java | 17 +- ...spaceManagedSqlServerUsagesClientImpl.java | 15 +- .../WorkspaceManagedSqlServerUsagesImpl.java | 3 +- ...verVulnerabilityAssessmentsClientImpl.java | 12 +- ...SqlServerVulnerabilityAssessmentsImpl.java | 29 +- .../WorkspaceSqlAadAdminsClientImpl.java | 23 +- .../WorkspaceSqlAadAdminsImpl.java | 3 +- .../implementation/WorkspacesClientImpl.java | 43 +- .../implementation/WorkspacesImpl.java | 19 +- ...tachedDatabaseConfigurationListResult.java | 4 - .../synapse/models/AutoPauseProperties.java | 4 - .../synapse/models/AutoScaleProperties.java | 4 - .../AvailableRpOperationDisplayInfo.java | 4 - .../AzureADOnlyAuthenticationListResult.java | 4 - .../models/AzureADOnlyAuthentications.java | 6 +- .../synapse/models/AzureCapacity.java | 7 +- .../synapse/models/AzureEntityResource.java | 4 - .../synapse/models/AzureSku.java | 9 +- .../synapse/models/BigDataPoolPatchInfo.java | 4 - .../BigDataPoolResourceInfoListResult.java | 4 - .../synapse/models/BigDataPools.java | 4 +- .../models/CheckNameAvailabilityRequest.java | 4 - ...erPrincipalAssignmentCheckNameRequest.java | 7 +- .../ClusterPrincipalAssignmentListResult.java | 4 - .../synapse/models/CmdkeySetup.java | 7 +- .../synapse/models/ComponentSetup.java | 7 +- .../CreateSqlPoolRestorePointDefinition.java | 7 +- .../models/CspWorkspaceAdminProperties.java | 4 - .../synapse/models/CustomSetupBase.java | 4 - .../models/CustomerManagedKeyDetails.java | 4 - .../DataConnectionCheckNameRequest.java | 7 +- .../models/DataConnectionListResult.java | 4 - .../DataConnectionValidationResult.java | 4 - .../models/DataLakeStorageAccountDetails.java | 4 - .../models/DataMaskingRuleListResult.java | 4 - .../synapse/models/DataMaskingRules.java | 4 +- .../models/DatabaseCheckNameRequest.java | 9 +- .../synapse/models/DatabaseListResult.java | 4 - ...sePrincipalAssignmentCheckNameRequest.java | 7 +- ...DatabasePrincipalAssignmentListResult.java | 4 - .../synapse/models/DatabaseStatistics.java | 4 - .../DedicatedSQLminimalTlsSettings.java | 52 + ...icatedSQLminimalTlsSettingsListResult.java | 55 ++ .../DedicatedSqlMinimalTlsSettingsName.java | 31 + .../models/DynamicExecutorAllocation.java | 4 - .../synapse/models/EncryptionDetails.java | 4 - .../models/EncryptionProtectorListResult.java | 4 - .../synapse/models/EntityReference.java | 4 - .../synapse/models/EntityResource.java | 4 - .../models/EnvironmentVariableSetup.java | 7 +- .../models/EventGridDataConnection.java | 4 - .../models/EventHubDataConnection.java | 4 - ...dedServerBlobAuditingPolicyListResult.java | 4 - .../ExtendedSqlPoolBlobAuditingPolicies.java | 4 +- ...edSqlPoolBlobAuditingPolicyListResult.java | 4 - .../models/FollowerDatabaseListResult.java | 4 - .../models/GeoBackupPolicyListResult.java | 4 - .../models/GetSsisObjectMetadataRequest.java | 4 - .../synapse/models/IntegrationRuntime.java | 3 - .../IntegrationRuntimeComputeProperties.java | 3 - ...ionRuntimeCustomSetupScriptProperties.java | 5 - .../IntegrationRuntimeDataFlowProperties.java | 3 - ...IntegrationRuntimeDataProxyProperties.java | 4 - .../IntegrationRuntimeListResponse.java | 7 +- .../IntegrationRuntimeNodeMonitoringData.java | 3 - ...ndNetworkDependenciesCategoryEndpoint.java | 6 - ...meOutboundNetworkDependenciesEndpoint.java | 5 - ...undNetworkDependenciesEndpointDetails.java | 6 - ...grationRuntimeRegenerateKeyParameters.java | 4 - .../IntegrationRuntimeSsisCatalogInfo.java | 3 - .../IntegrationRuntimeSsisProperties.java | 3 - .../models/IntegrationRuntimeStatus.java | 3 - .../IntegrationRuntimeVNetProperties.java | 3 - .../synapse/models/IntegrationRuntimes.java | 4 +- .../synapse/models/IotHubDataConnection.java | 4 - .../models/IpFirewallRuleInfoListResult.java | 4 - .../synapse/models/IpFirewallRules.java | 4 +- .../synapse/models/KekIdentityProperties.java | 4 - .../synapse/models/KeyInfoListResult.java | 4 - .../resourcemanager/synapse/models/Keys.java | 4 +- .../synapse/models/KustoOperations.java | 4 +- .../synapse/models/KustoPool.java | 8 +- ...stoPoolAttachedDatabaseConfigurations.java | 6 +- .../models/KustoPoolCheckNameRequest.java | 7 +- .../models/KustoPoolDataConnections.java | 4 +- ...KustoPoolDatabasePrincipalAssignments.java | 6 +- .../synapse/models/KustoPoolDatabases.java | 4 +- .../models/KustoPoolPrincipalAssignments.java | 6 +- .../synapse/models/KustoPoolUpdate.java | 4 - .../synapse/models/KustoPools.java | 16 +- .../models/LanguageExtensionsList.java | 4 - .../synapse/models/LibrariesOperations.java | 4 +- .../synapse/models/LibraryListResponse.java | 7 +- .../synapse/models/LibraryRequirements.java | 4 - .../models/LinkedIntegrationRuntime.java | 4 - ...kedIntegrationRuntimeKeyAuthorization.java | 7 +- ...edIntegrationRuntimeRbacAuthorization.java | 7 +- .../models/LinkedIntegrationRuntimeType.java | 4 - .../models/ListResourceSkusResult.java | 4 - .../ListSqlPoolSecurityAlertPolicies.java | 4 - .../models/MaintenanceWindowTimeRange.java | 4 - .../synapse/models/ManagedIdentity.java | 4 - ...rtiesGrantSqlControlToManagedIdentity.java | 6 - .../models/ManagedIntegrationRuntime.java | 7 +- .../ManagedIntegrationRuntimeError.java | 3 - .../models/ManagedIntegrationRuntimeNode.java | 3 - ...agedIntegrationRuntimeOperationResult.java | 3 - .../ManagedIntegrationRuntimeStatus.java | 7 +- .../models/ManagedVirtualNetworkSettings.java | 4 - .../synapse/models/OperationDisplay.java | 4 - .../synapse/models/OperationListResult.java | 4 - .../models/OperationMetaLogSpecification.java | 4 - ...ationMetaMetricDimensionSpecification.java | 4 - .../OperationMetaMetricSpecification.java | 4 - .../OperationMetaServiceSpecification.java | 4 - .../synapse/models/OptimizedAutoscale.java | 4 - .../synapse/models/PrivateEndpoint.java | 4 - ...pointConnectionForPrivateLinkHubBasic.java | 5 - ...onForPrivateLinkHubBasicAutoGenerated.java | 6 - ...vateLinkHubResourceCollectionResponse.java | 6 - .../models/PrivateEndpointConnectionList.java | 4 - .../models/PrivateEndpointConnections.java | 4 +- ...ateEndpointConnectionsPrivateLinkHubs.java | 4 +- .../models/PrivateLinkHubInfoListResult.java | 4 - .../models/PrivateLinkHubPatchInfo.java | 4 - .../PrivateLinkHubPrivateLinkResources.java | 4 +- .../synapse/models/PrivateLinkHubs.java | 8 +- .../models/PrivateLinkResourceListResult.java | 4 - .../models/PrivateLinkResourceProperties.java | 4 - .../synapse/models/PrivateLinkResources.java | 4 +- .../PrivateLinkServiceConnectionState.java | 4 - .../synapse/models/PurviewConfiguration.java | 4 - .../models/ReadOnlyFollowingDatabase.java | 4 - .../synapse/models/ReadWriteDatabase.java | 4 - .../RecommendedSensitivityLabelUpdate.java | 4 - ...RecommendedSensitivityLabelUpdateList.java | 4 - .../models/RecoverableSqlPoolListResult.java | 4 - .../ReplaceAllIpFirewallRulesRequest.java | 4 - .../models/ReplicationLinkListResult.java | 4 - .../models/ResourceMoveDefinition.java | 7 +- .../RestorableDroppedSqlPoolListResult.java | 7 +- .../models/RestorableDroppedSqlPools.java | 4 +- .../models/RestorePointListResult.java | 4 - .../synapse/models/SecretBase.java | 4 - .../synapse/models/SecureString.java | 7 +- .../models/SelfHostedIntegrationRuntime.java | 4 - .../SelfHostedIntegrationRuntimeStatus.java | 7 +- .../models/SensitivityLabelListResult.java | 4 - .../models/SensitivityLabelUpdateList.java | 4 - .../ServerBlobAuditingPolicyListResult.java | 4 - .../ServerSecurityAlertPolicyListResult.java | 4 - .../synapse/models/ServerUsageListResult.java | 7 +- ...rverVulnerabilityAssessmentListResult.java | 4 - .../resourcemanager/synapse/models/Sku.java | 4 - .../synapse/models/SkuDescriptionList.java | 4 - .../synapse/models/SkuLocationInfoItem.java | 7 +- .../synapse/models/SparkConfigProperties.java | 4 - .../SparkConfigurationListResponse.java | 7 +- .../models/SparkConfigurationsOperations.java | 4 +- .../models/SqlPoolBlobAuditingPolicies.java | 4 +- .../SqlPoolBlobAuditingPolicyListResult.java | 4 - ...itingPolicySqlPoolOperationListResult.java | 5 - .../models/SqlPoolColumnListResult.java | 4 - .../models/SqlPoolGeoBackupPolicies.java | 4 +- .../synapse/models/SqlPoolInfoListResult.java | 4 - .../synapse/models/SqlPoolOperations.java | 4 +- .../synapse/models/SqlPoolPatchInfo.java | 4 - .../models/SqlPoolReplicationLinks.java | 6 +- .../synapse/models/SqlPoolRestorePoints.java | 4 +- .../models/SqlPoolSchemaListResult.java | 4 - .../synapse/models/SqlPoolSchemas.java | 4 +- .../models/SqlPoolSecurityAlertPolicies.java | 4 +- .../models/SqlPoolSensitivityLabels.java | 8 +- .../synapse/models/SqlPoolTableColumns.java | 4 +- .../models/SqlPoolTableListResult.java | 4 - .../synapse/models/SqlPoolTables.java | 4 +- .../SqlPoolTransparentDataEncryptions.java | 6 +- .../models/SqlPoolUsageListResult.java | 7 +- .../synapse/models/SqlPoolUsages.java | 4 +- ...PoolVulnerabilityAssessmentListResult.java | 4 - ...lnerabilityAssessmentRuleBaselineItem.java | 8 +- .../SqlPoolVulnerabilityAssessmentScans.java | 4 +- .../SqlPoolVulnerabilityAssessments.java | 4 +- .../models/SqlPoolWorkloadClassifiers.java | 6 +- .../synapse/models/SqlPoolWorkloadGroups.java | 4 +- .../synapse/models/SqlPools.java | 4 +- .../synapse/models/SsisEnvironment.java | 4 - .../models/SsisEnvironmentReference.java | 4 - .../synapse/models/SsisFolder.java | 4 - .../synapse/models/SsisObjectMetadata.java | 4 - .../synapse/models/SsisPackage.java | 4 - .../synapse/models/SsisParameter.java | 4 - .../synapse/models/SsisProject.java | 4 - .../synapse/models/SsisVariable.java | 4 - .../models/TableLevelSharingProperties.java | 4 - .../TransparentDataEncryptionListResult.java | 4 - .../UpdateIntegrationRuntimeNodeRequest.java | 4 - .../UpdateIntegrationRuntimeRequest.java | 4 - .../models/UserAssignedManagedIdentity.java | 4 - .../synapse/models/VirtualNetworkProfile.java | 4 - ...ityAssessmentRecurringScansProperties.java | 5 - .../VulnerabilityAssessmentScanError.java | 4 - ...abilityAssessmentScanRecordListResult.java | 4 - .../models/WorkloadClassifierListResult.java | 4 - .../models/WorkloadGroupListResult.java | 4 - .../models/WorkspaceInfoListResult.java | 4 - .../synapse/models/WorkspaceKeyDetails.java | 4 - ...eManagedSqlServerBlobAuditingPolicies.java | 4 +- ...lServerDedicatedSqlMinimalTlsSettings.java | 107 ++ ...eManagedSqlServerEncryptionProtectors.java | 6 +- ...SqlServerExtendedBlobAuditingPolicies.java | 4 +- ...ceManagedSqlServerRecoverableSqlPools.java | 6 +- ...ManagedSqlServerSecurityAlertPolicies.java | 6 +- .../WorkspaceManagedSqlServerUsages.java | 6 +- ...agedSqlServerVulnerabilityAssessments.java | 4 +- .../synapse/models/WorkspacePatchInfo.java | 4 - .../WorkspaceRepositoryConfiguration.java | 4 - .../synapse/models/Workspaces.java | 8 +- ...icatedSqlMinimalTlsSettingsGetSamples.java | 25 + ...catedSqlMinimalTlsSettingsListSamples.java | 25 + ...tedSqlMinimalTlsSettingsUpdateSamples.java | 32 + 560 files changed, 3312 insertions(+), 2868 deletions(-) create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DedicatedSQLminimalTlsSettingsInner.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DedicatedSQLminimalTlsSettingsProperties.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DedicatedSQLminimalTlsSettingsImpl.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettings.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettingsListResult.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSqlMinimalTlsSettingsName.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples.java create mode 100644 sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples.java diff --git a/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md b/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md index 8cc906f487703..bc72c77519297 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md +++ b/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.6 (Unreleased) +## 1.0.0-beta.1 (2022-03-18) + +- Azure Resource Manager Synapse client library for Java. This package contains Microsoft Azure SDK for Synapse Management SDK. Azure Synapse Analytics Management Client. Package tag package-composite-v2. 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/synapse/azure-resourcemanager-synapse/README.md b/sdk/synapse/azure-resourcemanager-synapse/README.md index 9b7cdba622589..0b2a79cae84c7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/README.md +++ b/sdk/synapse/azure-resourcemanager-synapse/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-synapse - 1.0.0-beta.5 + 1.0.0-beta.6 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md b/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md index e280e03f5c483..c38f1dfcf7992 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md +++ b/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md @@ -387,6 +387,12 @@ - [Get](#workspacemanagedsqlserverblobauditingpolicies_get) - [ListByWorkspace](#workspacemanagedsqlserverblobauditingpolicies_listbyworkspace) +## WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings + +- [Get](#workspacemanagedsqlserverdedicatedsqlminimaltlssettings_get) +- [List](#workspacemanagedsqlserverdedicatedsqlminimaltlssettings_list) +- [Update](#workspacemanagedsqlserverdedicatedsqlminimaltlssettings_update) + ## WorkspaceManagedSqlServerEncryptionProtector - [CreateOrUpdate](#workspacemanagedsqlserverencryptionprotector_createorupdate) @@ -5986,6 +5992,85 @@ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceS } ``` +### WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings Get. */ +public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples { + /* + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json + */ + /** + * Sample code: Get workspace managed sql server dedicated sql minimal tls settings. + * + * @param manager Entry point to SynapseManager. + */ + public static void getWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings( + com.azure.resourcemanager.synapse.SynapseManager manager) { + manager + .workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() + .getWithResponse("workspace-6852", "workspace-2080", "default", Context.NONE); + } +} +``` + +### WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings List. */ +public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples { + /* + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json + */ + /** + * Sample code: List dedicated sql minimal tls settings of the workspace managed sql server. + * + * @param manager Entry point to SynapseManager. + */ + public static void listDedicatedSqlMinimalTlsSettingsOfTheWorkspaceManagedSqlServer( + com.azure.resourcemanager.synapse.SynapseManager manager) { + manager + .workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() + .list("workspace-6852", "workspace-2080", Context.NONE); + } +} +``` + +### WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings_Update + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; +import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName; + +/** Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings Update. */ +public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples { + /* + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json + */ + /** + * Sample code: Update tls version of the workspace managed sql server. + * + * @param manager Entry point to SynapseManager. + */ + public static void updateTlsVersionOfTheWorkspaceManagedSqlServer( + com.azure.resourcemanager.synapse.SynapseManager manager) { + manager + .workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() + .update( + "workspace-6852", + "workspace-2080", + DedicatedSqlMinimalTlsSettingsName.DEFAULT, + new DedicatedSQLminimalTlsSettingsInner().withMinimalTlsVersion("1.1"), + Context.NONE); + } +} +``` + ### WorkspaceManagedSqlServerEncryptionProtector_CreateOrUpdate ```java diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java index b0acc6b89477b..ca960cc6b0dd0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java @@ -87,6 +87,7 @@ import com.azure.resourcemanager.synapse.implementation.WorkspaceAadAdminsImpl; import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedIdentitySqlControlSettingsImpl; import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerBlobAuditingPoliciesImpl; +import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl; import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerEncryptionProtectorsImpl; import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl; import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerRecoverableSqlPoolsImpl; @@ -159,6 +160,7 @@ import com.azure.resourcemanager.synapse.models.WorkspaceAadAdmins; import com.azure.resourcemanager.synapse.models.WorkspaceManagedIdentitySqlControlSettings; import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerBlobAuditingPolicies; +import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerEncryptionProtectors; import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerExtendedBlobAuditingPolicies; import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerRecoverableSqlPools; @@ -266,6 +268,9 @@ public final class SynapseManager { private WorkspaceManagedSqlServerRecoverableSqlPools workspaceManagedSqlServerRecoverableSqlPools; + private WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings + workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; + private Workspaces workspaces; private WorkspaceAadAdmins workspaceAadAdmins; @@ -358,7 +363,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; @@ -432,9 +437,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; } @@ -456,7 +463,7 @@ public SynapseManager authenticate(TokenCredential credential, AzureProfile prof .append("-") .append("com.azure.resourcemanager.synapse") .append("/") - .append("1.0.0-beta.5"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -909,6 +916,17 @@ public WorkspaceManagedSqlServerRecoverableSqlPools workspaceManagedSqlServerRec return workspaceManagedSqlServerRecoverableSqlPools; } + /** @return Resource collection API of WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings. */ + public WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings + workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() { + if (this.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings == null) { + this.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings = + new WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl( + clientObject.getWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings(), this); + } + return workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; + } + /** @return Resource collection API of Workspaces. */ public Workspaces workspaces() { if (this.workspaces == null) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/AzureADOnlyAuthenticationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/AzureADOnlyAuthenticationsClient.java index d3427d206cf9b..779e4ca1ab999 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/AzureADOnlyAuthenticationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/AzureADOnlyAuthenticationsClient.java @@ -13,7 +13,6 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationInner; import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in AzureADOnlyAuthenticationsClient. */ public interface AzureADOnlyAuthenticationsClient { @@ -61,8 +60,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Active Directory Only Authentication Info along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of azure Active Directory Only Authentication Info. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, AzureADOnlyAuthenticationInner> beginCreate( @@ -82,8 +80,7 @@ SyncPoller, AzureADOnlyAuthentication * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Active Directory Only Authentication Info along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of azure Active Directory Only Authentication Info. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, AzureADOnlyAuthenticationInner> beginCreate( @@ -141,7 +138,8 @@ AzureADOnlyAuthenticationInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace. + * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName); @@ -155,7 +153,8 @@ AzureADOnlyAuthenticationInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace. + * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/BigDataPoolsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/BigDataPoolsClient.java index 2a22d62fe18bd..3f20d15e2db1a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/BigDataPoolsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/BigDataPoolsClient.java @@ -13,7 +13,6 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.BigDataPoolResourceInfoInner; import com.azure.resourcemanager.synapse.models.BigDataPoolPatchInfo; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in BigDataPoolsClient. */ public interface BigDataPoolsClient { @@ -98,7 +97,7 @@ Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BigDataPoolResourceInfoInner> beginCreateOrUpdate( @@ -120,7 +119,7 @@ SyncPoller, BigDataPoolResourceInfoInne * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BigDataPoolResourceInfoInner> beginCreateOrUpdate( @@ -203,7 +202,7 @@ BigDataPoolResourceInfoInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Object> beginDelete( @@ -219,7 +218,7 @@ SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Object> beginDelete( @@ -262,7 +261,7 @@ SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pools. + * @return collection of Big Data pools as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -276,7 +275,7 @@ SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pools. + * @return collection of Big Data pools as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingRulesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingRulesClient.java index b7a93aac6bda7..6843b73f40558 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingRulesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingRulesClient.java @@ -103,7 +103,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool data masking rules. + * @return a list of Sql pool data masking rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listBySqlPool( @@ -119,7 +119,7 @@ PagedIterable listBySqlPool( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool data masking rules. + * @return a list of Sql pool data masking rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listBySqlPool( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/ExtendedSqlPoolBlobAuditingPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/ExtendedSqlPoolBlobAuditingPoliciesClient.java index 4cb873b2b076f..e1fbb82044c55 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/ExtendedSqlPoolBlobAuditingPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/ExtendedSqlPoolBlobAuditingPoliciesClient.java @@ -94,7 +94,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of sql pool extended auditing settings. + * @return a list of sql pool extended auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listBySqlPool( @@ -110,7 +110,7 @@ PagedIterable listBySqlPool( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of sql pool extended auditing settings. + * @return a list of sql pool extended auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listBySqlPool( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeObjectMetadatasClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeObjectMetadatasClient.java index 2a2c530b204fc..3e8106c27ec3e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeObjectMetadatasClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeObjectMetadatasClient.java @@ -13,7 +13,6 @@ import com.azure.resourcemanager.synapse.fluent.models.SsisObjectMetadataListResponseInner; import com.azure.resourcemanager.synapse.fluent.models.SsisObjectMetadataStatusResponseInner; import com.azure.resourcemanager.synapse.models.GetSsisObjectMetadataRequest; -import reactor.core.publisher.Mono; /** * An instance of this class provides access to all the operations defined in IntegrationRuntimeObjectMetadatasClient. @@ -64,7 +63,7 @@ Response listWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the status of the operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SsisObjectMetadataStatusResponseInner> beginRefresh( @@ -80,7 +79,7 @@ SyncPoller, SsisObjectMetadata * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the status of the operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SsisObjectMetadataStatusResponseInner> beginRefresh( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimesClient.java index 0ff96c99f2f97..047a8d2ab459b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimesClient.java @@ -15,7 +15,6 @@ import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeResourceInner; import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStatusResponseInner; import com.azure.resourcemanager.synapse.models.UpdateIntegrationRuntimeRequest; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in IntegrationRuntimesClient. */ public interface IntegrationRuntimesClient { @@ -107,7 +106,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of integration runtime resource type. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IntegrationRuntimeResourceInner> beginCreate( @@ -130,7 +129,7 @@ SyncPoller, IntegrationRuntimeResour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of integration runtime resource type. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IntegrationRuntimeResourceInner> beginCreate( @@ -215,7 +214,7 @@ IntegrationRuntimeResourceInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -231,7 +230,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -301,7 +300,7 @@ Response upgradeWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources. + * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -315,7 +314,7 @@ Response upgradeWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources. + * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace( @@ -330,7 +329,7 @@ PagedIterable listByWorkspace( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of integration runtime status response. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IntegrationRuntimeStatusResponseInner> beginStart( @@ -346,7 +345,7 @@ SyncPoller, IntegrationRuntime * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of integration runtime status response. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IntegrationRuntimeStatusResponseInner> beginStart( @@ -392,7 +391,7 @@ IntegrationRuntimeStatusResponseInner start( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginStop( @@ -408,7 +407,7 @@ SyncPoller, Void> beginStop( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginStop( @@ -483,7 +482,7 @@ IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner listOutbound * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginEnableInteractiveQuery( @@ -499,7 +498,7 @@ SyncPoller, Void> beginEnableInteractiveQuery( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginEnableInteractiveQuery( @@ -542,7 +541,7 @@ void enableInteractiveQuery( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDisableInteractiveQuery( @@ -558,7 +557,7 @@ SyncPoller, Void> beginDisableInteractiveQuery( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDisableInteractiveQuery( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IpFirewallRulesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IpFirewallRulesClient.java index 7800460df6158..248d45b6f2a43 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IpFirewallRulesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IpFirewallRulesClient.java @@ -14,7 +14,6 @@ import com.azure.resourcemanager.synapse.fluent.models.IpFirewallRuleInfoInner; import com.azure.resourcemanager.synapse.fluent.models.ReplaceAllFirewallRulesOperationResponseInner; import com.azure.resourcemanager.synapse.models.ReplaceAllIpFirewallRulesRequest; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in IpFirewallRulesClient. */ public interface IpFirewallRulesClient { @@ -26,7 +25,7 @@ public interface IpFirewallRulesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of IP firewall rules. + * @return list of IP firewall rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -40,7 +39,7 @@ public interface IpFirewallRulesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of IP firewall rules. + * @return list of IP firewall rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace( @@ -56,7 +55,7 @@ PagedIterable listByWorkspace( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of iP firewall rule. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IpFirewallRuleInfoInner> beginCreateOrUpdate( @@ -73,7 +72,7 @@ SyncPoller, IpFirewallRuleInfoInner> beginCr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of iP firewall rule. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IpFirewallRuleInfoInner> beginCreateOrUpdate( @@ -129,7 +128,7 @@ IpFirewallRuleInfoInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName, String ruleName); @@ -144,7 +143,7 @@ IpFirewallRuleInfoInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Object> beginDelete( @@ -218,8 +217,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an existing operation for replacing the firewall rules along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of an existing operation for replacing the firewall rules. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplaceAllFirewallRulesOperationResponseInner> @@ -235,8 +233,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an existing operation for replacing the firewall rules along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of an existing operation for replacing the firewall rules. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplaceAllFirewallRulesOperationResponseInner> diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KeysClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KeysClient.java index c571a39f13b6a..0e07ac8efded8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KeysClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KeysClient.java @@ -21,7 +21,7 @@ public interface KeysClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of keys. + * @return list of keys as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -35,7 +35,7 @@ public interface KeysClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of keys. + * @return list of keys as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoOperationsClient.java index 9a791f5052173..8d89e1ee21e13 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoOperationsClient.java @@ -17,7 +17,7 @@ public interface KustoOperationsClient { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations. + * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -29,7 +29,7 @@ public interface KustoOperationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations. + * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolAttachedDatabaseConfigurationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolAttachedDatabaseConfigurationsClient.java index a94940a937e85..3450568e84185 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolAttachedDatabaseConfigurationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolAttachedDatabaseConfigurationsClient.java @@ -12,7 +12,6 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationInner; -import reactor.core.publisher.Mono; /** * An instance of this class provides access to all the operations defined in @@ -28,7 +27,8 @@ public interface KustoPoolAttachedDatabaseConfigurationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response. + * @return the list attached database configurations operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByKustoPool( @@ -44,7 +44,8 @@ PagedIterable listByKustoPool( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response. + * @return the list attached database configurations operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByKustoPool( @@ -98,8 +99,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing an attached database configuration. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, AttachedDatabaseConfigurationInner> beginCreateOrUpdate( @@ -121,8 +121,7 @@ SyncPoller, AttachedDatabaseConfi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing an attached database configuration. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, AttachedDatabaseConfigurationInner> beginCreateOrUpdate( @@ -187,7 +186,7 @@ AttachedDatabaseConfigurationInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -204,7 +203,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDataConnectionsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDataConnectionsClient.java index 89039e324b54a..52a43f12f5758 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDataConnectionsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDataConnectionsClient.java @@ -16,7 +16,6 @@ import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner; import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationListResultInner; import com.azure.resourcemanager.synapse.models.DataConnectionCheckNameRequest; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in KustoPoolDataConnectionsClient. */ public interface KustoPoolDataConnectionsClient { @@ -75,8 +74,7 @@ Response checkNameAvailabilityWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connection validation result along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of the list Kusto data connection validation result. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataConnectionValidationListResultInner> @@ -99,8 +97,7 @@ Response checkNameAvailabilityWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connection validation result along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of the list Kusto data connection validation result. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataConnectionValidationListResultInner> @@ -166,7 +163,7 @@ DataConnectionValidationListResultInner dataConnectionValidation( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response. + * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByDatabase( @@ -183,7 +180,7 @@ PagedIterable listByDatabase( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response. + * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByDatabase( @@ -245,8 +242,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataConnectionInner> beginCreateOrUpdate( @@ -270,8 +266,7 @@ SyncPoller, DataConnectionInner> beginCreateOrUp * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataConnectionInner> beginCreateOrUpdate( @@ -343,8 +338,7 @@ DataConnectionInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataConnectionInner> beginUpdate( @@ -368,8 +362,7 @@ SyncPoller, DataConnectionInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataConnectionInner> beginUpdate( @@ -440,7 +433,7 @@ DataConnectionInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -462,7 +455,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasePrincipalAssignmentsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasePrincipalAssignmentsClient.java index c96d6872f60a8..46944e2f851a0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasePrincipalAssignmentsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasePrincipalAssignmentsClient.java @@ -14,7 +14,6 @@ import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; import com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalAssignmentInner; import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentCheckNameRequest; -import reactor.core.publisher.Mono; /** * An instance of this class provides access to all the operations defined in @@ -75,7 +74,8 @@ Response checkNameAvailabilityWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response. + * @return the list Kusto database principal assignments operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -92,7 +92,8 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response. + * @return the list Kusto database principal assignments operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -154,8 +155,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a database principal assignment along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing a database principal assignment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabasePrincipalAssignmentInner> beginCreateOrUpdate( @@ -179,8 +179,7 @@ SyncPoller, DatabasePrincipalAssign * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a database principal assignment along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing a database principal assignment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabasePrincipalAssignmentInner> beginCreateOrUpdate( @@ -251,7 +250,7 @@ DatabasePrincipalAssignmentInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -273,7 +272,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasesClient.java index a955c069a4726..f97a8406c838d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasesClient.java @@ -12,7 +12,6 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in KustoPoolDatabasesClient. */ public interface KustoPoolDatabasesClient { @@ -25,7 +24,7 @@ public interface KustoPoolDatabasesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response. + * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByKustoPool(String resourceGroupName, String workspaceName, String kustoPoolName); @@ -40,7 +39,7 @@ public interface KustoPoolDatabasesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response. + * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByKustoPool( @@ -89,7 +88,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabaseInner> beginCreateOrUpdate( @@ -111,7 +110,7 @@ SyncPoller, DatabaseInner> beginCreateOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabaseInner> beginCreateOrUpdate( @@ -177,7 +176,7 @@ DatabaseInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabaseInner> beginUpdate( @@ -199,7 +198,7 @@ SyncPoller, DatabaseInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabaseInner> beginUpdate( @@ -264,7 +263,7 @@ DatabaseInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -281,7 +280,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrincipalAssignmentsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrincipalAssignmentsClient.java index 0bc1cdfca0d68..ab367ad7144cf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrincipalAssignmentsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrincipalAssignmentsClient.java @@ -14,7 +14,6 @@ import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; import com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner; import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentCheckNameRequest; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in KustoPoolPrincipalAssignmentsClient. */ public interface KustoPoolPrincipalAssignmentsClient { @@ -67,7 +66,8 @@ Response checkNameAvailabilityWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -83,7 +83,8 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -137,8 +138,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a cluster principal assignment along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing a cluster principal assignment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate( @@ -160,8 +160,7 @@ SyncPoller, ClusterPrincipalAssignme * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a cluster principal assignment along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing a cluster principal assignment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate( @@ -226,7 +225,7 @@ ClusterPrincipalAssignmentInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -243,7 +242,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsClient.java index 9259698ee8c58..8721914dde084 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsClient.java @@ -21,7 +21,6 @@ import com.azure.resourcemanager.synapse.models.KustoPoolCheckNameRequest; import com.azure.resourcemanager.synapse.models.KustoPoolUpdate; import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in KustoPoolsClient. */ public interface KustoPoolsClient { @@ -30,7 +29,7 @@ public interface KustoPoolsClient { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions. + * @return the list of the SKU descriptions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -42,7 +41,7 @@ public interface KustoPoolsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions. + * @return the list of the SKU descriptions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); @@ -147,8 +146,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, KustoPoolInner> beginCreateOrUpdate( @@ -174,8 +172,7 @@ SyncPoller, KustoPoolInner> beginCreateOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, KustoPoolInner> beginCreateOrUpdate( @@ -267,8 +264,7 @@ KustoPoolInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, KustoPoolInner> beginUpdate( @@ -291,8 +287,7 @@ SyncPoller, KustoPoolInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, KustoPoolInner> beginUpdate( @@ -374,7 +369,7 @@ KustoPoolInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -390,7 +385,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -432,7 +427,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginStop(String workspaceName, String kustoPoolName, String resourceGroupName); @@ -447,7 +442,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginStop( @@ -489,7 +484,7 @@ SyncPoller, Void> beginStop( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginStart(String workspaceName, String kustoPoolName, String resourceGroupName); @@ -504,7 +499,7 @@ SyncPoller, Void> beginStop( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginStart( @@ -546,7 +541,7 @@ SyncPoller, Void> beginStart( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool. + * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listSkusByResource( @@ -562,7 +557,7 @@ PagedIterable listSkusByResource( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool. + * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listSkusByResource( @@ -577,7 +572,7 @@ PagedIterable listSkusByResource( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listLanguageExtensions( @@ -593,7 +588,7 @@ PagedIterable listLanguageExtensions( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listLanguageExtensions( @@ -609,7 +604,7 @@ PagedIterable listLanguageExtensions( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginAddLanguageExtensions( @@ -629,7 +624,7 @@ SyncPoller, Void> beginAddLanguageExtensions( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginAddLanguageExtensions( @@ -687,7 +682,7 @@ void addLanguageExtensions( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginRemoveLanguageExtensions( @@ -707,7 +702,7 @@ SyncPoller, Void> beginRemoveLanguageExtensions( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginRemoveLanguageExtensions( @@ -764,7 +759,7 @@ void removeLanguageExtensions( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listFollowerDatabases( @@ -780,7 +775,7 @@ PagedIterable listFollowerDatabases( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listFollowerDatabases( @@ -796,7 +791,7 @@ PagedIterable listFollowerDatabases( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDetachFollowerDatabases( @@ -816,7 +811,7 @@ SyncPoller, Void> beginDetachFollowerDatabases( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDetachFollowerDatabases( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesOperationsClient.java index 847a45be0b0ab..ac1a4f69265a6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesOperationsClient.java @@ -20,7 +20,7 @@ public interface LibrariesOperationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Library resources. + * @return a list of Library resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -34,7 +34,7 @@ public interface LibrariesOperationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Library resources. + * @return a list of Library resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsClient.java index cd9979873bbec..5de2c4bae7415 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsClient.java @@ -13,7 +13,6 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.OperationResourceInner; import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionInner; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */ public interface PrivateEndpointConnectionsClient { @@ -58,7 +57,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a private endpoint connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, PrivateEndpointConnectionInner> beginCreate( @@ -78,7 +77,7 @@ SyncPoller, PrivateEndpointConnection * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a private endpoint connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, PrivateEndpointConnectionInner> beginCreate( @@ -137,7 +136,7 @@ PrivateEndpointConnectionInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, OperationResourceInner> beginDelete( @@ -153,7 +152,7 @@ SyncPoller, OperationResourceInner> beginDele * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, OperationResourceInner> beginDelete( @@ -197,7 +196,7 @@ OperationResourceInner delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private endpoint connections. + * @return a list of private endpoint connections as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName); @@ -211,7 +210,7 @@ OperationResourceInner delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private endpoint connections. + * @return a list of private endpoint connections as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsPrivateLinkHubsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsPrivateLinkHubsClient.java index 26f7d76480ae7..12c1a44e93471 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsPrivateLinkHubsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsPrivateLinkHubsClient.java @@ -24,7 +24,7 @@ public interface PrivateEndpointConnectionsPrivateLinkHubsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all PrivateEndpointConnections in the PrivateLinkHub. + * @return all PrivateEndpointConnections in the PrivateLinkHub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -39,7 +39,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all PrivateEndpointConnections in the PrivateLinkHub. + * @return all PrivateEndpointConnections in the PrivateLinkHub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubPrivateLinkResourcesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubPrivateLinkResourcesClient.java index 9644166fa2074..39fcd9d9f8b21 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubPrivateLinkResourcesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubPrivateLinkResourcesClient.java @@ -23,7 +23,7 @@ public interface PrivateLinkHubPrivateLinkResourcesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a private link hub. + * @return all private link resources for a private link hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String privateLinkHubName); @@ -37,7 +37,7 @@ public interface PrivateLinkHubPrivateLinkResourcesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a private link hub. + * @return all private link resources for a private link hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String privateLinkHubName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubsClient.java index c34ee8f24798b..b0f6c6a7219cd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubsClient.java @@ -13,7 +13,6 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkHubInner; import com.azure.resourcemanager.synapse.models.PrivateLinkHubPatchInfo; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in PrivateLinkHubsClient. */ public interface PrivateLinkHubsClient { @@ -24,7 +23,7 @@ public interface PrivateLinkHubsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of privateLinkHubs. + * @return list of privateLinkHubs as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); @@ -37,7 +36,7 @@ public interface PrivateLinkHubsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of privateLinkHubs. + * @return list of privateLinkHubs as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); @@ -143,7 +142,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String privateLinkHubName); @@ -157,7 +156,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -193,7 +192,7 @@ SyncPoller, Void> beginDelete( * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of privateLinkHubs. + * @return list of privateLinkHubs as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -205,7 +204,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of privateLinkHubs. + * @return list of privateLinkHubs as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesClient.java index 81e3fecc01bab..3646523544336 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesClient.java @@ -21,7 +21,7 @@ public interface PrivateLinkResourcesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a workspaces. + * @return all private link resources for a workspaces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName); @@ -35,7 +35,7 @@ public interface PrivateLinkResourcesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a workspaces. + * @return all private link resources for a workspaces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/RestorableDroppedSqlPoolsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/RestorableDroppedSqlPoolsClient.java index 575f497898789..f1a1930622f39 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/RestorableDroppedSqlPoolsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/RestorableDroppedSqlPoolsClient.java @@ -54,7 +54,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of deleted Sql pools that can be restored. + * @return a list of deleted Sql pools that can be restored as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -68,7 +68,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of deleted Sql pools that can be restored. + * @return a list of deleted Sql pools that can be restored as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsOperationsClient.java index 4318216289163..e83051a40c1d0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsOperationsClient.java @@ -20,7 +20,7 @@ public interface SparkConfigurationsOperationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources. + * @return a list of SparkConfiguration resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -34,7 +34,7 @@ public interface SparkConfigurationsOperationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources. + * @return a list of SparkConfiguration resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolBlobAuditingPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolBlobAuditingPoliciesClient.java index 37c09a4266b68..0012c5325bacb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolBlobAuditingPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolBlobAuditingPoliciesClient.java @@ -89,7 +89,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool auditing settings. + * @return a list of Sql pool auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listBySqlPool( @@ -105,7 +105,7 @@ PagedIterable listBySqlPool( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool auditing settings. + * @return a list of Sql pool auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listBySqlPool( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolGeoBackupPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolGeoBackupPoliciesClient.java index 383bfc371995a..5a65067d36b59 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolGeoBackupPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolGeoBackupPoliciesClient.java @@ -23,7 +23,7 @@ public interface SqlPoolGeoBackupPoliciesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool geo backup policies. + * @return list of SQL pool geo backup policies as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -38,7 +38,7 @@ public interface SqlPoolGeoBackupPoliciesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool geo backup policies. + * @return list of SQL pool geo backup policies as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationsClient.java index 9afb298383e36..6f00e9e00d2af 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationsClient.java @@ -21,7 +21,7 @@ public interface SqlPoolOperationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations performed on the SQL pool. + * @return a list of operations performed on the SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -36,7 +36,7 @@ public interface SqlPoolOperationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations performed on the SQL pool. + * @return a list of operations performed on the SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolReplicationLinksClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolReplicationLinksClient.java index 6e869b0dcc12c..edd0802b0ff55 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolReplicationLinksClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolReplicationLinksClient.java @@ -22,7 +22,8 @@ public interface SqlPoolReplicationLinksClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the response to a List Sql pool replication link request. + * @return represents the response to a List Sql pool replication link request as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -37,7 +38,8 @@ public interface SqlPoolReplicationLinksClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the response to a List Sql pool replication link request. + * @return represents the response to a List Sql pool replication link request as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRestorePointsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRestorePointsClient.java index f863b3c47c0f4..cd0d7d0e568bc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRestorePointsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRestorePointsClient.java @@ -13,7 +13,6 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.RestorePointInner; import com.azure.resourcemanager.synapse.models.CreateSqlPoolRestorePointDefinition; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in SqlPoolRestorePointsClient. */ public interface SqlPoolRestorePointsClient { @@ -26,7 +25,7 @@ public interface SqlPoolRestorePointsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool backup information. + * @return sQL pool backup information as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -41,7 +40,7 @@ public interface SqlPoolRestorePointsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool backup information. + * @return sQL pool backup information as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -57,7 +56,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return database restore points along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of database restore points. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, RestorePointInner> beginCreate( @@ -77,7 +76,7 @@ SyncPoller, RestorePointInner> beginCreate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return database restore points along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of database restore points. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, RestorePointInner> beginCreate( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSchemasClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSchemasClient.java index 1cb04ac0f43bf..8535c101de2bd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSchemasClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSchemasClient.java @@ -22,7 +22,7 @@ public interface SqlPoolSchemasClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return schemas of a given SQL pool. + * @return schemas of a given SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -38,7 +38,7 @@ public interface SqlPoolSchemasClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return schemas of a given SQL pool. + * @return schemas of a given SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSecurityAlertPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSecurityAlertPoliciesClient.java index 2ff0a103bd761..dccf69c7ff33b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSecurityAlertPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSecurityAlertPoliciesClient.java @@ -23,7 +23,7 @@ public interface SqlPoolSecurityAlertPoliciesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool's security alert policies. + * @return a list of Sql pool's security alert policies as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -39,7 +39,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool's security alert policies. + * @return a list of Sql pool's security alert policies as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSensitivityLabelsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSensitivityLabelsClient.java index a25961be9ff20..274c6c6722128 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSensitivityLabelsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSensitivityLabelsClient.java @@ -24,7 +24,7 @@ public interface SqlPoolSensitivityLabelsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool sensitivity labels. + * @return sQL pool sensitivity labels as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listCurrent( @@ -41,7 +41,7 @@ PagedIterable listCurrent( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool sensitivity labels. + * @return sQL pool sensitivity labels as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listCurrent( @@ -92,7 +92,7 @@ Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sensitivity labels of a given SQL pool. + * @return sensitivity labels of a given SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listRecommended( @@ -111,7 +111,7 @@ PagedIterable listRecommended( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sensitivity labels of a given SQL pool. + * @return sensitivity labels of a given SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listRecommended( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTableColumnsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTableColumnsClient.java index f606715942dc0..6091f64361094 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTableColumnsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTableColumnsClient.java @@ -23,7 +23,7 @@ public interface SqlPoolTableColumnsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return columns in a given table in a SQL pool. + * @return columns in a given table in a SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByTableName( @@ -42,7 +42,7 @@ PagedIterable listByTableName( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return columns in a given table in a SQL pool. + * @return columns in a given table in a SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByTableName( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTablesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTablesClient.java index 08eef25127c91..6989c9c1219ef 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTablesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTablesClient.java @@ -23,7 +23,7 @@ public interface SqlPoolTablesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return tables of a given schema in a SQL pool. + * @return tables of a given schema in a SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listBySchema( @@ -41,7 +41,7 @@ PagedIterable listBySchema( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return tables of a given schema in a SQL pool. + * @return tables of a given schema in a SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listBySchema( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTransparentDataEncryptionsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTransparentDataEncryptionsClient.java index a00ce3b1ea199..2904cdb02867d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTransparentDataEncryptionsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTransparentDataEncryptionsClient.java @@ -109,7 +109,8 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool's transparent data encryption configurations. + * @return list of SQL pool's transparent data encryption configurations as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -125,7 +126,8 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool's transparent data encryption configurations. + * @return list of SQL pool's transparent data encryption configurations as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolUsagesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolUsagesClient.java index 86f757fb2a300..15cbb2377d287 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolUsagesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolUsagesClient.java @@ -21,7 +21,7 @@ public interface SqlPoolUsagesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool usages. + * @return sQL pool usages as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -36,7 +36,7 @@ public interface SqlPoolUsagesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool usages. + * @return sQL pool usages as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentScansClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentScansClient.java index 00b146677216e..0beb1056dc0a6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentScansClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentScansClient.java @@ -14,7 +14,6 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentScansExportInner; import com.azure.resourcemanager.synapse.fluent.models.VulnerabilityAssessmentScanRecordInner; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -import reactor.core.publisher.Mono; /** * An instance of this class provides access to all the operations defined in SqlPoolVulnerabilityAssessmentScansClient. @@ -30,7 +29,7 @@ public interface SqlPoolVulnerabilityAssessmentScansClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of vulnerability assessment scan records. + * @return a list of vulnerability assessment scan records as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -50,7 +49,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of vulnerability assessment scan records. + * @return a list of vulnerability assessment scan records as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -71,7 +70,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginInitiateScan( @@ -93,7 +92,7 @@ SyncPoller, Void> beginInitiateScan( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginInitiateScan( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentsClient.java index cc5087a92e97d..cfeb6fabb59d9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentsClient.java @@ -23,7 +23,7 @@ public interface SqlPoolVulnerabilityAssessmentsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the Sql pool's vulnerability assessments. + * @return a list of the Sql pool's vulnerability assessments as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -39,7 +39,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the Sql pool's vulnerability assessments. + * @return a list of the Sql pool's vulnerability assessments as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadClassifiersClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadClassifiersClient.java index b6b6adbe38468..b637cfcdcd6e5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadClassifiersClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadClassifiersClient.java @@ -12,7 +12,6 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.WorkloadClassifierInner; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in SqlPoolWorkloadClassifiersClient. */ public interface SqlPoolWorkloadClassifiersClient { @@ -72,8 +71,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workload classifier operations for a data warehouse along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link SyncPoller} for polling of workload classifier operations for a data warehouse. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadClassifierInner> beginCreateOrUpdate( @@ -97,8 +95,7 @@ SyncPoller, WorkloadClassifierInner> beginCr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workload classifier operations for a data warehouse along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link SyncPoller} for polling of workload classifier operations for a data warehouse. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadClassifierInner> beginCreateOrUpdate( @@ -169,7 +166,7 @@ WorkloadClassifierInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -191,7 +188,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -254,7 +251,8 @@ void delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload classifier for workload groups. + * @return list of Sql pool's workload classifier for workload groups as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -271,7 +269,8 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload classifier for workload groups. + * @return list of Sql pool's workload classifier for workload groups as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadGroupsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadGroupsClient.java index f8247d559fd85..c2167f1fc433d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadGroupsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadGroupsClient.java @@ -12,7 +12,6 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.WorkloadGroupInner; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in SqlPoolWorkloadGroupsClient. */ public interface SqlPoolWorkloadGroupsClient { @@ -60,8 +59,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workload group operations for a sql pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of workload group operations for a sql pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadGroupInner> beginCreateOrUpdate( @@ -83,8 +81,7 @@ SyncPoller, WorkloadGroupInner> beginCreateOrUpda * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workload group operations for a sql pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of workload group operations for a sql pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadGroupInner> beginCreateOrUpdate( @@ -149,7 +146,7 @@ WorkloadGroupInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -166,7 +163,7 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( @@ -211,7 +208,7 @@ void delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload groups. + * @return list of Sql pool's workload groups as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -226,7 +223,7 @@ void delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload groups. + * @return list of Sql pool's workload groups as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolsClient.java index 4269a1877cf04..93bf3a59b1b81 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolsClient.java @@ -14,7 +14,6 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolInner; import com.azure.resourcemanager.synapse.models.ResourceMoveDefinition; import com.azure.resourcemanager.synapse.models.SqlPoolPatchInfo; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in SqlPoolsClient. */ public interface SqlPoolsClient { @@ -95,7 +94,7 @@ Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SqlPoolInner> beginCreate( @@ -112,7 +111,7 @@ SyncPoller, SqlPoolInner> beginCreate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SqlPoolInner> beginCreate( @@ -159,7 +158,7 @@ SqlPoolInner create( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Object> beginDelete( @@ -175,7 +174,7 @@ SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Object> beginDelete( @@ -218,7 +217,7 @@ SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool collection. + * @return sQL pool collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -232,7 +231,7 @@ SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool collection. + * @return sQL pool collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context); @@ -246,7 +245,7 @@ SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Object> beginPause( @@ -262,7 +261,7 @@ SyncPoller, Object> beginPause( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Object> beginPause( @@ -306,7 +305,7 @@ SyncPoller, Object> beginPause( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Object> beginResume( @@ -322,7 +321,7 @@ SyncPoller, Object> beginResume( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Object> beginResume( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SynapseManagementClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SynapseManagementClient.java index d1e5808b42f06..bcba866221e23 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SynapseManagementClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SynapseManagementClient.java @@ -353,6 +353,14 @@ public interface SynapseManagementClient { */ WorkspaceManagedSqlServerRecoverableSqlPoolsClient getWorkspaceManagedSqlServerRecoverableSqlPools(); + /** + * Gets the WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient object to access its operations. + * + * @return the WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient object. + */ + WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient + getWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings(); + /** * Gets the WorkspacesClient object to access its operations. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceAadAdminsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceAadAdminsClient.java index b6cde86f49157..4f8eb2423f288 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceAadAdminsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceAadAdminsClient.java @@ -11,7 +11,6 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in WorkspaceAadAdminsClient. */ public interface WorkspaceAadAdminsClient { @@ -52,8 +51,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace active directory administrator along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkspaceAadAdminInfoInner> beginCreateOrUpdate( @@ -69,8 +67,7 @@ SyncPoller, WorkspaceAadAdminInfoInner> b * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace active directory administrator along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkspaceAadAdminInfoInner> beginCreateOrUpdate( @@ -115,7 +112,7 @@ WorkspaceAadAdminInfoInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName); @@ -129,7 +126,7 @@ WorkspaceAadAdminInfoInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedIdentitySqlControlSettingsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedIdentitySqlControlSettingsClient.java index 4e61fba7fc834..51394cfe5126f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedIdentitySqlControlSettingsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedIdentitySqlControlSettingsClient.java @@ -11,7 +11,6 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.ManagedIdentitySqlControlSettingsModelInner; -import reactor.core.publisher.Mono; /** * An instance of this class provides access to all the operations defined in @@ -55,8 +54,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Identity Sql Control Settings along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of managed Identity Sql Control Settings. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ManagedIdentitySqlControlSettingsModelInner> @@ -75,8 +73,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Identity Sql Control Settings along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of managed Identity Sql Control Settings. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ManagedIdentitySqlControlSettingsModelInner> diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerBlobAuditingPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerBlobAuditingPoliciesClient.java index e80623aa9399d..d856fb63e970c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerBlobAuditingPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerBlobAuditingPoliciesClient.java @@ -13,7 +13,6 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.ServerBlobAuditingPolicyInner; import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyName; -import reactor.core.publisher.Mono; /** * An instance of this class provides access to all the operations defined in @@ -61,7 +60,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a server blob auditing policy along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a server blob auditing policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ServerBlobAuditingPolicyInner> beginCreateOrUpdate( @@ -81,7 +80,7 @@ SyncPoller, ServerBlobAuditingPolicyIn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a server blob auditing policy along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a server blob auditing policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ServerBlobAuditingPolicyInner> beginCreateOrUpdate( @@ -139,7 +138,7 @@ ServerBlobAuditingPolicyInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server auditing settings. + * @return a list of server auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -153,7 +152,7 @@ ServerBlobAuditingPolicyInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server auditing settings. + * @return a list of server auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient.java new file mode 100644 index 0000000000000..ac72ba0f471e4 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient.java @@ -0,0 +1,162 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; +import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName; + +/** + * An instance of this class provides access to all the operations defined in + * WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient. + */ +public interface WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient { + /** + * Update workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param parameters minimal tls settings. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of dedicated Sql Minimal Tls Settings Info. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, DedicatedSQLminimalTlsSettingsInner> beginUpdate( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters); + + /** + * Update workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param parameters minimal tls settings. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of dedicated Sql Minimal Tls Settings Info. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, DedicatedSQLminimalTlsSettingsInner> beginUpdate( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters, + Context context); + + /** + * Update workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param parameters minimal tls settings. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dedicated Sql Minimal Tls Settings Info. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DedicatedSQLminimalTlsSettingsInner update( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters); + + /** + * Update workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param parameters minimal tls settings. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dedicated Sql Minimal Tls Settings Info. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DedicatedSQLminimalTlsSettingsInner update( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters, + Context context); + + /** + * Get workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return workspace managed sql server's minimal tls settings. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DedicatedSQLminimalTlsSettingsInner get( + String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName); + + /** + * Get workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return workspace managed sql server's minimal tls settings along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse( + String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context); + + /** + * List workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of the server's dedicated sql minimal tls settings as paginated response with {@link + * PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String workspaceName); + + /** + * List workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of the server's dedicated sql minimal tls settings as paginated response with {@link + * PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list( + String resourceGroupName, String workspaceName, Context context); +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerEncryptionProtectorsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerEncryptionProtectorsClient.java index a8aa46b1d6ed6..59f2ea5397e65 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerEncryptionProtectorsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerEncryptionProtectorsClient.java @@ -13,7 +13,6 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.EncryptionProtectorInner; import com.azure.resourcemanager.synapse.models.EncryptionProtectorName; -import reactor.core.publisher.Mono; /** * An instance of this class provides access to all the operations defined in @@ -64,7 +63,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the server encryption protector along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the server encryption protector. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, EncryptionProtectorInner> beginCreateOrUpdate( @@ -84,7 +83,7 @@ SyncPoller, EncryptionProtectorInner> begin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the server encryption protector along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the server encryption protector. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, EncryptionProtectorInner> beginCreateOrUpdate( @@ -142,7 +141,8 @@ EncryptionProtectorInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of encryption protectors for workspace managed sql server. + * @return list of encryption protectors for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName); @@ -156,7 +156,8 @@ EncryptionProtectorInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of encryption protectors for workspace managed sql server. + * @return list of encryption protectors for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, Context context); @@ -170,7 +171,7 @@ EncryptionProtectorInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginRevalidate( @@ -186,7 +187,7 @@ SyncPoller, Void> beginRevalidate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginRevalidate( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient.java index edd4b55eb851a..cb56e93a1f6df 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient.java @@ -13,7 +13,6 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.ExtendedServerBlobAuditingPolicyInner; import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyName; -import reactor.core.publisher.Mono; /** * An instance of this class provides access to all the operations defined in @@ -61,8 +60,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an extended server blob auditing policy along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of an extended server blob auditing policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ExtendedServerBlobAuditingPolicyInner> @@ -83,8 +81,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an extended server blob auditing policy along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of an extended server blob auditing policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ExtendedServerBlobAuditingPolicyInner> @@ -143,7 +140,7 @@ ExtendedServerBlobAuditingPolicyInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server extended auditing settings. + * @return a list of server extended auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace( @@ -158,7 +155,7 @@ PagedIterable listByWorkspace( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server extended auditing settings. + * @return a list of server extended auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByWorkspace( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerRecoverableSqlPoolsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerRecoverableSqlPoolsClient.java index ed9c1e2fc6b20..c14b555842fac 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerRecoverableSqlPoolsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerRecoverableSqlPoolsClient.java @@ -24,7 +24,8 @@ public interface WorkspaceManagedSqlServerRecoverableSqlPoolsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of recoverable sql pools for workspace managed sql server. + * @return list of recoverable sql pools for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName); @@ -38,7 +39,8 @@ public interface WorkspaceManagedSqlServerRecoverableSqlPoolsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of recoverable sql pools for workspace managed sql server. + * @return list of recoverable sql pools for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerSecurityAlertPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerSecurityAlertPoliciesClient.java index 75aa3502c8df3..7cdb04ff36a60 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerSecurityAlertPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerSecurityAlertPoliciesClient.java @@ -13,7 +13,6 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.ServerSecurityAlertPolicyInner; import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyNameAutoGenerated; -import reactor.core.publisher.Mono; /** * An instance of this class provides access to all the operations defined in @@ -64,8 +63,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed Sql server security alert policy along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link SyncPoller} for polling of workspace managed Sql server security alert policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ServerSecurityAlertPolicyInner> beginCreateOrUpdate( @@ -85,8 +83,7 @@ SyncPoller, ServerSecurityAlertPolicy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed Sql server security alert policy along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link SyncPoller} for polling of workspace managed Sql server security alert policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ServerSecurityAlertPolicyInner> beginCreateOrUpdate( @@ -144,7 +141,8 @@ ServerSecurityAlertPolicyInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's threat detection policies. + * @return workspace managed sql server's threat detection policies as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName); @@ -158,7 +156,8 @@ ServerSecurityAlertPolicyInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's threat detection policies. + * @return workspace managed sql server's threat detection policies as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerUsagesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerUsagesClient.java index 3b1c97e59dec2..fe6ed29f5390b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerUsagesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerUsagesClient.java @@ -20,7 +20,8 @@ public interface WorkspaceManagedSqlServerUsagesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of server usages metric for workspace managed sql server. + * @return list of server usages metric for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName); @@ -34,7 +35,8 @@ public interface WorkspaceManagedSqlServerUsagesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of server usages metric for workspace managed sql server. + * @return list of server usages metric for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerVulnerabilityAssessmentsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerVulnerabilityAssessmentsClient.java index 88949419a3f4f..41dd0d01e013c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerVulnerabilityAssessmentsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerVulnerabilityAssessmentsClient.java @@ -132,7 +132,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's vulnerability assessments. + * @return a list of the server's vulnerability assessments as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName); @@ -146,7 +146,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's vulnerability assessments. + * @return a list of the server's vulnerability assessments as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceSqlAadAdminsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceSqlAadAdminsClient.java index 3b77602a18729..5209a7be00a18 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceSqlAadAdminsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceSqlAadAdminsClient.java @@ -11,7 +11,6 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in WorkspaceSqlAadAdminsClient. */ public interface WorkspaceSqlAadAdminsClient { @@ -52,8 +51,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace active directory administrator along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkspaceAadAdminInfoInner> beginCreateOrUpdate( @@ -69,8 +67,7 @@ SyncPoller, WorkspaceAadAdminInfoInner> b * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace active directory administrator along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkspaceAadAdminInfoInner> beginCreateOrUpdate( @@ -115,7 +112,7 @@ WorkspaceAadAdminInfoInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName); @@ -129,7 +126,7 @@ WorkspaceAadAdminInfoInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspacesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspacesClient.java index 38e8af77de47b..c7dcd4fa2bef4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspacesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspacesClient.java @@ -13,7 +13,6 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.WorkspaceInner; import com.azure.resourcemanager.synapse.models.WorkspacePatchInfo; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in WorkspacesClient. */ public interface WorkspacesClient { @@ -24,7 +23,7 @@ public interface WorkspacesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of workspaces. + * @return list of workspaces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); @@ -37,7 +36,7 @@ public interface WorkspacesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of workspaces. + * @return list of workspaces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); @@ -79,7 +78,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkspaceInner> beginUpdate( @@ -95,7 +94,7 @@ SyncPoller, WorkspaceInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkspaceInner> beginUpdate( @@ -140,7 +139,7 @@ WorkspaceInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkspaceInner> beginCreateOrUpdate( @@ -156,7 +155,7 @@ SyncPoller, WorkspaceInner> beginCreateOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkspaceInner> beginCreateOrUpdate( @@ -200,7 +199,7 @@ WorkspaceInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName); @@ -214,7 +213,7 @@ WorkspaceInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName, Context context); @@ -251,7 +250,7 @@ WorkspaceInner createOrUpdate( * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of workspaces. + * @return list of workspaces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -263,7 +262,7 @@ WorkspaceInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of workspaces. + * @return list of workspaces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AadAdminProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AadAdminProperties.java index 8560d43e331ff..8d6db65260ea5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AadAdminProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AadAdminProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Workspace active directory administrator properties. */ @Fluent public final class AadAdminProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AadAdminProperties.class); - /* * Tenant ID of the workspace active directory administrator */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationInner.java index 381992410d7cd..01faa35fb8fff 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationInner.java @@ -7,19 +7,15 @@ 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.synapse.models.DefaultPrincipalsModificationKind; import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; import com.azure.resourcemanager.synapse.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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationProperties.java index a7b24637e402e..dd149e1c2a488 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationProperties.java @@ -9,15 +9,12 @@ import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; import com.azure.resourcemanager.synapse.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 (kustoPoolResourceId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property kustoPoolResourceId 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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AvailableRpOperationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AvailableRpOperationInner.java index b5b2ab132ba82..b32ddcb6aa735 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AvailableRpOperationInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AvailableRpOperationInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.AvailableRpOperationDisplayInfo; import com.azure.resourcemanager.synapse.models.OperationMetaServiceSpecification; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** An operation that is available in this resource provider. */ @Fluent public final class AvailableRpOperationInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AvailableRpOperationInner.class); - /* * Display properties of the operation */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationInner.java index 71889b98060db..eb65fb53c4da6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationInner.java @@ -6,17 +6,13 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.StateValue; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Azure Active Directory Only Authentication Info. */ @Fluent public final class AzureADOnlyAuthenticationInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureADOnlyAuthenticationInner.class); - /* * azureADOnlyAuthentication resource properties */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationProperties.java index 59a1e1a0dd1be..b68ad89db88c1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationProperties.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.StateValue; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Properties of a active directory only authentication. */ @Fluent public final class AzureADOnlyAuthenticationProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureADOnlyAuthenticationProperties.class); - /* * Azure Active Directory only Authentication enabled. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureResourceSkuInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureResourceSkuInner.java index d239ed869d544..38d1de0bc35b1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureResourceSkuInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureResourceSkuInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.AzureCapacity; import com.azure.resourcemanager.synapse.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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java index 646c53e82db35..078ae5e54bf3c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java @@ -6,7 +6,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.AutoPauseProperties; import com.azure.resourcemanager.synapse.models.AutoScaleProperties; import com.azure.resourcemanager.synapse.models.DynamicExecutorAllocation; @@ -14,7 +13,6 @@ import com.azure.resourcemanager.synapse.models.NodeSize; import com.azure.resourcemanager.synapse.models.NodeSizeFamily; import com.azure.resourcemanager.synapse.models.SparkConfigProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; @@ -23,8 +21,6 @@ /** Big Data pool A Big Data pool. */ @Fluent public final class BigDataPoolResourceInfoInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BigDataPoolResourceInfoInner.class); - /* * Spark pool properties Big Data pool properties */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java index 20f4ddffda7f4..6e6278244e1ce 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.AutoPauseProperties; import com.azure.resourcemanager.synapse.models.AutoScaleProperties; import com.azure.resourcemanager.synapse.models.DynamicExecutorAllocation; @@ -13,7 +12,6 @@ import com.azure.resourcemanager.synapse.models.NodeSize; import com.azure.resourcemanager.synapse.models.NodeSizeFamily; import com.azure.resourcemanager.synapse.models.SparkConfigProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; @@ -21,8 +19,6 @@ /** Spark pool properties Properties of a Big Data pool powered by Apache Spark. */ @Fluent public final class BigDataPoolResourceProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BigDataPoolResourceProperties.class); - /* * The state of the Big Data pool. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameAvailabilityResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameAvailabilityResponseInner.java index 202f756ae5cb8..3ad8fa6bb6972 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameAvailabilityResponseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameAvailabilityResponseInner.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Check name availability response A response saying whether the workspace name is available. */ @Fluent public final class CheckNameAvailabilityResponseInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CheckNameAvailabilityResponseInner.class); - /* * Validation message */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameResultInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameResultInner.java index a2a72a787e0de..cf22b10884809 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameResultInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameResultInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalAssignmentInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalAssignmentInner.java index 07c1d57d7e7ea..dccddebe0c617 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalAssignmentInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalAssignmentInner.java @@ -7,18 +7,14 @@ 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.synapse.models.ClusterPrincipalRole; import com.azure.resourcemanager.synapse.models.PrincipalType; import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalProperties.java index d184bc09aa35f..26d0503074045 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalProperties.java @@ -9,14 +9,11 @@ import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; import com.azure.resourcemanager.synapse.models.PrincipalType; import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -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. @@ -176,21 +173,23 @@ public ResourceProvisioningState provisioningState() { */ 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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CmdkeySetupTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CmdkeySetupTypeProperties.java index c10079d1d9415..ea58db1c5edc3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CmdkeySetupTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CmdkeySetupTypeProperties.java @@ -7,14 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Cmdkey command custom setup type properties. */ @Fluent public final class CmdkeySetupTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CmdkeySetupTypeProperties.class); - /* * The server name of data source access. */ @@ -100,19 +97,19 @@ public CmdkeySetupTypeProperties withPassword(SecretBase password) { */ public void validate() { if (targetName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property targetName in model CmdkeySetupTypeProperties")); } if (username() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property username in model CmdkeySetupTypeProperties")); } if (password() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property password in model CmdkeySetupTypeProperties")); @@ -120,4 +117,6 @@ public void validate() { password().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(CmdkeySetupTypeProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionInner.java index 5dc679d9dd9d2..ea43412662486 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionInner.java @@ -7,11 +7,9 @@ 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.synapse.models.EventGridDataConnection; import com.azure.resourcemanager.synapse.models.EventHubDataConnection; import com.azure.resourcemanager.synapse.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; @@ -31,8 +29,6 @@ }) @Fluent public class DataConnectionInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataConnectionInner.class); - /* * Resource location. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationInner.java index 3c35d9f3e3856..7481c2862474c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationInner.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationListResultInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationListResultInner.java index bda1e067fd5bb..25f288f2d6582 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationListResultInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationListResultInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyInner.java index 470e12f14cfe4..7efff75f4e323 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyInner.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.DataMaskingState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The DataMaskingPolicy model. */ @Fluent public final class DataMaskingPolicyInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataMaskingPolicyInner.class); - /* * The properties of the data masking policy. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyProperties.java index 13e48242bca62..2c0666ae955a4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingPolicyProperties.java @@ -7,14 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.DataMaskingState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The properties of a database data masking policy. */ @Fluent public final class DataMaskingPolicyProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataMaskingPolicyProperties.class); - /* * The state of the data masking policy. */ @@ -113,10 +110,12 @@ public String maskingLevel() { */ public void validate() { if (dataMaskingState() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property dataMaskingState in model DataMaskingPolicyProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(DataMaskingPolicyProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleInner.java index dc513b3d8a8df..849f63eda3833 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleInner.java @@ -6,17 +6,13 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.DataMaskingFunction; import com.azure.resourcemanager.synapse.models.DataMaskingRuleState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Represents a Sql pool data masking rule. */ @Fluent public final class DataMaskingRuleInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataMaskingRuleInner.class); - /* * The properties of the resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleProperties.java index ce77df378ab24..381e6ec4557bd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataMaskingRuleProperties.java @@ -8,14 +8,11 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.DataMaskingFunction; import com.azure.resourcemanager.synapse.models.DataMaskingRuleState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The properties of a Sql pool data masking rule. */ @Fluent public final class DataMaskingRuleProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataMaskingRuleProperties.class); - /* * The rule Id. */ @@ -352,28 +349,30 @@ public DataMaskingRuleProperties withReplacementString(String replacementString) */ public void validate() { if (schemaName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property schemaName in model DataMaskingRuleProperties")); } if (tableName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property tableName in model DataMaskingRuleProperties")); } if (columnName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property columnName in model DataMaskingRuleProperties")); } if (maskingFunction() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property maskingFunction in model DataMaskingRuleProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(DataMaskingRuleProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesInner.java index 8cb5cdf54d5b1..684333545a482 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesInner.java @@ -6,15 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** User activities of a data warehouse. */ @Fluent public final class DataWarehouseUserActivitiesInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataWarehouseUserActivitiesInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesProperties.java index f97af82488749..92b3d0046214a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataWarehouseUserActivitiesProperties.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.synapse.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; /** @@ -15,8 +13,6 @@ */ @Immutable public final class DataWarehouseUserActivitiesProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataWarehouseUserActivitiesProperties.class); - /* * Count of running and suspended queries. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabaseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabaseInner.java index 0dbc65eca2988..d9daa993d86a6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabaseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabaseInner.java @@ -7,10 +7,8 @@ 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.synapse.models.ReadOnlyFollowingDatabase; import com.azure.resourcemanager.synapse.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; @@ -29,8 +27,6 @@ }) @Fluent public class DatabaseInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabaseInner.class); - /* * Resource location. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalAssignmentInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalAssignmentInner.java index 01f6feba851d6..836f1fe29482c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalAssignmentInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalAssignmentInner.java @@ -7,18 +7,14 @@ 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.synapse.models.DatabasePrincipalRole; import com.azure.resourcemanager.synapse.models.PrincipalType; import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalProperties.java index ad87f3d20a333..eb3a4304b1bef 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DatabasePrincipalProperties.java @@ -9,14 +9,11 @@ import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; import com.azure.resourcemanager.synapse.models.PrincipalType; import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -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. @@ -176,22 +173,24 @@ public ResourceProvisioningState provisioningState() { */ 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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DedicatedSQLminimalTlsSettingsInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DedicatedSQLminimalTlsSettingsInner.java new file mode 100644 index 0000000000000..e29894f8d3dd9 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DedicatedSQLminimalTlsSettingsInner.java @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Dedicated Sql Minimal Tls Settings Info. */ +@Fluent +public final class DedicatedSQLminimalTlsSettingsInner extends ProxyResource { + /* + * Resource location. + */ + @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY) + private String location; + + /* + * Resource properties. + */ + @JsonProperty(value = "properties") + private DedicatedSQLminimalTlsSettingsProperties innerProperties; + + /** + * Get the location property: Resource location. + * + * @return the location value. + */ + public String location() { + return this.location; + } + + /** + * Get the innerProperties property: Resource properties. + * + * @return the innerProperties value. + */ + private DedicatedSQLminimalTlsSettingsProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the minimalTlsVersion property: The minimal tls version of the sql server. + * + * @return the minimalTlsVersion value. + */ + public String minimalTlsVersion() { + return this.innerProperties() == null ? null : this.innerProperties().minimalTlsVersion(); + } + + /** + * Set the minimalTlsVersion property: The minimal tls version of the sql server. + * + * @param minimalTlsVersion the minimalTlsVersion value to set. + * @return the DedicatedSQLminimalTlsSettingsInner object itself. + */ + public DedicatedSQLminimalTlsSettingsInner withMinimalTlsVersion(String minimalTlsVersion) { + if (this.innerProperties() == null) { + this.innerProperties = new DedicatedSQLminimalTlsSettingsProperties(); + } + this.innerProperties().withMinimalTlsVersion(minimalTlsVersion); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DedicatedSQLminimalTlsSettingsProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DedicatedSQLminimalTlsSettingsProperties.java new file mode 100644 index 0000000000000..884848df9e3ea --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DedicatedSQLminimalTlsSettingsProperties.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Properties of a dedicated sql minimal tls settings. */ +@Fluent +public final class DedicatedSQLminimalTlsSettingsProperties { + /* + * The minimal tls version of the sql server. + */ + @JsonProperty(value = "minimalTlsVersion") + private String minimalTlsVersion; + + /** + * Get the minimalTlsVersion property: The minimal tls version of the sql server. + * + * @return the minimalTlsVersion value. + */ + public String minimalTlsVersion() { + return this.minimalTlsVersion; + } + + /** + * Set the minimalTlsVersion property: The minimal tls version of the sql server. + * + * @param minimalTlsVersion the minimalTlsVersion value to set. + * @return the DedicatedSQLminimalTlsSettingsProperties object itself. + */ + public DedicatedSQLminimalTlsSettingsProperties withMinimalTlsVersion(String minimalTlsVersion) { + this.minimalTlsVersion = minimalTlsVersion; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorInner.java index eed2f9cdf343c..142bba79f2982 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorInner.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.ServerKeyType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The server encryption protector. */ @Fluent public final class EncryptionProtectorInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EncryptionProtectorInner.class); - /* * Kind of encryption protector. This is metadata used for the Azure portal * experience. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorProperties.java index 319cdf2c452ae..4300de8fccdc0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EncryptionProtectorProperties.java @@ -7,14 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.ServerKeyType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Properties for an encryption protector execution. */ @Fluent public final class EncryptionProtectorProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EncryptionProtectorProperties.class); - /* * Subregion of the encryption protector. */ @@ -119,10 +116,12 @@ public String thumbprint() { */ public void validate() { if (serverKeyType() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property serverKeyType in model EncryptionProtectorProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(EncryptionProtectorProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EnvironmentVariableSetupTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EnvironmentVariableSetupTypeProperties.java index a5bf321c39e90..57805dfe972ee 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EnvironmentVariableSetupTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EnvironmentVariableSetupTypeProperties.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; /** Environment variable custom setup type properties. */ @Fluent public final class EnvironmentVariableSetupTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EnvironmentVariableSetupTypeProperties.class); - /* * The name of the environment variable. */ @@ -73,16 +70,18 @@ public EnvironmentVariableSetupTypeProperties withVariableValue(String variableV */ public void validate() { if (variableName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property variableName in model EnvironmentVariableSetupTypeProperties")); } if (variableValue() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property variableValue in model EnvironmentVariableSetupTypeProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(EnvironmentVariableSetupTypeProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EventGridConnectionProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EventGridConnectionProperties.java index baba61d98784a..4d018cb55e10f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EventGridConnectionProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EventGridConnectionProperties.java @@ -9,14 +9,11 @@ import com.azure.resourcemanager.synapse.models.BlobStorageEventType; import com.azure.resourcemanager.synapse.models.EventGridDataFormat; import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -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. */ @@ -259,22 +256,24 @@ public ResourceProvisioningState 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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EventHubConnectionProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EventHubConnectionProperties.java index 15dc22c67a2d6..e89fcbd138c52 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EventHubConnectionProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/EventHubConnectionProperties.java @@ -9,15 +9,12 @@ import com.azure.resourcemanager.synapse.models.Compression; import com.azure.resourcemanager.synapse.models.EventHubDataFormat; import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -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. */ @@ -260,16 +257,18 @@ public EventHubConnectionProperties withManagedIdentityResourceId(String managed */ 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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java index e8bd160a1c06b..078964c84c05d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java @@ -6,9 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.UUID; @@ -16,8 +14,6 @@ /** An extended server blob auditing policy. */ @Fluent public final class ExtendedServerBlobAuditingPolicyInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ExtendedServerBlobAuditingPolicyInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyProperties.java index 127faee70e976..5880bf2a120dd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyProperties.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.UUID; @@ -15,8 +14,6 @@ /** Properties of an extended server blob auditing policy. */ @Fluent public final class ExtendedServerBlobAuditingPolicyProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ExtendedServerBlobAuditingPolicyProperties.class); - /* * Specifies condition of where clause when creating an audit. */ @@ -583,10 +580,12 @@ public ExtendedServerBlobAuditingPolicyProperties withIsDevopsAuditEnabled(Boole */ public void validate() { if (state() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property state in model ExtendedServerBlobAuditingPolicyProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(ExtendedServerBlobAuditingPolicyProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyInner.java index 79391c0665502..ff658b5be8339 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyInner.java @@ -6,9 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.UUID; @@ -16,8 +14,6 @@ /** An extended Sql pool blob auditing policy. */ @Fluent public final class ExtendedSqlPoolBlobAuditingPolicyInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ExtendedSqlPoolBlobAuditingPolicyInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyProperties.java index 42a82e14795f3..4e7cadac73400 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyProperties.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.UUID; @@ -15,8 +14,6 @@ /** Properties of an extended Sql pool blob auditing policy. */ @Fluent public final class ExtendedSqlPoolBlobAuditingPolicyProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ExtendedSqlPoolBlobAuditingPolicyProperties.class); - /* * Specifies condition of where clause when creating an audit. */ @@ -517,10 +514,12 @@ public ExtendedSqlPoolBlobAuditingPolicyProperties withQueueDelayMs(Integer queu */ public void validate() { if (state() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property state in model ExtendedSqlPoolBlobAuditingPolicyProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(ExtendedSqlPoolBlobAuditingPolicyProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/FollowerDatabaseDefinitionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/FollowerDatabaseDefinitionInner.java index 7168f4c386f97..18397197afcf8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/FollowerDatabaseDefinitionInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/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 (kustoPoolResourceId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property kustoPoolResourceId 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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyInner.java index e51359b8040ea..cfab2ffc81d18 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyInner.java @@ -8,14 +8,11 @@ import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.GeoBackupPolicyState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A database geo backup policy. */ @Fluent public final class GeoBackupPolicyInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GeoBackupPolicyInner.class); - /* * The properties of the geo backup policy. */ @@ -101,7 +98,7 @@ public String storageType() { */ public void validate() { if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property innerProperties in model GeoBackupPolicyInner")); @@ -109,4 +106,6 @@ public void validate() { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(GeoBackupPolicyInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyProperties.java index 5e1a23b645292..9c91af9ae4ffe 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyProperties.java @@ -7,14 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.GeoBackupPolicyState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The properties of the geo backup policy. */ @Fluent public final class GeoBackupPolicyProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GeoBackupPolicyProperties.class); - /* * The state of the geo backup policy. */ @@ -63,9 +60,11 @@ public String storageType() { */ public void validate() { if (state() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property state in model GeoBackupPolicyProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(GeoBackupPolicyProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeAuthKeysInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeAuthKeysInner.java index 9025d9f620ac1..4c516d45f1f79 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeAuthKeysInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeAuthKeysInner.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** The integration runtime authentication keys. */ @Fluent public final class IntegrationRuntimeAuthKeysInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeAuthKeysInner.class); - /* * The primary integration runtime authentication key. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeConnectionInfoInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeConnectionInfoInner.java index 623b6e124d844..e7bec143fb434 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeConnectionInfoInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeConnectionInfoInner.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,8 +15,6 @@ /** Connection information for encrypting the on-premises data source credentials. */ @Fluent public final class IntegrationRuntimeConnectionInfoInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeConnectionInfoInner.class); - /* * The token generated in service. Callers use this token to authenticate * to integration runtime. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeMonitoringDataInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeMonitoringDataInner.java index 4149466aedbb1..ebab302bba2ac 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeMonitoringDataInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeMonitoringDataInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeNodeMonitoringData; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Get monitoring data response. */ @Fluent public final class IntegrationRuntimeMonitoringDataInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeMonitoringDataInner.class); - /* * Integration runtime name. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeNodeIpAddressInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeNodeIpAddressInner.java index f1c1e6fedb699..8d77e9fc19483 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeNodeIpAddressInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeNodeIpAddressInner.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** The IP address of self-hosted integration runtime node. */ @Immutable public final class IntegrationRuntimeNodeIpAddressInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeNodeIpAddressInner.class); - /* * The IP address of self-hosted integration runtime node. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.java index 58a3f067d768a..44c22b2f4e6f8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.java @@ -5,19 +5,13 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Azure-SSIS integration runtime outbound network dependency endpoints. */ @Fluent public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner { - @JsonIgnore - private final ClientLogger logger = - new ClientLogger(IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.class); - /* * The list of outbound network dependency endpoints. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeResourceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeResourceInner.java index b4ba701ebf75a..1ce57e2d4a11c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeResourceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeResourceInner.java @@ -8,14 +8,11 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.EntityResource; import com.azure.resourcemanager.synapse.models.IntegrationRuntime; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Integration runtime resource type. */ @Fluent public final class IntegrationRuntimeResourceInner extends EntityResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeResourceInner.class); - /* * Integration runtime properties. */ @@ -51,7 +48,7 @@ public IntegrationRuntimeResourceInner withProperties(IntegrationRuntime propert public void validate() { super.validate(); if (properties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property properties in model IntegrationRuntimeResourceInner")); @@ -59,4 +56,6 @@ public void validate() { properties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeResourceInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStatusResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStatusResponseInner.java index e7b4ec49fde47..04380526643c1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStatusResponseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStatusResponseInner.java @@ -7,14 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeStatus; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Integration runtime status response. */ @Fluent public final class IntegrationRuntimeStatusResponseInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeStatusResponseInner.class); - /* * The integration runtime name. */ @@ -63,7 +60,7 @@ public IntegrationRuntimeStatusResponseInner withProperties(IntegrationRuntimeSt */ public void validate() { if (properties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property properties in model IntegrationRuntimeStatusResponseInner")); @@ -71,4 +68,6 @@ public void validate() { properties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeStatusResponseInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IotHubConnectionProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IotHubConnectionProperties.java index 34d8d8a88d83b..e0ef8f313dfda 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IotHubConnectionProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IotHubConnectionProperties.java @@ -8,15 +8,12 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.IotHubDataFormat; import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -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. */ @@ -230,22 +227,24 @@ public ResourceProvisioningState 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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleInfoInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleInfoInner.java index 669d87ce87bd6..c5d4faff91802 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleInfoInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleInfoInner.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** IP firewall rule. */ @Fluent public final class IpFirewallRuleInfoInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IpFirewallRuleInfoInner.class); - /* * IP firewall rule properties */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleProperties.java index fa90e90d6a8d2..e3b13486a385f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** IP firewall rule properties. */ @Fluent public final class IpFirewallRuleProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IpFirewallRuleProperties.class); - /* * The end IP address of the firewall rule. Must be IPv4 format. Must be * greater than or equal to startIpAddress diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyInner.java index c719a460976cf..974f269435bcd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyInner.java @@ -6,15 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A workspace key. */ @Fluent public final class KeyInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KeyInner.class); - /* * Keys resource properties */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyProperties.java index 61703cd3a18aa..490d209953a7e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Key properties. */ @Fluent public final class KeyProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KeyProperties.class); - /* * Used to activate the workspace after a customer managed key is provided. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolInner.java index ba3439bb240c5..4a3b39ac4032a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolInner.java @@ -13,15 +13,12 @@ import com.azure.resourcemanager.synapse.models.OptimizedAutoscale; import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; import com.azure.resourcemanager.synapse.models.State; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** Class representing a Kusto kusto pool. */ @Fluent public final class KustoPoolInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KustoPoolInner.class); - /* * The SKU of the kusto pool. */ @@ -261,7 +258,7 @@ public KustoPoolInner withWorkspaceUid(String workspaceUid) { */ public void validate() { if (sku() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property sku in model KustoPoolInner")); } else { @@ -271,4 +268,6 @@ public void validate() { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(KustoPoolInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolListResultInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolListResultInner.java index 87a40a6a4e282..3d5a549e34b56 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolListResultInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolListResultInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.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 pools operation response. */ @Fluent public final class KustoPoolListResultInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KustoPoolListResultInner.class); - /* * The list of Kusto pools. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolProperties.java index cb8d6a4ab6506..bbe00b45b2539 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolProperties.java @@ -5,19 +5,15 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; import com.azure.resourcemanager.synapse.models.OptimizedAutoscale; import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; import com.azure.resourcemanager.synapse.models.State; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Class representing the Kusto pool properties. */ @Fluent public final class KustoPoolProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KustoPoolProperties.class); - /* * The state of the resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LanguageExtensionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LanguageExtensionInner.java index 20f541989c0a4..7fd308e668caf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LanguageExtensionInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LanguageExtensionInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryInfo.java index 621de8fb24f2e..279144da81753 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryInfo.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; @@ -16,8 +14,6 @@ */ @Fluent public final class LibraryInfo { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LibraryInfo.class); - /* * Name of the library. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryResourceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryResourceInner.java index 13194de1c3c1e..53a1d5cd3c442 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryResourceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryResourceInner.java @@ -7,15 +7,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.EntityResource; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Library response details. */ @Fluent public final class LibraryResourceInner extends EntityResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LibraryResourceInner.class); - /* * Information about a library/package created at the workspace level. * Library/package properties. @@ -175,7 +172,7 @@ public String creatorId() { public void validate() { super.validate(); if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property innerProperties in model LibraryResourceInner")); @@ -183,4 +180,6 @@ public void validate() { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(LibraryResourceInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LicensedComponentSetupTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LicensedComponentSetupTypeProperties.java index 73627ad917cba..02c28c3b2ac5d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LicensedComponentSetupTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LicensedComponentSetupTypeProperties.java @@ -7,14 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.SecretBase; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Installation of licensed component setup type properties. */ @Fluent public final class LicensedComponentSetupTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LicensedComponentSetupTypeProperties.class); - /* * The name of the 3rd party component. */ @@ -74,7 +71,7 @@ public LicensedComponentSetupTypeProperties withLicenseKey(SecretBase licenseKey */ public void validate() { if (componentName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property componentName in model LicensedComponentSetupTypeProperties")); @@ -83,4 +80,6 @@ public void validate() { licenseKey().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(LicensedComponentSetupTypeProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsInner.java index cc1d75ed77c9c..c297371241cf4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsInner.java @@ -6,17 +6,13 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.MaintenanceWindowTimeRange; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Maintenance window options. */ @Fluent public final class MaintenanceWindowOptionsInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MaintenanceWindowOptionsInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsProperties.java index cf7b8954921ea..15cf03e8c83fa 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsProperties.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.MaintenanceWindowTimeRange; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Maintenance window options properties. */ @Fluent public final class MaintenanceWindowOptionsProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MaintenanceWindowOptionsProperties.class); - /* * Whether maintenance windows are enabled for the database. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsInner.java index 70327e4c26a5d..88d188092e131 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsInner.java @@ -6,17 +6,13 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.MaintenanceWindowTimeRange; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Maintenance windows. */ @Fluent public final class MaintenanceWindowsInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MaintenanceWindowsInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsProperties.java index a8ac929932ae5..681a790b81cd1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsProperties.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.MaintenanceWindowTimeRange; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Maintenance windows resource properties. */ @Fluent public final class MaintenanceWindowsProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MaintenanceWindowsProperties.class); - /* * The timeRanges property. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelInner.java index 427df6a84ca04..b93013dbbe535 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelInner.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Managed Identity Sql Control Settings Sql Control Settings for workspace managed identity. */ @Fluent public final class ManagedIdentitySqlControlSettingsModelInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedIdentitySqlControlSettingsModelInner.class); - /* * Managed Identity Sql Control Settings Sql Control Settings for workspace * managed identity diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelProperties.java index 4a25eff4652cb..f9a5430f7044e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelProperties.java @@ -5,17 +5,12 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Managed Identity Sql Control Settings Sql Control Settings for workspace managed identity. */ @Fluent public final class ManagedIdentitySqlControlSettingsModelProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(ManagedIdentitySqlControlSettingsModelProperties.class); - /* * Grant sql control to managed identity */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeManagedVirtualNetworkReference.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeManagedVirtualNetworkReference.java index 8d1139de0788e..ae238989ba0cb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeManagedVirtualNetworkReference.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeManagedVirtualNetworkReference.java @@ -5,16 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Managed integration runtime managed virtual network reference. */ @Fluent public final class ManagedIntegrationRuntimeManagedVirtualNetworkReference { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(ManagedIntegrationRuntimeManagedVirtualNetworkReference.class); - /* * The reference name of the managed virtual network. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java index 4175841551bac..e4dd9cd54e75c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java @@ -5,11 +5,9 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.ManagedIntegrationRuntimeError; import com.azure.resourcemanager.synapse.models.ManagedIntegrationRuntimeNode; import com.azure.resourcemanager.synapse.models.ManagedIntegrationRuntimeOperationResult; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; @@ -17,9 +15,6 @@ /** Managed integration runtime status type properties. */ @Immutable public final class ManagedIntegrationRuntimeStatusTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(ManagedIntegrationRuntimeStatusTypeProperties.class); - /* * The time at which the integration runtime was created, in ISO8601 * format. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeTypeProperties.java index bf13c3de69df0..f45f1470c41b9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeTypeProperties.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeComputeProperties; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeSsisProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Managed integration runtime type properties. */ @Fluent public final class ManagedIntegrationRuntimeTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedIntegrationRuntimeTypeProperties.class); - /* * The compute resource for managed integration runtime. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigInner.java index 35c6218e933c9..ffe65b26976ac 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigInner.java @@ -6,15 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Metadata sync configuration Configuration for metadata sync. */ @Fluent public final class MetadataSyncConfigInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MetadataSyncConfigInner.class); - /* * Metadata Sync Config properties */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigProperties.java index 7d4b9a88842f6..9422e11dd08d7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Metadata Sync Config properties. */ @Fluent public final class MetadataSyncConfigProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MetadataSyncConfigProperties.class); - /* * Indicates whether the metadata sync is enabled or disabled */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationInner.java index 6f47a74d89b8c..5c3d6192b5a8c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationMetaPropertyInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationMetaPropertyInfo.java index ecd7500a9ecbc..594ee250d603f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationMetaPropertyInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationMetaPropertyInfo.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.OperationMetaServiceSpecification; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** What is this?. */ @Fluent public final class OperationMetaPropertyInfo { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationMetaPropertyInfo.class); - /* * Operation service specification */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationResourceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationResourceInner.java index 85ac613dacd1a..3c6d483330cd4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationResourceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationResourceInner.java @@ -6,17 +6,13 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.exception.ManagementError; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.OperationStatus; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** An operation. */ @Fluent public final class OperationResourceInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationResourceInner.class); - /* * Operation ID */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionForPrivateLinkHubInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionForPrivateLinkHubInner.java index df242a2ef6184..a4d87b36196eb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionForPrivateLinkHubInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionForPrivateLinkHubInner.java @@ -5,18 +5,13 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The PrivateEndpointConnectionForPrivateLinkHub model. */ @Fluent public final class PrivateEndpointConnectionForPrivateLinkHubInner extends PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionForPrivateLinkHubInner.class); - /* * The name property. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionInner.java index 8f012cb4745c0..8bca3c1a798ae 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionInner.java @@ -6,17 +6,13 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.PrivateEndpoint; import com.azure.resourcemanager.synapse.models.PrivateLinkServiceConnectionState; -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); - /* * Private endpoint connection properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionProperties.java index c6e3e1751decc..135a756c5ee2c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionProperties.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.PrivateEndpoint; import com.azure.resourcemanager.synapse.models.PrivateLinkServiceConnectionState; -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); - /* * The private endpoint which the connection belongs to. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubInner.java index 9c142b2c65af1..0e7126fe4e231 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubInner.java @@ -6,9 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionForPrivateLinkHubBasic; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; @@ -16,8 +14,6 @@ /** A privateLinkHub. */ @Fluent public final class PrivateLinkHubInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkHubInner.class); - /* * PrivateLinkHub resource properties */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubProperties.java index d1f55640a31ed..3dcbfe9191230 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubProperties.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionForPrivateLinkHubBasic; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** PrivateLinkHub properties. */ @Fluent public final class PrivateLinkHubProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkHubProperties.class); - /* * PrivateLinkHub provisioning state */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourceInner.java index 451f0fe5846af..d19cec18d0b0b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourceInner.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.PrivateLinkResourceProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A private link resource. */ @Immutable public final class PrivateLinkResourceInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceInner.class); - /* * The private link resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadOnlyFollowingDatabaseProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadOnlyFollowingDatabaseProperties.java index 5c9ee7e6f1ebc..4c682872ac56d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadOnlyFollowingDatabaseProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadOnlyFollowingDatabaseProperties.java @@ -5,19 +5,15 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.DatabaseStatistics; import com.azure.resourcemanager.synapse.models.PrincipalsModificationKind; import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadWriteDatabaseProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadWriteDatabaseProperties.java index 2f6f672f47b2e..89ef2e968da45 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadWriteDatabaseProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadWriteDatabaseProperties.java @@ -5,18 +5,14 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.DatabaseStatistics; import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; -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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecommendedSensitivityLabelUpdateProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecommendedSensitivityLabelUpdateProperties.java index 7bd60cb7df518..ac08dc0e00987 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecommendedSensitivityLabelUpdateProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecommendedSensitivityLabelUpdateProperties.java @@ -7,14 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdateKind; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Properties of an operation executed on a recommended sensitivity label. */ @Fluent public final class RecommendedSensitivityLabelUpdateProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RecommendedSensitivityLabelUpdateProperties.class); - /* * The op property. */ @@ -126,28 +123,30 @@ public RecommendedSensitivityLabelUpdateProperties withColumn(String column) { */ public void validate() { if (op() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property op in model RecommendedSensitivityLabelUpdateProperties")); } if (schema() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property schema in model RecommendedSensitivityLabelUpdateProperties")); } if (table() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property table in model RecommendedSensitivityLabelUpdateProperties")); } if (column() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property column in model RecommendedSensitivityLabelUpdateProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(RecommendedSensitivityLabelUpdateProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolInner.java index 48a5ead9b743b..999d71eca78f4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolInner.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** A recoverable sql pool. */ @Fluent public final class RecoverableSqlPoolInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RecoverableSqlPoolInner.class); - /* * The properties of a recoverable sql pool */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolProperties.java index 1e29c74e38462..5bb8a13927f81 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The properties of a recoverable sql pool. */ @Immutable public final class RecoverableSqlPoolProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RecoverableSqlPoolProperties.class); - /* * The edition of the database */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplaceAllFirewallRulesOperationResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplaceAllFirewallRulesOperationResponseInner.java index 45e1457fc6470..fad04af07b59c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplaceAllFirewallRulesOperationResponseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplaceAllFirewallRulesOperationResponseInner.java @@ -5,16 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** An existing operation for replacing the firewall rules. */ @Fluent public final class ReplaceAllFirewallRulesOperationResponseInner { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(ReplaceAllFirewallRulesOperationResponseInner.class); - /* * The operation ID */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkInner.java index 883b1d43fac8d..309fdcd9bf85b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkInner.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.synapse.models.ReplicationRole; import com.azure.resourcemanager.synapse.models.ReplicationState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Represents a Sql pool replication link. */ @Fluent public final class ReplicationLinkInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ReplicationLinkInner.class); - /* * Location of the workspace that contains this firewall rule. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkProperties.java index fed7d92549765..4d15e86545e05 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkProperties.java @@ -5,18 +5,14 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.ReplicationRole; import com.azure.resourcemanager.synapse.models.ReplicationState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Represents the properties of a Sql pool replication link. */ @Immutable public final class ReplicationLinkProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ReplicationLinkProperties.class); - /* * Legacy value indicating whether termination is allowed. Currently * always returns true. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolInner.java index c4b814d0a4baa..1f63ea61e0ae9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolInner.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** A restorable dropped Sql pool. */ @Fluent public final class RestorableDroppedSqlPoolInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RestorableDroppedSqlPoolInner.class); - /* * The geo-location where the resource lives */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolProperties.java index e390f65a6b94c..cc90ce076c171 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The properties of a restorable dropped Sql pool. */ @Immutable public final class RestorableDroppedSqlPoolProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RestorableDroppedSqlPoolProperties.class); - /* * The name of the database */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointInner.java index ab28707212c1e..62f4845ed3417 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointInner.java @@ -6,17 +6,13 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.RestorePointType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Database restore points. */ @Fluent public final class RestorePointInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RestorePointInner.class); - /* * Resource location. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointProperties.java index 46ee9caad8a31..f040b45310499 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointProperties.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.RestorePointType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Properties of a database restore point. */ @Immutable public final class RestorePointProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RestorePointProperties.class); - /* * The type of restore point */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SecurityAlertPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SecurityAlertPolicyProperties.java index 070082ec921cb..0081f193e743b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SecurityAlertPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SecurityAlertPolicyProperties.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; @@ -15,8 +14,6 @@ /** Properties of a security alert policy. */ @Fluent public final class SecurityAlertPolicyProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SecurityAlertPolicyProperties.class); - /* * Specifies the state of the policy, whether it is enabled or disabled or * a policy has not been applied yet on the specific Sql pool. @@ -235,10 +232,12 @@ public OffsetDateTime creationTime() { */ public void validate() { if (state() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property state in model SecurityAlertPolicyProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(SecurityAlertPolicyProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeNodeInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeNodeInner.java index 5bd1e58fe72d4..c3c28bd338c9e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeNodeInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeNodeInner.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeUpdateResult; import com.azure.resourcemanager.synapse.models.SelfHostedIntegrationRuntimeNodeStatus; import com.fasterxml.jackson.annotation.JsonAnyGetter; @@ -20,8 +19,6 @@ /** Properties of Self-hosted integration runtime node. */ @Fluent public final class SelfHostedIntegrationRuntimeNodeInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SelfHostedIntegrationRuntimeNodeInner.class); - /* * Name of the integration runtime node. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java index 8be9e857b1418..699919d94b874 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java @@ -5,11 +5,9 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeAutoUpdate; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeInternalChannelEncryptionMode; import com.azure.resourcemanager.synapse.models.LinkedIntegrationRuntime; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; @@ -19,9 +17,6 @@ /** Self-hosted integration runtime status type properties. */ @Fluent public final class SelfHostedIntegrationRuntimeStatusTypeProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(SelfHostedIntegrationRuntimeStatusTypeProperties.class); - /* * The time at which the integration runtime was created, in ISO8601 * format. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeTypeProperties.java index 98f9548727d4a..30edb174c09cd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeTypeProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.LinkedIntegrationRuntimeType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The self-hosted integration runtime properties. */ @Fluent public final class SelfHostedIntegrationRuntimeTypeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SelfHostedIntegrationRuntimeTypeProperties.class); - /* * Linked integration runtime type from data factory */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelInner.java index 0e9245735f7f7..47d13eafe2e8a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelInner.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.SensitivityLabelRank; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A sensitivity label. */ @Fluent public final class SensitivityLabelInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SensitivityLabelInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelProperties.java index 99b16ee48487e..52b033c720265 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.SensitivityLabelRank; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Properties of a sensitivity label. */ @Fluent public final class SensitivityLabelProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SensitivityLabelProperties.class); - /* * The schema name. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelUpdateInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelUpdateInner.java index 9a62cde101a91..f04468f917a72 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelUpdateInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelUpdateInner.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.SensitivityLabelUpdateKind; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A sensitivity label update operation. */ @Fluent public final class SensitivityLabelUpdateInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SensitivityLabelUpdateInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelUpdatePropertiesInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelUpdatePropertiesInner.java index f5e8226c45a8b..fa9569ecbc8eb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelUpdatePropertiesInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SensitivityLabelUpdatePropertiesInner.java @@ -7,14 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.SensitivityLabelUpdateKind; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Properties of an operation executed on a sensitivity label. */ @Fluent public final class SensitivityLabelUpdatePropertiesInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SensitivityLabelUpdatePropertiesInner.class); - /* * The op property. */ @@ -152,25 +149,25 @@ public SensitivityLabelUpdatePropertiesInner withSensitivityLabel(SensitivityLab */ public void validate() { if (op() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property op in model SensitivityLabelUpdatePropertiesInner")); } if (schema() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property schema in model SensitivityLabelUpdatePropertiesInner")); } if (table() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property table in model SensitivityLabelUpdatePropertiesInner")); } if (column() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property column in model SensitivityLabelUpdatePropertiesInner")); @@ -179,4 +176,6 @@ public void validate() { sensitivityLabel().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(SensitivityLabelUpdatePropertiesInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyInner.java index 7ccf11ecb4150..8308e6adb5005 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyInner.java @@ -6,9 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.UUID; @@ -16,8 +14,6 @@ /** A server blob auditing policy. */ @Fluent public final class ServerBlobAuditingPolicyInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerBlobAuditingPolicyInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyProperties.java index 64bc6ea5ce143..2c6ba0dd1fda5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyProperties.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.UUID; @@ -15,8 +14,6 @@ /** Properties of a server blob auditing policy. */ @Fluent public final class ServerBlobAuditingPolicyProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerBlobAuditingPolicyProperties.class); - /* * Specifies the state of the policy. If state is Enabled, storageEndpoint * or isAzureMonitorTargetEnabled are required. @@ -554,10 +551,12 @@ public ServerBlobAuditingPolicyProperties withIsDevopsAuditEnabled(Boolean isDev */ public void validate() { if (state() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property state in model ServerBlobAuditingPolicyProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(ServerBlobAuditingPolicyProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyInner.java index 96e33852e7edb..4933556ec6d12 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyInner.java @@ -6,9 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; @@ -16,8 +14,6 @@ /** Workspace managed Sql server security alert policy. */ @Fluent public final class ServerSecurityAlertPolicyInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerSecurityAlertPolicyInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyProperties.java index 4c8b142bd087d..a431ebe807ee9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyProperties.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; @@ -15,8 +14,6 @@ /** Properties of a security alert policy. */ @Fluent public final class ServerSecurityAlertPolicyProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerSecurityAlertPolicyProperties.class); - /* * Specifies the state of the policy, whether it is enabled or disabled or * a policy has not been applied yet on the specific server @@ -235,10 +232,12 @@ public OffsetDateTime creationTime() { */ public void validate() { if (state() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property state in model ServerSecurityAlertPolicyProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(ServerSecurityAlertPolicyProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerUsageInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerUsageInner.java index b0b54048526c6..327129a3aeb55 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerUsageInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerUsageInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Represents server metrics. */ @Immutable public final class ServerUsageInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerUsageInner.class); - /* * Name of the server usage metric. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentInner.java index ae58a47bd82be..569e55bc12051 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentInner.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A server vulnerability assessment. */ @Fluent public final class ServerVulnerabilityAssessmentInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerVulnerabilityAssessmentInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentProperties.java index 755d52ce37f51..439874597ba0e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentProperties.java @@ -7,14 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Properties of a server Vulnerability Assessment. */ @Fluent public final class ServerVulnerabilityAssessmentProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerVulnerabilityAssessmentProperties.class); - /* * A blob storage container path to hold the scan results (e.g. * https://myStorage.blob.core.windows.net/VaScans/). @@ -141,7 +138,7 @@ public ServerVulnerabilityAssessmentProperties withRecurringScans( */ public void validate() { if (storageContainerPath() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property storageContainerPath in model" @@ -151,4 +148,6 @@ public void validate() { recurringScans().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(ServerVulnerabilityAssessmentProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SkuDescriptionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SkuDescriptionInner.java index 353578fdee7d3..7313144a05e3c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SkuDescriptionInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SkuDescriptionInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationInfo.java index 8de42f4393736..1e183a9085296 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationInfo.java @@ -6,7 +6,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; @@ -16,8 +15,6 @@ /** Information about a SparkConfiguration created at the workspace level. SparkConfiguration Artifact information. */ @Fluent public final class SparkConfigurationInfo { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SparkConfigurationInfo.class); - /* * Description about the SparkConfiguration. */ @@ -182,9 +179,11 @@ public SparkConfigurationInfo withCreated(OffsetDateTime created) { */ public void validate() { if (configs() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property configs in model SparkConfigurationInfo")); } } + + private static final ClientLogger LOGGER = new ClientLogger(SparkConfigurationInfo.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationResourceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationResourceInner.java index c3f293010c79f..64f022108b754 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationResourceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationResourceInner.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.EntityResource; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; @@ -16,8 +15,6 @@ /** SparkConfiguration response details. */ @Fluent public final class SparkConfigurationResourceInner extends EntityResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SparkConfigurationResourceInner.class); - /* * Information about a SparkConfiguration created at the workspace level. * SparkConfiguration properties. @@ -182,7 +179,7 @@ public SparkConfigurationResourceInner withCreated(OffsetDateTime created) { public void validate() { super.validate(); if (innerProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property innerProperties in model SparkConfigurationResourceInner")); @@ -190,4 +187,6 @@ public void validate() { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(SparkConfigurationResourceInner.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyInner.java index bd349f0d62b9d..8d4e493e1c389 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyInner.java @@ -6,9 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.UUID; @@ -16,8 +14,6 @@ /** A Sql pool blob auditing policy. */ @Fluent public final class SqlPoolBlobAuditingPolicyInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolBlobAuditingPolicyInner.class); - /* * Resource kind. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyProperties.java index 5127f240dfab3..e57fb8f262084 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyProperties.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.UUID; @@ -15,8 +14,6 @@ /** Properties of a Sql pool blob auditing policy. */ @Fluent public final class SqlPoolBlobAuditingPolicyProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolBlobAuditingPolicyProperties.class); - /* * Specifies the state of the policy. If state is Enabled, storageEndpoint * or isAzureMonitorTargetEnabled are required. @@ -437,10 +434,12 @@ public SqlPoolBlobAuditingPolicyProperties withIsAzureMonitorTargetEnabled(Boole */ public void validate() { if (state() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property state in model SqlPoolBlobAuditingPolicyProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolBlobAuditingPolicyProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnInner.java index ca2844fadaa4a..9a8c3a0ff90ce 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnInner.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.ColumnDataType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A Sql pool column resource. */ @Fluent public final class SqlPoolColumnInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolColumnInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnProperties.java index 5076a4301e398..bb29a4ac65248 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.ColumnDataType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Sql pool column properties. */ @Fluent public final class SqlPoolColumnProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolColumnProperties.class); - /* * The column data type. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyInner.java index eed3ab69f365a..2d18dd1776620 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyInner.java @@ -6,15 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A Sql pool connection policy. */ @Fluent public final class SqlPoolConnectionPolicyInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolConnectionPolicyInner.class); - /* * Resource kind. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyProperties.java index 961ea29033492..adccd205fcb10 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Properties of a Sql pool connection policy. */ @Fluent public final class SqlPoolConnectionPolicyProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolConnectionPolicyProperties.class); - /* * The state of security access. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolInner.java index 3235f3d11e492..6020c608c68a3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolInner.java @@ -6,11 +6,9 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.CreateMode; import com.azure.resourcemanager.synapse.models.Sku; import com.azure.resourcemanager.synapse.models.StorageAccountType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.Map; @@ -18,8 +16,6 @@ /** SQL pool A SQL Analytics pool. */ @Fluent public final class SqlPoolInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolInner.class); - /* * Sku SQL pool SKU */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationInner.java index 5272b22a0aafb..00bf87d256d7a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationInner.java @@ -6,17 +6,13 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.ManagementOperationState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** A Sql pool operation. */ @Fluent public final class SqlPoolOperationInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolOperationInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationProperties.java index c0d874e0b45dd..efacc344b0a50 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationProperties.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.ManagementOperationState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The properties of a Sql pool operation. */ @Immutable public final class SqlPoolOperationProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolOperationProperties.class); - /* * The name of the Sql pool the operation is being performed on. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolResourceProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolResourceProperties.java index bcc3b7612a890..d56436f5aacaa 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolResourceProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolResourceProperties.java @@ -5,18 +5,14 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.CreateMode; import com.azure.resourcemanager.synapse.models.StorageAccountType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** SQL pool properties Properties of a SQL Analytics pool. */ @Fluent public final class SqlPoolResourceProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolResourceProperties.class); - /* * Maximum size in bytes */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSchemaInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSchemaInner.java index 2aae9838e5a62..e08babd262568 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSchemaInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSchemaInner.java @@ -6,14 +6,10 @@ import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; /** A Sql pool schema resource. */ @Immutable public final class SqlPoolSchemaInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolSchemaInner.class); - /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSecurityAlertPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSecurityAlertPolicyInner.java index 8d65a714d10cf..27ba47a5c36cc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSecurityAlertPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSecurityAlertPolicyInner.java @@ -6,9 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; @@ -16,8 +14,6 @@ /** A Sql pool security alert policy. */ @Fluent public final class SqlPoolSecurityAlertPolicyInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolSecurityAlertPolicyInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolTableInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolTableInner.java index 721deb7f557de..ac3f3558691db 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolTableInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolTableInner.java @@ -6,14 +6,10 @@ import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; /** A Sql pool table resource. */ @Immutable public final class SqlPoolTableInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolTableInner.class); - /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolUsageInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolUsageInner.java index 3479ef2dbe173..68f9c6d8d3ec0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolUsageInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolUsageInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The Sql pool usages. */ @Immutable public final class SqlPoolUsageInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolUsageInner.class); - /* * The name of the usage metric. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentInner.java index a8f7182c754b1..73d2490dbe55d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentInner.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A Sql pool vulnerability assessment. */ @Fluent public final class SqlPoolVulnerabilityAssessmentInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolVulnerabilityAssessmentInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentProperties.java index cdc9645d9a6b8..a61c2149895f5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Properties of a Sql pool Vulnerability Assessment. */ @Fluent public final class SqlPoolVulnerabilityAssessmentProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolVulnerabilityAssessmentProperties.class); - /* * A blob storage container path to hold the scan results (e.g. * https://myStorage.blob.core.windows.net/VaScans/). It is required if diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineInner.java index f718b3e0deeb6..056d5989a40d0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineInner.java @@ -6,18 +6,13 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.SqlPoolVulnerabilityAssessmentRuleBaselineItem; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A Sql pool vulnerability assessment rule baseline. */ @Fluent public final class SqlPoolVulnerabilityAssessmentRuleBaselineInner extends ProxyResource { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(SqlPoolVulnerabilityAssessmentRuleBaselineInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineProperties.java index 7f95a402c3322..2c1145b8dd93c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineProperties.java @@ -7,16 +7,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.SqlPoolVulnerabilityAssessmentRuleBaselineItem; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Properties of a Sql pool vulnerability assessment rule baseline. */ @Fluent public final class SqlPoolVulnerabilityAssessmentRuleBaselineProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(SqlPoolVulnerabilityAssessmentRuleBaselineProperties.class); - /* * The rule baseline result */ @@ -51,7 +47,7 @@ public SqlPoolVulnerabilityAssessmentRuleBaselineProperties withBaselineResults( */ public void validate() { if (baselineResults() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property baselineResults in model" @@ -60,4 +56,7 @@ public void validate() { baselineResults().forEach(e -> e.validate()); } } + + private static final ClientLogger LOGGER = + new ClientLogger(SqlPoolVulnerabilityAssessmentRuleBaselineProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScanExportProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScanExportProperties.java index 9d93bc33bbc6b..cc4e2d17d50dd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScanExportProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScanExportProperties.java @@ -5,16 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Properties of the export operation's result. */ @Immutable public final class SqlPoolVulnerabilityAssessmentScanExportProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(SqlPoolVulnerabilityAssessmentScanExportProperties.class); - /* * Location of the exported report (e.g. * https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScansExportInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScansExportInner.java index d6cf958ae3052..1339b07eb9432 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScansExportInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScansExportInner.java @@ -6,16 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A Sql pool Vulnerability Assessment scan export resource. */ @Fluent public final class SqlPoolVulnerabilityAssessmentScansExportInner extends ProxyResource { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(SqlPoolVulnerabilityAssessmentScansExportInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataListResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataListResponseInner.java index f083625e6bbff..08b42d1a7172f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataListResponseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataListResponseInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.SsisObjectMetadata; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of SSIS object metadata. */ @Fluent public final class SsisObjectMetadataListResponseInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SsisObjectMetadataListResponseInner.class); - /* * List of SSIS object metadata. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataStatusResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataStatusResponseInner.java index 3e888f71eff27..e11cd6341635a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataStatusResponseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataStatusResponseInner.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** The status of the operation. */ @Fluent public final class SsisObjectMetadataStatusResponseInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SsisObjectMetadataStatusResponseInner.class); - /* * The status of the operation. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionInner.java index 7c42ac2fb9a76..d78fbfe924901 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionInner.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionStatus; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Represents a Sql pool transparent data encryption configuration. */ @Fluent public final class TransparentDataEncryptionInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TransparentDataEncryptionInner.class); - /* * Resource location. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionProperties.java index ab4b500c3808f..3398a8c10a85a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionStatus; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Represents the properties of a database transparent data encryption. */ @Fluent public final class TransparentDataEncryptionProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TransparentDataEncryptionProperties.class); - /* * The status of the database transparent data encryption. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordInner.java index dc369bb4c5883..6769331c5f9dc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordInner.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.synapse.models.VulnerabilityAssessmentScanError; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentScanState; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentScanTriggerType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; @@ -18,8 +16,6 @@ /** A vulnerability assessment scan record. */ @Fluent public final class VulnerabilityAssessmentScanRecordInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VulnerabilityAssessmentScanRecordInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordProperties.java index 4b50b2e55a500..eea90f570e027 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordProperties.java @@ -5,11 +5,9 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentScanError; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentScanState; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentScanTriggerType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; @@ -17,8 +15,6 @@ /** Properties of a vulnerability assessment scan record. */ @Immutable public final class VulnerabilityAssessmentScanRecordProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VulnerabilityAssessmentScanRecordProperties.class); - /* * The scan ID. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierInner.java index cee72274c8700..4f673e186565b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierInner.java @@ -6,15 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Workload classifier operations for a data warehouse. */ @Fluent public final class WorkloadClassifierInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkloadClassifierInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierProperties.java index b35d61e90bb88..967abe7092950 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierProperties.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; /** Workload classifier definition. For more information look at sys.workload_management_workload_classifiers (DMV). */ @Fluent public final class WorkloadClassifierProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkloadClassifierProperties.class); - /* * The workload classifier member name. */ @@ -177,10 +174,12 @@ public WorkloadClassifierProperties withImportance(String importance) { */ public void validate() { if (memberName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property memberName in model WorkloadClassifierProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(WorkloadClassifierProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupInner.java index 172b3da9a698c..63a7c499aa9fc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupInner.java @@ -6,15 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Workload group operations for a sql pool. */ @Fluent public final class WorkloadGroupInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkloadGroupInner.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupProperties.java index b33007c64b077..c797368a52f48 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Workload group definition. For more information look at sys.workload_management_workload_groups (DMV). */ @Fluent public final class WorkloadGroupProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkloadGroupProperties.class); - /* * The workload group minimum percentage resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceAadAdminInfoInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceAadAdminInfoInner.java index 286e33c0e6b9e..aa8b4490c5068 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceAadAdminInfoInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceAadAdminInfoInner.java @@ -6,15 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Workspace active directory administrator. */ @Fluent public final class WorkspaceAadAdminInfoInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceAadAdminInfoInner.class); - /* * Workspace active directory administrator properties */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceInner.java index 0c929e362b955..1520b38ba602d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceInner.java @@ -6,7 +6,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.CspWorkspaceAdminProperties; import com.azure.resourcemanager.synapse.models.DataLakeStorageAccountDetails; import com.azure.resourcemanager.synapse.models.EncryptionDetails; @@ -16,7 +15,6 @@ import com.azure.resourcemanager.synapse.models.VirtualNetworkProfile; import com.azure.resourcemanager.synapse.models.WorkspacePublicNetworkAccess; import com.azure.resourcemanager.synapse.models.WorkspaceRepositoryConfiguration; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; @@ -25,8 +23,6 @@ /** A workspace. */ @Fluent public final class WorkspaceInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceInner.class); - /* * Workspace resource properties */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspacePatchProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspacePatchProperties.java index 382b407743eff..1899e5bd4c72d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspacePatchProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspacePatchProperties.java @@ -5,20 +5,16 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.EncryptionDetails; import com.azure.resourcemanager.synapse.models.ManagedVirtualNetworkSettings; import com.azure.resourcemanager.synapse.models.PurviewConfiguration; import com.azure.resourcemanager.synapse.models.WorkspacePublicNetworkAccess; import com.azure.resourcemanager.synapse.models.WorkspaceRepositoryConfiguration; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Workspace patch properties. */ @Fluent public final class WorkspacePatchProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspacePatchProperties.class); - /* * SQL administrator login password */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceProperties.java index 881b9a1a3535b..5d3f7d1a2ce12 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceProperties.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.models.CspWorkspaceAdminProperties; import com.azure.resourcemanager.synapse.models.DataLakeStorageAccountDetails; import com.azure.resourcemanager.synapse.models.EncryptionDetails; @@ -14,7 +13,6 @@ import com.azure.resourcemanager.synapse.models.VirtualNetworkProfile; import com.azure.resourcemanager.synapse.models.WorkspacePublicNetworkAccess; import com.azure.resourcemanager.synapse.models.WorkspaceRepositoryConfiguration; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -24,8 +22,6 @@ /** Workspace properties. */ @Fluent public final class WorkspaceProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceProperties.class); - /* * Workspace default data lake storage account details */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsClientImpl.java index 82c8d6f2470a9..e374b99697798 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsClientImpl.java @@ -28,7 +28,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.synapse.fluent.AzureADOnlyAuthenticationsClient; @@ -41,8 +40,6 @@ /** An instance of this class provides access to all the operations defined in AzureADOnlyAuthenticationsClient. */ public final class AzureADOnlyAuthenticationsClientImpl implements AzureADOnlyAuthenticationsClient { - private final ClientLogger logger = new ClientLogger(AzureADOnlyAuthenticationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final AzureADOnlyAuthenticationsService service; @@ -459,8 +456,7 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Active Directory Only Authentication Info along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link PollerFlux} for polling of azure Active Directory Only Authentication Info. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, AzureADOnlyAuthenticationInner> beginCreateAsync( @@ -492,8 +488,7 @@ private PollerFlux, AzureADOnlyAuthen * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Active Directory Only Authentication Info along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link PollerFlux} for polling of azure Active Directory Only Authentication Info. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, AzureADOnlyAuthenticationInner> beginCreateAsync( @@ -530,8 +525,7 @@ private PollerFlux, AzureADOnlyAuthen * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Active Directory Only Authentication Info along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of azure Active Directory Only Authentication Info. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AzureADOnlyAuthenticationInner> beginCreate( @@ -555,8 +549,7 @@ public SyncPoller, AzureADOnlyAuthent * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return azure Active Directory Only Authentication Info along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of azure Active Directory Only Authentication Info. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AzureADOnlyAuthenticationInner> beginCreate( @@ -792,7 +785,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace. + * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { @@ -809,7 +803,8 @@ private PagedFlux listAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace. + * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -827,7 +822,8 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace. + * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName) { @@ -843,7 +839,8 @@ public PagedIterable list(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace. + * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsImpl.java index ef9bf78fb3061..a5fcd18445bb7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsImpl.java @@ -14,10 +14,9 @@ import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthentication; import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthentications; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class AzureADOnlyAuthenticationsImpl implements AzureADOnlyAuthentications { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureADOnlyAuthenticationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(AzureADOnlyAuthenticationsImpl.class); private final AzureADOnlyAuthenticationsClient innerClient; @@ -76,7 +75,7 @@ public PagedIterable list( public AzureADOnlyAuthentication getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -84,7 +83,7 @@ public AzureADOnlyAuthentication getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); @@ -92,7 +91,7 @@ public AzureADOnlyAuthentication getById(String id) { AzureADOnlyAuthenticationName azureADOnlyAuthenticationName = AzureADOnlyAuthenticationName.fromString(Utils.getValueFromIdByName(id, "azureADOnlyAuthentications")); if (azureADOnlyAuthenticationName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -108,7 +107,7 @@ public AzureADOnlyAuthentication 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 @@ -116,7 +115,7 @@ public Response getByIdWithResponse(String id, Contex } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); @@ -124,7 +123,7 @@ public Response getByIdWithResponse(String id, Contex AzureADOnlyAuthenticationName azureADOnlyAuthenticationName = AzureADOnlyAuthenticationName.fromString(Utils.getValueFromIdByName(id, "azureADOnlyAuthentications")); if (azureADOnlyAuthenticationName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsClientImpl.java index 0920fd3d39898..e31ab920169a6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsClientImpl.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.synapse.fluent.BigDataPoolsClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in BigDataPoolsClient. */ public final class BigDataPoolsClientImpl implements BigDataPoolsClient { - private final ClientLogger logger = new ClientLogger(BigDataPoolsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final BigDataPoolsService service; @@ -682,7 +679,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BigDataPoolResourceInfoInner> beginCreateOrUpdateAsync( @@ -715,7 +712,7 @@ private PollerFlux, BigDataPoolResource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BigDataPoolResourceInfoInner> beginCreateOrUpdateAsync( @@ -750,7 +747,7 @@ private PollerFlux, BigDataPoolResource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BigDataPoolResourceInfoInner> beginCreateOrUpdate( @@ -775,7 +772,7 @@ public SyncPoller, BigDataPoolResourceI * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return big Data pool along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BigDataPoolResourceInfoInner> beginCreateOrUpdate( @@ -1055,7 +1052,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Object> beginDeleteAsync( @@ -1078,7 +1075,7 @@ private PollerFlux, Object> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Object> beginDeleteAsync( @@ -1100,7 +1097,7 @@ private PollerFlux, Object> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Object> beginDelete( @@ -1118,7 +1115,7 @@ public SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Object> beginDelete( @@ -1319,7 +1316,7 @@ private Mono> listByWorkspaceSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pools. + * @return collection of Big Data pools as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync( @@ -1338,7 +1335,7 @@ private PagedFlux listByWorkspaceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pools. + * @return collection of Big Data pools as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync( @@ -1356,7 +1353,7 @@ private PagedFlux listByWorkspaceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pools. + * @return collection of Big Data pools as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { @@ -1372,7 +1369,7 @@ public PagedIterable listByWorkspace(String resour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pools. + * @return collection of Big Data pools as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsImpl.java index 2474c3a4ff4aa..1d9d95af90430 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.BigDataPoolResourceInfoInner; import com.azure.resourcemanager.synapse.models.BigDataPoolResourceInfo; import com.azure.resourcemanager.synapse.models.BigDataPools; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class BigDataPoolsImpl implements BigDataPools { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BigDataPoolsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(BigDataPoolsImpl.class); private final BigDataPoolsClient innerClient; @@ -77,7 +76,7 @@ public PagedIterable listByWorkspace( public BigDataPoolResourceInfo getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -85,14 +84,14 @@ public BigDataPoolResourceInfo getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String bigDataPoolName = Utils.getValueFromIdByName(id, "bigDataPools"); if (bigDataPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'bigDataPools'.", id))); @@ -103,7 +102,7 @@ public BigDataPoolResourceInfo getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -111,14 +110,14 @@ public Response getByIdWithResponse(String id, Context } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String bigDataPoolName = Utils.getValueFromIdByName(id, "bigDataPools"); if (bigDataPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'bigDataPools'.", id))); @@ -129,7 +128,7 @@ public Response getByIdWithResponse(String id, Context public Object deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -137,14 +136,14 @@ public Object deleteById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String bigDataPoolName = Utils.getValueFromIdByName(id, "bigDataPools"); if (bigDataPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'bigDataPools'.", id))); @@ -155,7 +154,7 @@ public Object deleteById(String id) { public Object deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -163,14 +162,14 @@ public Object deleteByIdWithResponse(String id, Context context) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String bigDataPoolName = Utils.getValueFromIdByName(id, "bigDataPools"); if (bigDataPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'bigDataPools'.", id))); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesClientImpl.java index 006d7d954a68b..67255096f0bf6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesClientImpl.java @@ -23,15 +23,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.synapse.fluent.DataMaskingPoliciesClient; import com.azure.resourcemanager.synapse.fluent.models.DataMaskingPolicyInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in DataMaskingPoliciesClient. */ public final class DataMaskingPoliciesClientImpl implements DataMaskingPoliciesClient { - private final ClientLogger logger = new ClientLogger(DataMaskingPoliciesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final DataMaskingPoliciesService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesImpl.java index bca3b9b1b58a9..55552ca584127 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.synapse.fluent.models.DataMaskingPolicyInner; import com.azure.resourcemanager.synapse.models.DataMaskingPolicies; import com.azure.resourcemanager.synapse.models.DataMaskingPolicy; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class DataMaskingPoliciesImpl implements DataMaskingPolicies { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataMaskingPoliciesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(DataMaskingPoliciesImpl.class); private final DataMaskingPoliciesClient innerClient; @@ -54,7 +53,7 @@ public Response getWithResponse( public DataMaskingPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -62,14 +61,14 @@ public DataMaskingPolicy getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -80,7 +79,7 @@ public DataMaskingPolicy 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 @@ -88,14 +87,14 @@ public Response getByIdWithResponse(String id, Context contex } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesClientImpl.java index ae048abe76937..831ffb4b36980 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesClientImpl.java @@ -27,7 +27,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.synapse.fluent.DataMaskingRulesClient; import com.azure.resourcemanager.synapse.fluent.models.DataMaskingRuleInner; import com.azure.resourcemanager.synapse.models.DataMaskingRuleListResult; @@ -35,8 +34,6 @@ /** An instance of this class provides access to all the operations defined in DataMaskingRulesClient. */ public final class DataMaskingRulesClientImpl implements DataMaskingRulesClient { - private final ClientLogger logger = new ClientLogger(DataMaskingRulesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final DataMaskingRulesService service; @@ -673,7 +670,7 @@ private Mono> listBySqlPoolSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool data masking rules. + * @return a list of Sql pool data masking rules as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listBySqlPoolAsync( @@ -691,7 +688,7 @@ private PagedFlux listBySqlPoolAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool data masking rules. + * @return a list of Sql pool data masking rules as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listBySqlPoolAsync( @@ -709,7 +706,7 @@ private PagedFlux listBySqlPoolAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool data masking rules. + * @return a list of Sql pool data masking rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listBySqlPool( @@ -727,7 +724,7 @@ public PagedIterable listBySqlPool( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool data masking rules. + * @return a list of Sql pool data masking rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listBySqlPool( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesImpl.java index 987b80c5a8548..d2af319f9d702 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.DataMaskingRuleInner; import com.azure.resourcemanager.synapse.models.DataMaskingRule; import com.azure.resourcemanager.synapse.models.DataMaskingRules; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class DataMaskingRulesImpl implements DataMaskingRules { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataMaskingRulesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(DataMaskingRulesImpl.class); private final DataMaskingRulesClient innerClient; @@ -77,7 +76,7 @@ public PagedIterable listBySqlPool( public DataMaskingRule getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -85,21 +84,21 @@ public DataMaskingRule getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } String dataMaskingRuleName = Utils.getValueFromIdByName(id, "rules"); if (dataMaskingRuleName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); @@ -112,7 +111,7 @@ public DataMaskingRule 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 @@ -120,21 +119,21 @@ public Response getByIdWithResponse(String id, Context context) } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } String dataMaskingRuleName = Utils.getValueFromIdByName(id, "rules"); if (dataMaskingRuleName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DedicatedSQLminimalTlsSettingsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DedicatedSQLminimalTlsSettingsImpl.java new file mode 100644 index 0000000000000..af49d65b0e07d --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DedicatedSQLminimalTlsSettingsImpl.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.implementation; + +import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; +import com.azure.resourcemanager.synapse.models.DedicatedSQLminimalTlsSettings; + +public final class DedicatedSQLminimalTlsSettingsImpl implements DedicatedSQLminimalTlsSettings { + private DedicatedSQLminimalTlsSettingsInner innerObject; + + private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; + + DedicatedSQLminimalTlsSettingsImpl( + DedicatedSQLminimalTlsSettingsInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public String minimalTlsVersion() { + return this.innerModel().minimalTlsVersion(); + } + + public DedicatedSQLminimalTlsSettingsInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.synapse.SynapseManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesClientImpl.java index 7fc8565dbdf04..bc6bf5ed2688f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesClientImpl.java @@ -27,7 +27,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.synapse.fluent.ExtendedSqlPoolBlobAuditingPoliciesClient; import com.azure.resourcemanager.synapse.fluent.models.ExtendedSqlPoolBlobAuditingPolicyInner; import com.azure.resourcemanager.synapse.models.ExtendedSqlPoolBlobAuditingPolicyListResult; @@ -37,8 +36,6 @@ * An instance of this class provides access to all the operations defined in ExtendedSqlPoolBlobAuditingPoliciesClient. */ public final class ExtendedSqlPoolBlobAuditingPoliciesClientImpl implements ExtendedSqlPoolBlobAuditingPoliciesClient { - private final ClientLogger logger = new ClientLogger(ExtendedSqlPoolBlobAuditingPoliciesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final ExtendedSqlPoolBlobAuditingPoliciesService service; @@ -643,7 +640,7 @@ private Mono> listBySqlPoo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of sql pool extended auditing settings. + * @return a list of sql pool extended auditing settings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listBySqlPoolAsync( @@ -663,7 +660,7 @@ private PagedFlux listBySqlPoolAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of sql pool extended auditing settings. + * @return a list of sql pool extended auditing settings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listBySqlPoolAsync( @@ -682,7 +679,7 @@ private PagedFlux listBySqlPoolAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of sql pool extended auditing settings. + * @return a list of sql pool extended auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listBySqlPool( @@ -700,7 +697,7 @@ public PagedIterable listBySqlPool( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of sql pool extended auditing settings. + * @return a list of sql pool extended auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listBySqlPool( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesImpl.java index 5c8fabf75444a..b9dfaa522a8b3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.ExtendedSqlPoolBlobAuditingPolicyInner; import com.azure.resourcemanager.synapse.models.ExtendedSqlPoolBlobAuditingPolicies; import com.azure.resourcemanager.synapse.models.ExtendedSqlPoolBlobAuditingPolicy; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class ExtendedSqlPoolBlobAuditingPoliciesImpl implements ExtendedSqlPoolBlobAuditingPolicies { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ExtendedSqlPoolBlobAuditingPoliciesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(ExtendedSqlPoolBlobAuditingPoliciesImpl.class); private final ExtendedSqlPoolBlobAuditingPoliciesClient innerClient; @@ -71,7 +70,7 @@ public PagedIterable listBySqlPool( public ExtendedSqlPoolBlobAuditingPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -79,14 +78,14 @@ public ExtendedSqlPoolBlobAuditingPolicy getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -97,7 +96,7 @@ public ExtendedSqlPoolBlobAuditingPolicy 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 @@ -105,14 +104,14 @@ public Response getByIdWithResponse(String id } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsClientImpl.java index d156d4f73675d..1edbdb1abd5b0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsClientImpl.java @@ -22,7 +22,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.IntegrationRuntimeAuthKeysOperationsClient; import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeAuthKeysInner; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeRegenerateKeyParameters; @@ -34,8 +33,6 @@ */ public final class IntegrationRuntimeAuthKeysOperationsClientImpl implements IntegrationRuntimeAuthKeysOperationsClient { - private final ClientLogger logger = new ClientLogger(IntegrationRuntimeAuthKeysOperationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationRuntimeAuthKeysOperationsService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsImpl.java index d4ea7fbe8dc36..09155b4df915f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.models.IntegrationRuntimeAuthKeys; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeAuthKeysOperations; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeRegenerateKeyParameters; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationRuntimeAuthKeysOperationsImpl implements IntegrationRuntimeAuthKeysOperations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeAuthKeysOperationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeAuthKeysOperationsImpl.class); private final IntegrationRuntimeAuthKeysOperationsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosClientImpl.java index 3ed7af0f8d9b1..2afed0ba6fece 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosClientImpl.java @@ -21,7 +21,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.synapse.fluent.IntegrationRuntimeConnectionInfosClient; import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeConnectionInfoInner; import reactor.core.publisher.Mono; @@ -30,8 +29,6 @@ * An instance of this class provides access to all the operations defined in IntegrationRuntimeConnectionInfosClient. */ public final class IntegrationRuntimeConnectionInfosClientImpl implements IntegrationRuntimeConnectionInfosClient { - private final ClientLogger logger = new ClientLogger(IntegrationRuntimeConnectionInfosClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationRuntimeConnectionInfosService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosImpl.java index 9bc75a3b5acec..c8e843a73d6d1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeConnectionInfoInner; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeConnectionInfo; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeConnectionInfos; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationRuntimeConnectionInfosImpl implements IntegrationRuntimeConnectionInfos { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeConnectionInfosImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeConnectionInfosImpl.class); private final IntegrationRuntimeConnectionInfosClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsClientImpl.java index 360ba8d4c2411..582c6dc14b062 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsClientImpl.java @@ -21,14 +21,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.synapse.fluent.IntegrationRuntimeCredentialsClient; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in IntegrationRuntimeCredentialsClient. */ public final class IntegrationRuntimeCredentialsClientImpl implements IntegrationRuntimeCredentialsClient { - private final ClientLogger logger = new ClientLogger(IntegrationRuntimeCredentialsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationRuntimeCredentialsService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsImpl.java index 60aabf958d5af..5c2d515ed86e6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsImpl.java @@ -9,10 +9,9 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.IntegrationRuntimeCredentialsClient; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeCredentials; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationRuntimeCredentialsImpl implements IntegrationRuntimeCredentials { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeCredentialsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeCredentialsImpl.class); private final IntegrationRuntimeCredentialsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasClientImpl.java index 871e587a0aef3..0bd3f8de55a97 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasClientImpl.java @@ -21,7 +21,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.synapse.fluent.IntegrationRuntimeMonitoringDatasClient; import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeMonitoringDataInner; import reactor.core.publisher.Mono; @@ -30,8 +29,6 @@ * An instance of this class provides access to all the operations defined in IntegrationRuntimeMonitoringDatasClient. */ public final class IntegrationRuntimeMonitoringDatasClientImpl implements IntegrationRuntimeMonitoringDatasClient { - private final ClientLogger logger = new ClientLogger(IntegrationRuntimeMonitoringDatasClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationRuntimeMonitoringDatasService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasImpl.java index a0cc1bf25190b..1d2ffd07d4d5f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeMonitoringDataInner; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeMonitoringData; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeMonitoringDatas; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationRuntimeMonitoringDatasImpl implements IntegrationRuntimeMonitoringDatas { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeMonitoringDatasImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeMonitoringDatasImpl.class); private final IntegrationRuntimeMonitoringDatasClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsClientImpl.java index e6129cdac8ab2..4a89bf8d5a3dd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsClientImpl.java @@ -21,7 +21,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.synapse.fluent.IntegrationRuntimeNodeIpAddressOperationsClient; import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeNodeIpAddressInner; import reactor.core.publisher.Mono; @@ -32,8 +31,6 @@ */ public final class IntegrationRuntimeNodeIpAddressOperationsClientImpl implements IntegrationRuntimeNodeIpAddressOperationsClient { - private final ClientLogger logger = new ClientLogger(IntegrationRuntimeNodeIpAddressOperationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationRuntimeNodeIpAddressOperationsService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsImpl.java index 04cd4630d9e9c..514c615c81039 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsImpl.java @@ -12,11 +12,9 @@ import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeNodeIpAddressInner; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeNodeIpAddress; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeNodeIpAddressOperations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationRuntimeNodeIpAddressOperationsImpl implements IntegrationRuntimeNodeIpAddressOperations { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(IntegrationRuntimeNodeIpAddressOperationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeNodeIpAddressOperationsImpl.class); private final IntegrationRuntimeNodeIpAddressOperationsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesClientImpl.java index 395a723639ca4..e1fbd2dc7cb1a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesClientImpl.java @@ -24,7 +24,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.IntegrationRuntimeNodesClient; import com.azure.resourcemanager.synapse.fluent.models.SelfHostedIntegrationRuntimeNodeInner; import com.azure.resourcemanager.synapse.models.UpdateIntegrationRuntimeNodeRequest; @@ -32,8 +31,6 @@ /** An instance of this class provides access to all the operations defined in IntegrationRuntimeNodesClient. */ public final class IntegrationRuntimeNodesClientImpl implements IntegrationRuntimeNodesClient { - private final ClientLogger logger = new ClientLogger(IntegrationRuntimeNodesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationRuntimeNodesService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesImpl.java index 833b7c6c1d0cc..ef9c419d7476d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.models.IntegrationRuntimeNodes; import com.azure.resourcemanager.synapse.models.SelfHostedIntegrationRuntimeNode; import com.azure.resourcemanager.synapse.models.UpdateIntegrationRuntimeNodeRequest; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationRuntimeNodesImpl implements IntegrationRuntimeNodes { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeNodesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeNodesImpl.class); private final IntegrationRuntimeNodesClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java index 1e878e53a864b..4a8b81291c9a0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java @@ -23,7 +23,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.synapse.fluent.IntegrationRuntimeObjectMetadatasClient; @@ -38,8 +37,6 @@ * An instance of this class provides access to all the operations defined in IntegrationRuntimeObjectMetadatasClient. */ public final class IntegrationRuntimeObjectMetadatasClientImpl implements IntegrationRuntimeObjectMetadatasClient { - private final ClientLogger logger = new ClientLogger(IntegrationRuntimeObjectMetadatasClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationRuntimeObjectMetadatasService service; @@ -448,7 +445,7 @@ private Mono>> refreshWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of the status of the operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SsisObjectMetadataStatusResponseInner> @@ -475,7 +472,7 @@ private Mono>> refreshWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of the status of the operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SsisObjectMetadataStatusResponseInner> @@ -503,7 +500,7 @@ private Mono>> refreshWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the status of the operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SsisObjectMetadataStatusResponseInner> @@ -521,7 +518,7 @@ private Mono>> refreshWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the status of the operation along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the status of the operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SsisObjectMetadataStatusResponseInner> diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasImpl.java index 8cf6ba4f2f9cc..3d725ea861a05 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasImpl.java @@ -15,10 +15,9 @@ import com.azure.resourcemanager.synapse.models.IntegrationRuntimeObjectMetadatas; import com.azure.resourcemanager.synapse.models.SsisObjectMetadataListResponse; import com.azure.resourcemanager.synapse.models.SsisObjectMetadataStatusResponse; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationRuntimeObjectMetadatasImpl implements IntegrationRuntimeObjectMetadatas { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeObjectMetadatasImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeObjectMetadatasImpl.class); private final IntegrationRuntimeObjectMetadatasClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsClientImpl.java index 85ac4ddd94975..d51a0b06ec165 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsClientImpl.java @@ -21,7 +21,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.synapse.fluent.IntegrationRuntimeStatusOperationsClient; import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStatusResponseInner; import reactor.core.publisher.Mono; @@ -30,8 +29,6 @@ * An instance of this class provides access to all the operations defined in IntegrationRuntimeStatusOperationsClient. */ public final class IntegrationRuntimeStatusOperationsClientImpl implements IntegrationRuntimeStatusOperationsClient { - private final ClientLogger logger = new ClientLogger(IntegrationRuntimeStatusOperationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationRuntimeStatusOperationsService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsImpl.java index 7db66fce1c51f..cea4ae2f687f3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStatusResponseInner; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeStatusOperations; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeStatusResponse; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationRuntimeStatusOperationsImpl implements IntegrationRuntimeStatusOperations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeStatusOperationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeStatusOperationsImpl.class); private final IntegrationRuntimeStatusOperationsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesClientImpl.java index d7081a39812dc..b0a4a25670c8d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesClientImpl.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.synapse.fluent.IntegrationRuntimesClient; @@ -46,8 +45,6 @@ /** An instance of this class provides access to all the operations defined in IntegrationRuntimesClient. */ public final class IntegrationRuntimesClientImpl implements IntegrationRuntimesClient { - private final ClientLogger logger = new ClientLogger(IntegrationRuntimesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationRuntimesService service; @@ -846,7 +843,7 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of integration runtime resource type. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationRuntimeResourceInner> beginCreateAsync( @@ -881,7 +878,7 @@ private PollerFlux, IntegrationRunti * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of integration runtime resource type. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationRuntimeResourceInner> beginCreateAsync( @@ -917,7 +914,7 @@ private PollerFlux, IntegrationRunti * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of integration runtime resource type. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationRuntimeResourceInner> beginCreate( @@ -943,7 +940,7 @@ public SyncPoller, IntegrationRuntim * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime resource type along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of integration runtime resource type. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationRuntimeResourceInner> beginCreate( @@ -1232,7 +1229,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1255,7 +1252,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1277,7 +1274,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1295,7 +1292,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1656,7 +1653,7 @@ private Mono> listByWorkspaceSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources. + * @return a list of integration runtime resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync( @@ -1675,7 +1672,7 @@ private PagedFlux listByWorkspaceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources. + * @return a list of integration runtime resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync( @@ -1693,7 +1690,7 @@ private PagedFlux listByWorkspaceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources. + * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace( @@ -1710,7 +1707,7 @@ public PagedIterable listByWorkspace( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources. + * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace( @@ -1837,7 +1834,7 @@ private Mono>> startWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of integration runtime status response. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationRuntimeStatusResponseInner> @@ -1864,7 +1861,7 @@ private Mono>> startWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of integration runtime status response. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationRuntimeStatusResponseInner> @@ -1892,7 +1889,7 @@ private Mono>> startWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of integration runtime status response. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationRuntimeStatusResponseInner> @@ -1910,7 +1907,7 @@ private Mono>> startWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of integration runtime status response. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationRuntimeStatusResponseInner> @@ -2111,7 +2108,7 @@ private Mono>> stopWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStopAsync( @@ -2134,7 +2131,7 @@ private PollerFlux, Void> beginStopAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStopAsync( @@ -2156,7 +2153,7 @@ private PollerFlux, Void> beginStopAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStop( @@ -2174,7 +2171,7 @@ public SyncPoller, Void> beginStop( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStop( @@ -2552,7 +2549,7 @@ private Mono>> enableInteractiveQueryWithResponseAsync * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginEnableInteractiveQueryAsync( @@ -2575,7 +2572,7 @@ private PollerFlux, Void> beginEnableInteractiveQueryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginEnableInteractiveQueryAsync( @@ -2597,7 +2594,7 @@ private PollerFlux, Void> beginEnableInteractiveQueryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginEnableInteractiveQuery( @@ -2616,7 +2613,7 @@ public SyncPoller, Void> beginEnableInteractiveQuery( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginEnableInteractiveQuery( @@ -2815,7 +2812,7 @@ private Mono>> disableInteractiveQueryWithResponseAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDisableInteractiveQueryAsync( @@ -2838,7 +2835,7 @@ private PollerFlux, Void> beginDisableInteractiveQueryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDisableInteractiveQueryAsync( @@ -2860,7 +2857,7 @@ private PollerFlux, Void> beginDisableInteractiveQueryAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDisableInteractiveQuery( @@ -2879,7 +2876,7 @@ public SyncPoller, Void> beginDisableInteractiveQuery( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDisableInteractiveQuery( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesImpl.java index b3d0222ee153f..a1598b2923049 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesImpl.java @@ -17,10 +17,9 @@ import com.azure.resourcemanager.synapse.models.IntegrationRuntimeResource; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeStatusResponse; import com.azure.resourcemanager.synapse.models.IntegrationRuntimes; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationRuntimesImpl implements IntegrationRuntimes { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimesImpl.class); private final IntegrationRuntimesClient innerClient; @@ -180,7 +179,7 @@ public void disableInteractiveQuery( public IntegrationRuntimeResource getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -188,14 +187,14 @@ public IntegrationRuntimeResource getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String integrationRuntimeName = Utils.getValueFromIdByName(id, "integrationRuntimes"); if (integrationRuntimeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -211,7 +210,7 @@ public IntegrationRuntimeResource getById(String id) { public Response getByIdWithResponse(String id, String ifNoneMatch, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -219,14 +218,14 @@ public Response getByIdWithResponse(String id, Strin } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String integrationRuntimeName = Utils.getValueFromIdByName(id, "integrationRuntimes"); if (integrationRuntimeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -239,7 +238,7 @@ public Response getByIdWithResponse(String id, Strin public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -247,14 +246,14 @@ public void deleteById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String integrationRuntimeName = Utils.getValueFromIdByName(id, "integrationRuntimes"); if (integrationRuntimeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -267,7 +266,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 @@ -275,14 +274,14 @@ public void deleteByIdWithResponse(String id, Context context) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String integrationRuntimeName = Utils.getValueFromIdByName(id, "integrationRuntimes"); if (integrationRuntimeName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesClientImpl.java index 27716a7d22805..910ab01570f7d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesClientImpl.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.synapse.fluent.IpFirewallRulesClient; @@ -44,8 +43,6 @@ /** An instance of this class provides access to all the operations defined in IpFirewallRulesClient. */ public final class IpFirewallRulesClientImpl implements IpFirewallRulesClient { - private final ClientLogger logger = new ClientLogger(IpFirewallRulesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IpFirewallRulesService service; @@ -283,7 +280,7 @@ private Mono> listByWorkspaceSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of IP firewall rules. + * @return list of IP firewall rules as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) { @@ -301,7 +298,7 @@ private PagedFlux listByWorkspaceAsync(String resourceG * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of IP firewall rules. + * @return list of IP firewall rules as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync( @@ -319,7 +316,7 @@ private PagedFlux listByWorkspaceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of IP firewall rules. + * @return list of IP firewall rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { @@ -335,7 +332,7 @@ public PagedIterable listByWorkspace(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of IP firewall rules. + * @return list of IP firewall rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace( @@ -479,7 +476,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of iP firewall rule. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IpFirewallRuleInfoInner> beginCreateOrUpdateAsync( @@ -507,7 +504,7 @@ private PollerFlux, IpFirewallRuleInfoInner> * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of iP firewall rule. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IpFirewallRuleInfoInner> beginCreateOrUpdateAsync( @@ -539,7 +536,7 @@ private PollerFlux, IpFirewallRuleInfoInner> * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of iP firewall rule. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IpFirewallRuleInfoInner> beginCreateOrUpdate( @@ -558,7 +555,7 @@ public SyncPoller, IpFirewallRuleInfoInner> * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return iP firewall rule along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of iP firewall rule. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IpFirewallRuleInfoInner> beginCreateOrUpdate( @@ -772,7 +769,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Object> beginDeleteAsync( @@ -794,7 +791,7 @@ private PollerFlux, Object> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Object> beginDeleteAsync( @@ -816,7 +813,7 @@ private PollerFlux, Object> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Object> beginDelete( @@ -834,7 +831,7 @@ public SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Object> beginDelete( @@ -1197,8 +1194,7 @@ private Mono>> replaceAllWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an existing operation for replacing the firewall rules along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of an existing operation for replacing the firewall rules. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux< @@ -1225,8 +1221,7 @@ private Mono>> replaceAllWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an existing operation for replacing the firewall rules along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of an existing operation for replacing the firewall rules. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux< @@ -1255,8 +1250,7 @@ private Mono>> replaceAllWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an existing operation for replacing the firewall rules along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of an existing operation for replacing the firewall rules. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller< @@ -1275,8 +1269,7 @@ private Mono>> replaceAllWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an existing operation for replacing the firewall rules along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of an existing operation for replacing the firewall rules. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller< diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesImpl.java index 743f0933a98ca..74e1a78de0272 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesImpl.java @@ -16,10 +16,9 @@ import com.azure.resourcemanager.synapse.models.IpFirewallRules; import com.azure.resourcemanager.synapse.models.ReplaceAllFirewallRulesOperationResponse; import com.azure.resourcemanager.synapse.models.ReplaceAllIpFirewallRulesRequest; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IpFirewallRulesImpl implements IpFirewallRules { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IpFirewallRulesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IpFirewallRulesImpl.class); private final IpFirewallRulesClient innerClient; @@ -101,7 +100,7 @@ public ReplaceAllFirewallRulesOperationResponse replaceAll( public IpFirewallRuleInfo getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -109,14 +108,14 @@ public IpFirewallRuleInfo getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String ruleName = Utils.getValueFromIdByName(id, "firewallRules"); if (ruleName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'firewallRules'.", id))); @@ -127,7 +126,7 @@ public IpFirewallRuleInfo 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 @@ -135,14 +134,14 @@ public Response getByIdWithResponse(String id, Context conte } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String ruleName = Utils.getValueFromIdByName(id, "firewallRules"); if (ruleName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'firewallRules'.", id))); @@ -153,7 +152,7 @@ public Response getByIdWithResponse(String id, Context conte public Object deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -161,14 +160,14 @@ public Object deleteById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String ruleName = Utils.getValueFromIdByName(id, "firewallRules"); if (ruleName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'firewallRules'.", id))); @@ -179,7 +178,7 @@ public Object deleteById(String id) { public Object deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -187,14 +186,14 @@ public Object deleteByIdWithResponse(String id, Context context) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String ruleName = Utils.getValueFromIdByName(id, "firewallRules"); if (ruleName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'firewallRules'.", id))); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysClientImpl.java index ebdd8a439a076..83220d309d88b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysClientImpl.java @@ -28,7 +28,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.synapse.fluent.KeysClient; import com.azure.resourcemanager.synapse.fluent.models.KeyInner; import com.azure.resourcemanager.synapse.models.KeyInfoListResult; @@ -36,8 +35,6 @@ /** An instance of this class provides access to all the operations defined in KeysClient. */ public final class KeysClientImpl implements KeysClient { - private final ClientLogger logger = new ClientLogger(KeysClientImpl.class); - /** The proxy service used to perform REST calls. */ private final KeysService service; @@ -258,7 +255,7 @@ private Mono> listByWorkspaceSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of keys. + * @return list of keys as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) { @@ -276,7 +273,7 @@ private PagedFlux listByWorkspaceAsync(String resourceGroupName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of keys. + * @return list of keys as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName, Context context) { @@ -293,7 +290,7 @@ private PagedFlux listByWorkspaceAsync(String resourceGroupName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of keys. + * @return list of keys as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { @@ -309,7 +306,7 @@ public PagedIterable listByWorkspace(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of keys. + * @return list of keys as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysImpl.java index a5b1e9ba86fb5..c6a60eea3016b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.KeyInner; import com.azure.resourcemanager.synapse.models.Key; import com.azure.resourcemanager.synapse.models.Keys; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class KeysImpl implements Keys { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KeysImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(KeysImpl.class); private final KeysClient innerClient; @@ -88,7 +87,7 @@ public Response deleteWithResponse( public Key getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -96,14 +95,14 @@ public Key getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String keyName = Utils.getValueFromIdByName(id, "keys"); if (keyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'keys'.", id))); @@ -114,7 +113,7 @@ public Key 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 @@ -122,14 +121,14 @@ public Response getByIdWithResponse(String id, Context context) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String keyName = Utils.getValueFromIdByName(id, "keys"); if (keyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'keys'.", id))); @@ -140,7 +139,7 @@ public Response getByIdWithResponse(String id, Context context) { public Key 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 Key deleteById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String keyName = Utils.getValueFromIdByName(id, "keys"); if (keyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'keys'.", id))); @@ -166,7 +165,7 @@ public Key deleteById(String id) { public Response deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -174,14 +173,14 @@ public Response deleteByIdWithResponse(String id, Context context) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String keyName = Utils.getValueFromIdByName(id, "keys"); if (keyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'keys'.", id))); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsClientImpl.java index c5edabc9db5bb..6774d457890be 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsClientImpl.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.synapse.fluent.KustoOperationsClient; import com.azure.resourcemanager.synapse.fluent.models.OperationInner; import com.azure.resourcemanager.synapse.models.OperationListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in KustoOperationsClient. */ public final class KustoOperationsClientImpl implements KustoOperationsClient { - private final ClientLogger logger = new ClientLogger(KustoOperationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final KustoOperationsService service; @@ -151,7 +148,7 @@ private Mono> listSinglePageAsync(Context context) * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations. + * @return result of the request to list REST API operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -165,7 +162,7 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations. + * @return result of the request to list REST API operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -178,7 +175,7 @@ private PagedFlux listAsync(Context context) { * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations. + * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -192,7 +189,7 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations. + * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsImpl.java index d9934090e46e8..266c3f5ec1b0c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.synapse.fluent.models.OperationInner; import com.azure.resourcemanager.synapse.models.KustoOperations; import com.azure.resourcemanager.synapse.models.Operation; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class KustoOperationsImpl implements KustoOperations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KustoOperationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(KustoOperationsImpl.class); private final KustoOperationsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsClientImpl.java index cbaa3ad94e635..5403cb33a812d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsClientImpl.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.synapse.fluent.KustoPoolAttachedDatabaseConfigurationsClient; @@ -45,8 +44,6 @@ */ public final class KustoPoolAttachedDatabaseConfigurationsClientImpl implements KustoPoolAttachedDatabaseConfigurationsClient { - private final ClientLogger logger = new ClientLogger(KustoPoolAttachedDatabaseConfigurationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final KustoPoolAttachedDatabaseConfigurationsService service; @@ -272,7 +269,8 @@ private Mono> listByKustoPoolS * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response. + * @return the list attached database configurations operation response as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByKustoPoolAsync( @@ -290,7 +288,8 @@ private PagedFlux listByKustoPoolAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response. + * @return the list attached database configurations operation response as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByKustoPoolAsync( @@ -308,7 +307,8 @@ private PagedFlux listByKustoPoolAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response. + * @return the list attached database configurations operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByKustoPool( @@ -326,7 +326,8 @@ public PagedIterable listByKustoPool( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response. + * @return the list attached database configurations operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByKustoPool( @@ -698,8 +699,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of class representing an attached database configuration. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, AttachedDatabaseConfigurationInner> @@ -734,8 +734,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of class representing an attached database configuration. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, AttachedDatabaseConfigurationInner> @@ -776,8 +775,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing an attached database configuration. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AttachedDatabaseConfigurationInner> @@ -804,8 +802,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing an attached database configuration along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing an attached database configuration. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AttachedDatabaseConfigurationInner> @@ -1066,7 +1063,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1093,7 +1090,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1121,7 +1118,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1144,7 +1141,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsImpl.java index ce5438217d743..ce542c55d9c33 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationInner; import com.azure.resourcemanager.synapse.models.AttachedDatabaseConfiguration; import com.azure.resourcemanager.synapse.models.KustoPoolAttachedDatabaseConfigurations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class KustoPoolAttachedDatabaseConfigurationsImpl implements KustoPoolAttachedDatabaseConfigurations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KustoPoolAttachedDatabaseConfigurationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(KustoPoolAttachedDatabaseConfigurationsImpl.class); private final KustoPoolAttachedDatabaseConfigurationsClient innerClient; @@ -103,21 +102,21 @@ public void delete( public AttachedDatabaseConfiguration getById(String id) { String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } String attachedDatabaseConfigurationName = Utils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); if (attachedDatabaseConfigurationName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -128,7 +127,7 @@ public AttachedDatabaseConfiguration getById(String id) { } String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -143,21 +142,21 @@ public AttachedDatabaseConfiguration getById(String id) { public Response getByIdWithResponse(String id, Context context) { String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } String attachedDatabaseConfigurationName = Utils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); if (attachedDatabaseConfigurationName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -168,7 +167,7 @@ public Response getByIdWithResponse(String id, Co } String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -182,21 +181,21 @@ public Response getByIdWithResponse(String id, Co public void deleteById(String id) { String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", 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) { } String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -219,21 +218,21 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } String attachedDatabaseConfigurationName = Utils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); if (attachedDatabaseConfigurationName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -244,7 +243,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesClientImpl.java index de4c1af896430..95e98fd8ec22c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesClientImpl.java @@ -22,7 +22,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.KustoPoolChildResourcesClient; import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; import com.azure.resourcemanager.synapse.models.DatabaseCheckNameRequest; @@ -30,8 +29,6 @@ /** An instance of this class provides access to all the operations defined in KustoPoolChildResourcesClient. */ public final class KustoPoolChildResourcesClientImpl implements KustoPoolChildResourcesClient { - private final ClientLogger logger = new ClientLogger(KustoPoolChildResourcesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final KustoPoolChildResourcesService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesImpl.java index cdb919ccd80d3..49168ffe7d284 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.models.CheckNameResult; import com.azure.resourcemanager.synapse.models.DatabaseCheckNameRequest; import com.azure.resourcemanager.synapse.models.KustoPoolChildResources; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class KustoPoolChildResourcesImpl implements KustoPoolChildResources { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KustoPoolChildResourcesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(KustoPoolChildResourcesImpl.class); private final KustoPoolChildResourcesClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsClientImpl.java index fde767ae531a8..2c0aa8e6eb811 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsClientImpl.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.synapse.fluent.KustoPoolDataConnectionsClient; @@ -47,8 +46,6 @@ /** An instance of this class provides access to all the operations defined in KustoPoolDataConnectionsClient. */ public final class KustoPoolDataConnectionsClientImpl implements KustoPoolDataConnectionsClient { - private final ClientLogger logger = new ClientLogger(KustoPoolDataConnectionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final KustoPoolDataConnectionsService service; @@ -585,8 +582,7 @@ private Mono>> dataConnectionValidationWithResponseAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connection validation result along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link PollerFlux} for polling of the list Kusto data connection validation result. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataConnectionValidationListResultInner> @@ -621,8 +617,7 @@ private Mono>> dataConnectionValidationWithResponseAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connection validation result along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link PollerFlux} for polling of the list Kusto data connection validation result. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataConnectionValidationListResultInner> @@ -658,8 +653,7 @@ private Mono>> dataConnectionValidationWithResponseAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connection validation result along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of the list Kusto data connection validation result. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataConnectionValidationListResultInner> @@ -686,8 +680,7 @@ private Mono>> dataConnectionValidationWithResponseAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connection validation result along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of the list Kusto data connection validation result. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataConnectionValidationListResultInner> @@ -944,7 +937,7 @@ private Mono> listByDatabaseSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response. + * @return the list Kusto data connections operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByDatabaseAsync( @@ -964,7 +957,7 @@ private PagedFlux listByDatabaseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response. + * @return the list Kusto data connections operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByDatabaseAsync( @@ -984,7 +977,7 @@ private PagedFlux listByDatabaseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response. + * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByDatabase( @@ -1003,7 +996,7 @@ public PagedIterable listByDatabase( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response. + * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByDatabase( @@ -1399,8 +1392,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataConnectionInner> beginCreateOrUpdateAsync( @@ -1436,8 +1428,7 @@ private PollerFlux, DataConnectionInner> beginCr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataConnectionInner> beginCreateOrUpdateAsync( @@ -1470,8 +1461,7 @@ private PollerFlux, DataConnectionInner> beginCr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataConnectionInner> beginCreateOrUpdate( @@ -1499,8 +1489,7 @@ public SyncPoller, DataConnectionInner> beginCre * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataConnectionInner> beginCreateOrUpdate( @@ -1797,8 +1786,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataConnectionInner> beginUpdateAsync( @@ -1834,8 +1822,7 @@ private PollerFlux, DataConnectionInner> beginUp * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataConnectionInner> beginUpdateAsync( @@ -1868,8 +1855,7 @@ private PollerFlux, DataConnectionInner> beginUp * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataConnectionInner> beginUpdate( @@ -1897,8 +1883,7 @@ public SyncPoller, DataConnectionInner> beginUpd * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataConnectionInner> beginUpdate( @@ -2176,7 +2161,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -2205,7 +2190,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -2235,7 +2220,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -2260,7 +2245,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsImpl.java index d6f01938ea216..52c997fc1e6b7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsImpl.java @@ -19,10 +19,9 @@ import com.azure.resourcemanager.synapse.models.DataConnectionCheckNameRequest; import com.azure.resourcemanager.synapse.models.DataConnectionValidationListResult; import com.azure.resourcemanager.synapse.models.KustoPoolDataConnections; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KustoPoolDataConnectionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(KustoPoolDataConnectionsImpl.class); private final KustoPoolDataConnectionsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsClientImpl.java index 8b3b6004a10c2..669993b86d14f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsClientImpl.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.synapse.fluent.KustoPoolDatabasePrincipalAssignmentsClient; @@ -48,8 +47,6 @@ */ public final class KustoPoolDatabasePrincipalAssignmentsClientImpl implements KustoPoolDatabasePrincipalAssignmentsClient { - private final ClientLogger logger = new ClientLogger(KustoPoolDatabasePrincipalAssignmentsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final KustoPoolDatabasePrincipalAssignmentsService service; @@ -538,7 +535,8 @@ private Mono> listSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response. + * @return the list Kusto database principal assignments operation response as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -558,7 +556,8 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response. + * @return the list Kusto database principal assignments operation response as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -577,7 +576,8 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response. + * @return the list Kusto database principal assignments operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -596,7 +596,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response. + * @return the list Kusto database principal assignments operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -996,8 +997,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a database principal assignment along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link PollerFlux} for polling of class representing a database principal assignment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabasePrincipalAssignmentInner> @@ -1034,8 +1034,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a database principal assignment along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link PollerFlux} for polling of class representing a database principal assignment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabasePrincipalAssignmentInner> @@ -1079,8 +1078,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a database principal assignment along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing a database principal assignment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabasePrincipalAssignmentInner> @@ -1109,8 +1107,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a database principal assignment along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing a database principal assignment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabasePrincipalAssignmentInner> @@ -1409,7 +1406,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1439,7 +1436,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1469,7 +1466,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1494,7 +1491,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsImpl.java index 2a2ca11c11a1d..baf547ac8a2be 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsImpl.java @@ -16,10 +16,9 @@ import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignment; import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentCheckNameRequest; import com.azure.resourcemanager.synapse.models.KustoPoolDatabasePrincipalAssignments; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class KustoPoolDatabasePrincipalAssignmentsImpl implements KustoPoolDatabasePrincipalAssignments { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KustoPoolDatabasePrincipalAssignmentsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(KustoPoolDatabasePrincipalAssignmentsImpl.class); private final KustoPoolDatabasePrincipalAssignmentsClient innerClient; @@ -153,28 +152,28 @@ public void delete( public DatabasePrincipalAssignment getById(String id) { String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", 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 @@ -184,7 +183,7 @@ public DatabasePrincipalAssignment getById(String id) { } String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -199,28 +198,28 @@ public DatabasePrincipalAssignment getById(String id) { public Response getByIdWithResponse(String id, Context context) { String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", 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 @@ -230,7 +229,7 @@ public Response getByIdWithResponse(String id, Cont } String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -244,28 +243,28 @@ public Response getByIdWithResponse(String id, Cont public void deleteById(String id) { String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", 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 @@ -275,7 +274,7 @@ public void deleteById(String id) { } String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -289,28 +288,28 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", 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 @@ -320,7 +319,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesClientImpl.java index 490fed50abf0c..0bc375323c2a0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesClientImpl.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.synapse.fluent.KustoPoolDatabasesClient; @@ -42,8 +41,6 @@ /** An instance of this class provides access to all the operations defined in KustoPoolDatabasesClient. */ public final class KustoPoolDatabasesClientImpl implements KustoPoolDatabasesClient { - private final ClientLogger logger = new ClientLogger(KustoPoolDatabasesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final KustoPoolDatabasesService service; @@ -280,7 +277,7 @@ private Mono> listByKustoPoolSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response. + * @return the list Kusto databases operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByKustoPoolAsync( @@ -298,7 +295,7 @@ private PagedFlux listByKustoPoolAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response. + * @return the list Kusto databases operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByKustoPoolAsync( @@ -316,7 +313,7 @@ private PagedFlux listByKustoPoolAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response. + * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByKustoPool( @@ -334,7 +331,7 @@ public PagedIterable listByKustoPool( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response. + * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByKustoPool( @@ -671,7 +668,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabaseInner> beginCreateOrUpdateAsync( @@ -704,7 +701,7 @@ private PollerFlux, DatabaseInner> beginCreateOrUpdate * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabaseInner> beginCreateOrUpdateAsync( @@ -735,7 +732,7 @@ private PollerFlux, DatabaseInner> beginCreateOrUpdate * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabaseInner> beginCreateOrUpdate( @@ -760,7 +757,7 @@ public SyncPoller, DatabaseInner> beginCreateOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabaseInner> beginCreateOrUpdate( @@ -1027,7 +1024,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabaseInner> beginUpdateAsync( @@ -1060,7 +1057,7 @@ private PollerFlux, DatabaseInner> beginUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabaseInner> beginUpdateAsync( @@ -1090,7 +1087,7 @@ private PollerFlux, DatabaseInner> beginUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabaseInner> beginUpdate( @@ -1115,7 +1112,7 @@ public SyncPoller, DatabaseInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabaseInner> beginUpdate( @@ -1355,7 +1352,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1379,7 +1376,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1402,7 +1399,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1421,7 +1418,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesImpl.java index 25e5c2a88b2c6..f9b3b35dbe35e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; import com.azure.resourcemanager.synapse.models.Database; import com.azure.resourcemanager.synapse.models.KustoPoolDatabases; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class KustoPoolDatabasesImpl implements KustoPoolDatabases { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KustoPoolDatabasesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(KustoPoolDatabasesImpl.class); private final KustoPoolDatabasesClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsClientImpl.java index 82285664e7000..37f982d65476c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsClientImpl.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.synapse.fluent.KustoPoolPrincipalAssignmentsClient; @@ -44,8 +43,6 @@ /** An instance of this class provides access to all the operations defined in KustoPoolPrincipalAssignmentsClient. */ public final class KustoPoolPrincipalAssignmentsClientImpl implements KustoPoolPrincipalAssignmentsClient { - private final ClientLogger logger = new ClientLogger(KustoPoolPrincipalAssignmentsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final KustoPoolPrincipalAssignmentsService service; @@ -495,7 +492,8 @@ private Mono> listSinglePageAsync * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -513,7 +511,8 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -530,7 +529,8 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -548,7 +548,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -904,8 +905,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a cluster principal assignment along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link PollerFlux} for polling of class representing a cluster principal assignment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterPrincipalAssignmentInner> @@ -940,8 +940,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a cluster principal assignment along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link PollerFlux} for polling of class representing a cluster principal assignment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterPrincipalAssignmentInner> @@ -977,8 +976,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a cluster principal assignment along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing a cluster principal assignment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate( @@ -1004,8 +1002,7 @@ public SyncPoller, ClusterPrincipalA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a cluster principal assignment along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of class representing a cluster principal assignment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate( @@ -1259,7 +1256,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1283,7 +1280,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1310,7 +1307,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1330,7 +1327,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsImpl.java index 8ef80ddd24d2b..9827226565169 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsImpl.java @@ -16,10 +16,9 @@ import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignment; import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentCheckNameRequest; import com.azure.resourcemanager.synapse.models.KustoPoolPrincipalAssignments; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class KustoPoolPrincipalAssignmentsImpl implements KustoPoolPrincipalAssignments { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KustoPoolPrincipalAssignmentsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(KustoPoolPrincipalAssignmentsImpl.class); private final KustoPoolPrincipalAssignmentsClient innerClient; @@ -133,21 +132,21 @@ public void delete( public ClusterPrincipalAssignment getById(String id) { String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -157,7 +156,7 @@ public ClusterPrincipalAssignment getById(String id) { } String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -171,21 +170,21 @@ public ClusterPrincipalAssignment getById(String id) { public Response getByIdWithResponse(String id, Context context) { String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -195,7 +194,7 @@ public Response getByIdWithResponse(String id, Conte } String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -207,21 +206,21 @@ public Response getByIdWithResponse(String id, Conte public void deleteById(String id) { String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -231,7 +230,7 @@ public void deleteById(String id) { } String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -243,21 +242,21 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -267,7 +266,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsClientImpl.java index e6bfc709a56ce..6fd41744f960b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsClientImpl.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.synapse.fluent.KustoPoolsClient; @@ -54,8 +53,6 @@ /** An instance of this class provides access to all the operations defined in KustoPoolsClient. */ public final class KustoPoolsClientImpl implements KustoPoolsClient { - private final ClientLogger logger = new ClientLogger(KustoPoolsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final KustoPoolsService service; @@ -398,7 +395,7 @@ private Mono> listSinglePageAsync(Context con * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions. + * @return the list of the SKU descriptions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -412,7 +409,7 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions. + * @return the list of the SKU descriptions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -424,7 +421,7 @@ private PagedFlux listAsync(Context context) { * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions. + * @return the list of the SKU descriptions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -438,7 +435,7 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions. + * @return the list of the SKU descriptions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -1077,8 +1074,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, KustoPoolInner> beginCreateOrUpdateAsync( @@ -1116,8 +1112,7 @@ private PollerFlux, KustoPoolInner> beginCreateOrUpda * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, KustoPoolInner> beginCreateOrUpdateAsync( @@ -1152,8 +1147,7 @@ private PollerFlux, KustoPoolInner> beginCreateOrUpda * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, KustoPoolInner> beginCreateOrUpdate( @@ -1183,8 +1177,7 @@ public SyncPoller, KustoPoolInner> beginCreateOrUpdat * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, KustoPoolInner> beginCreateOrUpdate( @@ -1514,8 +1507,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, KustoPoolInner> beginUpdateAsync( @@ -1549,8 +1541,7 @@ private PollerFlux, KustoPoolInner> beginUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, KustoPoolInner> beginUpdateAsync( @@ -1581,8 +1572,7 @@ private PollerFlux, KustoPoolInner> beginUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, KustoPoolInner> beginUpdate( @@ -1607,8 +1597,7 @@ public SyncPoller, KustoPoolInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, KustoPoolInner> beginUpdate( @@ -1881,7 +1870,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1904,7 +1893,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1926,7 +1915,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1944,7 +1933,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -2136,7 +2125,7 @@ private Mono>> stopWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStopAsync( @@ -2158,7 +2147,7 @@ private PollerFlux, Void> beginStopAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStopAsync( @@ -2180,7 +2169,7 @@ private PollerFlux, Void> beginStopAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStop( @@ -2198,7 +2187,7 @@ public SyncPoller, Void> beginStop( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStop( @@ -2390,7 +2379,7 @@ private Mono>> startWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStartAsync( @@ -2412,7 +2401,7 @@ private PollerFlux, Void> beginStartAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStartAsync( @@ -2434,7 +2423,7 @@ private PollerFlux, Void> beginStartAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStart( @@ -2452,7 +2441,7 @@ public SyncPoller, Void> beginStart( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStart( @@ -2654,7 +2643,7 @@ private Mono> listSkusByResourceSinglePageA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool. + * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listSkusByResourceAsync( @@ -2673,7 +2662,7 @@ private PagedFlux listSkusByResourceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool. + * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listSkusByResourceAsync( @@ -2691,7 +2680,7 @@ private PagedFlux listSkusByResourceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool. + * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listSkusByResource( @@ -2709,7 +2698,7 @@ public PagedIterable listSkusByResource( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool. + * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listSkusByResource( @@ -2842,7 +2831,7 @@ private Mono> listLanguageExtensionsSingle * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listLanguageExtensionsAsync( @@ -2861,7 +2850,7 @@ private PagedFlux listLanguageExtensionsAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listLanguageExtensionsAsync( @@ -2879,7 +2868,7 @@ private PagedFlux listLanguageExtensionsAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listLanguageExtensions( @@ -2897,7 +2886,7 @@ public PagedIterable listLanguageExtensions( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listLanguageExtensions( @@ -3047,7 +3036,7 @@ private Mono>> addLanguageExtensionsWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginAddLanguageExtensionsAsync( @@ -3075,7 +3064,7 @@ private PollerFlux, Void> beginAddLanguageExtensionsAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginAddLanguageExtensionsAsync( @@ -3103,7 +3092,7 @@ private PollerFlux, Void> beginAddLanguageExtensionsAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginAddLanguageExtensions( @@ -3126,7 +3115,7 @@ public SyncPoller, Void> beginAddLanguageExtensions( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginAddLanguageExtensions( @@ -3375,7 +3364,7 @@ private Mono>> removeLanguageExtensionsWithResponseAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginRemoveLanguageExtensionsAsync( @@ -3403,7 +3392,7 @@ private PollerFlux, Void> beginRemoveLanguageExtensionsAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginRemoveLanguageExtensionsAsync( @@ -3431,7 +3420,7 @@ private PollerFlux, Void> beginRemoveLanguageExtensionsAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginRemoveLanguageExtensions( @@ -3455,7 +3444,7 @@ public SyncPoller, Void> beginRemoveLanguageExtensions( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginRemoveLanguageExtensions( @@ -3689,7 +3678,7 @@ private Mono> listFollowerDatabas * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listFollowerDatabasesAsync( @@ -3708,7 +3697,7 @@ private PagedFlux listFollowerDatabasesAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listFollowerDatabasesAsync( @@ -3726,7 +3715,7 @@ private PagedFlux listFollowerDatabasesAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listFollowerDatabases( @@ -3744,7 +3733,7 @@ public PagedIterable listFollowerDatabases( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listFollowerDatabases( @@ -3894,7 +3883,7 @@ private Mono>> detachFollowerDatabasesWithResponseAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDetachFollowerDatabasesAsync( @@ -3922,7 +3911,7 @@ private PollerFlux, Void> beginDetachFollowerDatabasesAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDetachFollowerDatabasesAsync( @@ -3950,7 +3939,7 @@ private PollerFlux, Void> beginDetachFollowerDatabasesAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDetachFollowerDatabases( @@ -3974,7 +3963,7 @@ public SyncPoller, Void> beginDetachFollowerDatabases( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDetachFollowerDatabases( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsImpl.java index 494240375fc25..9b2d81c410388 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsImpl.java @@ -27,10 +27,9 @@ import com.azure.resourcemanager.synapse.models.LanguageExtension; import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; import com.azure.resourcemanager.synapse.models.SkuDescription; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class KustoPoolsImpl implements KustoPools { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KustoPoolsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(KustoPoolsImpl.class); private final KustoPoolsClient innerClient; @@ -258,21 +257,21 @@ public void detachFollowerDatabases( public KustoPool getById(String id) { String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -284,21 +283,21 @@ public KustoPool getById(String id) { public Response getByIdWithResponse(String id, Context context) { String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -310,14 +309,14 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -325,7 +324,7 @@ public void deleteById(String id) { } String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); @@ -336,14 +335,14 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -351,7 +350,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesClientImpl.java index fc6cb29996058..a0dce6f6056dd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesClientImpl.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.synapse.fluent.LibrariesClient; import com.azure.resourcemanager.synapse.fluent.models.LibraryResourceInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in LibrariesClient. */ public final class LibrariesClientImpl implements LibrariesClient { - private final ClientLogger logger = new ClientLogger(LibrariesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final LibrariesService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesImpl.java index 167dac9452474..1c0b812b81181 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.synapse.fluent.models.LibraryResourceInner; import com.azure.resourcemanager.synapse.models.Libraries; import com.azure.resourcemanager.synapse.models.LibraryResource; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class LibrariesImpl implements Libraries { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LibrariesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(LibrariesImpl.class); private final LibrariesClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsClientImpl.java index 7dbac1182dec3..f7206b2fcd22a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsClientImpl.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.synapse.fluent.LibrariesOperationsClient; import com.azure.resourcemanager.synapse.fluent.models.LibraryResourceInner; import com.azure.resourcemanager.synapse.models.LibraryListResponse; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in LibrariesOperationsClient. */ public final class LibrariesOperationsClientImpl implements LibrariesOperationsClient { - private final ClientLogger logger = new ClientLogger(LibrariesOperationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final LibrariesOperationsService service; @@ -207,7 +204,7 @@ private Mono> listByWorkspaceSinglePageAsync * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Library resources. + * @return a list of Library resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) { @@ -225,7 +222,7 @@ private PagedFlux listByWorkspaceAsync(String resourceGrou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Library resources. + * @return a list of Library resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync( @@ -243,7 +240,7 @@ private PagedFlux listByWorkspaceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Library resources. + * @return a list of Library resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { @@ -259,7 +256,7 @@ public PagedIterable listByWorkspace(String resourceGroupN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Library resources. + * @return a list of Library resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsImpl.java index 92774540a50a4..8e0f6e80e9421 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.synapse.fluent.models.LibraryResourceInner; import com.azure.resourcemanager.synapse.models.LibrariesOperations; import com.azure.resourcemanager.synapse.models.LibraryResource; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class LibrariesOperationsImpl implements LibrariesOperations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LibrariesOperationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(LibrariesOperationsImpl.class); private final LibrariesOperationsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsClientImpl.java index 3041e61ac211b..4a27a214ba2e9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsClientImpl.java @@ -23,7 +23,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.synapse.fluent.OperationsClient; import com.azure.resourcemanager.synapse.fluent.models.AvailableRpOperationInner; import com.azure.resourcemanager.synapse.fluent.models.CheckNameAvailabilityResponseInner; @@ -34,8 +33,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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsImpl.java index a2032e52325e7..fd20eae595c92 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsImpl.java @@ -17,13 +17,12 @@ import com.azure.resourcemanager.synapse.models.CheckNameAvailabilityResponse; import com.azure.resourcemanager.synapse.models.OperationResource; import com.azure.resourcemanager.synapse.models.Operations; -import com.fasterxml.jackson.annotation.JsonIgnore; import java.util.Collections; import java.util.List; import java.util.stream.Collectors; 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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsClientImpl.java index d900f5f036187..ba88665c2cc7e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/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.synapse.fluent.PrivateEndpointConnectionsClient; @@ -42,8 +41,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; @@ -460,7 +457,7 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of a private endpoint connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, PrivateEndpointConnectionInner> beginCreateAsync( @@ -491,7 +488,7 @@ private PollerFlux, PrivateEndpointCo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of a private endpoint connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, PrivateEndpointConnectionInner> beginCreateAsync( @@ -523,7 +520,7 @@ private PollerFlux, PrivateEndpointCo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a private endpoint connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrivateEndpointConnectionInner> beginCreate( @@ -546,7 +543,7 @@ public SyncPoller, PrivateEndpointCon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a private endpoint connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrivateEndpointConnectionInner> beginCreate( @@ -772,7 +769,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, OperationResourceInner> beginDeleteAsync( @@ -799,7 +796,7 @@ private PollerFlux, OperationResourceInner> b * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, OperationResourceInner> beginDeleteAsync( @@ -826,7 +823,7 @@ private PollerFlux, OperationResourceInner> b * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, OperationResourceInner> beginDelete( @@ -844,7 +841,7 @@ public SyncPoller, OperationResourceInner> be * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, OperationResourceInner> beginDelete( @@ -1051,7 +1048,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private endpoint connections. + * @return a list of private endpoint connections as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { @@ -1068,7 +1065,7 @@ private PagedFlux listAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private endpoint connections. + * @return a list of private endpoint connections as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -1086,7 +1083,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private endpoint connections. + * @return a list of private endpoint connections as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName) { @@ -1102,7 +1099,7 @@ public PagedIterable list(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private endpoint connections. + * @return a list of private endpoint connections as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsImpl.java index 9ba74422ea80a..948b5815bd2f7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsImpl.java @@ -15,10 +15,9 @@ import com.azure.resourcemanager.synapse.models.OperationResource; import com.azure.resourcemanager.synapse.models.PrivateEndpointConnection; import com.azure.resourcemanager.synapse.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; @@ -96,7 +95,7 @@ public PagedIterable list( public PrivateEndpointConnection getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -104,14 +103,14 @@ public PrivateEndpointConnection getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -127,7 +126,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 @@ -135,14 +134,14 @@ public Response getByIdWithResponse(String id, Contex } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -156,7 +155,7 @@ public Response getByIdWithResponse(String id, Contex public OperationResource deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -164,14 +163,14 @@ public OperationResource deleteById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -185,7 +184,7 @@ public OperationResource deleteById(String id) { public OperationResource deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -193,14 +192,14 @@ public OperationResource deleteByIdWithResponse(String id, Context context) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsClientImpl.java index e23d848a33267..3438d93801d85 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsClientImpl.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.synapse.fluent.PrivateEndpointConnectionsPrivateLinkHubsClient; import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionForPrivateLinkHubInner; import com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse; @@ -37,8 +36,6 @@ */ public final class PrivateEndpointConnectionsPrivateLinkHubsClientImpl implements PrivateEndpointConnectionsPrivateLinkHubsClient { - private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionsPrivateLinkHubsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final PrivateEndpointConnectionsPrivateLinkHubsService service; @@ -235,7 +232,7 @@ private Mono> lis * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all PrivateEndpointConnections in the PrivateLinkHub. + * @return all PrivateEndpointConnections in the PrivateLinkHub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -254,7 +251,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all PrivateEndpointConnections in the PrivateLinkHub. + * @return all PrivateEndpointConnections in the PrivateLinkHub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -272,7 +269,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all PrivateEndpointConnections in the PrivateLinkHub. + * @return all PrivateEndpointConnections in the PrivateLinkHub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -289,7 +286,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all PrivateEndpointConnections in the PrivateLinkHub. + * @return all PrivateEndpointConnections in the PrivateLinkHub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsImpl.java index bb3d4c0a3b91f..339603332480e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsImpl.java @@ -13,11 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionForPrivateLinkHubInner; import com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionForPrivateLinkHub; import com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionsPrivateLinkHubs; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class PrivateEndpointConnectionsPrivateLinkHubsImpl implements PrivateEndpointConnectionsPrivateLinkHubs { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionsPrivateLinkHubsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionsPrivateLinkHubsImpl.class); private final PrivateEndpointConnectionsPrivateLinkHubsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesClientImpl.java index cc2083118ce42..79c43d97d9b17 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesClientImpl.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.synapse.fluent.PrivateLinkHubPrivateLinkResourcesClient; import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourceInner; import com.azure.resourcemanager.synapse.models.PrivateLinkResourceListResult; @@ -35,8 +34,6 @@ * An instance of this class provides access to all the operations defined in PrivateLinkHubPrivateLinkResourcesClient. */ public final class PrivateLinkHubPrivateLinkResourcesClientImpl implements PrivateLinkHubPrivateLinkResourcesClient { - private final ClientLogger logger = new ClientLogger(PrivateLinkHubPrivateLinkResourcesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final PrivateLinkHubPrivateLinkResourcesService service; @@ -233,7 +230,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a private link hub. + * @return all private link resources for a private link hub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String privateLinkHubName) { @@ -251,7 +248,7 @@ private PagedFlux listAsync(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a private link hub. + * @return all private link resources for a private link hub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -269,7 +266,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a private link hub. + * @return all private link resources for a private link hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String privateLinkHubName) { @@ -285,7 +282,7 @@ public PagedIterable list(String resourceGroupName, St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a private link hub. + * @return all private link resources for a private link hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesImpl.java index 00e60d48a148a..1894fb5630847 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourceInner; import com.azure.resourcemanager.synapse.models.PrivateLinkHubPrivateLinkResources; import com.azure.resourcemanager.synapse.models.PrivateLinkResource; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class PrivateLinkHubPrivateLinkResourcesImpl implements PrivateLinkHubPrivateLinkResources { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkHubPrivateLinkResourcesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkHubPrivateLinkResourcesImpl.class); private final PrivateLinkHubPrivateLinkResourcesClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsClientImpl.java index 15372e297c993..95882e99d16b8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsClientImpl.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.synapse.fluent.PrivateLinkHubsClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in PrivateLinkHubsClient. */ public final class PrivateLinkHubsClientImpl implements PrivateLinkHubsClient { - private final ClientLogger logger = new ClientLogger(PrivateLinkHubsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final PrivateLinkHubsService service; @@ -287,7 +284,7 @@ private Mono> listByResourceGroupSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of privateLinkHubs. + * @return list of privateLinkHubs as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -304,7 +301,7 @@ private PagedFlux listByResourceGroupAsync(String resourceG * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of privateLinkHubs. + * @return list of privateLinkHubs as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -320,7 +317,7 @@ private PagedFlux listByResourceGroupAsync(String resourceG * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of privateLinkHubs. + * @return list of privateLinkHubs as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -335,7 +332,7 @@ public PagedIterable listByResourceGroup(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of privateLinkHubs. + * @return list of privateLinkHubs as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -958,7 +955,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String privateLinkHubName) { @@ -978,7 +975,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -998,7 +995,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String privateLinkHubName) { @@ -1014,7 +1011,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1170,7 +1167,7 @@ private Mono> listSinglePageAsync(Context con * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of privateLinkHubs. + * @return list of privateLinkHubs as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -1184,7 +1181,7 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of privateLinkHubs. + * @return list of privateLinkHubs as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -1197,7 +1194,7 @@ private PagedFlux listAsync(Context context) { * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of privateLinkHubs. + * @return list of privateLinkHubs as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -1211,7 +1208,7 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of privateLinkHubs. + * @return list of privateLinkHubs as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsImpl.java index fa6d9470b1917..021bed425f117 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkHubInner; import com.azure.resourcemanager.synapse.models.PrivateLinkHub; import com.azure.resourcemanager.synapse.models.PrivateLinkHubs; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class PrivateLinkHubsImpl implements PrivateLinkHubs { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkHubsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkHubsImpl.class); private final PrivateLinkHubsClient innerClient; @@ -83,7 +82,7 @@ public PagedIterable list(Context context) { public PrivateLinkHub getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -91,7 +90,7 @@ public PrivateLinkHub getById(String id) { } String privateLinkHubName = Utils.getValueFromIdByName(id, "privateLinkHubs"); if (privateLinkHubName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -103,7 +102,7 @@ public PrivateLinkHub getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -111,7 +110,7 @@ public Response getByIdWithResponse(String id, Context context) } String privateLinkHubName = Utils.getValueFromIdByName(id, "privateLinkHubs"); if (privateLinkHubName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -123,7 +122,7 @@ public Response getByIdWithResponse(String id, Context context) public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -131,7 +130,7 @@ public void deleteById(String id) { } String privateLinkHubName = Utils.getValueFromIdByName(id, "privateLinkHubs"); if (privateLinkHubName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -143,7 +142,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -151,7 +150,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String privateLinkHubName = Utils.getValueFromIdByName(id, "privateLinkHubs"); if (privateLinkHubName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesClientImpl.java index 30f3580361bf8..4725041527cbd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/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.synapse.fluent.PrivateLinkResourcesClient; import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourceInner; import com.azure.resourcemanager.synapse.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; @@ -226,7 +223,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a workspaces. + * @return all private link resources for a workspaces as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { @@ -243,7 +240,7 @@ private PagedFlux listAsync(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a workspaces. + * @return all private link resources for a workspaces as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -261,7 +258,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a workspaces. + * @return all private link resources for a workspaces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName) { @@ -277,7 +274,7 @@ public PagedIterable list(String resourceGroupName, St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a workspaces. + * @return all private link resources for a workspaces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesImpl.java index dc4bf51778235..2be12e0cb49e5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourceInner; import com.azure.resourcemanager.synapse.models.PrivateLinkResource; import com.azure.resourcemanager.synapse.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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsClientImpl.java index 95c2e5a5ef8f7..6189d3f4945d7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsClientImpl.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.synapse.fluent.RestorableDroppedSqlPoolsClient; import com.azure.resourcemanager.synapse.fluent.models.RestorableDroppedSqlPoolInner; import com.azure.resourcemanager.synapse.models.RestorableDroppedSqlPoolListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in RestorableDroppedSqlPoolsClient. */ public final class RestorableDroppedSqlPoolsClientImpl implements RestorableDroppedSqlPoolsClient { - private final ClientLogger logger = new ClientLogger(RestorableDroppedSqlPoolsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final RestorableDroppedSqlPoolsService service; @@ -386,7 +383,7 @@ private Mono> listByWorkspaceSingle * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of deleted Sql pools that can be restored. + * @return a list of deleted Sql pools that can be restored as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync( @@ -403,7 +400,7 @@ private PagedFlux listByWorkspaceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of deleted Sql pools that can be restored. + * @return a list of deleted Sql pools that can be restored as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync( @@ -419,7 +416,7 @@ private PagedFlux listByWorkspaceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of deleted Sql pools that can be restored. + * @return a list of deleted Sql pools that can be restored as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace( @@ -436,7 +433,7 @@ public PagedIterable listByWorkspace( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of deleted Sql pools that can be restored. + * @return a list of deleted Sql pools that can be restored as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsImpl.java index ecf79e8ffa59d..1fd729638112e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.RestorableDroppedSqlPoolInner; import com.azure.resourcemanager.synapse.models.RestorableDroppedSqlPool; import com.azure.resourcemanager.synapse.models.RestorableDroppedSqlPools; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class RestorableDroppedSqlPoolsImpl implements RestorableDroppedSqlPools { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RestorableDroppedSqlPoolsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(RestorableDroppedSqlPoolsImpl.class); private final RestorableDroppedSqlPoolsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsClientImpl.java index 539520654cc93..16deaf05e192d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsClientImpl.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.synapse.fluent.SparkConfigurationsClient; import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in SparkConfigurationsClient. */ public final class SparkConfigurationsClientImpl implements SparkConfigurationsClient { - private final ClientLogger logger = new ClientLogger(SparkConfigurationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SparkConfigurationsService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsImpl.java index 01f0f11819cfd..b8e076039f3c6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; import com.azure.resourcemanager.synapse.models.SparkConfigurationResource; import com.azure.resourcemanager.synapse.models.SparkConfigurations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SparkConfigurationsImpl implements SparkConfigurations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SparkConfigurationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SparkConfigurationsImpl.class); private final SparkConfigurationsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsClientImpl.java index 9dace78faab45..c22277c7e7f57 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsClientImpl.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.synapse.fluent.SparkConfigurationsOperationsClient; import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; import com.azure.resourcemanager.synapse.models.SparkConfigurationListResponse; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in SparkConfigurationsOperationsClient. */ public final class SparkConfigurationsOperationsClientImpl implements SparkConfigurationsOperationsClient { - private final ClientLogger logger = new ClientLogger(SparkConfigurationsOperationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SparkConfigurationsOperationsService service; @@ -213,7 +210,7 @@ private Mono> listByWorkspaceSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources. + * @return a list of SparkConfiguration resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync( @@ -232,7 +229,7 @@ private PagedFlux listByWorkspaceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources. + * @return a list of SparkConfiguration resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync( @@ -250,7 +247,7 @@ private PagedFlux listByWorkspaceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources. + * @return a list of SparkConfiguration resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace( @@ -267,7 +264,7 @@ public PagedIterable listByWorkspace( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources. + * @return a list of SparkConfiguration resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsImpl.java index 5bf6ccdaf0573..2eb68311dec41 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; import com.azure.resourcemanager.synapse.models.SparkConfigurationResource; import com.azure.resourcemanager.synapse.models.SparkConfigurationsOperations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SparkConfigurationsOperationsImpl implements SparkConfigurationsOperations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SparkConfigurationsOperationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SparkConfigurationsOperationsImpl.class); private final SparkConfigurationsOperationsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesClientImpl.java index bf3583ddfdded..771d8cf29e504 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesClientImpl.java @@ -27,7 +27,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.synapse.fluent.SqlPoolBlobAuditingPoliciesClient; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolBlobAuditingPolicyInner; import com.azure.resourcemanager.synapse.models.SqlPoolBlobAuditingPolicyListResult; @@ -35,8 +34,6 @@ /** An instance of this class provides access to all the operations defined in SqlPoolBlobAuditingPoliciesClient. */ public final class SqlPoolBlobAuditingPoliciesClientImpl implements SqlPoolBlobAuditingPoliciesClient { - private final ClientLogger logger = new ClientLogger(SqlPoolBlobAuditingPoliciesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolBlobAuditingPoliciesService service; @@ -625,7 +622,7 @@ private Mono> listBySqlPoolSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool auditing settings. + * @return a list of Sql pool auditing settings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listBySqlPoolAsync( @@ -645,7 +642,7 @@ private PagedFlux listBySqlPoolAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool auditing settings. + * @return a list of Sql pool auditing settings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listBySqlPoolAsync( @@ -664,7 +661,7 @@ private PagedFlux listBySqlPoolAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool auditing settings. + * @return a list of Sql pool auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listBySqlPool( @@ -682,7 +679,7 @@ public PagedIterable listBySqlPool( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool auditing settings. + * @return a list of Sql pool auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listBySqlPool( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesImpl.java index a3a804d9d55ff..c5db2ce8feecc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolBlobAuditingPolicyInner; import com.azure.resourcemanager.synapse.models.SqlPoolBlobAuditingPolicies; import com.azure.resourcemanager.synapse.models.SqlPoolBlobAuditingPolicy; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolBlobAuditingPoliciesImpl implements SqlPoolBlobAuditingPolicies { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolBlobAuditingPoliciesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolBlobAuditingPoliciesImpl.class); private final SqlPoolBlobAuditingPoliciesClient innerClient; @@ -70,7 +69,7 @@ public PagedIterable listBySqlPool( public SqlPoolBlobAuditingPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -78,14 +77,14 @@ public SqlPoolBlobAuditingPolicy getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -96,7 +95,7 @@ public SqlPoolBlobAuditingPolicy 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 @@ -104,14 +103,14 @@ public Response getByIdWithResponse(String id, Contex } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsClientImpl.java index 29735c4289072..c64129bb1b2a4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsClientImpl.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.synapse.fluent.SqlPoolColumnsClient; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolColumnInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in SqlPoolColumnsClient. */ public final class SqlPoolColumnsClientImpl implements SqlPoolColumnsClient { - private final ClientLogger logger = new ClientLogger(SqlPoolColumnsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolColumnsService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsImpl.java index 76cf1779dbe6c..fffd746215c0d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolColumnInner; import com.azure.resourcemanager.synapse.models.SqlPoolColumn; import com.azure.resourcemanager.synapse.models.SqlPoolColumns; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolColumnsImpl implements SqlPoolColumns { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolColumnsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolColumnsImpl.class); private final SqlPoolColumnsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesClientImpl.java index a15f438d9f8bd..5732e28260e9b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesClientImpl.java @@ -21,7 +21,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.synapse.fluent.SqlPoolConnectionPoliciesClient; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolConnectionPolicyInner; import com.azure.resourcemanager.synapse.models.ConnectionPolicyName; @@ -29,8 +28,6 @@ /** An instance of this class provides access to all the operations defined in SqlPoolConnectionPoliciesClient. */ public final class SqlPoolConnectionPoliciesClientImpl implements SqlPoolConnectionPoliciesClient { - private final ClientLogger logger = new ClientLogger(SqlPoolConnectionPoliciesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolConnectionPoliciesService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesImpl.java index 0d14121e97089..e3deebc242d46 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.models.ConnectionPolicyName; import com.azure.resourcemanager.synapse.models.SqlPoolConnectionPolicies; import com.azure.resourcemanager.synapse.models.SqlPoolConnectionPolicy; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolConnectionPoliciesImpl implements SqlPoolConnectionPolicies { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolConnectionPoliciesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolConnectionPoliciesImpl.class); private final SqlPoolConnectionPoliciesClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesClientImpl.java index bb48a87239fe4..86b3060821243 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesClientImpl.java @@ -21,7 +21,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.synapse.fluent.SqlPoolDataWarehouseUserActivitiesClient; import com.azure.resourcemanager.synapse.fluent.models.DataWarehouseUserActivitiesInner; import com.azure.resourcemanager.synapse.models.DataWarehouseUserActivityName; @@ -31,8 +30,6 @@ * An instance of this class provides access to all the operations defined in SqlPoolDataWarehouseUserActivitiesClient. */ public final class SqlPoolDataWarehouseUserActivitiesClientImpl implements SqlPoolDataWarehouseUserActivitiesClient { - private final ClientLogger logger = new ClientLogger(SqlPoolDataWarehouseUserActivitiesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolDataWarehouseUserActivitiesService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesImpl.java index 55f81c205d8b6..bc2eba1d7344d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.models.DataWarehouseUserActivities; import com.azure.resourcemanager.synapse.models.DataWarehouseUserActivityName; import com.azure.resourcemanager.synapse.models.SqlPoolDataWarehouseUserActivities; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolDataWarehouseUserActivitiesImpl implements SqlPoolDataWarehouseUserActivities { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolDataWarehouseUserActivitiesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolDataWarehouseUserActivitiesImpl.class); private final SqlPoolDataWarehouseUserActivitiesClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesClientImpl.java index a7a119aca9ef5..5c641d08c0b03 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesClientImpl.java @@ -27,7 +27,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.synapse.fluent.SqlPoolGeoBackupPoliciesClient; import com.azure.resourcemanager.synapse.fluent.models.GeoBackupPolicyInner; import com.azure.resourcemanager.synapse.models.GeoBackupPolicyListResult; @@ -36,8 +35,6 @@ /** An instance of this class provides access to all the operations defined in SqlPoolGeoBackupPoliciesClient. */ public final class SqlPoolGeoBackupPoliciesClientImpl implements SqlPoolGeoBackupPoliciesClient { - private final ClientLogger logger = new ClientLogger(SqlPoolGeoBackupPoliciesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolGeoBackupPoliciesService service; @@ -240,7 +237,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool geo backup policies. + * @return list of SQL pool geo backup policies as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -258,7 +255,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool geo backup policies. + * @return list of SQL pool geo backup policies as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -275,7 +272,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool geo backup policies. + * @return list of SQL pool geo backup policies as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -293,7 +290,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool geo backup policies. + * @return list of SQL pool geo backup policies as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesImpl.java index 106d6beadfbf8..be7df7c96823c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesImpl.java @@ -14,10 +14,9 @@ import com.azure.resourcemanager.synapse.models.GeoBackupPolicy; import com.azure.resourcemanager.synapse.models.GeoBackupPolicyName; import com.azure.resourcemanager.synapse.models.SqlPoolGeoBackupPolicies; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolGeoBackupPoliciesImpl implements SqlPoolGeoBackupPolicies { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolGeoBackupPoliciesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolGeoBackupPoliciesImpl.class); private final SqlPoolGeoBackupPoliciesClient innerClient; @@ -77,7 +76,7 @@ public Response getWithResponse( public GeoBackupPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -85,14 +84,14 @@ public GeoBackupPolicy getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -100,7 +99,7 @@ public GeoBackupPolicy getById(String id) { GeoBackupPolicyName geoBackupPolicyName = GeoBackupPolicyName.fromString(Utils.getValueFromIdByName(id, "geoBackupPolicies")); if (geoBackupPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -115,7 +114,7 @@ public GeoBackupPolicy 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 @@ -123,14 +122,14 @@ public Response getByIdWithResponse(String id, Context context) } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -138,7 +137,7 @@ public Response getByIdWithResponse(String id, Context context) GeoBackupPolicyName geoBackupPolicyName = GeoBackupPolicyName.fromString(Utils.getValueFromIdByName(id, "geoBackupPolicies")); if (geoBackupPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsClientImpl.java index d4f9dd04cb30f..e2919a9d4d462 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsClientImpl.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.synapse.fluent.SqlPoolMaintenanceWindowOptionsClient; import com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowOptionsInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in SqlPoolMaintenanceWindowOptionsClient. */ public final class SqlPoolMaintenanceWindowOptionsClientImpl implements SqlPoolMaintenanceWindowOptionsClient { - private final ClientLogger logger = new ClientLogger(SqlPoolMaintenanceWindowOptionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolMaintenanceWindowOptionsService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsImpl.java index 292b716ca5e9c..d75b82a3a1713 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowOptionsInner; import com.azure.resourcemanager.synapse.models.MaintenanceWindowOptions; import com.azure.resourcemanager.synapse.models.SqlPoolMaintenanceWindowOptions; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolMaintenanceWindowOptionsImpl implements SqlPoolMaintenanceWindowOptions { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolMaintenanceWindowOptionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolMaintenanceWindowOptionsImpl.class); private final SqlPoolMaintenanceWindowOptionsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsClientImpl.java index 12c6c9db3c5a7..fa1c0fdb71a31 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsClientImpl.java @@ -23,15 +23,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.synapse.fluent.SqlPoolMaintenanceWindowsClient; import com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowsInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in SqlPoolMaintenanceWindowsClient. */ public final class SqlPoolMaintenanceWindowsClientImpl implements SqlPoolMaintenanceWindowsClient { - private final ClientLogger logger = new ClientLogger(SqlPoolMaintenanceWindowsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolMaintenanceWindowsService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsImpl.java index 91ec0714976d5..ef4bf17c5b6ee 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowsInner; import com.azure.resourcemanager.synapse.models.MaintenanceWindows; import com.azure.resourcemanager.synapse.models.SqlPoolMaintenanceWindows; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolMaintenanceWindowsImpl implements SqlPoolMaintenanceWindows { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolMaintenanceWindowsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolMaintenanceWindowsImpl.class); private final SqlPoolMaintenanceWindowsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsClientImpl.java index b36f843cd9a4f..9673bfe426c58 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsClientImpl.java @@ -23,15 +23,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.synapse.fluent.SqlPoolMetadataSyncConfigsClient; import com.azure.resourcemanager.synapse.fluent.models.MetadataSyncConfigInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in SqlPoolMetadataSyncConfigsClient. */ public final class SqlPoolMetadataSyncConfigsClientImpl implements SqlPoolMetadataSyncConfigsClient { - private final ClientLogger logger = new ClientLogger(SqlPoolMetadataSyncConfigsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolMetadataSyncConfigsService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsImpl.java index 976ad16b692e4..668767221428d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.synapse.fluent.models.MetadataSyncConfigInner; import com.azure.resourcemanager.synapse.models.MetadataSyncConfig; import com.azure.resourcemanager.synapse.models.SqlPoolMetadataSyncConfigs; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolMetadataSyncConfigsImpl implements SqlPoolMetadataSyncConfigs { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolMetadataSyncConfigsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolMetadataSyncConfigsImpl.class); private final SqlPoolMetadataSyncConfigsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsClientImpl.java index b4e4c2c1abb2d..cb534cd3fe1ad 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsClientImpl.java @@ -21,14 +21,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.synapse.fluent.SqlPoolOperationResultsClient; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in SqlPoolOperationResultsClient. */ public final class SqlPoolOperationResultsClientImpl implements SqlPoolOperationResultsClient { - private final ClientLogger logger = new ClientLogger(SqlPoolOperationResultsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolOperationResultsService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsImpl.java index e338315335ec7..b16df83458941 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsImpl.java @@ -9,10 +9,9 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.SqlPoolOperationResultsClient; import com.azure.resourcemanager.synapse.models.SqlPoolOperationResults; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolOperationResultsImpl implements SqlPoolOperationResults { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolOperationResultsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolOperationResultsImpl.class); private final SqlPoolOperationResultsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsClientImpl.java index 9b2605e3bfed8..4e87c2cf636f4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsClientImpl.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.synapse.fluent.SqlPoolOperationsClient; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolOperationInner; import com.azure.resourcemanager.synapse.models.SqlPoolBlobAuditingPolicySqlPoolOperationListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in SqlPoolOperationsClient. */ public final class SqlPoolOperationsClientImpl implements SqlPoolOperationsClient { - private final ClientLogger logger = new ClientLogger(SqlPoolOperationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolOperationsService service; @@ -221,7 +218,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations performed on the SQL pool. + * @return a list of operations performed on the SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -241,7 +238,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations performed on the SQL pool. + * @return a list of operations performed on the SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -260,7 +257,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations performed on the SQL pool. + * @return a list of operations performed on the SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -278,7 +275,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations performed on the SQL pool. + * @return a list of operations performed on the SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsImpl.java index 063f6b636edb0..9ce7d7ae26851 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolOperationInner; import com.azure.resourcemanager.synapse.models.SqlPoolOperation; import com.azure.resourcemanager.synapse.models.SqlPoolOperations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolOperationsImpl implements SqlPoolOperations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolOperationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolOperationsImpl.class); private final SqlPoolOperationsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsClientImpl.java index 7ebf064c948a2..4bd09db2a6bdd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsClientImpl.java @@ -21,7 +21,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.synapse.fluent.SqlPoolRecommendedSensitivityLabelsClient; import com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdateList; import reactor.core.publisher.Mono; @@ -30,8 +29,6 @@ * An instance of this class provides access to all the operations defined in SqlPoolRecommendedSensitivityLabelsClient. */ public final class SqlPoolRecommendedSensitivityLabelsClientImpl implements SqlPoolRecommendedSensitivityLabelsClient { - private final ClientLogger logger = new ClientLogger(SqlPoolRecommendedSensitivityLabelsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolRecommendedSensitivityLabelsService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsImpl.java index 02ff900d81561..10f3f3148ca6e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsImpl.java @@ -10,10 +10,9 @@ import com.azure.resourcemanager.synapse.fluent.SqlPoolRecommendedSensitivityLabelsClient; import com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdateList; import com.azure.resourcemanager.synapse.models.SqlPoolRecommendedSensitivityLabels; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolRecommendedSensitivityLabelsImpl implements SqlPoolRecommendedSensitivityLabels { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolRecommendedSensitivityLabelsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolRecommendedSensitivityLabelsImpl.class); private final SqlPoolRecommendedSensitivityLabelsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksClientImpl.java index 310fff187f820..5fcfbb806fd6c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksClientImpl.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.synapse.fluent.SqlPoolReplicationLinksClient; import com.azure.resourcemanager.synapse.fluent.models.ReplicationLinkInner; import com.azure.resourcemanager.synapse.models.ReplicationLinkListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in SqlPoolReplicationLinksClient. */ public final class SqlPoolReplicationLinksClientImpl implements SqlPoolReplicationLinksClient { - private final ClientLogger logger = new ClientLogger(SqlPoolReplicationLinksClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolReplicationLinksService service; @@ -239,7 +236,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the response to a List Sql pool replication link request. + * @return represents the response to a List Sql pool replication link request as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -259,7 +257,8 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the response to a List Sql pool replication link request. + * @return represents the response to a List Sql pool replication link request as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -278,7 +277,8 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the response to a List Sql pool replication link request. + * @return represents the response to a List Sql pool replication link request as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -296,7 +296,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the response to a List Sql pool replication link request. + * @return represents the response to a List Sql pool replication link request as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksImpl.java index 12a9a2b630d74..8549dfe2d763a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.ReplicationLinkInner; import com.azure.resourcemanager.synapse.models.ReplicationLink; import com.azure.resourcemanager.synapse.models.SqlPoolReplicationLinks; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolReplicationLinksImpl implements SqlPoolReplicationLinks { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolReplicationLinksImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolReplicationLinksImpl.class); private final SqlPoolReplicationLinksClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsClientImpl.java index e0bcc631d34a7..ace06a0e3b157 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsClientImpl.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.synapse.fluent.SqlPoolRestorePointsClient; @@ -42,8 +41,6 @@ /** An instance of this class provides access to all the operations defined in SqlPoolRestorePointsClient. */ public final class SqlPoolRestorePointsClientImpl implements SqlPoolRestorePointsClient { - private final ClientLogger logger = new ClientLogger(SqlPoolRestorePointsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolRestorePointsService service; @@ -279,7 +276,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool backup information. + * @return sQL pool backup information as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { @@ -298,7 +295,7 @@ private PagedFlux listAsync(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool backup information. + * @return sQL pool backup information as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -317,7 +314,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool backup information. + * @return sQL pool backup information as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName) { @@ -334,7 +331,7 @@ public PagedIterable list(String resourceGroupName, String wo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool backup information. + * @return sQL pool backup information as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -479,7 +476,7 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return database restore points along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of database restore points. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, RestorePointInner> beginCreateAsync( @@ -510,7 +507,7 @@ private PollerFlux, RestorePointInner> beginCreate * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return database restore points along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of database restore points. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, RestorePointInner> beginCreateAsync( @@ -538,7 +535,7 @@ private PollerFlux, RestorePointInner> beginCreate * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return database restore points along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of database restore points. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, RestorePointInner> beginCreate( @@ -560,7 +557,7 @@ public SyncPoller, RestorePointInner> beginCreate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return database restore points along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of database restore points. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, RestorePointInner> beginCreate( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsImpl.java index 8fa0aaac340c7..0e6587ccf5f5c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsImpl.java @@ -14,10 +14,9 @@ import com.azure.resourcemanager.synapse.models.CreateSqlPoolRestorePointDefinition; import com.azure.resourcemanager.synapse.models.RestorePoint; import com.azure.resourcemanager.synapse.models.SqlPoolRestorePoints; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolRestorePointsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolRestorePointsImpl.class); private final SqlPoolRestorePointsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasClientImpl.java index ac141e3b1a6dd..64cf312ec9803 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasClientImpl.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.synapse.fluent.SqlPoolSchemasClient; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolSchemaInner; import com.azure.resourcemanager.synapse.models.SqlPoolSchemaListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in SqlPoolSchemasClient. */ public final class SqlPoolSchemasClientImpl implements SqlPoolSchemasClient { - private final ClientLogger logger = new ClientLogger(SqlPoolSchemasClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolSchemasService service; @@ -242,7 +239,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return schemas of a given SQL pool. + * @return schemas of a given SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -261,7 +258,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return schemas of a given SQL pool. + * @return schemas of a given SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -283,7 +280,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return schemas of a given SQL pool. + * @return schemas of a given SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -302,7 +299,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return schemas of a given SQL pool. + * @return schemas of a given SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName) { @@ -321,7 +318,7 @@ public PagedIterable list(String resourceGroupName, String w * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return schemas of a given SQL pool. + * @return schemas of a given SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasImpl.java index 66324e7c8901e..007287efb1ed4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolSchemaInner; import com.azure.resourcemanager.synapse.models.SqlPoolSchema; import com.azure.resourcemanager.synapse.models.SqlPoolSchemas; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolSchemasImpl implements SqlPoolSchemas { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolSchemasImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolSchemasImpl.class); private final SqlPoolSchemasClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesClientImpl.java index dd6d3af53625c..277c53c2288dc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesClientImpl.java @@ -27,7 +27,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.synapse.fluent.SqlPoolSecurityAlertPoliciesClient; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolSecurityAlertPolicyInner; import com.azure.resourcemanager.synapse.models.ListSqlPoolSecurityAlertPolicies; @@ -36,8 +35,6 @@ /** An instance of this class provides access to all the operations defined in SqlPoolSecurityAlertPoliciesClient. */ public final class SqlPoolSecurityAlertPoliciesClientImpl implements SqlPoolSecurityAlertPoliciesClient { - private final ClientLogger logger = new ClientLogger(SqlPoolSecurityAlertPoliciesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolSecurityAlertPoliciesService service; @@ -261,7 +258,7 @@ private Mono> listSinglePageAsync * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool's security alert policies. + * @return a list of Sql pool's security alert policies as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -281,7 +278,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool's security alert policies. + * @return a list of Sql pool's security alert policies as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -300,7 +297,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool's security alert policies. + * @return a list of Sql pool's security alert policies as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -318,7 +315,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool's security alert policies. + * @return a list of Sql pool's security alert policies as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesImpl.java index 0dd711dbef343..8569dd3306f0a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesImpl.java @@ -14,10 +14,9 @@ import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyName; import com.azure.resourcemanager.synapse.models.SqlPoolSecurityAlertPolicies; import com.azure.resourcemanager.synapse.models.SqlPoolSecurityAlertPolicy; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolSecurityAlertPoliciesImpl implements SqlPoolSecurityAlertPolicies { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolSecurityAlertPoliciesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolSecurityAlertPoliciesImpl.class); private final SqlPoolSecurityAlertPoliciesClient innerClient; @@ -82,7 +81,7 @@ public Response getWithResponse( public SqlPoolSecurityAlertPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -90,14 +89,14 @@ public SqlPoolSecurityAlertPolicy getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -105,7 +104,7 @@ public SqlPoolSecurityAlertPolicy getById(String id) { SecurityAlertPolicyName securityAlertPolicyName = SecurityAlertPolicyName.fromString(Utils.getValueFromIdByName(id, "securityAlertPolicies")); if (securityAlertPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -121,7 +120,7 @@ public SqlPoolSecurityAlertPolicy 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 @@ -129,14 +128,14 @@ public Response getByIdWithResponse(String id, Conte } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -144,7 +143,7 @@ public Response getByIdWithResponse(String id, Conte SecurityAlertPolicyName securityAlertPolicyName = SecurityAlertPolicyName.fromString(Utils.getValueFromIdByName(id, "securityAlertPolicies")); if (securityAlertPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsClientImpl.java index 56f0c3922231f..a965f8b402018 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsClientImpl.java @@ -30,7 +30,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.synapse.fluent.SqlPoolSensitivityLabelsClient; import com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelInner; import com.azure.resourcemanager.synapse.models.SensitivityLabelListResult; @@ -40,8 +39,6 @@ /** An instance of this class provides access to all the operations defined in SqlPoolSensitivityLabelsClient. */ public final class SqlPoolSensitivityLabelsClientImpl implements SqlPoolSensitivityLabelsClient { - private final ClientLogger logger = new ClientLogger(SqlPoolSensitivityLabelsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolSensitivityLabelsService service; @@ -381,7 +378,7 @@ private Mono> listCurrentSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool sensitivity labels. + * @return sQL pool sensitivity labels as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listCurrentAsync( @@ -400,7 +397,7 @@ private PagedFlux listCurrentAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool sensitivity labels. + * @return sQL pool sensitivity labels as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listCurrentAsync( @@ -422,7 +419,7 @@ private PagedFlux listCurrentAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool sensitivity labels. + * @return sQL pool sensitivity labels as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listCurrentAsync( @@ -441,7 +438,7 @@ private PagedFlux listCurrentAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool sensitivity labels. + * @return sQL pool sensitivity labels as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listCurrent( @@ -461,7 +458,7 @@ public PagedIterable listCurrent( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool sensitivity labels. + * @return sQL pool sensitivity labels as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listCurrent( @@ -809,7 +806,7 @@ private Mono> listRecommendedSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sensitivity labels of a given SQL pool. + * @return sensitivity labels of a given SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listRecommendedAsync( @@ -835,7 +832,7 @@ private PagedFlux listRecommendedAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sensitivity labels of a given SQL pool. + * @return sensitivity labels of a given SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listRecommendedAsync( @@ -863,7 +860,7 @@ private PagedFlux listRecommendedAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sensitivity labels of a given SQL pool. + * @return sensitivity labels of a given SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listRecommendedAsync( @@ -896,7 +893,7 @@ private PagedFlux listRecommendedAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sensitivity labels of a given SQL pool. + * @return sensitivity labels of a given SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listRecommended( @@ -922,7 +919,7 @@ public PagedIterable listRecommended( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sensitivity labels of a given SQL pool. + * @return sensitivity labels of a given SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listRecommended( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsImpl.java index 3f0cdbf6788ed..b02ae2caae894 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsImpl.java @@ -15,10 +15,9 @@ import com.azure.resourcemanager.synapse.models.SensitivityLabelSource; import com.azure.resourcemanager.synapse.models.SensitivityLabelUpdateList; import com.azure.resourcemanager.synapse.models.SqlPoolSensitivityLabels; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolSensitivityLabelsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolSensitivityLabelsImpl.class); private final SqlPoolSensitivityLabelsClient innerClient; @@ -226,7 +225,7 @@ public Response disableRecommendationWithResponse( public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -234,35 +233,35 @@ public void deleteById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } String schemaName = Utils.getValueFromIdByName(id, "schemas"); if (schemaName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'schemas'.", id))); } String tableName = Utils.getValueFromIdByName(id, "tables"); if (tableName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'tables'.", id))); } String columnName = Utils.getValueFromIdByName(id, "columns"); if (columnName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'columns'.", id))); @@ -275,7 +274,7 @@ public void deleteById(String id) { public Response deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -283,35 +282,35 @@ public Response deleteByIdWithResponse(String id, Context context) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } String schemaName = Utils.getValueFromIdByName(id, "schemas"); if (schemaName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'schemas'.", id))); } String tableName = Utils.getValueFromIdByName(id, "tables"); if (tableName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'tables'.", id))); } String columnName = Utils.getValueFromIdByName(id, "columns"); if (columnName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'columns'.", id))); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsClientImpl.java index f8a1304b1ed07..282132d5da364 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsClientImpl.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.synapse.fluent.SqlPoolTableColumnsClient; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolColumnInner; import com.azure.resourcemanager.synapse.models.SqlPoolColumnListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in SqlPoolTableColumnsClient. */ public final class SqlPoolTableColumnsClientImpl implements SqlPoolTableColumnsClient { - private final ClientLogger logger = new ClientLogger(SqlPoolTableColumnsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolTableColumnsService service; @@ -262,7 +259,7 @@ private Mono> listByTableNameSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return columns in a given table in a SQL pool. + * @return columns in a given table in a SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByTableNameAsync( @@ -290,7 +287,7 @@ private PagedFlux listByTableNameAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return columns in a given table in a SQL pool. + * @return columns in a given table in a SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByTableNameAsync( @@ -316,7 +313,7 @@ private PagedFlux listByTableNameAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return columns in a given table in a SQL pool. + * @return columns in a given table in a SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByTableNameAsync( @@ -345,7 +342,7 @@ private PagedFlux listByTableNameAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return columns in a given table in a SQL pool. + * @return columns in a given table in a SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByTableName( @@ -368,7 +365,7 @@ public PagedIterable listByTableName( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return columns in a given table in a SQL pool. + * @return columns in a given table in a SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByTableName( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsImpl.java index 2366da2f09423..b1b5e41b3283c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolColumnInner; import com.azure.resourcemanager.synapse.models.SqlPoolColumn; import com.azure.resourcemanager.synapse.models.SqlPoolTableColumns; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolTableColumnsImpl implements SqlPoolTableColumns { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolTableColumnsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolTableColumnsImpl.class); private final SqlPoolTableColumnsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesClientImpl.java index 3458b2260080f..c394365ea73c2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesClientImpl.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.synapse.fluent.SqlPoolTablesClient; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolTableInner; import com.azure.resourcemanager.synapse.models.SqlPoolTableListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in SqlPoolTablesClient. */ public final class SqlPoolTablesClientImpl implements SqlPoolTablesClient { - private final ClientLogger logger = new ClientLogger(SqlPoolTablesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolTablesService service; @@ -262,7 +259,7 @@ private Mono> listBySchemaSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return tables of a given schema in a SQL pool. + * @return tables of a given schema in a SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listBySchemaAsync( @@ -282,7 +279,7 @@ private PagedFlux listBySchemaAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return tables of a given schema in a SQL pool. + * @return tables of a given schema in a SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listBySchemaAsync( @@ -305,7 +302,7 @@ private PagedFlux listBySchemaAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return tables of a given schema in a SQL pool. + * @return tables of a given schema in a SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listBySchemaAsync( @@ -331,7 +328,7 @@ private PagedFlux listBySchemaAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return tables of a given schema in a SQL pool. + * @return tables of a given schema in a SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listBySchema( @@ -353,7 +350,7 @@ public PagedIterable listBySchema( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return tables of a given schema in a SQL pool. + * @return tables of a given schema in a SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listBySchema( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesImpl.java index 2b3276c8e03f1..c4ef0645ed870 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolTableInner; import com.azure.resourcemanager.synapse.models.SqlPoolTable; import com.azure.resourcemanager.synapse.models.SqlPoolTables; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolTablesImpl implements SqlPoolTables { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolTablesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolTablesImpl.class); private final SqlPoolTablesClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsClientImpl.java index b2c0d21b9eefb..6c83c4a121d87 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsClientImpl.java @@ -27,7 +27,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.synapse.fluent.SqlPoolTransparentDataEncryptionsClient; import com.azure.resourcemanager.synapse.fluent.models.TransparentDataEncryptionInner; import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionListResult; @@ -38,8 +37,6 @@ * An instance of this class provides access to all the operations defined in SqlPoolTransparentDataEncryptionsClient. */ public final class SqlPoolTransparentDataEncryptionsClientImpl implements SqlPoolTransparentDataEncryptionsClient { - private final ClientLogger logger = new ClientLogger(SqlPoolTransparentDataEncryptionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolTransparentDataEncryptionsService service; @@ -702,7 +699,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool's transparent data encryption configurations. + * @return list of SQL pool's transparent data encryption configurations as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -722,7 +720,8 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool's transparent data encryption configurations. + * @return list of SQL pool's transparent data encryption configurations as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -741,7 +740,8 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool's transparent data encryption configurations. + * @return list of SQL pool's transparent data encryption configurations as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -759,7 +759,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool's transparent data encryption configurations. + * @return list of SQL pool's transparent data encryption configurations as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsImpl.java index 0885c68a9f032..50c58a971995a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsImpl.java @@ -14,10 +14,9 @@ import com.azure.resourcemanager.synapse.models.SqlPoolTransparentDataEncryptions; import com.azure.resourcemanager.synapse.models.TransparentDataEncryption; import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionName; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolTransparentDataEncryptionsImpl implements SqlPoolTransparentDataEncryptions { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolTransparentDataEncryptionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolTransparentDataEncryptionsImpl.class); private final SqlPoolTransparentDataEncryptionsClient innerClient; @@ -82,7 +81,7 @@ public PagedIterable list( public TransparentDataEncryption getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -90,14 +89,14 @@ public TransparentDataEncryption getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -105,7 +104,7 @@ public TransparentDataEncryption getById(String id) { TransparentDataEncryptionName transparentDataEncryptionName = TransparentDataEncryptionName.fromString(Utils.getValueFromIdByName(id, "transparentDataEncryption")); if (transparentDataEncryptionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -121,7 +120,7 @@ public TransparentDataEncryption 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 @@ -129,14 +128,14 @@ public Response getByIdWithResponse(String id, Contex } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -144,7 +143,7 @@ public Response getByIdWithResponse(String id, Contex TransparentDataEncryptionName transparentDataEncryptionName = TransparentDataEncryptionName.fromString(Utils.getValueFromIdByName(id, "transparentDataEncryption")); if (transparentDataEncryptionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesClientImpl.java index 2003c3d3c8757..44ead171518cc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesClientImpl.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.synapse.fluent.SqlPoolUsagesClient; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolUsageInner; import com.azure.resourcemanager.synapse.models.SqlPoolUsageListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in SqlPoolUsagesClient. */ public final class SqlPoolUsagesClientImpl implements SqlPoolUsagesClient { - private final ClientLogger logger = new ClientLogger(SqlPoolUsagesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolUsagesService service; @@ -219,7 +216,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool usages. + * @return sQL pool usages as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { @@ -238,7 +235,7 @@ private PagedFlux listAsync(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool usages. + * @return sQL pool usages as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -257,7 +254,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool usages. + * @return sQL pool usages as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName) { @@ -274,7 +271,7 @@ public PagedIterable list(String resourceGroupName, String wo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool usages. + * @return sQL pool usages as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesImpl.java index 3f3e4f6bf1a68..c0ea3451cfcf3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolUsageInner; import com.azure.resourcemanager.synapse.models.SqlPoolUsage; import com.azure.resourcemanager.synapse.models.SqlPoolUsages; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolUsagesImpl implements SqlPoolUsages { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolUsagesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolUsagesImpl.class); private final SqlPoolUsagesClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl.java index 679197736c233..bd30ffb4ab5b4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl.java @@ -24,7 +24,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.SqlPoolVulnerabilityAssessmentRuleBaselinesClient; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentRuleBaselineInner; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; @@ -37,8 +36,6 @@ */ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl implements SqlPoolVulnerabilityAssessmentRuleBaselinesClient { - private final ClientLogger logger = new ClientLogger(SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolVulnerabilityAssessmentRuleBaselinesService service; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.java index 69f0c97d8db9c..6f2059798b4a5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.java @@ -14,12 +14,10 @@ import com.azure.resourcemanager.synapse.models.SqlPoolVulnerabilityAssessmentRuleBaselines; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentPolicyBaselineName; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolVulnerabilityAssessmentRuleBaselinesImpl implements SqlPoolVulnerabilityAssessmentRuleBaselines { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.class); private final SqlPoolVulnerabilityAssessmentRuleBaselinesClient innerClient; @@ -115,7 +113,7 @@ public Response getWithResponse( public SqlPoolVulnerabilityAssessmentRuleBaseline getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -123,14 +121,14 @@ public SqlPoolVulnerabilityAssessmentRuleBaseline getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -138,7 +136,7 @@ public SqlPoolVulnerabilityAssessmentRuleBaseline getById(String id) { VulnerabilityAssessmentName vulnerabilityAssessmentName = VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); if (vulnerabilityAssessmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -148,7 +146,7 @@ public SqlPoolVulnerabilityAssessmentRuleBaseline getById(String id) { } String ruleId = Utils.getValueFromIdByName(id, "rules"); if (ruleId == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); @@ -156,7 +154,7 @@ public SqlPoolVulnerabilityAssessmentRuleBaseline getById(String id) { VulnerabilityAssessmentPolicyBaselineName baselineName = VulnerabilityAssessmentPolicyBaselineName.fromString(Utils.getValueFromIdByName(id, "baselines")); if (baselineName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'baselines'.", id))); @@ -176,7 +174,7 @@ public SqlPoolVulnerabilityAssessmentRuleBaseline 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 @@ -184,14 +182,14 @@ public Response getByIdWithResponse( } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -199,7 +197,7 @@ public Response getByIdWithResponse( VulnerabilityAssessmentName vulnerabilityAssessmentName = VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); if (vulnerabilityAssessmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -209,7 +207,7 @@ public Response getByIdWithResponse( } String ruleId = Utils.getValueFromIdByName(id, "rules"); if (ruleId == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); @@ -217,7 +215,7 @@ public Response getByIdWithResponse( VulnerabilityAssessmentPolicyBaselineName baselineName = VulnerabilityAssessmentPolicyBaselineName.fromString(Utils.getValueFromIdByName(id, "baselines")); if (baselineName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'baselines'.", id))); @@ -236,7 +234,7 @@ public Response getByIdWithResponse( public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -244,14 +242,14 @@ public void deleteById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -259,7 +257,7 @@ public void deleteById(String id) { VulnerabilityAssessmentName vulnerabilityAssessmentName = VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); if (vulnerabilityAssessmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -269,7 +267,7 @@ public void deleteById(String id) { } String ruleId = Utils.getValueFromIdByName(id, "rules"); if (ruleId == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); @@ -277,7 +275,7 @@ public void deleteById(String id) { VulnerabilityAssessmentPolicyBaselineName baselineName = VulnerabilityAssessmentPolicyBaselineName.fromString(Utils.getValueFromIdByName(id, "baselines")); if (baselineName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'baselines'.", id))); @@ -296,7 +294,7 @@ public void deleteById(String id) { public Response deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -304,14 +302,14 @@ public Response deleteByIdWithResponse(String id, Context context) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -319,7 +317,7 @@ public Response deleteByIdWithResponse(String id, Context context) { VulnerabilityAssessmentName vulnerabilityAssessmentName = VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); if (vulnerabilityAssessmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -329,7 +327,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String ruleId = Utils.getValueFromIdByName(id, "rules"); if (ruleId == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); @@ -337,7 +335,7 @@ public Response deleteByIdWithResponse(String id, Context context) { VulnerabilityAssessmentPolicyBaselineName baselineName = VulnerabilityAssessmentPolicyBaselineName.fromString(Utils.getValueFromIdByName(id, "baselines")); if (baselineName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'baselines'.", id))); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansClientImpl.java index 43f00220e33de..f5b582c660df3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansClientImpl.java @@ -27,7 +27,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.SqlPoolVulnerabilityAssessmentScansClient; @@ -43,8 +42,6 @@ * An instance of this class provides access to all the operations defined in SqlPoolVulnerabilityAssessmentScansClient. */ public final class SqlPoolVulnerabilityAssessmentScansClientImpl implements SqlPoolVulnerabilityAssessmentScansClient { - private final ClientLogger logger = new ClientLogger(SqlPoolVulnerabilityAssessmentScansClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolVulnerabilityAssessmentScansService service; @@ -317,7 +314,7 @@ private Mono> listSinglePa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of vulnerability assessment scan records. + * @return a list of vulnerability assessment scan records as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -341,7 +338,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of vulnerability assessment scan records. + * @return a list of vulnerability assessment scan records as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -367,7 +364,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of vulnerability assessment scan records. + * @return a list of vulnerability assessment scan records as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -390,7 +387,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of vulnerability assessment scan records. + * @return a list of vulnerability assessment scan records as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -551,7 +548,7 @@ private Mono>> initiateScanWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginInitiateScanAsync( @@ -581,7 +578,7 @@ private PollerFlux, Void> beginInitiateScanAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginInitiateScanAsync( @@ -611,7 +608,7 @@ private PollerFlux, Void> beginInitiateScanAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginInitiateScan( @@ -637,7 +634,7 @@ public SyncPoller, Void> beginInitiateScan( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginInitiateScan( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansImpl.java index 1ac3a4fed455a..541f3d07dd76b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansImpl.java @@ -16,10 +16,9 @@ import com.azure.resourcemanager.synapse.models.SqlPoolVulnerabilityAssessmentScansExport; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentScanRecord; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolVulnerabilityAssessmentScansImpl implements SqlPoolVulnerabilityAssessmentScans { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolVulnerabilityAssessmentScansImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolVulnerabilityAssessmentScansImpl.class); private final SqlPoolVulnerabilityAssessmentScansClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsClientImpl.java index 7376693e04fdb..dbff006b07a39 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsClientImpl.java @@ -28,7 +28,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.synapse.fluent.SqlPoolVulnerabilityAssessmentsClient; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentInner; import com.azure.resourcemanager.synapse.models.SqlPoolVulnerabilityAssessmentListResult; @@ -37,8 +36,6 @@ /** An instance of this class provides access to all the operations defined in SqlPoolVulnerabilityAssessmentsClient. */ public final class SqlPoolVulnerabilityAssessmentsClientImpl implements SqlPoolVulnerabilityAssessmentsClient { - private final ClientLogger logger = new ClientLogger(SqlPoolVulnerabilityAssessmentsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolVulnerabilityAssessmentsService service; @@ -280,7 +277,7 @@ private Mono> listSinglePageA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the Sql pool's vulnerability assessments. + * @return a list of the Sql pool's vulnerability assessments as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -300,7 +297,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the Sql pool's vulnerability assessments. + * @return a list of the Sql pool's vulnerability assessments as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -319,7 +316,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the Sql pool's vulnerability assessments. + * @return a list of the Sql pool's vulnerability assessments as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -337,7 +334,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the Sql pool's vulnerability assessments. + * @return a list of the Sql pool's vulnerability assessments as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsImpl.java index 4cb02ae35c4b2..9d8aba157465e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsImpl.java @@ -14,10 +14,9 @@ import com.azure.resourcemanager.synapse.models.SqlPoolVulnerabilityAssessment; import com.azure.resourcemanager.synapse.models.SqlPoolVulnerabilityAssessments; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolVulnerabilityAssessmentsImpl implements SqlPoolVulnerabilityAssessments { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolVulnerabilityAssessmentsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolVulnerabilityAssessmentsImpl.class); private final SqlPoolVulnerabilityAssessmentsClient innerClient; @@ -101,7 +100,7 @@ public Response deleteWithResponse( public SqlPoolVulnerabilityAssessment getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -109,14 +108,14 @@ public SqlPoolVulnerabilityAssessment getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -124,7 +123,7 @@ public SqlPoolVulnerabilityAssessment getById(String id) { VulnerabilityAssessmentName vulnerabilityAssessmentName = VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); if (vulnerabilityAssessmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -140,7 +139,7 @@ public SqlPoolVulnerabilityAssessment 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 @@ -148,14 +147,14 @@ public Response getByIdWithResponse(String id, C } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -163,7 +162,7 @@ public Response getByIdWithResponse(String id, C VulnerabilityAssessmentName vulnerabilityAssessmentName = VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); if (vulnerabilityAssessmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -178,7 +177,7 @@ public Response getByIdWithResponse(String id, C public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -186,14 +185,14 @@ public void deleteById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -201,7 +200,7 @@ public void deleteById(String id) { VulnerabilityAssessmentName vulnerabilityAssessmentName = VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); if (vulnerabilityAssessmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -217,7 +216,7 @@ public void deleteById(String id) { public Response deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -225,14 +224,14 @@ public Response deleteByIdWithResponse(String id, Context context) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -240,7 +239,7 @@ public Response deleteByIdWithResponse(String id, Context context) { VulnerabilityAssessmentName vulnerabilityAssessmentName = VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); if (vulnerabilityAssessmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersClientImpl.java index 3993cafe971cc..1551b3500116e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersClientImpl.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.synapse.fluent.SqlPoolWorkloadClassifiersClient; @@ -41,8 +40,6 @@ /** An instance of this class provides access to all the operations defined in SqlPoolWorkloadClassifiersClient. */ public final class SqlPoolWorkloadClassifiersClientImpl implements SqlPoolWorkloadClassifiersClient { - private final ClientLogger logger = new ClientLogger(SqlPoolWorkloadClassifiersClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolWorkloadClassifiersService service; @@ -551,8 +548,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workload classifier operations for a data warehouse along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link PollerFlux} for polling of workload classifier operations for a data warehouse. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadClassifierInner> beginCreateOrUpdateAsync( @@ -588,8 +584,7 @@ private PollerFlux, WorkloadClassifierInner> * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workload classifier operations for a data warehouse along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link PollerFlux} for polling of workload classifier operations for a data warehouse. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadClassifierInner> beginCreateOrUpdateAsync( @@ -632,8 +627,7 @@ private PollerFlux, WorkloadClassifierInner> * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workload classifier operations for a data warehouse along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link SyncPoller} for polling of workload classifier operations for a data warehouse. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadClassifierInner> beginCreateOrUpdate( @@ -661,8 +655,7 @@ public SyncPoller, WorkloadClassifierInner> * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workload classifier operations for a data warehouse along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link SyncPoller} for polling of workload classifier operations for a data warehouse. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadClassifierInner> beginCreateOrUpdate( @@ -958,7 +951,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -988,7 +981,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1018,7 +1011,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1044,7 +1037,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1308,7 +1301,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload classifier for workload groups. + * @return list of Sql pool's workload classifier for workload groups as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -1329,7 +1322,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload classifier for workload groups. + * @return list of Sql pool's workload classifier for workload groups as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -1349,7 +1342,8 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload classifier for workload groups. + * @return list of Sql pool's workload classifier for workload groups as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -1368,7 +1362,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload classifier for workload groups. + * @return list of Sql pool's workload classifier for workload groups as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersImpl.java index bf705393744e1..ac1f180943cbd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.WorkloadClassifierInner; import com.azure.resourcemanager.synapse.models.SqlPoolWorkloadClassifiers; import com.azure.resourcemanager.synapse.models.WorkloadClassifier; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolWorkloadClassifiersImpl implements SqlPoolWorkloadClassifiers { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolWorkloadClassifiersImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolWorkloadClassifiersImpl.class); private final SqlPoolWorkloadClassifiersClient innerClient; @@ -108,7 +107,7 @@ public PagedIterable list( public WorkloadClassifier getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -116,21 +115,21 @@ public WorkloadClassifier getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } String workloadGroupName = Utils.getValueFromIdByName(id, "workloadGroups"); if (workloadGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -138,7 +137,7 @@ public WorkloadClassifier getById(String id) { } String workloadClassifierName = Utils.getValueFromIdByName(id, "workloadClassifiers"); if (workloadClassifierName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -154,7 +153,7 @@ public WorkloadClassifier 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 @@ -162,21 +161,21 @@ public Response getByIdWithResponse(String id, Context conte } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } String workloadGroupName = Utils.getValueFromIdByName(id, "workloadGroups"); if (workloadGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -184,7 +183,7 @@ public Response getByIdWithResponse(String id, Context conte } String workloadClassifierName = Utils.getValueFromIdByName(id, "workloadClassifiers"); if (workloadClassifierName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -199,7 +198,7 @@ public Response getByIdWithResponse(String id, Context conte public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -207,21 +206,21 @@ public void deleteById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } String workloadGroupName = Utils.getValueFromIdByName(id, "workloadGroups"); if (workloadGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -229,7 +228,7 @@ public void deleteById(String id) { } String workloadClassifierName = Utils.getValueFromIdByName(id, "workloadClassifiers"); if (workloadClassifierName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -244,7 +243,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 @@ -252,21 +251,21 @@ public void deleteByIdWithResponse(String id, Context context) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } String workloadGroupName = Utils.getValueFromIdByName(id, "workloadGroups"); if (workloadGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -274,7 +273,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String workloadClassifierName = Utils.getValueFromIdByName(id, "workloadClassifiers"); if (workloadClassifierName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsClientImpl.java index 8b6179fabebf7..6aadef1ed98d4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsClientImpl.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.synapse.fluent.SqlPoolWorkloadGroupsClient; @@ -41,8 +40,6 @@ /** An instance of this class provides access to all the operations defined in SqlPoolWorkloadGroupsClient. */ public final class SqlPoolWorkloadGroupsClientImpl implements SqlPoolWorkloadGroupsClient { - private final ClientLogger logger = new ClientLogger(SqlPoolWorkloadGroupsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolWorkloadGroupsService service; @@ -481,8 +478,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workload group operations for a sql pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of workload group operations for a sql pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadGroupInner> beginCreateOrUpdateAsync( @@ -516,8 +512,7 @@ private PollerFlux, WorkloadGroupInner> beginCrea * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workload group operations for a sql pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of workload group operations for a sql pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadGroupInner> beginCreateOrUpdateAsync( @@ -548,8 +543,7 @@ private PollerFlux, WorkloadGroupInner> beginCrea * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workload group operations for a sql pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of workload group operations for a sql pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadGroupInner> beginCreateOrUpdate( @@ -574,8 +568,7 @@ public SyncPoller, WorkloadGroupInner> beginCreat * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workload group operations for a sql pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of workload group operations for a sql pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadGroupInner> beginCreateOrUpdate( @@ -818,7 +811,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -842,7 +835,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -865,7 +858,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -884,7 +877,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1103,7 +1096,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload groups. + * @return list of Sql pool's workload groups as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -1123,7 +1116,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload groups. + * @return list of Sql pool's workload groups as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -1142,7 +1135,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload groups. + * @return list of Sql pool's workload groups as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName) { @@ -1159,7 +1152,7 @@ public PagedIterable list(String resourceGroupName, String w * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload groups. + * @return list of Sql pool's workload groups as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsImpl.java index 25dc5e9caa0ef..f309207c53d13 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.WorkloadGroupInner; import com.azure.resourcemanager.synapse.models.SqlPoolWorkloadGroups; import com.azure.resourcemanager.synapse.models.WorkloadGroup; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolWorkloadGroupsImpl implements SqlPoolWorkloadGroups { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolWorkloadGroupsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolWorkloadGroupsImpl.class); private final SqlPoolWorkloadGroupsClient innerClient; @@ -81,7 +80,7 @@ public PagedIterable list( public WorkloadGroup getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -89,21 +88,21 @@ public WorkloadGroup getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } String workloadGroupName = Utils.getValueFromIdByName(id, "workloadGroups"); if (workloadGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -117,7 +116,7 @@ public WorkloadGroup 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 @@ -125,21 +124,21 @@ public Response getByIdWithResponse(String id, Context context) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } String workloadGroupName = Utils.getValueFromIdByName(id, "workloadGroups"); if (workloadGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -151,7 +150,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 @@ -159,21 +158,21 @@ public void deleteById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } String workloadGroupName = Utils.getValueFromIdByName(id, "workloadGroups"); if (workloadGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -185,7 +184,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 @@ -193,21 +192,21 @@ public void deleteByIdWithResponse(String id, Context context) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } String workloadGroupName = Utils.getValueFromIdByName(id, "workloadGroups"); if (workloadGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsClientImpl.java index 8c3ed2591eb38..33f8f0d24f259 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsClientImpl.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.synapse.fluent.SqlPoolsClient; @@ -45,8 +44,6 @@ /** An instance of this class provides access to all the operations defined in SqlPoolsClient. */ public final class SqlPoolsClientImpl implements SqlPoolsClient { - private final ClientLogger logger = new ClientLogger(SqlPoolsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SqlPoolsService service; @@ -695,7 +692,7 @@ private Mono>> createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SqlPoolInner> beginCreateAsync( @@ -719,7 +716,7 @@ private PollerFlux, SqlPoolInner> beginCreateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SqlPoolInner> beginCreateAsync( @@ -743,7 +740,7 @@ private PollerFlux, SqlPoolInner> beginCreateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SqlPoolInner> beginCreate( @@ -762,7 +759,7 @@ public SyncPoller, SqlPoolInner> beginCreate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SqlPoolInner> beginCreate( @@ -963,7 +960,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Object> beginDeleteAsync( @@ -985,7 +982,7 @@ private PollerFlux, Object> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Object> beginDeleteAsync( @@ -1007,7 +1004,7 @@ private PollerFlux, Object> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Object> beginDelete( @@ -1025,7 +1022,7 @@ public SyncPoller, Object> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Object> beginDelete( @@ -1226,7 +1223,7 @@ private Mono> listByWorkspaceSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool collection. + * @return sQL pool collection as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) { @@ -1244,7 +1241,7 @@ private PagedFlux listByWorkspaceAsync(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool collection. + * @return sQL pool collection as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync( @@ -1262,7 +1259,7 @@ private PagedFlux listByWorkspaceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool collection. + * @return sQL pool collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { @@ -1278,7 +1275,7 @@ public PagedIterable listByWorkspace(String resourceGroupName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool collection. + * @return sQL pool collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace( @@ -1401,7 +1398,7 @@ private Mono>> pauseWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Object> beginPauseAsync( @@ -1423,7 +1420,7 @@ private PollerFlux, Object> beginPauseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Object> beginPauseAsync( @@ -1445,7 +1442,7 @@ private PollerFlux, Object> beginPauseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Object> beginPause( @@ -1463,7 +1460,7 @@ public SyncPoller, Object> beginPause( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Object> beginPause( @@ -1657,7 +1654,7 @@ private Mono>> resumeWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Object> beginResumeAsync( @@ -1679,7 +1676,7 @@ private PollerFlux, Object> beginResumeAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Object> beginResumeAsync( @@ -1701,7 +1698,7 @@ private PollerFlux, Object> beginResumeAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Object> beginResume( @@ -1719,7 +1716,7 @@ public SyncPoller, Object> beginResume( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Object> beginResume( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsImpl.java index d5a6738ac08c3..c87f071071dbb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsImpl.java @@ -14,10 +14,9 @@ import com.azure.resourcemanager.synapse.models.ResourceMoveDefinition; import com.azure.resourcemanager.synapse.models.SqlPool; import com.azure.resourcemanager.synapse.models.SqlPools; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SqlPoolsImpl implements SqlPools { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolsImpl.class); private final SqlPoolsClient innerClient; @@ -106,7 +105,7 @@ public Response renameWithResponse( public SqlPool getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -114,14 +113,14 @@ public SqlPool getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -132,7 +131,7 @@ public SqlPool 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 @@ -140,14 +139,14 @@ public Response getByIdWithResponse(String id, Context context) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -158,7 +157,7 @@ public Response getByIdWithResponse(String id, Context context) { public Object deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -166,14 +165,14 @@ public Object deleteById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); @@ -184,7 +183,7 @@ public Object deleteById(String id) { public Object deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -192,14 +191,14 @@ public Object deleteByIdWithResponse(String id, Context context) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientImpl.java index 14312f876e938..10e0481797ca8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientImpl.java @@ -86,6 +86,7 @@ import com.azure.resourcemanager.synapse.fluent.WorkspaceAadAdminsClient; import com.azure.resourcemanager.synapse.fluent.WorkspaceManagedIdentitySqlControlSettingsClient; import com.azure.resourcemanager.synapse.fluent.WorkspaceManagedSqlServerBlobAuditingPoliciesClient; +import com.azure.resourcemanager.synapse.fluent.WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient; import com.azure.resourcemanager.synapse.fluent.WorkspaceManagedSqlServerEncryptionProtectorsClient; import com.azure.resourcemanager.synapse.fluent.WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient; import com.azure.resourcemanager.synapse.fluent.WorkspaceManagedSqlServerRecoverableSqlPoolsClient; @@ -107,8 +108,6 @@ /** Initializes a new instance of the SynapseManagementClientImpl type. */ @ServiceClient(builder = SynapseManagementClientBuilder.class) public final class SynapseManagementClientImpl implements SynapseManagementClient { - private final ClientLogger logger = new ClientLogger(SynapseManagementClientImpl.class); - /** The ID of the target subscription. */ private final String subscriptionId; @@ -713,6 +712,20 @@ public WorkspaceManagedSqlServerRecoverableSqlPoolsClient getWorkspaceManagedSql return this.workspaceManagedSqlServerRecoverableSqlPools; } + /** The WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient object to access its operations. */ + private final WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient + workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; + + /** + * Gets the WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient object to access its operations. + * + * @return the WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient object. + */ + public WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient + getWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() { + return this.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; + } + /** The WorkspacesClient object to access its operations. */ private final WorkspacesClient workspaces; @@ -1111,6 +1124,8 @@ public KustoPoolDatabasePrincipalAssignmentsClient getKustoPoolDatabasePrincipal this.workspaceManagedSqlServerUsages = new WorkspaceManagedSqlServerUsagesClientImpl(this); this.workspaceManagedSqlServerRecoverableSqlPools = new WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl(this); + this.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings = + new WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl(this); this.workspaces = new WorkspacesClientImpl(this); this.workspaceAadAdmins = new WorkspaceAadAdminsClientImpl(this); this.workspaceSqlAadAdmins = new WorkspaceSqlAadAdminsClientImpl(this); @@ -1224,7 +1239,7 @@ public Mono getLroFinalResultOrError(AsyncPollResponse, managementError = null; } } catch (IOException | RuntimeException ioe) { - logger.logThrowableAsWarning(ioe); + LOGGER.logThrowableAsWarning(ioe); } } } else { @@ -1283,4 +1298,6 @@ public Mono getBodyAsString(Charset charset) { return Mono.just(new String(responseBody, charset)); } } + + private static final ClientLogger LOGGER = new ClientLogger(SynapseManagementClientImpl.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsClientImpl.java index ca824ebdae79b..a3d0230903272 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsClientImpl.java @@ -25,7 +25,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.synapse.fluent.WorkspaceAadAdminsClient; @@ -36,8 +35,6 @@ /** An instance of this class provides access to all the operations defined in WorkspaceAadAdminsClient. */ public final class WorkspaceAadAdminsClientImpl implements WorkspaceAadAdminsClient { - private final ClientLogger logger = new ClientLogger(WorkspaceAadAdminsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkspaceAadAdminsService service; @@ -381,8 +378,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace active directory administrator along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkspaceAadAdminInfoInner> beginCreateOrUpdateAsync( @@ -409,8 +405,7 @@ private PollerFlux, WorkspaceAadAdminInfo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace active directory administrator along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkspaceAadAdminInfoInner> beginCreateOrUpdateAsync( @@ -437,8 +432,7 @@ private PollerFlux, WorkspaceAadAdminInfo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace active directory administrator along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkspaceAadAdminInfoInner> beginCreateOrUpdate( @@ -456,8 +450,7 @@ public SyncPoller, WorkspaceAadAdminInfoI * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace active directory administrator along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkspaceAadAdminInfoInner> beginCreateOrUpdate( @@ -642,7 +635,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName) { @@ -662,7 +655,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -682,7 +675,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName) { @@ -698,7 +691,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsImpl.java index dace94fefa91a..0e74795f049b1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner; import com.azure.resourcemanager.synapse.models.WorkspaceAadAdminInfo; import com.azure.resourcemanager.synapse.models.WorkspaceAadAdmins; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkspaceAadAdminsImpl implements WorkspaceAadAdmins { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceAadAdminsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkspaceAadAdminsImpl.class); private final WorkspaceAadAdminsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsClientImpl.java index 73eaa1caae2c2..83383320aa0c5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsClientImpl.java @@ -24,7 +24,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.synapse.fluent.WorkspaceManagedIdentitySqlControlSettingsClient; @@ -39,8 +38,6 @@ */ public final class WorkspaceManagedIdentitySqlControlSettingsClientImpl implements WorkspaceManagedIdentitySqlControlSettingsClient { - private final ClientLogger logger = new ClientLogger(WorkspaceManagedIdentitySqlControlSettingsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkspaceManagedIdentitySqlControlSettingsService service; @@ -387,8 +384,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Identity Sql Control Settings along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of managed Identity Sql Control Settings. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux< @@ -419,8 +415,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Identity Sql Control Settings along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of managed Identity Sql Control Settings. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux< @@ -453,8 +448,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Identity Sql Control Settings along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of managed Identity Sql Control Settings. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller< @@ -477,8 +471,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Identity Sql Control Settings along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of managed Identity Sql Control Settings. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller< diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsImpl.java index e1745668b8819..d19b3b6c4023e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsImpl.java @@ -12,12 +12,10 @@ import com.azure.resourcemanager.synapse.fluent.models.ManagedIdentitySqlControlSettingsModelInner; import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModel; import com.azure.resourcemanager.synapse.models.WorkspaceManagedIdentitySqlControlSettings; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkspaceManagedIdentitySqlControlSettingsImpl implements WorkspaceManagedIdentitySqlControlSettings { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(WorkspaceManagedIdentitySqlControlSettingsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkspaceManagedIdentitySqlControlSettingsImpl.class); private final WorkspaceManagedIdentitySqlControlSettingsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl.java index a7293fcbe7958..097b824498ff5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl.java @@ -28,7 +28,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.synapse.fluent.WorkspaceManagedSqlServerBlobAuditingPoliciesClient; @@ -45,8 +44,6 @@ */ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl implements WorkspaceManagedSqlServerBlobAuditingPoliciesClient { - private final ClientLogger logger = new ClientLogger(WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkspaceManagedSqlServerBlobAuditingPoliciesService service; @@ -453,7 +450,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a server blob auditing policy along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of a server blob auditing policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ServerBlobAuditingPolicyInner> @@ -485,7 +482,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a server blob auditing policy along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of a server blob auditing policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ServerBlobAuditingPolicyInner> @@ -519,7 +516,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a server blob auditing policy along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a server blob auditing policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ServerBlobAuditingPolicyInner> beginCreateOrUpdate( @@ -542,7 +539,7 @@ public SyncPoller, ServerBlobAuditingP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a server blob auditing policy along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a server blob auditing policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ServerBlobAuditingPolicyInner> beginCreateOrUpdate( @@ -772,7 +769,7 @@ private Mono> listByWorkspaceSingle * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server auditing settings. + * @return a list of server auditing settings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync( @@ -791,7 +788,7 @@ private PagedFlux listByWorkspaceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server auditing settings. + * @return a list of server auditing settings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync( @@ -809,7 +806,7 @@ private PagedFlux listByWorkspaceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server auditing settings. + * @return a list of server auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace( @@ -826,7 +823,7 @@ public PagedIterable listByWorkspace( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server auditing settings. + * @return a list of server auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesImpl.java index 6d39bb1ee5c53..03015668c94b0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesImpl.java @@ -14,12 +14,11 @@ import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyName; import com.azure.resourcemanager.synapse.models.ServerBlobAuditingPolicy; import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerBlobAuditingPolicies; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl implements WorkspaceManagedSqlServerBlobAuditingPolicies { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(WorkspaceManagedSqlServerBlobAuditingPoliciesImpl.class); + private static final ClientLogger LOGGER = + new ClientLogger(WorkspaceManagedSqlServerBlobAuditingPoliciesImpl.class); private final WorkspaceManagedSqlServerBlobAuditingPoliciesClient innerClient; @@ -77,7 +76,7 @@ public PagedIterable listByWorkspace( public ServerBlobAuditingPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -85,7 +84,7 @@ public ServerBlobAuditingPolicy getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); @@ -93,7 +92,7 @@ public ServerBlobAuditingPolicy getById(String id) { BlobAuditingPolicyName blobAuditingPolicyName = BlobAuditingPolicyName.fromString(Utils.getValueFromIdByName(id, "auditingSettings")); if (blobAuditingPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -106,7 +105,7 @@ public ServerBlobAuditingPolicy 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 @@ -114,7 +113,7 @@ public Response getByIdWithResponse(String id, Context } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); @@ -122,7 +121,7 @@ public Response getByIdWithResponse(String id, Context BlobAuditingPolicyName blobAuditingPolicyName = BlobAuditingPolicyName.fromString(Utils.getValueFromIdByName(id, "auditingSettings")); if (blobAuditingPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl.java new file mode 100644 index 0000000000000..ff882514521c7 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl.java @@ -0,0 +1,911 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.synapse.fluent.WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient; +import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; +import com.azure.resourcemanager.synapse.models.DedicatedSQLminimalTlsSettingsListResult; +import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient. + */ +public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl + implements WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient { + /** The proxy service used to perform REST calls. */ + private final WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsService service; + + /** The service client containing this operation class. */ + private final SynapseManagementClientImpl client; + + /** + * Initializes an instance of WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl(SynapseManagementClientImpl client) { + this.service = + RestProxy + .create( + WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsService.class, + client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for + * SynapseManagementClientWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings to be used by the proxy service to + * perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "SynapseManagementCli") + private interface WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsService { + @Headers({"Content-Type: application/json"}) + @Put( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" + + "/{workspaceName}/dedicatedSQLminimalTlsSettings/{dedicatedSQLminimalTlsSettingsName}") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update( + @HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("workspaceName") String workspaceName, + @PathParam("dedicatedSQLminimalTlsSettingsName") + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + @BodyParam("application/json") DedicatedSQLminimalTlsSettingsInner parameters, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" + + "/{workspaceName}/dedicatedSQLminimalTlsSettings/{dedicatedSQLminimalTlsSettingsName}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get( + @HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("workspaceName") String workspaceName, + @PathParam("dedicatedSQLminimalTlsSettingsName") String dedicatedSQLminimalTlsSettingsName, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" + + "/{workspaceName}/dedicatedSQLminimalTlsSettings") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list( + @HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, + Context context); + } + + /** + * Update workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param parameters minimal tls settings. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dedicated Sql Minimal Tls Settings Info along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + if (dedicatedSQLminimalTlsSettingsName == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter dedicatedSQLminimalTlsSettingsName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2021-06-01"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .update( + this.client.getEndpoint(), + apiVersion, + this.client.getSubscriptionId(), + resourceGroupName, + workspaceName, + dedicatedSQLminimalTlsSettingsName, + parameters, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Update workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param parameters minimal tls settings. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dedicated Sql Minimal Tls Settings Info along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + if (dedicatedSQLminimalTlsSettingsName == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter dedicatedSQLminimalTlsSettingsName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2021-06-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .update( + this.client.getEndpoint(), + apiVersion, + this.client.getSubscriptionId(), + resourceGroupName, + workspaceName, + dedicatedSQLminimalTlsSettingsName, + parameters, + accept, + context); + } + + /** + * Update workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param parameters minimal tls settings. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of dedicated Sql Minimal Tls Settings Info. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, DedicatedSQLminimalTlsSettingsInner> + beginUpdateAsync( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters) { + Mono>> mono = + updateWithResponseAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + DedicatedSQLminimalTlsSettingsInner.class, + DedicatedSQLminimalTlsSettingsInner.class, + this.client.getContext()); + } + + /** + * Update workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param parameters minimal tls settings. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of dedicated Sql Minimal Tls Settings Info. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, DedicatedSQLminimalTlsSettingsInner> + beginUpdateAsync( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + updateWithResponseAsync( + resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, context); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + DedicatedSQLminimalTlsSettingsInner.class, + DedicatedSQLminimalTlsSettingsInner.class, + context); + } + + /** + * Update workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param parameters minimal tls settings. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of dedicated Sql Minimal Tls Settings Info. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, DedicatedSQLminimalTlsSettingsInner> beginUpdate( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters) { + return beginUpdateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters) + .getSyncPoller(); + } + + /** + * Update workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param parameters minimal tls settings. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of dedicated Sql Minimal Tls Settings Info. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, DedicatedSQLminimalTlsSettingsInner> beginUpdate( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters, + Context context) { + return beginUpdateAsync( + resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, context) + .getSyncPoller(); + } + + /** + * Update workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param parameters minimal tls settings. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dedicated Sql Minimal Tls Settings Info on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters) { + return beginUpdateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Update workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param parameters minimal tls settings. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dedicated Sql Minimal Tls Settings Info on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters, + Context context) { + return beginUpdateAsync( + resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Update workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param parameters minimal tls settings. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dedicated Sql Minimal Tls Settings Info. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DedicatedSQLminimalTlsSettingsInner update( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters) { + return updateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters).block(); + } + + /** + * Update workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param parameters minimal tls settings. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dedicated Sql Minimal Tls Settings Info. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DedicatedSQLminimalTlsSettingsInner update( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters, + Context context) { + return updateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, context) + .block(); + } + + /** + * Get workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return workspace managed sql server's minimal tls settings along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync( + String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + if (dedicatedSQLminimalTlsSettingsName == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter dedicatedSQLminimalTlsSettingsName is required and cannot be null.")); + } + final String apiVersion = "2021-06-01"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .get( + this.client.getEndpoint(), + apiVersion, + this.client.getSubscriptionId(), + resourceGroupName, + workspaceName, + dedicatedSQLminimalTlsSettingsName, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return workspace managed sql server's minimal tls settings along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync( + String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + if (dedicatedSQLminimalTlsSettingsName == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter dedicatedSQLminimalTlsSettingsName is required and cannot be null.")); + } + final String apiVersion = "2021-06-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .get( + this.client.getEndpoint(), + apiVersion, + this.client.getSubscriptionId(), + resourceGroupName, + workspaceName, + dedicatedSQLminimalTlsSettingsName, + accept, + context); + } + + /** + * Get workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return workspace managed sql server's minimal tls settings on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync( + String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName) { + return getWithResponseAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName) + .flatMap( + (Response res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Get workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return workspace managed sql server's minimal tls settings. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DedicatedSQLminimalTlsSettingsInner get( + String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName) { + return getAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName).block(); + } + + /** + * Get workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return workspace managed sql server's minimal tls settings along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse( + String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, context) + .block(); + } + + /** + * List workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of the server's dedicated sql minimal tls settings along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync( + String resourceGroupName, String workspaceName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + final String apiVersion = "2021-06-01"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .list( + this.client.getEndpoint(), + apiVersion, + this.client.getSubscriptionId(), + resourceGroupName, + workspaceName, + accept, + context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of the server's dedicated sql minimal tls settings along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync( + String resourceGroupName, String workspaceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (workspaceName == null) { + return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); + } + final String apiVersion = "2021-06-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list( + this.client.getEndpoint(), + apiVersion, + this.client.getSubscriptionId(), + resourceGroupName, + workspaceName, + accept, + context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } + + /** + * List workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of the server's dedicated sql minimal tls settings as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String workspaceName) { + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of the server's dedicated sql minimal tls settings as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync( + String resourceGroupName, String workspaceName, Context context) { + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, workspaceName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * List workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of the server's dedicated sql minimal tls settings as paginated response with {@link + * PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String workspaceName) { + return new PagedIterable<>(listAsync(resourceGroupName, workspaceName)); + } + + /** + * List workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of the server's dedicated sql minimal tls settings as paginated response with {@link + * PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list( + String resourceGroupName, String workspaceName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of the server's dedicated sql minimal tls settings along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of the server's dedicated sql minimal tls settings along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync( + String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listNext(nextLink, this.client.getEndpoint(), accept, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl.java new file mode 100644 index 0000000000000..0a68242969324 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.synapse.fluent.WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient; +import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; +import com.azure.resourcemanager.synapse.models.DedicatedSQLminimalTlsSettings; +import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName; +import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; + +public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl + implements WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings { + private static final ClientLogger LOGGER = + new ClientLogger(WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl.class); + + private final WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient innerClient; + + private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; + + public WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl( + WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public DedicatedSQLminimalTlsSettings update( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters) { + DedicatedSQLminimalTlsSettingsInner inner = + this + .serviceClient() + .update(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters); + if (inner != null) { + return new DedicatedSQLminimalTlsSettingsImpl(inner, this.manager()); + } else { + return null; + } + } + + public DedicatedSQLminimalTlsSettings update( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters, + Context context) { + DedicatedSQLminimalTlsSettingsInner inner = + this + .serviceClient() + .update(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, context); + if (inner != null) { + return new DedicatedSQLminimalTlsSettingsImpl(inner, this.manager()); + } else { + return null; + } + } + + public DedicatedSQLminimalTlsSettings get( + String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName) { + DedicatedSQLminimalTlsSettingsInner inner = + this.serviceClient().get(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName); + if (inner != null) { + return new DedicatedSQLminimalTlsSettingsImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response getWithResponse( + String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context) { + Response inner = + this + .serviceClient() + .getWithResponse(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, context); + if (inner != null) { + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new DedicatedSQLminimalTlsSettingsImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public PagedIterable list(String resourceGroupName, String workspaceName) { + PagedIterable inner = + this.serviceClient().list(resourceGroupName, workspaceName); + return Utils.mapPage(inner, inner1 -> new DedicatedSQLminimalTlsSettingsImpl(inner1, this.manager())); + } + + public PagedIterable list( + String resourceGroupName, String workspaceName, Context context) { + PagedIterable inner = + this.serviceClient().list(resourceGroupName, workspaceName, context); + return Utils.mapPage(inner, inner1 -> new DedicatedSQLminimalTlsSettingsImpl(inner1, this.manager())); + } + + private WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.synapse.SynapseManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsClientImpl.java index 5b89289b29434..ebb4cc27b682d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsClientImpl.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.synapse.fluent.WorkspaceManagedSqlServerEncryptionProtectorsClient; @@ -46,8 +45,6 @@ */ public final class WorkspaceManagedSqlServerEncryptionProtectorsClientImpl implements WorkspaceManagedSqlServerEncryptionProtectorsClient { - private final ClientLogger logger = new ClientLogger(WorkspaceManagedSqlServerEncryptionProtectorsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkspaceManagedSqlServerEncryptionProtectorsService service; @@ -469,7 +466,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the server encryption protector along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of the server encryption protector. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, EncryptionProtectorInner> beginCreateOrUpdateAsync( @@ -500,7 +497,7 @@ private PollerFlux, EncryptionProtectorInne * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the server encryption protector along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of the server encryption protector. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, EncryptionProtectorInner> beginCreateOrUpdateAsync( @@ -533,7 +530,7 @@ private PollerFlux, EncryptionProtectorInne * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the server encryption protector along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the server encryption protector. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, EncryptionProtectorInner> beginCreateOrUpdate( @@ -556,7 +553,7 @@ public SyncPoller, EncryptionProtectorInner * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the server encryption protector along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of the server encryption protector. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, EncryptionProtectorInner> beginCreateOrUpdate( @@ -786,7 +783,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of encryption protectors for workspace managed sql server. + * @return list of encryption protectors for workspace managed sql server as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { @@ -803,7 +801,8 @@ private PagedFlux listAsync(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of encryption protectors for workspace managed sql server. + * @return list of encryption protectors for workspace managed sql server as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -821,7 +820,8 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of encryption protectors for workspace managed sql server. + * @return list of encryption protectors for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName) { @@ -837,7 +837,8 @@ public PagedIterable list(String resourceGroupName, St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of encryption protectors for workspace managed sql server. + * @return list of encryption protectors for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -963,7 +964,7 @@ private Mono>> revalidateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginRevalidateAsync( @@ -986,7 +987,7 @@ private PollerFlux, Void> beginRevalidateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginRevalidateAsync( @@ -1011,7 +1012,7 @@ private PollerFlux, Void> beginRevalidateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginRevalidate( @@ -1029,7 +1030,7 @@ public SyncPoller, Void> beginRevalidate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginRevalidate( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsImpl.java index 1263201eb6f6f..be70e526b35ac 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsImpl.java @@ -14,12 +14,11 @@ import com.azure.resourcemanager.synapse.models.EncryptionProtector; import com.azure.resourcemanager.synapse.models.EncryptionProtectorName; import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerEncryptionProtectors; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkspaceManagedSqlServerEncryptionProtectorsImpl implements WorkspaceManagedSqlServerEncryptionProtectors { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(WorkspaceManagedSqlServerEncryptionProtectorsImpl.class); + private static final ClientLogger LOGGER = + new ClientLogger(WorkspaceManagedSqlServerEncryptionProtectorsImpl.class); private final WorkspaceManagedSqlServerEncryptionProtectorsClient innerClient; @@ -88,7 +87,7 @@ public void revalidate( public EncryptionProtector getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -96,7 +95,7 @@ public EncryptionProtector getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); @@ -104,7 +103,7 @@ public EncryptionProtector getById(String id) { EncryptionProtectorName encryptionProtectorName = EncryptionProtectorName.fromString(Utils.getValueFromIdByName(id, "encryptionProtector")); if (encryptionProtectorName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -117,7 +116,7 @@ public EncryptionProtector 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 @@ -125,7 +124,7 @@ public Response getByIdWithResponse(String id, Context cont } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); @@ -133,7 +132,7 @@ public Response getByIdWithResponse(String id, Context cont EncryptionProtectorName encryptionProtectorName = EncryptionProtectorName.fromString(Utils.getValueFromIdByName(id, "encryptionProtector")); if (encryptionProtectorName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl.java index e92c46bc6f260..966d49fd4f9b3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl.java @@ -28,7 +28,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.synapse.fluent.WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient; @@ -45,9 +44,6 @@ */ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl implements WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient { - private final ClientLogger logger = - new ClientLogger(WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesService service; @@ -457,8 +453,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an extended server blob auditing policy along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of an extended server blob auditing policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ExtendedServerBlobAuditingPolicyInner> @@ -490,8 +485,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an extended server blob auditing policy along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of an extended server blob auditing policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ExtendedServerBlobAuditingPolicyInner> @@ -525,8 +519,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an extended server blob auditing policy along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of an extended server blob auditing policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ExtendedServerBlobAuditingPolicyInner> @@ -550,8 +543,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an extended server blob auditing policy along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of an extended server blob auditing policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ExtendedServerBlobAuditingPolicyInner> @@ -782,7 +774,7 @@ private Mono> listByWorkspa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server extended auditing settings. + * @return a list of server extended auditing settings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync( @@ -801,7 +793,7 @@ private PagedFlux listByWorkspaceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server extended auditing settings. + * @return a list of server extended auditing settings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync( @@ -819,7 +811,7 @@ private PagedFlux listByWorkspaceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server extended auditing settings. + * @return a list of server extended auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace( @@ -836,7 +828,7 @@ public PagedIterable listByWorkspace( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server extended auditing settings. + * @return a list of server extended auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl.java index e9d014a934b12..c0f840725e9d0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl.java @@ -14,12 +14,10 @@ import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyName; import com.azure.resourcemanager.synapse.models.ExtendedServerBlobAuditingPolicy; import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerExtendedBlobAuditingPolicies; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl implements WorkspaceManagedSqlServerExtendedBlobAuditingPolicies { - @JsonIgnore - private final ClientLogger logger = + private static final ClientLogger LOGGER = new ClientLogger(WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl.class); private final WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient innerClient; @@ -79,7 +77,7 @@ public PagedIterable listByWorkspace( public ExtendedServerBlobAuditingPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -87,7 +85,7 @@ public ExtendedServerBlobAuditingPolicy getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); @@ -95,7 +93,7 @@ public ExtendedServerBlobAuditingPolicy getById(String id) { BlobAuditingPolicyName blobAuditingPolicyName = BlobAuditingPolicyName.fromString(Utils.getValueFromIdByName(id, "extendedAuditingSettings")); if (blobAuditingPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -109,7 +107,7 @@ public ExtendedServerBlobAuditingPolicy 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 @@ -117,7 +115,7 @@ public Response getByIdWithResponse(String id, } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); @@ -125,7 +123,7 @@ public Response getByIdWithResponse(String id, BlobAuditingPolicyName blobAuditingPolicyName = BlobAuditingPolicyName.fromString(Utils.getValueFromIdByName(id, "extendedAuditingSettings")); if (blobAuditingPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl.java index d158f618ced55..033a9dba22e58 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl.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.synapse.fluent.WorkspaceManagedSqlServerRecoverableSqlPoolsClient; import com.azure.resourcemanager.synapse.fluent.models.RecoverableSqlPoolInner; import com.azure.resourcemanager.synapse.models.RecoverableSqlPoolListResult; @@ -37,8 +36,6 @@ */ public final class WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl implements WorkspaceManagedSqlServerRecoverableSqlPoolsClient { - private final ClientLogger logger = new ClientLogger(WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkspaceManagedSqlServerRecoverableSqlPoolsService service; @@ -233,7 +230,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of recoverable sql pools for workspace managed sql server. + * @return list of recoverable sql pools for workspace managed sql server as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { @@ -250,7 +248,8 @@ private PagedFlux listAsync(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of recoverable sql pools for workspace managed sql server. + * @return list of recoverable sql pools for workspace managed sql server as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -268,7 +267,8 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of recoverable sql pools for workspace managed sql server. + * @return list of recoverable sql pools for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName) { @@ -284,7 +284,8 @@ public PagedIterable list(String resourceGroupName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of recoverable sql pools for workspace managed sql server. + * @return list of recoverable sql pools for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsImpl.java index f1a46e213b56d..bef4d2b92069f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsImpl.java @@ -13,12 +13,10 @@ import com.azure.resourcemanager.synapse.fluent.models.RecoverableSqlPoolInner; import com.azure.resourcemanager.synapse.models.RecoverableSqlPool; import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerRecoverableSqlPools; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkspaceManagedSqlServerRecoverableSqlPoolsImpl implements WorkspaceManagedSqlServerRecoverableSqlPools { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(WorkspaceManagedSqlServerRecoverableSqlPoolsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkspaceManagedSqlServerRecoverableSqlPoolsImpl.class); private final WorkspaceManagedSqlServerRecoverableSqlPoolsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl.java index 601871751e577..22e726f1c2de4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl.java @@ -28,7 +28,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.synapse.fluent.WorkspaceManagedSqlServerSecurityAlertPoliciesClient; @@ -45,9 +44,6 @@ */ public final class WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl implements WorkspaceManagedSqlServerSecurityAlertPoliciesClient { - private final ClientLogger logger = - new ClientLogger(WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkspaceManagedSqlServerSecurityAlertPoliciesService service; @@ -456,8 +452,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed Sql server security alert policy along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link PollerFlux} for polling of workspace managed Sql server security alert policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ServerSecurityAlertPolicyInner> @@ -489,8 +484,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed Sql server security alert policy along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link PollerFlux} for polling of workspace managed Sql server security alert policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ServerSecurityAlertPolicyInner> @@ -524,8 +518,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed Sql server security alert policy along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link SyncPoller} for polling of workspace managed Sql server security alert policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ServerSecurityAlertPolicyInner> beginCreateOrUpdate( @@ -548,8 +541,7 @@ public SyncPoller, ServerSecurityAler * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed Sql server security alert policy along with {@link Response} on successful completion - * of {@link Mono}. + * @return the {@link SyncPoller} for polling of workspace managed Sql server security alert policy. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ServerSecurityAlertPolicyInner> beginCreateOrUpdate( @@ -779,7 +771,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's threat detection policies. + * @return workspace managed sql server's threat detection policies as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { @@ -796,7 +788,7 @@ private PagedFlux listAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's threat detection policies. + * @return workspace managed sql server's threat detection policies as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -814,7 +806,8 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's threat detection policies. + * @return workspace managed sql server's threat detection policies as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName) { @@ -830,7 +823,8 @@ public PagedIterable list(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's threat detection policies. + * @return workspace managed sql server's threat detection policies as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesImpl.java index 05e0c742532d0..b5bf836d3a56d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesImpl.java @@ -14,12 +14,11 @@ import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyNameAutoGenerated; import com.azure.resourcemanager.synapse.models.ServerSecurityAlertPolicy; import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerSecurityAlertPolicies; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkspaceManagedSqlServerSecurityAlertPoliciesImpl implements WorkspaceManagedSqlServerSecurityAlertPolicies { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(WorkspaceManagedSqlServerSecurityAlertPoliciesImpl.class); + private static final ClientLogger LOGGER = + new ClientLogger(WorkspaceManagedSqlServerSecurityAlertPoliciesImpl.class); private final WorkspaceManagedSqlServerSecurityAlertPoliciesClient innerClient; @@ -77,7 +76,7 @@ public PagedIterable list( public ServerSecurityAlertPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -85,7 +84,7 @@ public ServerSecurityAlertPolicy getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); @@ -93,7 +92,7 @@ public ServerSecurityAlertPolicy getById(String id) { SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName = SecurityAlertPolicyNameAutoGenerated.fromString(Utils.getValueFromIdByName(id, "securityAlertPolicies")); if (securityAlertPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -107,7 +106,7 @@ public ServerSecurityAlertPolicy 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 @@ -115,7 +114,7 @@ public Response getByIdWithResponse(String id, Contex } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); @@ -123,7 +122,7 @@ public Response getByIdWithResponse(String id, Contex SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName = SecurityAlertPolicyNameAutoGenerated.fromString(Utils.getValueFromIdByName(id, "securityAlertPolicies")); if (securityAlertPolicyName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesClientImpl.java index 8d73ceb1e49db..27e81ff7af69e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesClientImpl.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.synapse.fluent.WorkspaceManagedSqlServerUsagesClient; import com.azure.resourcemanager.synapse.fluent.models.ServerUsageInner; import com.azure.resourcemanager.synapse.models.ServerUsageListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in WorkspaceManagedSqlServerUsagesClient. */ public final class WorkspaceManagedSqlServerUsagesClientImpl implements WorkspaceManagedSqlServerUsagesClient { - private final ClientLogger logger = new ClientLogger(WorkspaceManagedSqlServerUsagesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkspaceManagedSqlServerUsagesService service; @@ -212,7 +209,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of server usages metric for workspace managed sql server. + * @return list of server usages metric for workspace managed sql server as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { @@ -229,7 +227,8 @@ private PagedFlux listAsync(String resourceGroupName, String w * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of server usages metric for workspace managed sql server. + * @return list of server usages metric for workspace managed sql server as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName, Context context) { @@ -246,7 +245,8 @@ private PagedFlux listAsync(String resourceGroupName, String w * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of server usages metric for workspace managed sql server. + * @return list of server usages metric for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName) { @@ -262,7 +262,8 @@ public PagedIterable list(String resourceGroupName, String wor * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of server usages metric for workspace managed sql server. + * @return list of server usages metric for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName, Context context) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesImpl.java index e1840ac4b684b..da33af3b436fe 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.synapse.fluent.models.ServerUsageInner; import com.azure.resourcemanager.synapse.models.ServerUsage; import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerUsages; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkspaceManagedSqlServerUsagesImpl implements WorkspaceManagedSqlServerUsages { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceManagedSqlServerUsagesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkspaceManagedSqlServerUsagesImpl.class); private final WorkspaceManagedSqlServerUsagesClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl.java index 7beac7bde6514..17ffbb77c9e23 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl.java @@ -28,7 +28,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.synapse.fluent.WorkspaceManagedSqlServerVulnerabilityAssessmentsClient; import com.azure.resourcemanager.synapse.fluent.models.ServerVulnerabilityAssessmentInner; import com.azure.resourcemanager.synapse.models.ServerVulnerabilityAssessmentListResult; @@ -41,9 +40,6 @@ */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl implements WorkspaceManagedSqlServerVulnerabilityAssessmentsClient { - private final ClientLogger logger = - new ClientLogger(WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkspaceManagedSqlServerVulnerabilityAssessmentsService service; @@ -826,7 +822,7 @@ private Mono> listSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's vulnerability assessments. + * @return a list of the server's vulnerability assessments as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { @@ -843,7 +839,7 @@ private PagedFlux listAsync(String resourceG * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's vulnerability assessments. + * @return a list of the server's vulnerability assessments as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -861,7 +857,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's vulnerability assessments. + * @return a list of the server's vulnerability assessments as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName) { @@ -877,7 +873,7 @@ public PagedIterable list(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's vulnerability assessments. + * @return a list of the server's vulnerability assessments as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl.java index 88593701f707c..9f141d28ce81b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl.java @@ -14,12 +14,11 @@ import com.azure.resourcemanager.synapse.models.ServerVulnerabilityAssessment; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerVulnerabilityAssessments; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl implements WorkspaceManagedSqlServerVulnerabilityAssessments { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl.class); + private static final ClientLogger LOGGER = + new ClientLogger(WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl.class); private final WorkspaceManagedSqlServerVulnerabilityAssessmentsClient innerClient; @@ -94,7 +93,7 @@ public PagedIterable list( public ServerVulnerabilityAssessment getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -102,7 +101,7 @@ public ServerVulnerabilityAssessment getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); @@ -110,7 +109,7 @@ public ServerVulnerabilityAssessment getById(String id) { VulnerabilityAssessmentName vulnerabilityAssessmentName = VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); if (vulnerabilityAssessmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -126,7 +125,7 @@ public ServerVulnerabilityAssessment 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 @@ -134,7 +133,7 @@ public Response getByIdWithResponse(String id, Co } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); @@ -142,7 +141,7 @@ public Response getByIdWithResponse(String id, Co VulnerabilityAssessmentName vulnerabilityAssessmentName = VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); if (vulnerabilityAssessmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -156,7 +155,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 @@ -164,7 +163,7 @@ public void deleteById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); @@ -172,7 +171,7 @@ public void deleteById(String id) { VulnerabilityAssessmentName vulnerabilityAssessmentName = VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); if (vulnerabilityAssessmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -186,7 +185,7 @@ public void deleteById(String id) { public Response deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -194,7 +193,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); @@ -202,7 +201,7 @@ public Response deleteByIdWithResponse(String id, Context context) { VulnerabilityAssessmentName vulnerabilityAssessmentName = VulnerabilityAssessmentName.fromString(Utils.getValueFromIdByName(id, "vulnerabilityAssessments")); if (vulnerabilityAssessmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsClientImpl.java index 6a24085e704ad..c635b8860d4bf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsClientImpl.java @@ -25,7 +25,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.synapse.fluent.WorkspaceSqlAadAdminsClient; @@ -36,8 +35,6 @@ /** An instance of this class provides access to all the operations defined in WorkspaceSqlAadAdminsClient. */ public final class WorkspaceSqlAadAdminsClientImpl implements WorkspaceSqlAadAdminsClient { - private final ClientLogger logger = new ClientLogger(WorkspaceSqlAadAdminsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkspaceSqlAadAdminsService service; @@ -384,8 +381,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace active directory administrator along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkspaceAadAdminInfoInner> beginCreateOrUpdateAsync( @@ -412,8 +408,7 @@ private PollerFlux, WorkspaceAadAdminInfo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace active directory administrator along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link PollerFlux} for polling of workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkspaceAadAdminInfoInner> beginCreateOrUpdateAsync( @@ -440,8 +435,7 @@ private PollerFlux, WorkspaceAadAdminInfo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace active directory administrator along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkspaceAadAdminInfoInner> beginCreateOrUpdate( @@ -459,8 +453,7 @@ public SyncPoller, WorkspaceAadAdminInfoI * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace active directory administrator along with {@link Response} on successful completion of {@link - * Mono}. + * @return the {@link SyncPoller} for polling of workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkspaceAadAdminInfoInner> beginCreateOrUpdate( @@ -645,7 +638,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName) { @@ -665,7 +658,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -685,7 +678,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName) { @@ -701,7 +694,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsImpl.java index b860591f1caac..652e6231ad544 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner; import com.azure.resourcemanager.synapse.models.WorkspaceAadAdminInfo; import com.azure.resourcemanager.synapse.models.WorkspaceSqlAadAdmins; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkspaceSqlAadAdminsImpl implements WorkspaceSqlAadAdmins { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceSqlAadAdminsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkspaceSqlAadAdminsImpl.class); private final WorkspaceSqlAadAdminsClient innerClient; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesClientImpl.java index 23c41acbf4010..e511c3b6c3cc4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesClientImpl.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.synapse.fluent.WorkspacesClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in WorkspacesClient. */ public final class WorkspacesClientImpl implements WorkspacesClient { - private final ClientLogger logger = new ClientLogger(WorkspacesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkspacesService service; @@ -286,7 +283,7 @@ private Mono> listByResourceGroupSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of workspaces. + * @return list of workspaces as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -303,7 +300,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of workspaces. + * @return list of workspaces as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -319,7 +316,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of workspaces. + * @return list of workspaces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -334,7 +331,7 @@ public PagedIterable listByResourceGroup(String resourceGroupNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of workspaces. + * @return list of workspaces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -613,7 +610,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkspaceInner> beginUpdateAsync( @@ -640,7 +637,7 @@ private PollerFlux, WorkspaceInner> beginUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkspaceInner> beginUpdateAsync( @@ -663,7 +660,7 @@ private PollerFlux, WorkspaceInner> beginUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkspaceInner> beginUpdate( @@ -681,7 +678,7 @@ public SyncPoller, WorkspaceInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkspaceInner> beginUpdate( @@ -882,7 +879,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkspaceInner> beginCreateOrUpdateAsync( @@ -909,7 +906,7 @@ private PollerFlux, WorkspaceInner> beginCreateOrUpda * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkspaceInner> beginCreateOrUpdateAsync( @@ -932,7 +929,7 @@ private PollerFlux, WorkspaceInner> beginCreateOrUpda * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkspaceInner> beginCreateOrUpdate( @@ -950,7 +947,7 @@ public SyncPoller, WorkspaceInner> beginCreateOrUpdat * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkspaceInner> beginCreateOrUpdate( @@ -1134,7 +1131,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Object> beginDeleteAsync(String resourceGroupName, String workspaceName) { @@ -1154,7 +1151,7 @@ private PollerFlux, Object> beginDeleteAsync(String resourceG * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Object> beginDeleteAsync( @@ -1174,7 +1171,7 @@ private PollerFlux, Object> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Object> beginDelete(String resourceGroupName, String workspaceName) { @@ -1190,7 +1187,7 @@ public SyncPoller, Object> beginDelete(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of any object. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Object> beginDelete( @@ -1346,7 +1343,7 @@ private Mono> listSinglePageAsync(Context context) * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of workspaces. + * @return list of workspaces as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -1360,7 +1357,7 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of workspaces. + * @return list of workspaces as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -1373,7 +1370,7 @@ private PagedFlux listAsync(Context context) { * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of workspaces. + * @return list of workspaces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -1387,7 +1384,7 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of workspaces. + * @return list of workspaces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesImpl.java index 7e59c0bcf1c6c..b217ce14a8fa3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.synapse.fluent.models.WorkspaceInner; import com.azure.resourcemanager.synapse.models.Workspace; import com.azure.resourcemanager.synapse.models.Workspaces; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkspacesImpl implements Workspaces { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspacesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkspacesImpl.class); private final WorkspacesClient innerClient; @@ -83,7 +82,7 @@ public PagedIterable list(Context context) { public Workspace getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -91,7 +90,7 @@ public Workspace getById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); @@ -102,7 +101,7 @@ public Workspace 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 @@ -110,7 +109,7 @@ public Response getByIdWithResponse(String id, Context context) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); @@ -121,7 +120,7 @@ public Response getByIdWithResponse(String id, Context context) { public Object deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -129,7 +128,7 @@ public Object deleteById(String id) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); @@ -140,7 +139,7 @@ public Object deleteById(String id) { public Object deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -148,7 +147,7 @@ public Object deleteByIdWithResponse(String id, Context context) { } String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfigurationListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfigurationListResult.java index a9388b68510eb..267fee25f042c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfigurationListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfigurationListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list attached database configurations operation response. */ @Fluent public final class AttachedDatabaseConfigurationListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AttachedDatabaseConfigurationListResult.class); - /* * The list of attached database configurations. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoPauseProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoPauseProperties.java index 2439686c6ca1c..a273e20d1cf8f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoPauseProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoPauseProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Spark pool auto-pausing properties Auto-pausing properties of a Big Data pool powered by Apache Spark. */ @Fluent public final class AutoPauseProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AutoPauseProperties.class); - /* * Number of minutes of idle time before the Big Data pool is automatically * paused. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoScaleProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoScaleProperties.java index 888e079a767a4..08cdd1d7f67cc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoScaleProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoScaleProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Spark pool auto-scaling properties Auto-scaling properties of a Big Data pool powered by Apache Spark. */ @Fluent public final class AutoScaleProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AutoScaleProperties.class); - /* * The minimum number of nodes the Big Data pool can support. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AvailableRpOperationDisplayInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AvailableRpOperationDisplayInfo.java index 96a1dc062f9af..b82ddd1c14025 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AvailableRpOperationDisplayInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AvailableRpOperationDisplayInfo.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Description of an available operation. */ @Fluent public final class AvailableRpOperationDisplayInfo { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AvailableRpOperationDisplayInfo.class); - /* * Operation description */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationListResult.java index 873c82abbd33a..47db3062ebcdd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of active directory only authentications. */ @Immutable public final class AzureADOnlyAuthenticationListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureADOnlyAuthenticationListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentications.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentications.java index 4fd5826ef56da..146e5bc39270f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentications.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentications.java @@ -50,7 +50,8 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace. + * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName); @@ -63,7 +64,8 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace. + * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureCapacity.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureCapacity.java index 9717c6fb7906c..55911eb085df3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureCapacity.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureCapacity.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; /** Azure capacity definition. */ @Fluent public final class AzureCapacity { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureCapacity.class); - /* * Scale type. */ @@ -125,9 +122,11 @@ public AzureCapacity withDefaultProperty(int defaultProperty) { */ public void validate() { if (scaleType() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property scaleType in model AzureCapacity")); } } + + private static final ClientLogger LOGGER = new ClientLogger(AzureCapacity.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureEntityResource.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureEntityResource.java index 3c8babf8c4df5..5b5ed589de4db 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureEntityResource.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureEntityResource.java @@ -6,15 +6,11 @@ import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Entity Resource The resource model definition for an Azure Resource Manager resource with an etag. */ @Immutable public class AzureEntityResource extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureEntityResource.class); - /* * Resource Etag. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureSku.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureSku.java index 182fac137c6b2..bc607fc7ff490 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureSku.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureSku.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; /** Azure SKU definition. */ @Fluent public final class AzureSku { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureSku.class); - /* * SKU name. */ @@ -99,12 +96,14 @@ public AzureSku withSize(SkuSize size) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError(new IllegalArgumentException("Missing required property name in model AzureSku")); } if (size() == null) { - throw logger + throw LOGGER .logExceptionAsError(new IllegalArgumentException("Missing required property size in model AzureSku")); } } + + private static final ClientLogger LOGGER = new ClientLogger(AzureSku.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolPatchInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolPatchInfo.java index e49f1104a46f4..154730e43e433 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolPatchInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolPatchInfo.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.synapse.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.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -14,8 +12,6 @@ /** Patch for a Big Data pool Properties patch for a Big Data pool. */ @Fluent public final class BigDataPoolPatchInfo { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BigDataPoolPatchInfo.class); - /* * Updated tags for the Big Data pool */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfoListResult.java index 4702014f83de7..8ac02fdbe0222 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfoListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.BigDataPoolResourceInfoInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Collection of Big Data pools Collection of Big Data pool information. */ @Fluent public final class BigDataPoolResourceInfoListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BigDataPoolResourceInfoListResult.class); - /* * Link to the next page of results */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPools.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPools.java index 83f6c306657e3..ebd3b57ca8a4d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPools.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPools.java @@ -73,7 +73,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pools. + * @return collection of Big Data pools as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -86,7 +86,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return collection of Big Data pools. + * @return collection of Big Data pools as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace( String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameAvailabilityRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameAvailabilityRequest.java index 2caf0caf4b12d..14b39434913d0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameAvailabilityRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameAvailabilityRequest.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Check name availability request A request about whether a workspace name is available. */ @Fluent public final class CheckNameAvailabilityRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CheckNameAvailabilityRequest.class); - /* * Workspace name */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentCheckNameRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentCheckNameRequest.java index 0e243ae2ebf31..5d57514c9d31f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentCheckNameRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentCheckNameRequest.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 principal assignment check name availability request. */ @Fluent public final class ClusterPrincipalAssignmentCheckNameRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterPrincipalAssignmentCheckNameRequest.class); - /* * Principal Assignment resource name. */ @@ -79,10 +76,12 @@ public ClusterPrincipalAssignmentCheckNameRequest withType(String type) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property name in model ClusterPrincipalAssignmentCheckNameRequest")); } } + + private static final ClientLogger LOGGER = new ClientLogger(ClusterPrincipalAssignmentCheckNameRequest.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentListResult.java index c1d7b9d0e1781..803a994daa10a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list Kusto cluster principal assignments operation response. */ @Fluent public final class ClusterPrincipalAssignmentListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterPrincipalAssignmentListResult.class); - /* * The list of Kusto cluster principal assignments. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CmdkeySetup.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CmdkeySetup.java index cacf920eaa6f8..dede9431205d4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CmdkeySetup.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CmdkeySetup.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.CmdkeySetupTypeProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,8 +16,6 @@ @JsonTypeName("CmdkeySetup") @Fluent public final class CmdkeySetup extends CustomSetupBase { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CmdkeySetup.class); - /* * Cmdkey command custom setup type properties. */ @@ -112,11 +109,13 @@ public CmdkeySetup withPassword(SecretBase password) { public void validate() { super.validate(); if (innerTypeProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property innerTypeProperties in model CmdkeySetup")); } else { innerTypeProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(CmdkeySetup.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ComponentSetup.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ComponentSetup.java index e75a9b2745ba6..d4975c34460d1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ComponentSetup.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ComponentSetup.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.LicensedComponentSetupTypeProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,8 +16,6 @@ @JsonTypeName("ComponentSetup") @Fluent public final class ComponentSetup extends CustomSetupBase { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ComponentSetup.class); - /* * Install 3rd party component type properties. */ @@ -89,7 +86,7 @@ public ComponentSetup withLicenseKey(SecretBase licenseKey) { public void validate() { super.validate(); if (innerTypeProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property innerTypeProperties in model ComponentSetup")); @@ -97,4 +94,6 @@ public void validate() { innerTypeProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(ComponentSetup.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateSqlPoolRestorePointDefinition.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateSqlPoolRestorePointDefinition.java index 0ad57af93c62b..869573e932bf0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateSqlPoolRestorePointDefinition.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateSqlPoolRestorePointDefinition.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; /** Contains the information necessary to perform a create Sql pool restore point operation. */ @Fluent public final class CreateSqlPoolRestorePointDefinition { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CreateSqlPoolRestorePointDefinition.class); - /* * The restore point label to apply */ @@ -47,10 +44,12 @@ public CreateSqlPoolRestorePointDefinition withRestorePointLabel(String restoreP */ public void validate() { if (restorePointLabel() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property restorePointLabel in model CreateSqlPoolRestorePointDefinition")); } } + + private static final ClientLogger LOGGER = new ClientLogger(CreateSqlPoolRestorePointDefinition.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CspWorkspaceAdminProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CspWorkspaceAdminProperties.java index 385c71a19e30a..2bc83de979f85 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CspWorkspaceAdminProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CspWorkspaceAdminProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Initial workspace AAD admin properties for a CSP subscription. */ @Fluent public final class CspWorkspaceAdminProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CspWorkspaceAdminProperties.class); - /* * AAD object ID of initial workspace admin */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomSetupBase.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomSetupBase.java index 23b5b7f5d14ba..5bf4bba19e681 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomSetupBase.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomSetupBase.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.synapse.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.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -25,8 +23,6 @@ }) @Immutable public class CustomSetupBase { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CustomSetupBase.class); - /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomerManagedKeyDetails.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomerManagedKeyDetails.java index 5da6207d67e81..fc29e0d540f54 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomerManagedKeyDetails.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomerManagedKeyDetails.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Details of the customer managed key associated with the workspace. */ @Fluent public final class CustomerManagedKeyDetails { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CustomerManagedKeyDetails.class); - /* * The customer managed key status on the workspace */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionCheckNameRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionCheckNameRequest.java index 87043ad3b39d5..636b08e755c8f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionCheckNameRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionCheckNameRequest.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 data connection check name availability request. */ @Fluent public final class DataConnectionCheckNameRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataConnectionCheckNameRequest.class); - /* * Data Connection name. */ @@ -79,10 +76,12 @@ public DataConnectionCheckNameRequest withType(String type) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property name in model DataConnectionCheckNameRequest")); } } + + private static final ClientLogger LOGGER = new ClientLogger(DataConnectionCheckNameRequest.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionListResult.java index 67dc0d4a4dcbc..355dbacbd6ade 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list Kusto data connections operation response. */ @Fluent public final class DataConnectionListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataConnectionListResult.class); - /* * The list of Kusto data connections. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationResult.java index 4485f08a6e8cb..6d8d4d1852409 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationResult.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** The result returned from a data connection validation request. */ @Fluent public final class DataConnectionValidationResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataConnectionValidationResult.class); - /* * A message which indicates a problem in data connection validation. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataLakeStorageAccountDetails.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataLakeStorageAccountDetails.java index 0dfc81f2e1462..d528b085184c9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataLakeStorageAccountDetails.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataLakeStorageAccountDetails.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Details of the data lake storage account associated with the workspace. */ @Fluent public final class DataLakeStorageAccountDetails { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeStorageAccountDetails.class); - /* * Account URL */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleListResult.java index 36a84a036b89e..20b6da74df868 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.DataMaskingRuleInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The response to a list data masking rules request. */ @Fluent public final class DataMaskingRuleListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DataMaskingRuleListResult.class); - /* * The list of Sql pool data masking rules. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRules.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRules.java index dafee5511e042..702190960b691 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRules.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRules.java @@ -53,7 +53,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool data masking rules. + * @return a list of Sql pool data masking rules as paginated response with {@link PagedIterable}. */ PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -67,7 +67,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool data masking rules. + * @return a list of Sql pool data masking rules as paginated response with {@link PagedIterable}. */ PagedIterable listBySqlPool( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseCheckNameRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseCheckNameRequest.java index 68b1c8b0d788f..5dc11e24e7083 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseCheckNameRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseCheckNameRequest.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; /** The result returned from a database check name availability request. */ @Fluent public final class DatabaseCheckNameRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabaseCheckNameRequest.class); - /* * Resource name. */ @@ -74,14 +71,16 @@ public DatabaseCheckNameRequest withType(Type type) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property name in model DatabaseCheckNameRequest")); } if (type() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property type in model DatabaseCheckNameRequest")); } } + + private static final ClientLogger LOGGER = new ClientLogger(DatabaseCheckNameRequest.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseListResult.java index 99b508e14baa7..38c6359b84942 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list Kusto databases operation response. */ @Fluent public final class DatabaseListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabaseListResult.class); - /* * The list of Kusto databases. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentCheckNameRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentCheckNameRequest.java index e6dd1d7251156..fe5a67f8469d7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentCheckNameRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentCheckNameRequest.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 principal assignment check name availability request. */ @Fluent public final class DatabasePrincipalAssignmentCheckNameRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabasePrincipalAssignmentCheckNameRequest.class); - /* * Principal Assignment resource name. */ @@ -81,10 +78,12 @@ public DatabasePrincipalAssignmentCheckNameRequest withType(String type) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property name in model DatabasePrincipalAssignmentCheckNameRequest")); } } + + private static final ClientLogger LOGGER = new ClientLogger(DatabasePrincipalAssignmentCheckNameRequest.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentListResult.java index d0c8262f209c1..9651ccccfb676 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalAssignmentInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list Kusto database principal assignments operation response. */ @Fluent public final class DatabasePrincipalAssignmentListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabasePrincipalAssignmentListResult.class); - /* * The list of Kusto database principal assignments. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseStatistics.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseStatistics.java index 1b3ac4201537f..640183b39d912 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseStatistics.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseStatistics.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** A class that contains database statistics information. */ @Fluent public final class DatabaseStatistics { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabaseStatistics.class); - /* * The database size - the total size of compressed data and index in * bytes. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettings.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettings.java new file mode 100644 index 0000000000000..420ca640b325b --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettings.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.models; + +import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; + +/** An immutable client-side representation of DedicatedSQLminimalTlsSettings. */ +public interface DedicatedSQLminimalTlsSettings { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: Resource location. + * + * @return the location value. + */ + String location(); + + /** + * Gets the minimalTlsVersion property: The minimal tls version of the sql server. + * + * @return the minimalTlsVersion value. + */ + String minimalTlsVersion(); + + /** + * Gets the inner com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner object. + * + * @return the inner object. + */ + DedicatedSQLminimalTlsSettingsInner innerModel(); +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettingsListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettingsListResult.java new file mode 100644 index 0000000000000..32903df83795e --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettingsListResult.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.models; + +import com.azure.core.annotation.Immutable; +import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** A list of the server's dedicated sql minimal tls settings. */ +@Immutable +public final class DedicatedSQLminimalTlsSettingsListResult { + /* + * Array of results. + */ + @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) + private List value; + + /* + * Link to retrieve next page of results. + */ + @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) + private String nextLink; + + /** + * Get the value property: Array of results. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: Link to retrieve next page of results. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSqlMinimalTlsSettingsName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSqlMinimalTlsSettingsName.java new file mode 100644 index 0000000000000..911d5e73f9b7a --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSqlMinimalTlsSettingsName.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for DedicatedSqlMinimalTlsSettingsName. */ +public final class DedicatedSqlMinimalTlsSettingsName extends ExpandableStringEnum { + /** Static value default for DedicatedSqlMinimalTlsSettingsName. */ + public static final DedicatedSqlMinimalTlsSettingsName DEFAULT = fromString("default"); + + /** + * Creates or finds a DedicatedSqlMinimalTlsSettingsName from its string representation. + * + * @param name a name to look for. + * @return the corresponding DedicatedSqlMinimalTlsSettingsName. + */ + @JsonCreator + public static DedicatedSqlMinimalTlsSettingsName fromString(String name) { + return fromString(name, DedicatedSqlMinimalTlsSettingsName.class); + } + + /** @return known DedicatedSqlMinimalTlsSettingsName values. */ + public static Collection values() { + return values(DedicatedSqlMinimalTlsSettingsName.class); + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DynamicExecutorAllocation.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DynamicExecutorAllocation.java index 9f7c78ec32ee9..d085a26e0b5c5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DynamicExecutorAllocation.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DynamicExecutorAllocation.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Dynamic Executor Allocation Properties. */ @Fluent public final class DynamicExecutorAllocation { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DynamicExecutorAllocation.class); - /* * Indicates whether Dynamic Executor Allocation is enabled or not. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionDetails.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionDetails.java index 1d6734e4120be..dc35aa74c3b14 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionDetails.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionDetails.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Details of the encryption associated with the workspace. */ @Fluent public final class EncryptionDetails { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EncryptionDetails.class); - /* * Double Encryption enabled */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorListResult.java index 405e8cbed655b..0dbd38b56eddc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.EncryptionProtectorInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of server encryption protectors. */ @Immutable public final class EncryptionProtectorListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EncryptionProtectorListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityReference.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityReference.java index 5753961fd188c..c5f470ca9c230 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityReference.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityReference.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** The entity reference. */ @Fluent public final class EntityReference { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EntityReference.class); - /* * The type of this referenced entity. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityResource.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityResource.java index 38d1a1e45f3b4..3fff1d6911e33 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityResource.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityResource.java @@ -5,14 +5,10 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; /** Azure Synapse nested resource, which belongs to a workspace. */ @Immutable public class EntityResource extends AzureEntityResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EntityResource.class); - /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EnvironmentVariableSetup.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EnvironmentVariableSetup.java index 5e708032da997..2f56b58a895cc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EnvironmentVariableSetup.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EnvironmentVariableSetup.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.EnvironmentVariableSetupTypeProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,8 +16,6 @@ @JsonTypeName("EnvironmentVariableSetup") @Fluent public final class EnvironmentVariableSetup extends CustomSetupBase { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EnvironmentVariableSetup.class); - /* * Add environment variable type properties. */ @@ -89,7 +86,7 @@ public EnvironmentVariableSetup withVariableValue(String variableValue) { public void validate() { super.validate(); if (innerTypeProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property innerTypeProperties in model EnvironmentVariableSetup")); @@ -97,4 +94,6 @@ public void validate() { innerTypeProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(EnvironmentVariableSetup.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataConnection.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataConnection.java index 81b6941ea415a..2c263a2ce3cf4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataConnection.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataConnection.java @@ -5,10 +5,8 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; import com.azure.resourcemanager.synapse.fluent.models.EventGridConnectionProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -18,8 +16,6 @@ @JsonTypeName("EventGrid") @Fluent public final class EventGridDataConnection extends DataConnectionInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EventGridDataConnection.class); - /* * The properties of the Event Grid data connection. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataConnection.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataConnection.java index 5df7b56912b1c..c2b00caf1551f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataConnection.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataConnection.java @@ -5,10 +5,8 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; import com.azure.resourcemanager.synapse.fluent.models.EventHubConnectionProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -19,8 +17,6 @@ @JsonTypeName("EventHub") @Fluent public final class EventHubDataConnection extends DataConnectionInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EventHubDataConnection.class); - /* * The Event Hub data connection properties to validate. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicyListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicyListResult.java index bcd4625223674..f7a0180d831a3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicyListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicyListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.ExtendedServerBlobAuditingPolicyInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of server extended auditing settings. */ @Immutable public final class ExtendedServerBlobAuditingPolicyListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ExtendedServerBlobAuditingPolicyListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicies.java index a1dbde979c32a..94ba4d38802f5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicies.java @@ -47,7 +47,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of sql pool extended auditing settings. + * @return a list of sql pool extended auditing settings as paginated response with {@link PagedIterable}. */ PagedIterable listBySqlPool( String resourceGroupName, String workspaceName, String sqlPoolName); @@ -62,7 +62,7 @@ PagedIterable listBySqlPool( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of sql pool extended auditing settings. + * @return a list of sql pool extended auditing settings as paginated response with {@link PagedIterable}. */ PagedIterable listBySqlPool( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicyListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicyListResult.java index 7cadfea3e8324..21b19edca8c02 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicyListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicyListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.ExtendedSqlPoolBlobAuditingPolicyInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of sql pool extended auditing settings. */ @Immutable public final class ExtendedSqlPoolBlobAuditingPolicyListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ExtendedSqlPoolBlobAuditingPolicyListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseListResult.java index 927b91f78c4fe..4bb302701d70c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -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 FollowerDatabaseListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(FollowerDatabaseListResult.class); - /* * The list of follower database result. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyListResult.java index 7929130c224bf..430eeb60a99cf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.GeoBackupPolicyInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The response to a list geo backup policies request. */ @Fluent public final class GeoBackupPolicyListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GeoBackupPolicyListResult.class); - /* * The list of geo backup policies. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GetSsisObjectMetadataRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GetSsisObjectMetadataRequest.java index 87ee0a523d7ac..198fbb96259e3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GetSsisObjectMetadataRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GetSsisObjectMetadataRequest.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** The request payload of get SSIS object metadata. */ @Fluent public final class GetSsisObjectMetadataRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GetSsisObjectMetadataRequest.class); - /* * Metadata path. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntime.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntime.java index c900a8193a44a..8aaa0e94578aa 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntime.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntime.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -29,8 +28,6 @@ }) @Fluent public class IntegrationRuntime { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntime.class); - /* * Integration runtime description. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeComputeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeComputeProperties.java index 61f283093bf82..4e6b42ea67cdc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeComputeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeComputeProperties.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,8 +15,6 @@ /** The compute resource properties for managed integration runtime. */ @Fluent public final class IntegrationRuntimeComputeProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeComputeProperties.class); - /* * The location for managed integration runtime. The supported regions * could be found on diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCustomSetupScriptProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCustomSetupScriptProperties.java index 96acd78a92d3b..c906e3dc55a75 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCustomSetupScriptProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCustomSetupScriptProperties.java @@ -5,16 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Custom setup script properties for a managed dedicated integration runtime. */ @Fluent public final class IntegrationRuntimeCustomSetupScriptProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(IntegrationRuntimeCustomSetupScriptProperties.class); - /* * The URI of the Azure blob container that contains the custom setup * script. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataFlowProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataFlowProperties.java index f28def6a8594b..803063c2f6b35 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataFlowProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataFlowProperties.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,8 +15,6 @@ /** Data flow properties for managed integration runtime. */ @Fluent public final class IntegrationRuntimeDataFlowProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeDataFlowProperties.class); - /* * Compute type of the cluster which will execute data flow job. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataProxyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataProxyProperties.java index bb4da8455e9fd..7b28c0de037e1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataProxyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataProxyProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Data proxy properties for a managed dedicated integration runtime. */ @Fluent public final class IntegrationRuntimeDataProxyProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeDataProxyProperties.class); - /* * The self-hosted integration runtime reference. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeListResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeListResponse.java index faa394a13fe26..d9b98befd747c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeListResponse.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeListResponse.java @@ -7,15 +7,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeResourceInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of integration runtime resources. */ @Fluent public final class IntegrationRuntimeListResponse { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeListResponse.class); - /* * List of integration runtimes. */ @@ -75,7 +72,7 @@ public IntegrationRuntimeListResponse withNextLink(String nextLink) { */ public void validate() { if (value() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property value in model IntegrationRuntimeListResponse")); @@ -83,4 +80,6 @@ public void validate() { value().forEach(e -> e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(IntegrationRuntimeListResponse.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeMonitoringData.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeMonitoringData.java index 7bcb49b06dcf3..c006f633a90aa 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeMonitoringData.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeMonitoringData.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,8 +15,6 @@ /** Monitoring data for integration runtime node. */ @Fluent public final class IntegrationRuntimeNodeMonitoringData { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeNodeMonitoringData.class); - /* * Name of the integration runtime node. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.java index 8222aab7ea2b1..7e4c7fdd54b12 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.java @@ -5,18 +5,12 @@ package com.azure.resourcemanager.synapse.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; /** Azure-SSIS integration runtime outbound network dependency endpoints for one category. */ @Fluent public final class IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint { - @JsonIgnore - private final ClientLogger logger = - new ClientLogger(IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.class); - /* * The category of outbound network dependency. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.java index 8e2bb6589e488..2a4b94881194b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.java @@ -5,17 +5,12 @@ package com.azure.resourcemanager.synapse.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 endpoint for Azure-SSIS integration runtime outbound network dependency. */ @Fluent public final class IntegrationRuntimeOutboundNetworkDependenciesEndpoint { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(IntegrationRuntimeOutboundNetworkDependenciesEndpoint.class); - /* * The domain name of endpoint. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.java index e98c10ea604ee..b6ba9a86c9e10 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.java @@ -5,17 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** The details of Azure-SSIS integration runtime outbound network dependency endpoint. */ @Fluent public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails { - @JsonIgnore - private final ClientLogger logger = - new ClientLogger(IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.class); - /* * The port of endpoint. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeRegenerateKeyParameters.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeRegenerateKeyParameters.java index 5eaf612fd9fcb..6cf0f58011c1d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeRegenerateKeyParameters.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeRegenerateKeyParameters.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Parameters to regenerate the authentication key. */ @Fluent public final class IntegrationRuntimeRegenerateKeyParameters { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeRegenerateKeyParameters.class); - /* * The name of the authentication key to regenerate. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogInfo.java index 3b22d43c08de5..5f1eb5c673520 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogInfo.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,8 +15,6 @@ /** Catalog information for managed dedicated integration runtime. */ @Fluent public final class IntegrationRuntimeSsisCatalogInfo { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeSsisCatalogInfo.class); - /* * The catalog database server URL. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisProperties.java index ce06365020d70..ddfb78d7608ac 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisProperties.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,8 +16,6 @@ /** SSIS properties for managed integration runtime. */ @Fluent public final class IntegrationRuntimeSsisProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeSsisProperties.class); - /* * Catalog information for managed dedicated integration runtime. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatus.java index 2c8476fdc1888..8b3753b56b90b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatus.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -29,8 +28,6 @@ }) @Fluent public class IntegrationRuntimeStatus { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeStatus.class); - /* * The workspace name which the integration runtime belong to. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeVNetProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeVNetProperties.java index cc59189ebb86d..0545f902fd3bf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeVNetProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeVNetProperties.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,8 +16,6 @@ /** VNet properties for managed integration runtime. */ @Fluent public final class IntegrationRuntimeVNetProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationRuntimeVNetProperties.class); - /* * The ID of the VNet that this integration runtime will join. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimes.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimes.java index 72ab3fe6a29fa..1669274d5db8f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimes.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimes.java @@ -104,7 +104,7 @@ Response upgradeWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources. + * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -117,7 +117,7 @@ Response upgradeWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration runtime resources. + * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace( String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataConnection.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataConnection.java index 957adf707d6cd..fba6d479c0928 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataConnection.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataConnection.java @@ -5,10 +5,8 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; import com.azure.resourcemanager.synapse.fluent.models.IotHubConnectionProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -19,8 +17,6 @@ @JsonTypeName("IotHub") @Fluent public final class IotHubDataConnection extends DataConnectionInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubDataConnection.class); - /* * The Iot Hub data connection properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfoListResult.java index 4ef666e97edc4..250ba1898cb1a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfoListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.IpFirewallRuleInfoInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of IP firewall rules. */ @Fluent public final class IpFirewallRuleInfoListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IpFirewallRuleInfoListResult.class); - /* * Link to next page of results */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRules.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRules.java index 582d25b6f489a..a026c3cf04dfa 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRules.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRules.java @@ -18,7 +18,7 @@ public interface IpFirewallRules { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of IP firewall rules. + * @return list of IP firewall rules as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -31,7 +31,7 @@ public interface IpFirewallRules { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of IP firewall rules. + * @return list of IP firewall rules as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KekIdentityProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KekIdentityProperties.java index c09adc10219ec..c3717c2a9545a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KekIdentityProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KekIdentityProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Key encryption key properties. */ @Fluent public final class KekIdentityProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KekIdentityProperties.class); - /* * User assigned identity resource Id */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KeyInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KeyInfoListResult.java index 3debc96d3bd30..d4373e8c3ae5e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KeyInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KeyInfoListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.KeyInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of keys. */ @Fluent public final class KeyInfoListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KeyInfoListResult.class); - /* * Link to the next page of results */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Keys.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Keys.java index 57e79258c7cad..716feab128161 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Keys.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Keys.java @@ -18,7 +18,7 @@ public interface Keys { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of keys. + * @return list of keys as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -31,7 +31,7 @@ public interface Keys { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of keys. + * @return list of keys as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoOperations.java index ca3070418e2eb..34a7565921f8c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoOperations.java @@ -14,7 +14,7 @@ public interface KustoOperations { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations. + * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. */ PagedIterable list(); @@ -25,7 +25,7 @@ public interface KustoOperations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list REST API operations. + * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. */ PagedIterable list(Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPool.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPool.java index 74bf972dd0e82..3b62fe1f12ed1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPool.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPool.java @@ -481,7 +481,7 @@ interface WithIfMatch { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ PagedIterable listLanguageExtensions(); @@ -492,7 +492,7 @@ interface WithIfMatch { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ PagedIterable listLanguageExtensions(Context context); @@ -543,7 +543,7 @@ interface WithIfMatch { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ PagedIterable listFollowerDatabases(); @@ -554,7 +554,7 @@ interface WithIfMatch { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ PagedIterable listFollowerDatabases(Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolAttachedDatabaseConfigurations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolAttachedDatabaseConfigurations.java index b1bd6d96cff1b..b690cf8232661 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolAttachedDatabaseConfigurations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolAttachedDatabaseConfigurations.java @@ -19,7 +19,8 @@ public interface KustoPoolAttachedDatabaseConfigurations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response. + * @return the list attached database configurations operation response as paginated response with {@link + * PagedIterable}. */ PagedIterable listByKustoPool( String workspaceName, String kustoPoolName, String resourceGroupName); @@ -34,7 +35,8 @@ PagedIterable listByKustoPool( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response. + * @return the list attached database configurations operation response as paginated response with {@link + * PagedIterable}. */ PagedIterable listByKustoPool( String workspaceName, String kustoPoolName, String resourceGroupName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolCheckNameRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolCheckNameRequest.java index 67d536771f04f..053b25bd81083 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolCheckNameRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolCheckNameRequest.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; /** The object sent for a kusto pool check name availability request. */ @Fluent public final class KustoPoolCheckNameRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KustoPoolCheckNameRequest.class); - /* * Kusto Pool name. */ @@ -78,9 +75,11 @@ public KustoPoolCheckNameRequest withType(String type) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property name in model KustoPoolCheckNameRequest")); } } + + private static final ClientLogger LOGGER = new ClientLogger(KustoPoolCheckNameRequest.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDataConnections.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDataConnections.java index bf4f6927c9621..a556e85032947 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDataConnections.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDataConnections.java @@ -106,7 +106,7 @@ DataConnectionValidationListResult dataConnectionValidation( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response. + * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ PagedIterable listByDatabase( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName); @@ -122,7 +122,7 @@ PagedIterable listByDatabase( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto data connections operation response. + * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ PagedIterable listByDatabase( String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabasePrincipalAssignments.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabasePrincipalAssignments.java index e937e14af672c..16e996b3c5d25 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabasePrincipalAssignments.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabasePrincipalAssignments.java @@ -62,7 +62,8 @@ Response checkNameAvailabilityWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response. + * @return the list Kusto database principal assignments operation response as paginated response with {@link + * PagedIterable}. */ PagedIterable list( String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName); @@ -78,7 +79,8 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response. + * @return the list Kusto database principal assignments operation response as paginated response with {@link + * PagedIterable}. */ PagedIterable list( String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabases.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabases.java index f7adc70d3047a..205ec82bb7f36 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabases.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabases.java @@ -20,7 +20,7 @@ public interface KustoPoolDatabases { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response. + * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. */ PagedIterable listByKustoPool(String resourceGroupName, String workspaceName, String kustoPoolName); @@ -34,7 +34,7 @@ public interface KustoPoolDatabases { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto databases operation response. + * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. */ PagedIterable listByKustoPool( String resourceGroupName, String workspaceName, String kustoPoolName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrincipalAssignments.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrincipalAssignments.java index 1657b24e801e4..f1dc9302789e7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrincipalAssignments.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrincipalAssignments.java @@ -57,7 +57,8 @@ Response checkNameAvailabilityWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response as paginated response with {@link + * PagedIterable}. */ PagedIterable list( String workspaceName, String kustoPoolName, String resourceGroupName); @@ -72,7 +73,8 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response as paginated response with {@link + * PagedIterable}. */ PagedIterable list( String workspaceName, String kustoPoolName, String resourceGroupName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolUpdate.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolUpdate.java index 12da77f069c87..f490a786d7326 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolUpdate.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolUpdate.java @@ -6,9 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.KustoPoolProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -16,8 +14,6 @@ /** Class representing an update to a Kusto kusto pool. */ @Fluent public final class KustoPoolUpdate extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KustoPoolUpdate.class); - /* * Resource tags. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPools.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPools.java index 457ec67a46eb2..b038c38ad3e81 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPools.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPools.java @@ -16,7 +16,7 @@ public interface KustoPools { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions. + * @return the list of the SKU descriptions as paginated response with {@link PagedIterable}. */ PagedIterable list(); @@ -27,7 +27,7 @@ public interface KustoPools { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions. + * @return the list of the SKU descriptions as paginated response with {@link PagedIterable}. */ PagedIterable list(Context context); @@ -195,7 +195,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool. + * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. */ PagedIterable listSkusByResource( String workspaceName, String kustoPoolName, String resourceGroupName); @@ -210,7 +210,7 @@ PagedIterable listSkusByResource( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of available SKUs for a Kusto Pool. + * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. */ PagedIterable listSkusByResource( String workspaceName, String kustoPoolName, String resourceGroupName, Context context); @@ -224,7 +224,7 @@ PagedIterable listSkusByResource( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ PagedIterable listLanguageExtensions( String workspaceName, String kustoPoolName, String resourceGroupName); @@ -239,7 +239,7 @@ PagedIterable listLanguageExtensions( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ PagedIterable listLanguageExtensions( String workspaceName, String kustoPoolName, String resourceGroupName, Context context); @@ -325,7 +325,7 @@ void removeLanguageExtensions( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ PagedIterable listFollowerDatabases( String workspaceName, String kustoPoolName, String resourceGroupName); @@ -340,7 +340,7 @@ PagedIterable listFollowerDatabases( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ PagedIterable listFollowerDatabases( String workspaceName, String kustoPoolName, String resourceGroupName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionsList.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionsList.java index ffcdc611b9c05..3f6d35910a66b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionsList.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionsList.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of language extension objects. */ @Fluent public final class LanguageExtensionsList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LanguageExtensionsList.class); - /* * The list of language extensions. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibrariesOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibrariesOperations.java index 8d628e4492893..934345f872d08 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibrariesOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibrariesOperations.java @@ -17,7 +17,7 @@ public interface LibrariesOperations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Library resources. + * @return a list of Library resources as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -30,7 +30,7 @@ public interface LibrariesOperations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Library resources. + * @return a list of Library resources as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryListResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryListResponse.java index b0b137696914a..80b4808df8784 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryListResponse.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryListResponse.java @@ -7,15 +7,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.LibraryResourceInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of Library resources. */ @Fluent public final class LibraryListResponse { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LibraryListResponse.class); - /* * List of Library. */ @@ -75,11 +72,13 @@ public LibraryListResponse withNextLink(String nextLink) { */ public void validate() { if (value() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property value in model LibraryListResponse")); } else { value().forEach(e -> e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(LibraryListResponse.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryRequirements.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryRequirements.java index f35d0532b1adf..7c5743e7b2c83 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryRequirements.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryRequirements.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Spark pool library version requirements Library requirements for a Big Data pool powered by Apache Spark. */ @Fluent public final class LibraryRequirements { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LibraryRequirements.class); - /* * The last update time of the library requirements file. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntime.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntime.java index 14f49e130edcb..c5c0e620f2626 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntime.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntime.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The linked integration runtime information. */ @Immutable public final class LinkedIntegrationRuntime { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LinkedIntegrationRuntime.class); - /* * The name of the linked integration runtime. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeKeyAuthorization.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeKeyAuthorization.java index 2877b913319c2..4011527d27d07 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeKeyAuthorization.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeKeyAuthorization.java @@ -6,7 +6,6 @@ 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 com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -16,8 +15,6 @@ @JsonTypeName("Key") @Fluent public final class LinkedIntegrationRuntimeKeyAuthorization extends LinkedIntegrationRuntimeType { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LinkedIntegrationRuntimeKeyAuthorization.class); - /* * The key used for authorization. */ @@ -53,7 +50,7 @@ public LinkedIntegrationRuntimeKeyAuthorization withKey(SecureString key) { public void validate() { super.validate(); if (key() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property key in model LinkedIntegrationRuntimeKeyAuthorization")); @@ -61,4 +58,6 @@ public void validate() { key().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(LinkedIntegrationRuntimeKeyAuthorization.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeRbacAuthorization.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeRbacAuthorization.java index 4af28f0b31874..391105c20574e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeRbacAuthorization.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeRbacAuthorization.java @@ -6,7 +6,6 @@ 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 com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -16,8 +15,6 @@ @JsonTypeName("RBAC") @Fluent public final class LinkedIntegrationRuntimeRbacAuthorization extends LinkedIntegrationRuntimeType { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LinkedIntegrationRuntimeRbacAuthorization.class); - /* * The resource identifier of the integration runtime to be shared. */ @@ -53,10 +50,12 @@ public LinkedIntegrationRuntimeRbacAuthorization withResourceId(String resourceI public void validate() { super.validate(); if (resourceId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property resourceId in model LinkedIntegrationRuntimeRbacAuthorization")); } } + + private static final ClientLogger LOGGER = new ClientLogger(LinkedIntegrationRuntimeRbacAuthorization.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeType.java index 5afedbd1ef36c..84455e71e5217 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeType.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.synapse.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.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -24,8 +22,6 @@ }) @Immutable public class LinkedIntegrationRuntimeType { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LinkedIntegrationRuntimeType.class); - /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListResourceSkusResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListResourceSkusResult.java index d6172a5f1c16c..facbc6627c82a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListResourceSkusResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListResourceSkusResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.AzureResourceSkuInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of available SKUs for a Kusto Pool. */ @Fluent public final class ListResourceSkusResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ListResourceSkusResult.class); - /* * The collection of available SKUs for an existing resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListSqlPoolSecurityAlertPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListSqlPoolSecurityAlertPolicies.java index 5d8a2ce1072bc..df2cb72095a0d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListSqlPoolSecurityAlertPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListSqlPoolSecurityAlertPolicies.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolSecurityAlertPolicyInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of SQL pool security alert policies. */ @Immutable public final class ListSqlPoolSecurityAlertPolicies { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ListSqlPoolSecurityAlertPolicies.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindowTimeRange.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindowTimeRange.java index 9fef71f6a017f..ad1e0931e36ef 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindowTimeRange.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindowTimeRange.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Maintenance window time range. */ @Fluent public final class MaintenanceWindowTimeRange { - @JsonIgnore private final ClientLogger logger = new ClientLogger(MaintenanceWindowTimeRange.class); - /* * Day of maintenance window. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentity.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentity.java index 14d94f92474d4..b9b8634965708 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentity.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentity.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.synapse.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.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -15,8 +13,6 @@ /** The workspace managed identity. */ @Fluent public class ManagedIdentity { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedIdentity.class); - /* * The principal ID of the workspace managed identity */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.java index 9211906c31b10..3b44b6d4530cd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.java @@ -5,17 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Grant sql control to managed identity. */ @Fluent public class ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity { - @JsonIgnore - private final ClientLogger logger = - new ClientLogger(ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.class); - /* * Desired state */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntime.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntime.java index a8b8bcb08312b..c5c6bcc8de8e9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntime.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntime.java @@ -8,7 +8,6 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.ManagedIntegrationRuntimeManagedVirtualNetworkReference; import com.azure.resourcemanager.synapse.fluent.models.ManagedIntegrationRuntimeTypeProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -18,8 +17,6 @@ @JsonTypeName("Managed") @Fluent public final class ManagedIntegrationRuntime extends IntegrationRuntime { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedIntegrationRuntime.class); - /* * Integration runtime state, only valid for managed dedicated integration * runtime. @@ -197,7 +194,7 @@ public ManagedIntegrationRuntime withId(String id) { public void validate() { super.validate(); if (innerTypeProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property innerTypeProperties in model ManagedIntegrationRuntime")); @@ -208,4 +205,6 @@ public void validate() { innerManagedVirtualNetwork().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(ManagedIntegrationRuntime.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeError.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeError.java index b58c25309330b..46612f3f8c19f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeError.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeError.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,8 +17,6 @@ /** Error definition for managed integration runtime. */ @Fluent public final class ManagedIntegrationRuntimeError { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedIntegrationRuntimeError.class); - /* * The time when the error occurred. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNode.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNode.java index 6cbac5fc968a6..f8a8a9baa1cd8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNode.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNode.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,8 +16,6 @@ /** Properties of integration runtime node. */ @Fluent public final class ManagedIntegrationRuntimeNode { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedIntegrationRuntimeNode.class); - /* * The managed integration runtime node id. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeOperationResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeOperationResult.java index 6be64ddb5df22..3b41b98db8db9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeOperationResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeOperationResult.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,8 +17,6 @@ /** Properties of managed integration runtime operation result. */ @Fluent public final class ManagedIntegrationRuntimeOperationResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedIntegrationRuntimeOperationResult.class); - /* * The operation type. Could be start or stop. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeStatus.java index 756e1ca7bd6da..d4a4763a66cb1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeStatus.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.ManagedIntegrationRuntimeStatusTypeProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -19,8 +18,6 @@ @JsonTypeName("Managed") @Fluent public final class ManagedIntegrationRuntimeStatus extends IntegrationRuntimeStatus { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedIntegrationRuntimeStatus.class); - /* * Managed integration runtime status type properties. */ @@ -82,7 +79,7 @@ public ManagedIntegrationRuntimeOperationResult lastOperation() { public void validate() { super.validate(); if (innerTypeProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property innerTypeProperties in model ManagedIntegrationRuntimeStatus")); @@ -90,4 +87,6 @@ public void validate() { innerTypeProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(ManagedIntegrationRuntimeStatus.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedVirtualNetworkSettings.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedVirtualNetworkSettings.java index 5c89b3b934d8a..f46cea011b6e7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedVirtualNetworkSettings.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedVirtualNetworkSettings.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.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; /** Managed Virtual Network Settings. */ @Fluent public final class ManagedVirtualNetworkSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedVirtualNetworkSettings.class); - /* * Prevent Data Exfiltration */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationDisplay.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationDisplay.java index eec227fe1d39d..844a939733fc5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationDisplay.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationDisplay.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** The object that describes the operation. */ @Fluent public final class OperationDisplay { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationDisplay.class); - /* * Friendly name of the resource provider. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationListResult.java index d08ccd81f46ce..845c5c270f900 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationListResult.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.OperationInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -17,8 +15,6 @@ */ @Fluent public final class OperationListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationListResult.class); - /* * The list of operations supported by the resource provider. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaLogSpecification.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaLogSpecification.java index cb64f8742c62c..01e8dde18913b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaLogSpecification.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaLogSpecification.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** What is this?. */ @Fluent public final class OperationMetaLogSpecification { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationMetaLogSpecification.class); - /* * Log display name */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricDimensionSpecification.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricDimensionSpecification.java index 563e1603d53b3..021dfc7b887c4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricDimensionSpecification.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricDimensionSpecification.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** What is this?. */ @Fluent public final class OperationMetaMetricDimensionSpecification { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationMetaMetricDimensionSpecification.class); - /* * Dimension display name */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricSpecification.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricSpecification.java index 0548c30ab028d..d81b739cbdbfb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricSpecification.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricSpecification.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.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; /** What is this?. */ @Fluent public final class OperationMetaMetricSpecification { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationMetaMetricSpecification.class); - /* * The source MDM namespace */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaServiceSpecification.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaServiceSpecification.java index c003065613148..62d7c7bfa5cea 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaServiceSpecification.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaServiceSpecification.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.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; /** What is this?. */ @Fluent public final class OperationMetaServiceSpecification { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationMetaServiceSpecification.class); - /* * Service metric specifications */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OptimizedAutoscale.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OptimizedAutoscale.java index cc331f25e64b9..3346badc372ea 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OptimizedAutoscale.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OptimizedAutoscale.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** A class that contains the optimized auto scale definition. */ @Fluent public final class OptimizedAutoscale { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OptimizedAutoscale.class); - /* * The version of the template defined, for instance 1. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpoint.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpoint.java index f0c100126a3fc..77c4d0df2a462 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpoint.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpoint.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Private endpoint details. */ @Immutable public final class PrivateEndpoint { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpoint.class); - /* * Resource id of the private endpoint. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasic.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasic.java index 6825dc6ad0426..d72cd9b56693d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasic.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasic.java @@ -5,17 +5,12 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Private Endpoint Connection For Private Link Hub - Basic. */ @Fluent public final class PrivateEndpointConnectionForPrivateLinkHubBasic { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionForPrivateLinkHubBasic.class); - /* * identifier */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.java index acb5adc46e5df..9c514ce844797 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.java @@ -5,18 +5,12 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated model. */ @Fluent public class PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated { - @JsonIgnore - private final ClientLogger logger = - new ClientLogger(PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.class); - /* * The id property. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.java index 034ee69a2e8e3..aa72a962b00b7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.java @@ -5,19 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionForPrivateLinkHubInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse model. */ @Fluent public final class PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse { - @JsonIgnore - private final ClientLogger logger = - new ClientLogger(PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.class); - /* * The value property. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionList.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionList.java index 8b098b53af4a4..87bf660a6fbd5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionList.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionList.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of private endpoint connections. */ @Immutable public final class PrivateEndpointConnectionList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionList.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnections.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnections.java index 7047d8207420b..60951da18bbae 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnections.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnections.java @@ -74,7 +74,7 @@ OperationResource delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private endpoint connections. + * @return a list of private endpoint connections as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName); @@ -87,7 +87,7 @@ OperationResource delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private endpoint connections. + * @return a list of private endpoint connections as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionsPrivateLinkHubs.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionsPrivateLinkHubs.java index 5407eec6f4f0f..17bf5caa772a5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionsPrivateLinkHubs.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionsPrivateLinkHubs.java @@ -18,7 +18,7 @@ public interface PrivateEndpointConnectionsPrivateLinkHubs { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all PrivateEndpointConnections in the PrivateLinkHub. + * @return all PrivateEndpointConnections in the PrivateLinkHub as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String privateLinkHubName); @@ -31,7 +31,7 @@ public interface PrivateEndpointConnectionsPrivateLinkHubs { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all PrivateEndpointConnections in the PrivateLinkHub. + * @return all PrivateEndpointConnections in the PrivateLinkHub as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String privateLinkHubName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubInfoListResult.java index c87d740531894..8d02f4ab3898f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubInfoListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkHubInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of privateLinkHubs. */ @Fluent public final class PrivateLinkHubInfoListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkHubInfoListResult.class); - /* * Link to the next page of results */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPatchInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPatchInfo.java index 1ff4b7def66d5..e63c41ba434ae 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPatchInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPatchInfo.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.synapse.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.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -14,8 +12,6 @@ /** PrivateLinkHub patch details. */ @Fluent public final class PrivateLinkHubPatchInfo { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkHubPatchInfo.class); - /* * Resource tags */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPrivateLinkResources.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPrivateLinkResources.java index cb738cc5038f3..3515646143685 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPrivateLinkResources.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPrivateLinkResources.java @@ -18,7 +18,7 @@ public interface PrivateLinkHubPrivateLinkResources { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a private link hub. + * @return all private link resources for a private link hub as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String privateLinkHubName); @@ -31,7 +31,7 @@ public interface PrivateLinkHubPrivateLinkResources { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a private link hub. + * @return all private link resources for a private link hub as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String privateLinkHubName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubs.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubs.java index a0eefda51e5e9..12339952cc6c7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubs.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubs.java @@ -17,7 +17,7 @@ public interface PrivateLinkHubs { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of privateLinkHubs. + * @return list of privateLinkHubs as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); @@ -29,7 +29,7 @@ public interface PrivateLinkHubs { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of privateLinkHubs. + * @return list of privateLinkHubs as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); @@ -87,7 +87,7 @@ Response getByResourceGroupWithResponse( * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of privateLinkHubs. + * @return list of privateLinkHubs as paginated response with {@link PagedIterable}. */ PagedIterable list(); @@ -98,7 +98,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of privateLinkHubs. + * @return list of privateLinkHubs as paginated response with {@link PagedIterable}. */ PagedIterable list(Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceListResult.java index e693234f70783..a3e676dd064b6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourceInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of private link resources. */ @Immutable public final class PrivateLinkResourceListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceProperties.java index a37d3fbe01500..4b8e2aa669908 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResources.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResources.java index a12eac4bbec3b..52b4cd114fd97 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResources.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResources.java @@ -18,7 +18,7 @@ public interface PrivateLinkResources { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a workspaces. + * @return all private link resources for a workspaces as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName); @@ -31,7 +31,7 @@ public interface PrivateLinkResources { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all private link resources for a workspaces. + * @return all private link resources for a workspaces as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkServiceConnectionState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkServiceConnectionState.java index 5b1f1370fdc2e..3554defb54c08 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkServiceConnectionState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkServiceConnectionState.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Connection state details of the private endpoint. */ @Fluent public final class PrivateLinkServiceConnectionState { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkServiceConnectionState.class); - /* * The private link service connection status. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PurviewConfiguration.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PurviewConfiguration.java index 61836fb7d6515..7aad68d15ad88 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PurviewConfiguration.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PurviewConfiguration.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Purview Configuration. */ @Fluent public final class PurviewConfiguration { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PurviewConfiguration.class); - /* * Purview Resource ID */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadOnlyFollowingDatabase.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadOnlyFollowingDatabase.java index 95f0e537c2926..4ed3fbc74549a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadOnlyFollowingDatabase.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadOnlyFollowingDatabase.java @@ -5,10 +5,8 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; import com.azure.resourcemanager.synapse.fluent.models.ReadOnlyFollowingDatabaseProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -19,8 +17,6 @@ @JsonTypeName("ReadOnlyFollowing") @Fluent public final class ReadOnlyFollowingDatabase extends DatabaseInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ReadOnlyFollowingDatabase.class); - /* * The database properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadWriteDatabase.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadWriteDatabase.java index ae762e1186f5d..7b64e158e2907 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadWriteDatabase.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadWriteDatabase.java @@ -5,10 +5,8 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; import com.azure.resourcemanager.synapse.fluent.models.ReadWriteDatabaseProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -19,8 +17,6 @@ @JsonTypeName("ReadWrite") @Fluent public final class ReadWriteDatabase extends DatabaseInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ReadWriteDatabase.class); - /* * The database properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdate.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdate.java index 8dacd4f9ee395..5c00fe1c11d85 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdate.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdate.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.RecommendedSensitivityLabelUpdateProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A recommended sensitivity label update operation. */ @Fluent public final class RecommendedSensitivityLabelUpdate extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RecommendedSensitivityLabelUpdate.class); - /* * Resource properties. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateList.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateList.java index 66c71667862c9..d252e8299ae51 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateList.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateList.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.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; /** A list of recommended sensitivity label update operations. */ @Fluent public final class RecommendedSensitivityLabelUpdateList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RecommendedSensitivityLabelUpdateList.class); - /* * The operations property. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecoverableSqlPoolListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecoverableSqlPoolListResult.java index 9700ff664f408..e719c1c3ae367 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecoverableSqlPoolListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecoverableSqlPoolListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.RecoverableSqlPoolInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The response to a list recoverable sql pools request. */ @Immutable public final class RecoverableSqlPoolListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RecoverableSqlPoolListResult.class); - /* * A list of recoverable sql pool */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplaceAllIpFirewallRulesRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplaceAllIpFirewallRulesRequest.java index 22fbfe4da16cc..d49c6fb163685 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplaceAllIpFirewallRulesRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplaceAllIpFirewallRulesRequest.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.IpFirewallRuleProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -15,8 +13,6 @@ /** Replace all IP firewall rules request. */ @Fluent public final class ReplaceAllIpFirewallRulesRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ReplaceAllIpFirewallRulesRequest.class); - /* * IP firewall rule properties */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationLinkListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationLinkListResult.java index 6261e708aea4b..b3e030c96fd7b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationLinkListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationLinkListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.ReplicationLinkInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Represents the response to a List Sql pool replication link request. */ @Fluent public final class ReplicationLinkListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ReplicationLinkListResult.class); - /* * The list of Sql pool replication links housed in the Sql pool. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceMoveDefinition.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceMoveDefinition.java index a2095a916bd59..4d3f44ea94f25 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceMoveDefinition.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceMoveDefinition.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; /** Contains the information necessary to perform a resource move (rename). */ @Fluent public final class ResourceMoveDefinition { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ResourceMoveDefinition.class); - /* * The target ID for the resource */ @@ -47,9 +44,11 @@ public ResourceMoveDefinition withId(String id) { */ public void validate() { if (id() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property id in model ResourceMoveDefinition")); } } + + private static final ClientLogger LOGGER = new ClientLogger(ResourceMoveDefinition.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPoolListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPoolListResult.java index bca780222d05c..52efcd5eff67d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPoolListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPoolListResult.java @@ -7,15 +7,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.RestorableDroppedSqlPoolInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The response to a list restorable dropped Sql pools request. */ @Fluent public final class RestorableDroppedSqlPoolListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RestorableDroppedSqlPoolListResult.class); - /* * A list of restorable dropped Sql pools */ @@ -49,7 +46,7 @@ public RestorableDroppedSqlPoolListResult withValue(List e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(RestorableDroppedSqlPoolListResult.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPools.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPools.java index cab009ad640a3..388ec284de939 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPools.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPools.java @@ -48,7 +48,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of deleted Sql pools that can be restored. + * @return a list of deleted Sql pools that can be restored as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -61,7 +61,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of deleted Sql pools that can be restored. + * @return a list of deleted Sql pools that can be restored as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace( String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointListResult.java index e3ce0500d94a5..a0408b90f2128 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.RestorePointInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of long term retention backups. */ @Immutable public final class RestorePointListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RestorePointListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecretBase.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecretBase.java index 2c06aa4685632..194e2a0e6dc20 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecretBase.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecretBase.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.synapse.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.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -21,8 +19,6 @@ @JsonSubTypes({@JsonSubTypes.Type(name = "SecureString", value = SecureString.class)}) @Immutable public class SecretBase { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SecretBase.class); - /** * Validates the instance. * diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecureString.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecureString.java index e35f4878fc24d..66f6072cf65e0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecureString.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecureString.java @@ -6,7 +6,6 @@ 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 com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -19,8 +18,6 @@ @JsonTypeName("SecureString") @Fluent public final class SecureString extends SecretBase { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SecureString.class); - /* * Value of secure string. */ @@ -56,9 +53,11 @@ public SecureString withValue(String value) { public void validate() { super.validate(); if (value() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property value in model SecureString")); } } + + private static final ClientLogger LOGGER = new ClientLogger(SecureString.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntime.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntime.java index e7bc359d883f4..19dd6d6af1973 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntime.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntime.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.SelfHostedIntegrationRuntimeTypeProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,8 +15,6 @@ @JsonTypeName("SelfHosted") @Fluent public final class SelfHostedIntegrationRuntime extends IntegrationRuntime { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SelfHostedIntegrationRuntime.class); - /* * When this property is not null, means this is a linked integration * runtime. The property is used to access original integration runtime. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeStatus.java index f230a60f666a9..bece914e8a486 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeStatus.java @@ -8,7 +8,6 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.SelfHostedIntegrationRuntimeNodeInner; import com.azure.resourcemanager.synapse.fluent.models.SelfHostedIntegrationRuntimeStatusTypeProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -21,8 +20,6 @@ @JsonTypeName("SelfHosted") @Fluent public final class SelfHostedIntegrationRuntimeStatus extends IntegrationRuntimeStatus { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SelfHostedIntegrationRuntimeStatus.class); - /* * Self-hosted integration runtime status type properties. */ @@ -282,7 +279,7 @@ public SelfHostedIntegrationRuntimeStatus withNewerVersions(List newerVe public void validate() { super.validate(); if (innerTypeProperties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property innerTypeProperties in model SelfHostedIntegrationRuntimeStatus")); @@ -290,4 +287,6 @@ public void validate() { innerTypeProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(SelfHostedIntegrationRuntimeStatus.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelListResult.java index b60325ea80792..2c4fa17fd0dc0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of sensitivity labels. */ @Immutable public final class SensitivityLabelListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SensitivityLabelListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateList.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateList.java index b9346c51c5ec7..a8647e48787d6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateList.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateList.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelUpdateInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of sensitivity label update operations. */ @Fluent public final class SensitivityLabelUpdateList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SensitivityLabelUpdateList.class); - /* * The operations property. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicyListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicyListResult.java index fcf8d45d87340..ea91445d02f1b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicyListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicyListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.ServerBlobAuditingPolicyInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of server auditing settings. */ @Immutable public final class ServerBlobAuditingPolicyListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerBlobAuditingPolicyListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicyListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicyListResult.java index 1e01830916fb0..71846fc5bec24 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicyListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicyListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.ServerSecurityAlertPolicyInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of the workspace managed sql server's security alert policies. */ @Immutable public final class ServerSecurityAlertPolicyListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerSecurityAlertPolicyListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerUsageListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerUsageListResult.java index e7be249feaba1..901248e90ce21 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerUsageListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerUsageListResult.java @@ -7,15 +7,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.ServerUsageInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Represents the response to a list server metrics request. */ @Fluent public final class ServerUsageListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerUsageListResult.class); - /* * The list of server metrics for the server. */ @@ -64,11 +61,13 @@ public String nextLink() { */ public void validate() { if (value() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property value in model ServerUsageListResult")); } else { value().forEach(e -> e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(ServerUsageListResult.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessmentListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessmentListResult.java index b5306752e5549..f35a128ee4fb8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessmentListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessmentListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.ServerVulnerabilityAssessmentInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of the server's vulnerability assessments. */ @Immutable public final class ServerVulnerabilityAssessmentListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerVulnerabilityAssessmentListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Sku.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Sku.java index 0c6874f821443..051131d100236 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Sku.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Sku.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Sku SQL pool SKU. */ @Fluent public final class Sku { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Sku.class); - /* * The service tier */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescriptionList.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescriptionList.java index 96be0d89434ce..86d230a7b1d51 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescriptionList.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescriptionList.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.SkuDescriptionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of the SKU descriptions. */ @Immutable public final class SkuDescriptionList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SkuDescriptionList.class); - /* * SKU descriptions */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuLocationInfoItem.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuLocationInfoItem.java index 41b75caf52490..42c288b4f5554 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuLocationInfoItem.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuLocationInfoItem.java @@ -6,15 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The locations and zones info for SKU. */ @Fluent public final class SkuLocationInfoItem { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SkuLocationInfoItem.class); - /* * The available location of the SKU. */ @@ -74,9 +71,11 @@ public SkuLocationInfoItem withZones(List zones) { */ public void validate() { if (location() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property location in model SkuLocationInfoItem")); } } + + private static final ClientLogger LOGGER = new ClientLogger(SkuLocationInfoItem.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigProperties.java index 403e0da9bef83..43df72b961063 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** Spark pool Config Properties SparkConfig Properties for a Big Data pool powered by Apache Spark. */ @Fluent public final class SparkConfigProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SparkConfigProperties.class); - /* * The last update time of the spark config properties file. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationListResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationListResponse.java index dd3bd5110d67a..7a13152f79a92 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationListResponse.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationListResponse.java @@ -7,15 +7,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of SparkConfiguration resources. */ @Fluent public final class SparkConfigurationListResponse { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SparkConfigurationListResponse.class); - /* * List of SparkConfiguration. */ @@ -75,7 +72,7 @@ public SparkConfigurationListResponse withNextLink(String nextLink) { */ public void validate() { if (value() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property value in model SparkConfigurationListResponse")); @@ -83,4 +80,6 @@ public void validate() { value().forEach(e -> e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(SparkConfigurationListResponse.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationsOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationsOperations.java index 31e18366bbb27..4c0db89f767ad 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationsOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationsOperations.java @@ -17,7 +17,7 @@ public interface SparkConfigurationsOperations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources. + * @return a list of SparkConfiguration resources as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -30,7 +30,7 @@ public interface SparkConfigurationsOperations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of SparkConfiguration resources. + * @return a list of SparkConfiguration resources as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace( String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicies.java index f4f9b63a077f4..7e64565196f8b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicies.java @@ -47,7 +47,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool auditing settings. + * @return a list of Sql pool auditing settings as paginated response with {@link PagedIterable}. */ PagedIterable listBySqlPool( String resourceGroupName, String workspaceName, String sqlPoolName); @@ -62,7 +62,7 @@ PagedIterable listBySqlPool( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool auditing settings. + * @return a list of Sql pool auditing settings as paginated response with {@link PagedIterable}. */ PagedIterable listBySqlPool( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicyListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicyListResult.java index d1b2800084ce2..ccaa63ee98c2b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicyListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicyListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolBlobAuditingPolicyInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of Sql pool auditing settings. */ @Immutable public final class SqlPoolBlobAuditingPolicyListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolBlobAuditingPolicyListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicySqlPoolOperationListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicySqlPoolOperationListResult.java index 5a29296708318..2baef52170b1d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicySqlPoolOperationListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicySqlPoolOperationListResult.java @@ -5,18 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolOperationInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The response to a list Sql pool operations request. */ @Immutable public final class SqlPoolBlobAuditingPolicySqlPoolOperationListResult { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(SqlPoolBlobAuditingPolicySqlPoolOperationListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumnListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumnListResult.java index 8846f45d39749..08d9cd1c4ed8b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumnListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumnListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolColumnInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of Sql pool columns. */ @Immutable public final class SqlPoolColumnListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolColumnListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolGeoBackupPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolGeoBackupPolicies.java index 2d673152c2632..9ac67aadadaa0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolGeoBackupPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolGeoBackupPolicies.java @@ -19,7 +19,7 @@ public interface SqlPoolGeoBackupPolicies { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool geo backup policies. + * @return list of SQL pool geo backup policies as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -33,7 +33,7 @@ public interface SqlPoolGeoBackupPolicies { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool geo backup policies. + * @return list of SQL pool geo backup policies as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolInfoListResult.java index e90474a7bd44d..897022c683f8d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolInfoListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** SQL pool collection List of SQL pools. */ @Fluent public final class SqlPoolInfoListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolInfoListResult.class); - /* * Link to the next page of results */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperations.java index 642b31ce498b4..b7ae28afa0b83 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperations.java @@ -18,7 +18,7 @@ public interface SqlPoolOperations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations performed on the SQL pool. + * @return a list of operations performed on the SQL pool as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -32,7 +32,7 @@ public interface SqlPoolOperations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of operations performed on the SQL pool. + * @return a list of operations performed on the SQL pool as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolPatchInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolPatchInfo.java index 534393e92ad1d..e647712eaf51c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolPatchInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolPatchInfo.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolResourceProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; @@ -16,8 +14,6 @@ /** SQL pool patch info A SQL Analytics pool patch info. */ @Fluent public final class SqlPoolPatchInfo { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolPatchInfo.class); - /* * Resource tags. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolReplicationLinks.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolReplicationLinks.java index 59f0ea0b0a9f8..cb319a3d1631a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolReplicationLinks.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolReplicationLinks.java @@ -19,7 +19,8 @@ public interface SqlPoolReplicationLinks { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the response to a List Sql pool replication link request. + * @return represents the response to a List Sql pool replication link request as paginated response with {@link + * PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -33,7 +34,8 @@ public interface SqlPoolReplicationLinks { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the response to a List Sql pool replication link request. + * @return represents the response to a List Sql pool replication link request as paginated response with {@link + * PagedIterable}. */ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRestorePoints.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRestorePoints.java index 6b80653262f15..380baad6c7884 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRestorePoints.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRestorePoints.java @@ -19,7 +19,7 @@ public interface SqlPoolRestorePoints { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool backup information. + * @return sQL pool backup information as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -33,7 +33,7 @@ public interface SqlPoolRestorePoints { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool backup information. + * @return sQL pool backup information as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemaListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemaListResult.java index 78f684672a118..9fd8a51707a1d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemaListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemaListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolSchemaInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of Sql pool schemas. */ @Immutable public final class SqlPoolSchemaListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolSchemaListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemas.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemas.java index f5aad44357e6f..b63222a949c20 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemas.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemas.java @@ -19,7 +19,7 @@ public interface SqlPoolSchemas { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return schemas of a given SQL pool. + * @return schemas of a given SQL pool as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -34,7 +34,7 @@ public interface SqlPoolSchemas { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return schemas of a given SQL pool. + * @return schemas of a given SQL pool as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, String filter, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicies.java index 588dcfb6e2831..81b53a38d137f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicies.java @@ -19,7 +19,7 @@ public interface SqlPoolSecurityAlertPolicies { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool's security alert policies. + * @return a list of Sql pool's security alert policies as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -33,7 +33,7 @@ public interface SqlPoolSecurityAlertPolicies { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool's security alert policies. + * @return a list of Sql pool's security alert policies as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSensitivityLabels.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSensitivityLabels.java index 4e7deb16d2106..a85012e0aaf67 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSensitivityLabels.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSensitivityLabels.java @@ -19,7 +19,7 @@ public interface SqlPoolSensitivityLabels { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool sensitivity labels. + * @return sQL pool sensitivity labels as paginated response with {@link PagedIterable}. */ PagedIterable listCurrent(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -34,7 +34,7 @@ public interface SqlPoolSensitivityLabels { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool sensitivity labels. + * @return sQL pool sensitivity labels as paginated response with {@link PagedIterable}. */ PagedIterable listCurrent( String resourceGroupName, String workspaceName, String sqlPoolName, String filter, Context context); @@ -82,7 +82,7 @@ Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sensitivity labels of a given SQL pool. + * @return sensitivity labels of a given SQL pool as paginated response with {@link PagedIterable}. */ PagedIterable listRecommended(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -99,7 +99,7 @@ Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sensitivity labels of a given SQL pool. + * @return sensitivity labels of a given SQL pool as paginated response with {@link PagedIterable}. */ PagedIterable listRecommended( String resourceGroupName, diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableColumns.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableColumns.java index 167e04397baf7..bb8601c26b896 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableColumns.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableColumns.java @@ -20,7 +20,7 @@ public interface SqlPoolTableColumns { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return columns in a given table in a SQL pool. + * @return columns in a given table in a SQL pool as paginated response with {@link PagedIterable}. */ PagedIterable listByTableName( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName); @@ -38,7 +38,7 @@ PagedIterable listByTableName( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return columns in a given table in a SQL pool. + * @return columns in a given table in a SQL pool as paginated response with {@link PagedIterable}. */ PagedIterable listByTableName( String resourceGroupName, diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableListResult.java index bb222c0ed790d..637eedda7b96f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolTableInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of Sql pool tables. */ @Immutable public final class SqlPoolTableListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolTableListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTables.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTables.java index c904c68be5215..30e97214e6782 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTables.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTables.java @@ -20,7 +20,7 @@ public interface SqlPoolTables { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return tables of a given schema in a SQL pool. + * @return tables of a given schema in a SQL pool as paginated response with {@link PagedIterable}. */ PagedIterable listBySchema( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName); @@ -37,7 +37,7 @@ PagedIterable listBySchema( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return tables of a given schema in a SQL pool. + * @return tables of a given schema in a SQL pool as paginated response with {@link PagedIterable}. */ PagedIterable listBySchema( String resourceGroupName, diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTransparentDataEncryptions.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTransparentDataEncryptions.java index 2cb7c71b16433..da2249f9e9058 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTransparentDataEncryptions.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTransparentDataEncryptions.java @@ -57,7 +57,8 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool's transparent data encryption configurations. + * @return list of SQL pool's transparent data encryption configurations as paginated response with {@link + * PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -71,7 +72,8 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool's transparent data encryption configurations. + * @return list of SQL pool's transparent data encryption configurations as paginated response with {@link + * PagedIterable}. */ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsageListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsageListResult.java index 6a19f4cbb45f0..9a3d9e20a2177 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsageListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsageListResult.java @@ -7,15 +7,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolUsageInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The response to a list Sql pool usages request. */ @Fluent public final class SqlPoolUsageListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolUsageListResult.class); - /* * The list of usages for the Sql pool. */ @@ -64,11 +61,13 @@ public String nextLink() { */ public void validate() { if (value() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property value in model SqlPoolUsageListResult")); } else { value().forEach(e -> e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolUsageListResult.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsages.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsages.java index 3fe54221039b1..e45385af28857 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsages.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsages.java @@ -18,7 +18,7 @@ public interface SqlPoolUsages { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool usages. + * @return sQL pool usages as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -32,7 +32,7 @@ public interface SqlPoolUsages { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool usages. + * @return sQL pool usages as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentListResult.java index a50f8a15b57cc..0aa2ce17821fe 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of the Sql pool's vulnerability assessments. */ @Immutable public final class SqlPoolVulnerabilityAssessmentListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SqlPoolVulnerabilityAssessmentListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselineItem.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselineItem.java index 33e00d21e3111..1c8a30515075e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselineItem.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselineItem.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Properties for an Sql pool vulnerability assessment rule baseline's result. */ @Fluent public final class SqlPoolVulnerabilityAssessmentRuleBaselineItem { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(SqlPoolVulnerabilityAssessmentRuleBaselineItem.class); - /* * The rule baseline result */ @@ -49,10 +45,12 @@ public SqlPoolVulnerabilityAssessmentRuleBaselineItem withResult(List re */ public void validate() { if (result() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property result in model SqlPoolVulnerabilityAssessmentRuleBaselineItem")); } } + + private static final ClientLogger LOGGER = new ClientLogger(SqlPoolVulnerabilityAssessmentRuleBaselineItem.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentScans.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentScans.java index a57035a6b3459..1389cc12db7af 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentScans.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentScans.java @@ -20,7 +20,7 @@ public interface SqlPoolVulnerabilityAssessmentScans { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of vulnerability assessment scan records. + * @return a list of vulnerability assessment scan records as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, @@ -39,7 +39,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of vulnerability assessment scan records. + * @return a list of vulnerability assessment scan records as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessments.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessments.java index 5e92d97a8f35d..f7a7d870252d7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessments.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessments.java @@ -19,7 +19,7 @@ public interface SqlPoolVulnerabilityAssessments { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the Sql pool's vulnerability assessments. + * @return a list of the Sql pool's vulnerability assessments as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName); @@ -34,7 +34,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the Sql pool's vulnerability assessments. + * @return a list of the Sql pool's vulnerability assessments as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadClassifiers.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadClassifiers.java index 4902d885ceb1d..ee1420c486194 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadClassifiers.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadClassifiers.java @@ -102,7 +102,8 @@ void delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload classifier for workload groups. + * @return list of Sql pool's workload classifier for workload groups as paginated response with {@link + * PagedIterable}. */ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName); @@ -118,7 +119,8 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload classifier for workload groups. + * @return list of Sql pool's workload classifier for workload groups as paginated response with {@link + * PagedIterable}. */ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadGroups.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadGroups.java index f814d62401d26..8c62e22a230b7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadGroups.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadGroups.java @@ -77,7 +77,7 @@ void delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload groups. + * @return list of Sql pool's workload groups as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); @@ -91,7 +91,7 @@ void delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload groups. + * @return list of Sql pool's workload groups as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workspaceName, String sqlPoolName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPools.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPools.java index 7c39e3950137e..f80988cdffdf7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPools.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPools.java @@ -73,7 +73,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool collection. + * @return sQL pool collection as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -86,7 +86,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sQL pool collection. + * @return sQL pool collection as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironment.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironment.java index dd60a7e77a2fd..d0703f2491cec 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironment.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironment.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.synapse.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 com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,8 +15,6 @@ @JsonTypeName("Environment") @Fluent public final class SsisEnvironment extends SsisObjectMetadata { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SsisEnvironment.class); - /* * Folder id which contains environment. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironmentReference.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironmentReference.java index a66c4ea210cbb..89998c24e53d6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironmentReference.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironmentReference.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Ssis environment reference. */ @Fluent public final class SsisEnvironmentReference { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SsisEnvironmentReference.class); - /* * Environment reference id. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisFolder.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisFolder.java index e765976db5a65..1e9eb5e6e52fd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisFolder.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisFolder.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.synapse.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.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -15,8 +13,6 @@ @JsonTypeName("Folder") @Fluent public final class SsisFolder extends SsisObjectMetadata { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SsisFolder.class); - /** {@inheritDoc} */ @Override public SsisFolder withId(Long id) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadata.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadata.java index edd5173c74c11..ea638ec4c966f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadata.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadata.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.synapse.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 com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -27,8 +25,6 @@ }) @Fluent public class SsisObjectMetadata { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SsisObjectMetadata.class); - /* * Metadata id. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisPackage.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisPackage.java index 3d7acf6051c1d..7beb9f1ef2fdc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisPackage.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisPackage.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.synapse.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 com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,8 +15,6 @@ @JsonTypeName("Package") @Fluent public final class SsisPackage extends SsisObjectMetadata { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SsisPackage.class); - /* * Folder id which contains package. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisParameter.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisParameter.java index 67fc795d0e993..6ca369298bae2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisParameter.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisParameter.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Ssis parameter. */ @Fluent public final class SsisParameter { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SsisParameter.class); - /* * Parameter id. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisProject.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisProject.java index 2af2fe1a67b45..baf5d1b45785b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisProject.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisProject.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.synapse.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 com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,8 +15,6 @@ @JsonTypeName("Project") @Fluent public final class SsisProject extends SsisObjectMetadata { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SsisProject.class); - /* * Folder id which contains project. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisVariable.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisVariable.java index 110951c58f9bf..14638cd0cc61e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisVariable.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisVariable.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Ssis variable. */ @Fluent public final class SsisVariable { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SsisVariable.class); - /* * Variable id. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TableLevelSharingProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TableLevelSharingProperties.java index 39e78a6bfed3f..600e372330c4d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TableLevelSharingProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TableLevelSharingProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.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; /** Tables that will be included and excluded in the follower database. */ @Fluent public final class TableLevelSharingProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TableLevelSharingProperties.class); - /* * List of tables to include in the follower database */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionListResult.java index fac4392b58cfe..e64775e5ca391 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.TransparentDataEncryptionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of transparent data encryption configurations. */ @Immutable public final class TransparentDataEncryptionListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TransparentDataEncryptionListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeNodeRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeNodeRequest.java index c4caf7ac402ce..8e9b1ea5625a8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeNodeRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeNodeRequest.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Update integration runtime node request. */ @Fluent public final class UpdateIntegrationRuntimeNodeRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateIntegrationRuntimeNodeRequest.class); - /* * The number of concurrent jobs permitted to run on the integration * runtime node. Values between 1 and maxConcurrentJobs(inclusive) are diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeRequest.java index 814baaa8282d8..ae3887cce73db 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeRequest.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Update integration runtime request. */ @Fluent public final class UpdateIntegrationRuntimeRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateIntegrationRuntimeRequest.class); - /* * Enables or disables the auto-update feature of the self-hosted * integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UserAssignedManagedIdentity.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UserAssignedManagedIdentity.java index e75f2e2c4f0a0..f8a63d168a1aa 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UserAssignedManagedIdentity.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UserAssignedManagedIdentity.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.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.UUID; /** User Assigned Managed Identity. */ @Immutable public class UserAssignedManagedIdentity { - @JsonIgnore private final ClientLogger logger = new ClientLogger(UserAssignedManagedIdentity.class); - /* * The client ID. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VirtualNetworkProfile.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VirtualNetworkProfile.java index 987e197721701..f43bbbbd3e628 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VirtualNetworkProfile.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VirtualNetworkProfile.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Virtual Network Profile. */ @Fluent public final class VirtualNetworkProfile { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VirtualNetworkProfile.class); - /* * Subnet ID used for computes in workspace */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentRecurringScansProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentRecurringScansProperties.java index 8ca14901ac2df..7369343012cb9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentRecurringScansProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentRecurringScansProperties.java @@ -5,17 +5,12 @@ package com.azure.resourcemanager.synapse.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; /** Properties of a Vulnerability Assessment recurring scans. */ @Fluent public final class VulnerabilityAssessmentRecurringScansProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(VulnerabilityAssessmentRecurringScansProperties.class); - /* * Recurring scans state. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanError.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanError.java index 2bba79b770dde..c8ba7ec9c4eb3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanError.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanError.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Properties of a vulnerability assessment scan error. */ @Immutable public final class VulnerabilityAssessmentScanError { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VulnerabilityAssessmentScanError.class); - /* * The error code. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanRecordListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanRecordListResult.java index 9223fa6f5f0a3..66947365de09a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanRecordListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanRecordListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.VulnerabilityAssessmentScanRecordInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of vulnerability assessment scan records. */ @Immutable public final class VulnerabilityAssessmentScanRecordListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VulnerabilityAssessmentScanRecordListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifierListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifierListResult.java index 02772c6b588a2..b7d2de60c7874 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifierListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifierListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.WorkloadClassifierInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of workload classifiers for a workload group. */ @Immutable public final class WorkloadClassifierListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkloadClassifierListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroupListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroupListResult.java index 943547f506945..a5901019038b5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroupListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroupListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.WorkloadGroupInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of workload groups. */ @Immutable public final class WorkloadGroupListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkloadGroupListResult.class); - /* * Array of results. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceInfoListResult.java index 00169bfe92c47..e43a931356422 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceInfoListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.WorkspaceInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of workspaces. */ @Fluent public final class WorkspaceInfoListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceInfoListResult.class); - /* * Link to the next page of results */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceKeyDetails.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceKeyDetails.java index fbf8c32c18042..1bafa08b02292 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceKeyDetails.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceKeyDetails.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.synapse.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; /** Details of the customer managed key associated with the workspace. */ @Fluent public final class WorkspaceKeyDetails { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceKeyDetails.class); - /* * Workspace Key sub-resource name */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerBlobAuditingPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerBlobAuditingPolicies.java index b4869bfe7fe71..0c54a407514e6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerBlobAuditingPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerBlobAuditingPolicies.java @@ -47,7 +47,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server auditing settings. + * @return a list of server auditing settings as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -60,7 +60,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server auditing settings. + * @return a list of server auditing settings as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace( String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings.java new file mode 100644 index 0000000000000..b18c323f2e8cf --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings.java @@ -0,0 +1,107 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; + +/** Resource collection API of WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings. */ +public interface WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings { + /** + * Update workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param parameters minimal tls settings. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dedicated Sql Minimal Tls Settings Info. + */ + DedicatedSQLminimalTlsSettings update( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters); + + /** + * Update workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param parameters minimal tls settings. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dedicated Sql Minimal Tls Settings Info. + */ + DedicatedSQLminimalTlsSettings update( + String resourceGroupName, + String workspaceName, + DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + DedicatedSQLminimalTlsSettingsInner parameters, + Context context); + + /** + * Get workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return workspace managed sql server's minimal tls settings. + */ + DedicatedSQLminimalTlsSettings get( + String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName); + + /** + * Get workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return workspace managed sql server's minimal tls settings along with {@link Response}. + */ + Response getWithResponse( + String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context); + + /** + * List workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of the server's dedicated sql minimal tls settings as paginated response with {@link + * PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String workspaceName); + + /** + * List workspace managed sql server's minimal tls settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of the server's dedicated sql minimal tls settings as paginated response with {@link + * PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String workspaceName, Context context); +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerEncryptionProtectors.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerEncryptionProtectors.java index d08a5759d6447..58f233d360d2b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerEncryptionProtectors.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerEncryptionProtectors.java @@ -50,7 +50,8 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of encryption protectors for workspace managed sql server. + * @return list of encryption protectors for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName); @@ -63,7 +64,8 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of encryption protectors for workspace managed sql server. + * @return list of encryption protectors for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerExtendedBlobAuditingPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerExtendedBlobAuditingPolicies.java index 0e8a4cfb51ad4..111bba73446e6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerExtendedBlobAuditingPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerExtendedBlobAuditingPolicies.java @@ -47,7 +47,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server extended auditing settings. + * @return a list of server extended auditing settings as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); @@ -60,7 +60,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server extended auditing settings. + * @return a list of server extended auditing settings as paginated response with {@link PagedIterable}. */ PagedIterable listByWorkspace( String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerRecoverableSqlPools.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerRecoverableSqlPools.java index f11249508d7a9..6712f428c9c29 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerRecoverableSqlPools.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerRecoverableSqlPools.java @@ -18,7 +18,8 @@ public interface WorkspaceManagedSqlServerRecoverableSqlPools { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of recoverable sql pools for workspace managed sql server. + * @return list of recoverable sql pools for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName); @@ -31,7 +32,8 @@ public interface WorkspaceManagedSqlServerRecoverableSqlPools { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of recoverable sql pools for workspace managed sql server. + * @return list of recoverable sql pools for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerSecurityAlertPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerSecurityAlertPolicies.java index 5b36d8d29c8c4..992b35f01b66a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerSecurityAlertPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerSecurityAlertPolicies.java @@ -50,7 +50,8 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's threat detection policies. + * @return workspace managed sql server's threat detection policies as paginated response with {@link + * PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName); @@ -63,7 +64,8 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's threat detection policies. + * @return workspace managed sql server's threat detection policies as paginated response with {@link + * PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerUsages.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerUsages.java index 284b232fe17c9..86f90d49c6fd5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerUsages.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerUsages.java @@ -17,7 +17,8 @@ public interface WorkspaceManagedSqlServerUsages { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of server usages metric for workspace managed sql server. + * @return list of server usages metric for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName); @@ -30,7 +31,8 @@ public interface WorkspaceManagedSqlServerUsages { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of server usages metric for workspace managed sql server. + * @return list of server usages metric for workspace managed sql server as paginated response with {@link + * PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerVulnerabilityAssessments.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerVulnerabilityAssessments.java index 1c61a2744d990..48b5c318c1584 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerVulnerabilityAssessments.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerVulnerabilityAssessments.java @@ -81,7 +81,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's vulnerability assessments. + * @return a list of the server's vulnerability assessments as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName); @@ -94,7 +94,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's vulnerability assessments. + * @return a list of the server's vulnerability assessments as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePatchInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePatchInfo.java index 544454021d6f0..1aca4fe9781e6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePatchInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePatchInfo.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.synapse.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.models.WorkspacePatchProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -15,8 +13,6 @@ /** Workspace patch details. */ @Fluent public final class WorkspacePatchInfo { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspacePatchInfo.class); - /* * Resource tags */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceRepositoryConfiguration.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceRepositoryConfiguration.java index 1d01691b21c96..67606b76a4ec1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceRepositoryConfiguration.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceRepositoryConfiguration.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.synapse.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.UUID; /** Git integration settings. */ @Fluent public final class WorkspaceRepositoryConfiguration { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceRepositoryConfiguration.class); - /* * Type of workspace repositoryID configuration. Example * WorkspaceVSTSConfiguration, WorkspaceGitHubConfiguration diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspaces.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspaces.java index fdcb90908f7f1..d69802107de82 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspaces.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspaces.java @@ -17,7 +17,7 @@ public interface Workspaces { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of workspaces. + * @return list of workspaces as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); @@ -29,7 +29,7 @@ public interface Workspaces { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of workspaces. + * @return list of workspaces as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); @@ -88,7 +88,7 @@ public interface Workspaces { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of workspaces. + * @return list of workspaces as paginated response with {@link PagedIterable}. */ PagedIterable list(); @@ -99,7 +99,7 @@ public interface Workspaces { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of workspaces. + * @return list of workspaces as paginated response with {@link PagedIterable}. */ PagedIterable list(Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples.java new file mode 100644 index 0000000000000..a3720beaae970 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings Get. */ +public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples { + /* + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json + */ + /** + * Sample code: Get workspace managed sql server dedicated sql minimal tls settings. + * + * @param manager Entry point to SynapseManager. + */ + public static void getWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings( + com.azure.resourcemanager.synapse.SynapseManager manager) { + manager + .workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() + .getWithResponse("workspace-6852", "workspace-2080", "default", Context.NONE); + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples.java new file mode 100644 index 0000000000000..40ccdd93c114d --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings List. */ +public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples { + /* + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json + */ + /** + * Sample code: List dedicated sql minimal tls settings of the workspace managed sql server. + * + * @param manager Entry point to SynapseManager. + */ + public static void listDedicatedSqlMinimalTlsSettingsOfTheWorkspaceManagedSqlServer( + com.azure.resourcemanager.synapse.SynapseManager manager) { + manager + .workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() + .list("workspace-6852", "workspace-2080", Context.NONE); + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples.java new file mode 100644 index 0000000000000..e4aa9911e015d --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; +import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName; + +/** Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings Update. */ +public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples { + /* + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json + */ + /** + * Sample code: Update tls version of the workspace managed sql server. + * + * @param manager Entry point to SynapseManager. + */ + public static void updateTlsVersionOfTheWorkspaceManagedSqlServer( + com.azure.resourcemanager.synapse.SynapseManager manager) { + manager + .workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() + .update( + "workspace-6852", + "workspace-2080", + DedicatedSqlMinimalTlsSettingsName.DEFAULT, + new DedicatedSQLminimalTlsSettingsInner().withMinimalTlsVersion("1.1"), + Context.NONE); + } +}