From 803fee792f25623bb6e0edd147808875b06926bc Mon Sep 17 00:00:00 2001
From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com>
Date: Thu, 19 Dec 2024 19:27:10 -0800
Subject: [PATCH] [Automation] Generate Fluent Lite from Swagger
mysql#package-flexibleserver-2021-05-01 (#43511)
---
eng/versioning/version_client.txt | 2 +-
.../CHANGELOG.md | 10 +-
.../README.md | 4 +-
.../SAMPLE.md | 1251 +++--------------
.../pom.xml | 5 +-
.../mysqlflexibleserver/MySqlManager.java | 251 +---
...dvancedThreatProtectionSettingsClient.java | 217 ---
.../fluent/AzureADAdministratorsClient.java | 203 ---
.../fluent/BackupAndExportsClient.java | 109 --
.../fluent/BackupsClient.java | 30 -
.../fluent/ConfigurationsClient.java | 73 +-
.../LocationBasedCapabilitySetsClient.java | 71 -
.../fluent/LogFilesClient.java | 43 -
.../fluent/LongRunningBackupsClient.java | 80 --
.../LongRunningBackupsOperationsClient.java | 74 -
.../fluent/MaintenancesClient.java | 140 --
.../fluent/MySqlManagementClient.java | 116 +-
.../fluent/OperationProgressClient.java | 43 -
.../fluent/OperationResultsClient.java | 44 -
.../fluent/ServersClient.java | 92 --
.../fluent/ServersMigrationsClient.java | 72 -
.../models/AdministratorProperties.java | 208 ---
.../models/AdvancedThreatProtectionInner.java | 202 ---
.../AdvancedThreatProtectionProperties.java | 136 --
...ancedThreatProtectionUpdateProperties.java | 109 --
.../models/AzureADAdministratorInner.java | 270 ----
.../models/BackupAndExportResponseInner.java | 376 -----
.../BackupAndExportResponseProperties.java | 154 --
.../fluent/models/CapabilityInner.java | 184 ---
.../fluent/models/CapabilityPropertiesV2.java | 128 --
.../fluent/models/ConfigurationInner.java | 36 +-
.../models/ConfigurationProperties.java | 44 -
.../fluent/models/DatabaseInner.java | 4 +-
.../fluent/models/FirewallRuleInner.java | 4 +-
...AvailabilityValidationEstimationInner.java | 131 --
.../fluent/models/LogFileInner.java | 270 ----
.../fluent/models/LogFileProperties.java | 214 ---
.../fluent/models/MaintenanceInner.java | 278 ----
.../fluent/models/MaintenanceProperties.java | 270 ----
.../MaintenancePropertiesForUpdate.java | 101 --
.../models/OperationProgressResultInner.java | 237 ----
.../OperationStatusExtendedResultInner.java | 235 ----
.../PrivateEndpointConnectionProperties.java | 179 ---
.../fluent/models/ServerBackupInner.java | 4 +-
.../models/ServerBackupPropertiesV2.java | 201 ---
.../fluent/models/ServerBackupV2Inner.java | 258 ----
.../fluent/models/ServerInner.java | 59 +-
.../fluent/models/ServerProperties.java | 55 -
.../models/ServerPropertiesForUpdate.java | 61 -
.../models/ValidateBackupResponseInner.java | 111 --
.../ValidateBackupResponseProperties.java | 97 --
.../AdvancedThreatProtectionImpl.java | 60 -
...cedThreatProtectionSettingsClientImpl.java | 990 -------------
.../AdvancedThreatProtectionSettingsImpl.java | 119 --
.../AzureADAdministratorImpl.java | 169 ---
.../AzureADAdministratorsClientImpl.java | 945 -------------
.../AzureADAdministratorsImpl.java | 165 ---
.../BackupAndExportResponseImpl.java | 80 --
.../BackupAndExportsClientImpl.java | 445 ------
.../implementation/BackupAndExportsImpl.java | 81 --
.../implementation/BackupsClientImpl.java | 159 +--
.../implementation/BackupsImpl.java | 21 -
.../implementation/CapabilityImpl.java | 76 -
.../CheckNameAvailabilitiesClientImpl.java | 8 +-
...vailabilityWithoutLocationsClientImpl.java | 6 +-
...kVirtualNetworkSubnetUsagesClientImpl.java | 8 +-
.../implementation/ConfigurationImpl.java | 111 +-
.../ConfigurationsClientImpl.java | 380 +----
.../implementation/ConfigurationsImpl.java | 69 +-
.../implementation/DatabasesClientImpl.java | 38 +-
.../FirewallRulesClientImpl.java | 35 +-
.../GetPrivateDnsZoneSuffixesClientImpl.java | 8 +-
...hAvailabilityValidationEstimationImpl.java | 40 -
.../LocationBasedCapabilitiesClientImpl.java | 9 +-
...LocationBasedCapabilitySetsClientImpl.java | 386 -----
.../LocationBasedCapabilitySetsImpl.java | 67 -
.../implementation/LogFileImpl.java | 65 -
.../implementation/LogFilesClientImpl.java | 273 ----
.../implementation/LogFilesImpl.java | 45 -
.../LongRunningBackupsClientImpl.java | 360 -----
.../LongRunningBackupsImpl.java | 35 -
...ongRunningBackupsOperationsClientImpl.java | 413 ------
.../LongRunningBackupsOperationsImpl.java | 68 -
.../implementation/MaintenanceImpl.java | 93 --
.../MaintenancesClientImpl.java | 721 ----------
.../implementation/MaintenancesImpl.java | 89 --
.../MySqlManagementClientBuilder.java | 4 +-
.../MySqlManagementClientImpl.java | 265 +---
.../OperationProgressClientImpl.java | 187 ---
.../implementation/OperationProgressImpl.java | 56 -
.../OperationProgressResultImpl.java | 79 --
.../OperationResultsClientImpl.java | 188 ---
.../implementation/OperationResultsImpl.java | 57 -
.../OperationStatusExtendedResultImpl.java | 84 --
.../implementation/OperationsClientImpl.java | 8 +-
.../implementation/ReplicasClientImpl.java | 8 +-
.../implementation/ServerBackupV2Impl.java | 121 --
.../implementation/ServerImpl.java | 72 +-
.../implementation/ServersClientImpl.java | 474 +------
.../implementation/ServersImpl.java | 36 -
.../ServersMigrationsClientImpl.java | 282 ----
.../implementation/ServersMigrationsImpl.java | 52 -
.../ValidateBackupResponseImpl.java | 32 -
.../models/AdministratorListResult.java | 128 --
.../models/AdministratorName.java | 46 -
.../models/AdministratorType.java | 46 -
.../models/AdvancedThreatProtection.java | 71 -
.../AdvancedThreatProtectionForUpdate.java | 113 --
.../AdvancedThreatProtectionListResult.java | 105 --
.../models/AdvancedThreatProtectionName.java | 46 -
...ncedThreatProtectionProvisioningState.java | 62 -
.../AdvancedThreatProtectionSettings.java | 133 --
.../models/AdvancedThreatProtectionState.java | 51 -
.../models/AzureADAdministrator.java | 323 -----
.../models/AzureADAdministrators.java | 144 --
.../mysqlflexibleserver/models/Backup.java | 28 -
.../models/BackupAndExportRequest.java | 123 --
.../models/BackupAndExportResponse.java | 107 --
.../models/BackupAndExportResponseType.java | 171 ---
.../models/BackupAndExports.java | 67 -
.../models/BackupFormat.java | 51 -
.../models/BackupRequestBase.java | 104 --
.../models/BackupSettings.java | 129 --
.../models/BackupStoreDetails.java | 107 --
.../models/BackupType.java | 46 -
.../mysqlflexibleserver/models/Backups.java | 28 -
.../models/Capability.java | 70 -
.../models/CapabilitySetsList.java | 103 --
.../models/Configuration.java | 203 +--
.../ConfigurationListForBatchUpdate.java | 30 -
.../models/Configurations.java | 70 +-
.../mysqlflexibleserver/models/Database.java | 2 +-
.../models/FirewallRule.java | 2 +-
.../models/FullBackupStoreDetails.java | 122 --
.../models/HighAvailability.java | 2 +-
.../HighAvailabilityValidationEstimation.java | 41 -
...MySqlServerIdentity.java => Identity.java} | 36 +-
.../models/ImportFromStorageResponseType.java | 119 --
.../models/ImportSourceProperties.java | 180 ---
.../models/ImportSourceStorageType.java | 46 -
.../models/LocationBasedCapabilitySets.java | 64 -
.../mysqlflexibleserver/models/LogFile.java | 84 --
.../models/LogFileListResult.java | 127 --
.../mysqlflexibleserver/models/LogFiles.java | 38 -
.../models/LongRunningBackups.java | 18 -
.../models/LongRunningBackupsOperations.java | 67 -
.../models/Maintenance.java | 126 --
.../models/MaintenanceListResult.java | 127 --
.../models/MaintenanceProvisioningState.java | 61 -
.../models/MaintenanceState.java | 71 -
.../models/MaintenanceType.java | 61 -
.../models/MaintenanceUpdate.java | 110 --
.../models/Maintenances.java | 96 --
.../models/ManagedServiceIdentityType.java | 47 +-
.../mysqlflexibleserver/models/Network.java | 14 -
.../models/ObjectType.java | 51 -
.../models/OperationProgress.java | 38 -
.../models/OperationProgressResponseType.java | 110 --
.../models/OperationProgressResult.java | 93 --
.../models/OperationResults.java | 38 -
.../models/OperationStatus.java | 76 -
.../models/OperationStatusExtendedResult.java | 95 --
.../models/OperationStatusResult.java | 340 -----
.../models/PrivateEndpoint.java | 81 --
.../models/PrivateEndpointConnection.java | 224 ---
...teEndpointConnectionProvisioningState.java | 62 -
...rivateEndpointServiceConnectionStatus.java | 57 -
.../PrivateLinkServiceConnectionState.java | 155 --
.../models/ProvisioningState.java | 66 -
.../models/ResetAllToDefault.java | 51 -
.../mysqlflexibleserver/models/Server.java | 125 +-
.../models/ServerBackup.java | 2 +-
.../models/ServerBackupV2.java | 191 ---
.../models/ServerBackupV2ListResult.java | 128 --
.../models/ServerEditionCapabilityV2.java | 156 --
.../models/ServerForUpdate.java | 62 +-
.../models/ServerGtidSetParameter.java | 93 --
.../models/ServerSkuTier.java | 56 -
.../models/ServerVersionCapabilityV2.java | 81 --
.../mysqlflexibleserver/models/Servers.java | 56 -
.../models/ServersMigrations.java | 37 -
.../models/{MySqlServerSku.java => Sku.java} | 44 +-
.../models/SkuCapabilityV2.java | 164 ---
.../mysqlflexibleserver/models/SkuTier.java | 56 +
.../mysqlflexibleserver/models/Storage.java | 56 -
.../models/StorageEditionCapability.java | 34 -
.../models/ValidateBackupResponse.java | 27 -
.../proxy-config.json | 2 +-
.../reflect-config.json | 2 +-
...cedThreatProtectionSettingsGetSamples.java | 29 -
...edThreatProtectionSettingsListSamples.java | 26 -
...eatProtectionSettingsUpdatePutSamples.java | 50 -
...ThreatProtectionSettingsUpdateSamples.java | 50 -
...ADAdministratorsCreateOrUpdateSamples.java | 37 -
.../AzureADAdministratorsDeleteSamples.java | 28 -
.../AzureADAdministratorsGetSamples.java | 28 -
...reADAdministratorsListByServerSamples.java | 25 -
.../BackupAndExportCreateSamples.java | 33 -
.../BackupAndExportValidateBackupSamples.java | 25 -
.../generated/BackupsGetSamples.java | 3 +-
.../generated/BackupsListByServerSamples.java | 4 +-
.../generated/BackupsPutSamples.java | 24 -
.../CheckNameAvailabilityExecuteSamples.java | 4 +-
...labilityWithoutLocationExecuteSamples.java | 4 +-
...rtualNetworkSubnetUsageExecuteSamples.java | 3 +-
.../ConfigurationsBatchUpdateSamples.java | 13 +-
.../ConfigurationsCreateOrUpdateSamples.java | 31 -
.../generated/ConfigurationsGetSamples.java | 3 +-
.../ConfigurationsListByServerSamples.java | 6 +-
.../ConfigurationsUpdateSamples.java | 14 +-
.../DatabasesCreateOrUpdateSamples.java | 3 +-
.../generated/DatabasesDeleteSamples.java | 3 +-
.../generated/DatabasesGetSamples.java | 3 +-
.../DatabasesListByServerSamples.java | 4 +-
.../FirewallRulesCreateOrUpdateSamples.java | 4 +-
.../generated/FirewallRulesDeleteSamples.java | 4 +-
.../generated/FirewallRulesGetSamples.java | 3 +-
.../FirewallRulesListByServerSamples.java | 3 +-
...GetPrivateDnsZoneSuffixExecuteSamples.java | 3 +-
.../LocationBasedCapabilitiesListSamples.java | 3 +-
.../LocationBasedCapabilitySetGetSamples.java | 24 -
...LocationBasedCapabilitySetListSamples.java | 24 -
.../LogFilesListByServerSamples.java | 25 -
.../LongRunningBackupCreateSamples.java | 27 -
...LongRunningBackupsOperationGetSamples.java | 25 -
...ongRunningBackupsOperationListSamples.java | 24 -
.../generated/MaintenancesListSamples.java | 24 -
.../generated/MaintenancesReadSamples.java | 25 -
.../generated/MaintenancesUpdateSamples.java | 30 -
.../OperationProgressGetSamples.java | 42 -
.../generated/OperationResultsGetSamples.java | 25 -
.../generated/OperationsListSamples.java | 3 +-
.../ReplicasListByServerSamples.java | 4 +-
.../generated/ServersCreateSamples.java | 36 +-
.../generated/ServersDeleteSamples.java | 3 +-
.../generated/ServersFailoverSamples.java | 3 +-
.../ServersGetByResourceGroupSamples.java | 7 +-
.../ServersListByResourceGroupSamples.java | 3 +-
.../generated/ServersListSamples.java | 3 +-
...rversMigrationCutoverMigrationSamples.java | 25 -
.../generated/ServersResetGtidSamples.java | 29 -
.../generated/ServersRestartSamples.java | 3 +-
.../generated/ServersStartSamples.java | 3 +-
.../generated/ServersStopSamples.java | 3 +-
.../generated/ServersUpdateSamples.java | 21 +-
...lidateEstimateHighAvailabilitySamples.java | 30 -
.../AdministratorListResultTests.java | 45 -
.../AdministratorPropertiesTests.java | 40 -
...dvancedThreatProtectionForUpdateTests.java | 27 -
.../AdvancedThreatProtectionInnerTests.java | 28 -
...vancedThreatProtectionListResultTests.java | 23 -
...vancedThreatProtectionPropertiesTests.java | 29 -
...ctionSettingsGetWithResponseMockTests.java | 41 -
...ThreatProtectionSettingsListMockTests.java | 40 -
...reatProtectionSettingsUpdateMockTests.java | 43 -
...tProtectionSettingsUpdatePutMockTests.java | 43 -
...ThreatProtectionUpdatePropertiesTests.java | 27 -
.../AzureADAdministratorInnerTests.java | 40 -
...AdministratorsCreateOrUpdateMockTests.java | 51 -
.../AzureADAdministratorsDeleteMockTests.java | 36 -
...dministratorsGetWithResponseMockTests.java | 45 -
...ADAdministratorsListByServerMockTests.java | 44 -
.../BackupAndExportRequestTests.java | 34 -
...ackupAndExportResponsePropertiesTests.java | 33 -
.../BackupAndExportResponseTypeTests.java | 33 -
...tsValidateBackupWithResponseMockTests.java | 38 -
.../generated/BackupRequestBaseTests.java | 31 -
.../generated/BackupSettingsTests.java | 28 -
.../generated/BackupStoreDetailsTests.java | 22 -
.../generated/BackupTests.java | 17 +-
.../BackupsGetWithResponseMockTests.java | 10 +-
.../BackupsListByServerMockTests.java | 10 +-
.../BackupsPutWithResponseMockTests.java | 41 -
.../CapabilitiesListResultTests.java | 2 +-
.../generated/CapabilityInnerTests.java | 23 -
.../CapabilityPropertiesInnerTests.java | 2 +-
.../CapabilityPropertiesV2Tests.java | 23 -
.../generated/CapabilitySetsListTests.java | 23 -
...abilitiesExecuteWithResponseMockTests.java | 10 +-
...LocationsExecuteWithResponseMockTests.java | 8 +-
...netUsagesExecuteWithResponseMockTests.java | 6 +-
...gurationForBatchUpdatePropertiesTests.java | 12 +-
.../ConfigurationForBatchUpdateTests.java | 23 +-
.../generated/ConfigurationInnerTests.java | 13 +-
.../ConfigurationListForBatchUpdateTests.java | 26 +-
.../ConfigurationListResultInnerTests.java | 31 +-
.../ConfigurationPropertiesTests.java | 17 +-
.../ConfigurationsBatchUpdateMockTests.java | 22 +-
...onfigurationsGetWithResponseMockTests.java | 9 +-
.../ConfigurationsListByServerMockTests.java | 12 +-
...ava => ConfigurationsUpdateMockTests.java} | 21 +-
.../generated/DatabaseInnerTests.java | 12 +-
.../generated/DatabaseListResultTests.java | 19 +-
.../generated/DatabasePropertiesTests.java | 12 +-
.../DatabasesCreateOrUpdateMockTests.java | 14 +-
.../generated/DatabasesDeleteMockTests.java | 2 +-
.../DatabasesGetWithResponseMockTests.java | 8 +-
.../DatabasesListByServerMockTests.java | 9 +-
.../generated/DelegatedSubnetUsageTests.java | 2 +-
.../generated/FirewallRuleInnerTests.java | 12 +-
.../FirewallRuleListResultTests.java | 21 +-
.../FirewallRulePropertiesTests.java | 16 +-
.../FirewallRulesCreateOrUpdateMockTests.java | 14 +-
.../FirewallRulesDeleteMockTests.java | 2 +-
...FirewallRulesGetWithResponseMockTests.java | 8 +-
.../FirewallRulesListByServerMockTests.java | 8 +-
.../FullBackupStoreDetailsTests.java | 28 -
...rivateDnsZoneSuffixResponseInnerTests.java | 11 +-
...eSuffixesExecuteWithResponseMockTests.java | 4 +-
.../generated/HighAvailabilityTests.java | 15 +-
...abilityValidationEstimationInnerTests.java | 27 -
...rIdentityTests.java => IdentityTests.java} | 17 +-
.../ImportFromStorageResponseTypeTests.java | 29 -
...ocationBasedCapabilitiesListMockTests.java | 4 +-
...apabilitySetsGetWithResponseMockTests.java | 37 -
...ationBasedCapabilitySetsListMockTests.java | 37 -
.../generated/LogFileInnerTests.java | 39 -
.../generated/LogFileListResultTests.java | 60 -
.../generated/LogFilePropertiesTests.java | 39 -
.../LogFilesListByServerMockTests.java | 44 -
.../LongRunningBackupsCreateMockTests.java | 48 -
...upsOperationsGetWithResponseMockTests.java | 43 -
...RunningBackupsOperationsListMockTests.java | 44 -
.../generated/MaintenanceInnerTests.java | 28 -
.../generated/MaintenanceListResultTests.java | 39 -
.../MaintenancePropertiesForUpdateTests.java | 28 -
.../generated/MaintenancePropertiesTests.java | 28 -
.../generated/MaintenanceUpdateTests.java | 28 -
.../generated/MaintenanceWindowTests.java | 26 +-
.../generated/MaintenancesListMockTests.java | 40 -
...MaintenancesReadWithResponseMockTests.java | 39 -
.../MaintenancesUpdateMockTests.java | 41 -
.../generated/MySqlServerSkuTests.java | 28 -
.../generated/NameAvailabilityInnerTests.java | 12 +-
.../NameAvailabilityRequestTests.java | 14 +-
.../generated/NetworkTests.java | 18 +-
.../generated/OperationDisplayTests.java | 26 +-
.../generated/OperationInnerTests.java | 42 +-
.../generated/OperationListResultTests.java | 44 +-
.../OperationProgressResponseTypeTests.java | 23 -
.../generated/OperationsListMockTests.java | 14 +-
...vateEndpointConnectionPropertiesTests.java | 40 -
.../PrivateEndpointConnectionTests.java | 39 -
.../generated/PrivateEndpointTests.java | 21 -
...rivateLinkServiceConnectionStateTests.java | 34 -
.../generated/ServerBackupInnerTests.java | 20 +-
.../ServerBackupListResultTests.java | 38 +-
.../ServerBackupPropertiesTests.java | 23 +-
.../ServerBackupPropertiesV2Tests.java | 37 -
.../generated/ServerBackupV2InnerTests.java | 37 -
.../ServerBackupV2ListResultTests.java | 47 -
.../ServerEditionCapabilityTests.java | 2 +-
.../ServerEditionCapabilityV2Tests.java | 23 -
.../ServerGtidSetParameterTests.java | 25 -
.../ServerRestartParameterTests.java | 8 +-
.../ServerVersionCapabilityTests.java | 2 +-
.../ServerVersionCapabilityV2Tests.java | 22 -
.../generated/ServersDeleteMockTests.java | 2 +-
.../generated/ServersFailoverMockTests.java | 2 +-
.../generated/ServersResetGtidMockTests.java | 36 -
.../generated/ServersRestartMockTests.java | 6 +-
.../generated/ServersStartMockTests.java | 2 +-
.../generated/ServersStopMockTests.java | 2 +-
...HighAvailabilityWithResponseMockTests.java | 44 -
.../generated/SkuCapabilityTests.java | 2 +-
.../generated/SkuCapabilityV2Tests.java | 23 -
.../generated/SkuTests.java | 27 +
.../StorageEditionCapabilityTests.java | 2 +-
.../generated/StorageTests.java | 24 +-
.../ValidateBackupResponseInnerTests.java | 26 -
...ValidateBackupResponsePropertiesTests.java | 26 -
...rtualNetworkSubnetUsageParameterTests.java | 8 +-
...ualNetworkSubnetUsageResultInnerTests.java | 2 +-
373 files changed, 1168 insertions(+), 26276 deletions(-)
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/AdvancedThreatProtectionSettingsClient.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/AzureADAdministratorsClient.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/BackupAndExportsClient.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/LocationBasedCapabilitySetsClient.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/LogFilesClient.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/LongRunningBackupsClient.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/LongRunningBackupsOperationsClient.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/MaintenancesClient.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/OperationProgressClient.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/OperationResultsClient.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServersMigrationsClient.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdministratorProperties.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdvancedThreatProtectionInner.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdvancedThreatProtectionProperties.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdvancedThreatProtectionUpdateProperties.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AzureADAdministratorInner.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/BackupAndExportResponseInner.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/BackupAndExportResponseProperties.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/CapabilityInner.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/CapabilityPropertiesV2.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/HighAvailabilityValidationEstimationInner.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileInner.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileProperties.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/MaintenanceInner.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/MaintenanceProperties.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/MaintenancePropertiesForUpdate.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/OperationProgressResultInner.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/OperationStatusExtendedResultInner.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionProperties.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupPropertiesV2.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupV2Inner.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ValidateBackupResponseInner.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ValidateBackupResponseProperties.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvancedThreatProtectionImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvancedThreatProtectionSettingsClientImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvancedThreatProtectionSettingsImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorsClientImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorsImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportResponseImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportsClientImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportsImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CapabilityImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/HighAvailabilityValidationEstimationImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/LocationBasedCapabilitySetsClientImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/LocationBasedCapabilitySetsImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/LogFileImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/LogFilesClientImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/LogFilesImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/LongRunningBackupsClientImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/LongRunningBackupsImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/LongRunningBackupsOperationsClientImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/LongRunningBackupsOperationsImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/MaintenanceImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/MaintenancesClientImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/MaintenancesImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/OperationProgressClientImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/OperationProgressImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/OperationProgressResultImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/OperationResultsClientImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/OperationResultsImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/OperationStatusExtendedResultImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ServerBackupV2Impl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ServersMigrationsClientImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ServersMigrationsImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ValidateBackupResponseImpl.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/AdministratorListResult.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/AdministratorName.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/AdministratorType.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/AdvancedThreatProtection.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/AdvancedThreatProtectionForUpdate.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/AdvancedThreatProtectionListResult.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/AdvancedThreatProtectionName.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/AdvancedThreatProtectionProvisioningState.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/AdvancedThreatProtectionSettings.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/AdvancedThreatProtectionState.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/AzureADAdministrator.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/AzureADAdministrators.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/BackupAndExportRequest.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/BackupAndExportResponse.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/BackupAndExportResponseType.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/BackupAndExports.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/BackupFormat.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/BackupRequestBase.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/BackupSettings.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/BackupStoreDetails.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/BackupType.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/Capability.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/CapabilitySetsList.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/FullBackupStoreDetails.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/HighAvailabilityValidationEstimation.java
rename sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/{MySqlServerIdentity.java => Identity.java} (73%)
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/ImportFromStorageResponseType.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/ImportSourceProperties.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/ImportSourceStorageType.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/LocationBasedCapabilitySets.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/LogFile.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/LogFileListResult.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/LogFiles.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/LongRunningBackups.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/LongRunningBackupsOperations.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/Maintenance.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/MaintenanceListResult.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/MaintenanceProvisioningState.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/MaintenanceState.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/MaintenanceType.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/MaintenanceUpdate.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/Maintenances.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/ObjectType.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/OperationProgress.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/OperationProgressResponseType.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/OperationProgressResult.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/OperationResults.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/OperationStatus.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/OperationStatusExtendedResult.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/OperationStatusResult.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/PrivateEndpoint.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/PrivateEndpointConnection.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/PrivateEndpointConnectionProvisioningState.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/PrivateEndpointServiceConnectionStatus.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/PrivateLinkServiceConnectionState.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/ProvisioningState.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/ResetAllToDefault.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/ServerBackupV2.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/ServerBackupV2ListResult.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/ServerEditionCapabilityV2.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/ServerGtidSetParameter.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/ServerSkuTier.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/ServerVersionCapabilityV2.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/ServersMigrations.java
rename sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/{MySqlServerSku.java => Sku.java} (67%)
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/SkuCapabilityV2.java
create mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/SkuTier.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/ValidateBackupResponse.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AdvancedThreatProtectionSettingsGetSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AdvancedThreatProtectionSettingsListSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AdvancedThreatProtectionSettingsUpdatePutSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AdvancedThreatProtectionSettingsUpdateSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AzureADAdministratorsCreateOrUpdateSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AzureADAdministratorsDeleteSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AzureADAdministratorsGetSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AzureADAdministratorsListByServerSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/BackupAndExportCreateSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/BackupAndExportValidateBackupSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/BackupsPutSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/ConfigurationsCreateOrUpdateSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/LocationBasedCapabilitySetGetSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/LocationBasedCapabilitySetListSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/LogFilesListByServerSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/LongRunningBackupCreateSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/LongRunningBackupsOperationGetSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/LongRunningBackupsOperationListSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/MaintenancesListSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/MaintenancesReadSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/MaintenancesUpdateSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/OperationProgressGetSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/OperationResultsGetSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/ServersMigrationCutoverMigrationSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/ServersResetGtidSamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/samples/java/com/azure/resourcemanager/mysqlflexibleserver/generated/ServersValidateEstimateHighAvailabilitySamples.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AdministratorListResultTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AdministratorPropertiesTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AdvancedThreatProtectionForUpdateTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AdvancedThreatProtectionInnerTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AdvancedThreatProtectionListResultTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AdvancedThreatProtectionPropertiesTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AdvancedThreatProtectionSettingsGetWithResponseMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AdvancedThreatProtectionSettingsListMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AdvancedThreatProtectionSettingsUpdateMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AdvancedThreatProtectionSettingsUpdatePutMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AdvancedThreatProtectionUpdatePropertiesTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AzureADAdministratorInnerTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AzureADAdministratorsCreateOrUpdateMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AzureADAdministratorsDeleteMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AzureADAdministratorsGetWithResponseMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/AzureADAdministratorsListByServerMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/BackupAndExportRequestTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/BackupAndExportResponsePropertiesTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/BackupAndExportResponseTypeTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/BackupAndExportsValidateBackupWithResponseMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/BackupRequestBaseTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/BackupSettingsTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/BackupStoreDetailsTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/BackupsPutWithResponseMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/CapabilityInnerTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/CapabilityPropertiesV2Tests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/CapabilitySetsListTests.java
rename sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/{ConfigurationsCreateOrUpdateMockTests.java => ConfigurationsUpdateMockTests.java} (58%)
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/FullBackupStoreDetailsTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/HighAvailabilityValidationEstimationInnerTests.java
rename sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/{MySqlServerIdentityTests.java => IdentityTests.java} (58%)
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/ImportFromStorageResponseTypeTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/LocationBasedCapabilitySetsGetWithResponseMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/LocationBasedCapabilitySetsListMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/LogFileInnerTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/LogFileListResultTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/LogFilePropertiesTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/LogFilesListByServerMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/LongRunningBackupsCreateMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/LongRunningBackupsOperationsGetWithResponseMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/LongRunningBackupsOperationsListMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/MaintenanceInnerTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/MaintenanceListResultTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/MaintenancePropertiesForUpdateTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/MaintenancePropertiesTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/MaintenanceUpdateTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/MaintenancesListMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/MaintenancesReadWithResponseMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/MaintenancesUpdateMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/MySqlServerSkuTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/OperationProgressResponseTypeTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/PrivateEndpointConnectionPropertiesTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/PrivateEndpointConnectionTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/PrivateEndpointTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/PrivateLinkServiceConnectionStateTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/ServerBackupPropertiesV2Tests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/ServerBackupV2InnerTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/ServerBackupV2ListResultTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/ServerEditionCapabilityV2Tests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/ServerGtidSetParameterTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/ServerVersionCapabilityV2Tests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/ServersResetGtidMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/ServersValidateEstimateHighAvailabilityWithResponseMockTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/SkuCapabilityV2Tests.java
create mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/SkuTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/ValidateBackupResponseInnerTests.java
delete mode 100644 sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/test/java/com/azure/resourcemanager/mysqlflexibleserver/generated/ValidateBackupResponsePropertiesTests.java
diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 738d6a47c0df3..7c164b1307755 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -383,7 +383,7 @@ com.azure.resourcemanager:azure-resourcemanager-security;1.0.0-beta.7;1.0.0-beta
com.azure.resourcemanager:azure-resourcemanager-azurearcdata;1.0.0-beta.4;1.0.0-beta.5
com.azure.resourcemanager:azure-resourcemanager-hybridnetwork;1.1.0;1.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-purview;1.0.0-beta.3;1.0.0-beta.4
-com.azure.resourcemanager:azure-resourcemanager-mysqlflexibleserver;1.0.0-beta.6;1.0.0-beta.7
+com.azure.resourcemanager:azure-resourcemanager-mysqlflexibleserver;1.0.0-beta.6;1.0.0
com.azure.resourcemanager:azure-resourcemanager-baremetalinfrastructure;1.0.0-beta.4;1.0.0-beta.5
com.azure.resourcemanager:azure-resourcemanager-quota;1.0.0;1.1.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-extendedlocation;1.0.0-beta.3;1.0.0-beta.4
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/CHANGELOG.md b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/CHANGELOG.md
index c6ee3987396b2..9bb1a88a3cabe 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/CHANGELOG.md
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/CHANGELOG.md
@@ -1,15 +1,13 @@
# Release History
-## 1.0.0-beta.7 (Unreleased)
+## 1.0.0 (2024-12-20)
-### Features Added
-
-### Breaking Changes
-
-### Bugs Fixed
+- Azure Resource Manager MySql client library for Java. This package contains Microsoft Azure SDK for MySql Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model. Package tag package-flexibleserver-2021-05-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Other Changes
+Release for the azure-resourcemanager-mysqlflexibleserver Java SDK.
+
## 1.0.0-beta.6 (2024-12-04)
- Azure Resource Manager MySql client library for Java. This package contains Microsoft Azure SDK for MySql Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model. Package tag package-flexibleserver-2023-12-30. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/README.md b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/README.md
index cca9d4a3ab85c..f1443068026f2 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/README.md
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager MySql client library for Java.
-This package contains Microsoft Azure SDK for MySql Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model. Package tag package-flexibleserver-2023-12-30. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for MySql Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model. Package tag package-flexibleserver-2021-05-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-mysqlflexibleserver
- 1.0.0-beta.6
+ 1.0.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/SAMPLE.md b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/SAMPLE.md
index 7396434a28c0e..560c855ac0718 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/SAMPLE.md
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/SAMPLE.md
@@ -1,30 +1,10 @@
# Code snippets and samples
-## AdvancedThreatProtectionSettings
-
-- [Get](#advancedthreatprotectionsettings_get)
-- [List](#advancedthreatprotectionsettings_list)
-- [Update](#advancedthreatprotectionsettings_update)
-- [UpdatePut](#advancedthreatprotectionsettings_updateput)
-
-## AzureADAdministrators
-
-- [CreateOrUpdate](#azureadadministrators_createorupdate)
-- [Delete](#azureadadministrators_delete)
-- [Get](#azureadadministrators_get)
-- [ListByServer](#azureadadministrators_listbyserver)
-
-## BackupAndExport
-
-- [Create](#backupandexport_create)
-- [ValidateBackup](#backupandexport_validatebackup)
-
## Backups
- [Get](#backups_get)
- [ListByServer](#backups_listbyserver)
-- [Put](#backups_put)
## CheckNameAvailability
@@ -41,7 +21,6 @@
## Configurations
- [BatchUpdate](#configurations_batchupdate)
-- [CreateOrUpdate](#configurations_createorupdate)
- [Get](#configurations_get)
- [ListByServer](#configurations_listbyserver)
- [Update](#configurations_update)
@@ -68,38 +47,6 @@
- [List](#locationbasedcapabilities_list)
-## LocationBasedCapabilitySet
-
-- [Get](#locationbasedcapabilityset_get)
-- [List](#locationbasedcapabilityset_list)
-
-## LogFiles
-
-- [ListByServer](#logfiles_listbyserver)
-
-## LongRunningBackup
-
-- [Create](#longrunningbackup_create)
-
-## LongRunningBackupsOperation
-
-- [Get](#longrunningbackupsoperation_get)
-- [List](#longrunningbackupsoperation_list)
-
-## Maintenances
-
-- [List](#maintenances_list)
-- [Read](#maintenances_read)
-- [Update](#maintenances_update)
-
-## OperationProgress
-
-- [Get](#operationprogress_get)
-
-## OperationResults
-
-- [Get](#operationresults_get)
-
## Operations
- [List](#operations_list)
@@ -116,337 +63,10 @@
- [GetByResourceGroup](#servers_getbyresourcegroup)
- [List](#servers_list)
- [ListByResourceGroup](#servers_listbyresourcegroup)
-- [ResetGtid](#servers_resetgtid)
- [Restart](#servers_restart)
- [Start](#servers_start)
- [Stop](#servers_stop)
- [Update](#servers_update)
-- [ValidateEstimateHighAvailability](#servers_validateestimatehighavailability)
-
-## ServersMigration
-
-- [CutoverMigration](#serversmigration_cutovermigration)
-### AdvancedThreatProtectionSettings_Get
-
-```java
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionName;
-
-/**
- * Samples for AdvancedThreatProtectionSettings Get.
- */
-public final class AdvancedThreatProtectionSettingsGetSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
- * AdvancedThreatProtectionSettingsGet.json
- */
- /**
- * Sample code: Get a server's Advanced Threat Protection settings.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void getAServerSAdvancedThreatProtectionSettings(
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.advancedThreatProtectionSettings()
- .getWithResponse("threatprotection-6852", "threatprotection-2080", AdvancedThreatProtectionName.DEFAULT,
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AdvancedThreatProtectionSettings_List
-
-```java
-/**
- * Samples for AdvancedThreatProtectionSettings List.
- */
-public final class AdvancedThreatProtectionSettingsListSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
- * AdvancedThreatProtectionSettingsList.json
- */
- /**
- * Sample code: Get list of server's Advanced Threat Protection settings.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void getListOfServerSAdvancedThreatProtectionSettings(
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.advancedThreatProtectionSettings()
- .list("threatprotection-6852", "threatprotection-2080", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AdvancedThreatProtectionSettings_Update
-
-```java
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionForUpdate;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionName;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionState;
-
-/**
- * Samples for AdvancedThreatProtectionSettings Update.
- */
-public final class AdvancedThreatProtectionSettingsUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
- * AdvancedThreatProtectionSettingsPatchDisabled.json
- */
- /**
- * Sample code: Disable a server's Advanced Threat Protection settings with all parameters.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void disableAServerSAdvancedThreatProtectionSettingsWithAllParameters(
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.advancedThreatProtectionSettings()
- .update("threatprotection-4799", "threatprotection-6440", AdvancedThreatProtectionName.DEFAULT,
- new AdvancedThreatProtectionForUpdate().withState(AdvancedThreatProtectionState.DISABLED),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
- * AdvancedThreatProtectionSettingsPatchEnabled.json
- */
- /**
- * Sample code: Enable a server's Advanced Threat Protection settings.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void enableAServerSAdvancedThreatProtectionSettings(
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.advancedThreatProtectionSettings()
- .update("threatprotection-4799", "threatprotection-6440", AdvancedThreatProtectionName.DEFAULT,
- new AdvancedThreatProtectionForUpdate().withState(AdvancedThreatProtectionState.ENABLED),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AdvancedThreatProtectionSettings_UpdatePut
-
-```java
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.AdvancedThreatProtectionInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionName;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionState;
-
-/**
- * Samples for AdvancedThreatProtectionSettings UpdatePut.
- */
-public final class AdvancedThreatProtectionSettingsUpdatePutSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
- * AdvancedThreatProtectionSettingsPutDisabled.json
- */
- /**
- * Sample code: Disable a server's Advanced Threat Protection settings with all parameters using PUT.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void disableAServerSAdvancedThreatProtectionSettingsWithAllParametersUsingPUT(
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.advancedThreatProtectionSettings()
- .updatePut("threatprotection-4799", "threatprotection-6440", AdvancedThreatProtectionName.DEFAULT,
- new AdvancedThreatProtectionInner().withState(AdvancedThreatProtectionState.DISABLED),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
- * AdvancedThreatProtectionSettingsPutEnabled.json
- */
- /**
- * Sample code: Enable a server's Advanced Threat Protection settings using PUT.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void enableAServerSAdvancedThreatProtectionSettingsUsingPUT(
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.advancedThreatProtectionSettings()
- .updatePut("threatprotection-4799", "threatprotection-6440", AdvancedThreatProtectionName.DEFAULT,
- new AdvancedThreatProtectionInner().withState(AdvancedThreatProtectionState.ENABLED),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AzureADAdministrators_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorName;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorType;
-
-/**
- * Samples for AzureADAdministrators CreateOrUpdate.
- */
-public final class AzureADAdministratorsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2023-06-01-preview/examples/
- * AzureADAdministratorCreate.json
- */
- /**
- * Sample code: Create an azure ad administrator.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void
- createAnAzureAdAdministrator(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.azureADAdministrators()
- .define(AdministratorName.ACTIVE_DIRECTORY)
- .withExistingFlexibleServer("testrg", "mysqltestsvc4")
- .withAdministratorType(AdministratorType.ACTIVE_DIRECTORY)
- .withLogin("bob@contoso.com")
- .withSid("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c")
- .withTenantId("c12b7025-bfe2-46c1-b463-993b5e4cd467")
- .withIdentityResourceId(
- "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/test-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi")
- .create();
- }
-}
-```
-
-### AzureADAdministrators_Delete
-
-```java
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorName;
-
-/**
- * Samples for AzureADAdministrators Delete.
- */
-public final class AzureADAdministratorsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2023-06-01-preview/examples/
- * AzureADAdministratorDelete.json
- */
- /**
- * Sample code: Delete an azure ad administrator.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void
- deleteAnAzureAdAdministrator(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.azureADAdministrators()
- .delete("testrg", "mysqltestsvc4", AdministratorName.ACTIVE_DIRECTORY, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AzureADAdministrators_Get
-
-```java
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorName;
-
-/**
- * Samples for AzureADAdministrators Get.
- */
-public final class AzureADAdministratorsGetSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2023-06-01-preview/examples/
- * AzureADAdministratorGet.json
- */
- /**
- * Sample code: Get an azure ad administrator.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void getAnAzureAdAdministrator(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.azureADAdministrators()
- .getWithResponse("testrg", "mysqltestsvc4", AdministratorName.ACTIVE_DIRECTORY,
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### AzureADAdministrators_ListByServer
-
-```java
-/**
- * Samples for AzureADAdministrators ListByServer.
- */
-public final class AzureADAdministratorsListByServerSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2023-06-01-preview/examples/
- * AzureADAdministratorsListByServer.json
- */
- /**
- * Sample code: List Azure AD administrators in a server.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void
- listAzureADAdministratorsInAServer(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.azureADAdministrators().listByServer("testrg", "mysqltestsvc4", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### BackupAndExport_Create
-
-```java
-import com.azure.resourcemanager.mysqlflexibleserver.models.BackupAndExportRequest;
-import com.azure.resourcemanager.mysqlflexibleserver.models.BackupSettings;
-import com.azure.resourcemanager.mysqlflexibleserver.models.FullBackupStoreDetails;
-import java.util.Arrays;
-
-/**
- * Samples for BackupAndExport Create.
- */
-public final class BackupAndExportCreateSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2023-10-01-preview/examples/
- * BackupAndExport.json
- */
- /**
- * Sample code: Create and Export Backup.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void createAndExportBackup(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.backupAndExports()
- .create("TestGroup", "mysqltestserver", new BackupAndExportRequest()
- .withBackupSettings(new BackupSettings().withBackupName("customer-backup-name"))
- .withTargetDetails(new FullBackupStoreDetails().withSasUriList(Arrays.asList("sasuri1", "sasuri2"))),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### BackupAndExport_ValidateBackup
-
-```java
-/**
- * Samples for BackupAndExport ValidateBackup.
- */
-public final class BackupAndExportValidateBackupSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2023-10-01-preview/examples/
- * ValidateBackup.json
- */
- /**
- * Sample code: Validate Backup.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void validateBackup(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.backupAndExports()
- .validateBackupWithResponse("TestGroup", "mysqltestserver", com.azure.core.util.Context.NONE);
- }
-}
-```
-
### Backups_Get
```java
@@ -456,8 +76,7 @@ public final class BackupAndExportValidateBackupSamples {
public final class BackupsGetSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2023-10-01-preview/examples/BackupGet.
- * json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/BackupGet.json
*/
/**
* Sample code: Get a backup for a server.
@@ -480,8 +99,8 @@ public final class BackupsGetSamples {
public final class BackupsListByServerSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2023-10-01-preview/examples/
- * BackupsListByServer.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/BackupsListByServer.
+ * json
*/
/**
* Sample code: List backups for a server.
@@ -494,29 +113,6 @@ public final class BackupsListByServerSamples {
}
```
-### Backups_Put
-
-```java
-/**
- * Samples for Backups Put.
- */
-public final class BackupsPutSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2023-10-01-preview/examples/BackupPut.
- * json
- */
- /**
- * Sample code: Create backup for a server.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void createBackupForAServer(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.backups().putWithResponse("TestGroup", "mysqltestserver", "mybackup", com.azure.core.util.Context.NONE);
- }
-}
-```
-
### CheckNameAvailability_Execute
```java
@@ -528,8 +124,8 @@ import com.azure.resourcemanager.mysqlflexibleserver.models.NameAvailabilityRequ
public final class CheckNameAvailabilityExecuteSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/
- * CheckNameAvailability.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/CheckNameAvailability
+ * .json
*/
/**
* Sample code: Check name availability.
@@ -538,731 +134,405 @@ public final class CheckNameAvailabilityExecuteSamples {
*/
public static void checkNameAvailability(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
manager.checkNameAvailabilities()
- .executeWithResponse("SouthEastAsia",
- new NameAvailabilityRequest().withName("name1").withType("Microsoft.DBforMySQL/flexibleServers"),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### CheckNameAvailabilityWithoutLocation_Execute
-
-```java
-import com.azure.resourcemanager.mysqlflexibleserver.models.NameAvailabilityRequest;
-
-/**
- * Samples for CheckNameAvailabilityWithoutLocation Execute.
- */
-public final class CheckNameAvailabilityWithoutLocationExecuteSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/
- * CheckNameAvailability.json
- */
- /**
- * Sample code: Check name availability.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void checkNameAvailability(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.checkNameAvailabilityWithoutLocations()
- .executeWithResponse(
- new NameAvailabilityRequest().withName("name1").withType("Microsoft.DBforMySQL/flexibleServers"),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### CheckVirtualNetworkSubnetUsage_Execute
-
-```java
-import com.azure.resourcemanager.mysqlflexibleserver.models.VirtualNetworkSubnetUsageParameter;
-
-/**
- * Samples for CheckVirtualNetworkSubnetUsage Execute.
- */
-public final class CheckVirtualNetworkSubnetUsageExecuteSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/
- * CheckVirtualNetworkSubnetUsage.json
- */
- /**
- * Sample code: CheckVirtualNetworkSubnetUsage.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void
- checkVirtualNetworkSubnetUsage(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.checkVirtualNetworkSubnetUsages()
- .executeWithResponse("WestUS", new VirtualNetworkSubnetUsageParameter().withVirtualNetworkResourceId(
- "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/testvnet"),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Configurations_BatchUpdate
-
-```java
-import com.azure.resourcemanager.mysqlflexibleserver.models.ConfigurationForBatchUpdate;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ConfigurationListForBatchUpdate;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ResetAllToDefault;
-import java.util.Arrays;
-
-/**
- * Samples for Configurations BatchUpdate.
- */
-public final class ConfigurationsBatchUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2023-06-01-preview/examples/
- * ConfigurationsBatchUpdate.json
- */
- /**
- * Sample code: ConfigurationList.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void configurationList(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.configurations()
- .batchUpdate("testrg", "mysqltestserver", new ConfigurationListForBatchUpdate()
- .withValue(Arrays.asList(new ConfigurationForBatchUpdate().withName("event_scheduler").withValue("OFF"),
- new ConfigurationForBatchUpdate().withName("div_precision_increment").withValue("8")))
- .withResetAllToDefault(ResetAllToDefault.FALSE), com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Configurations_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.mysqlflexibleserver.models.ConfigurationSource;
-
-/**
- * Samples for Configurations CreateOrUpdate.
- */
-public final class ConfigurationsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2023-06-01-preview/examples/
- * ConfigurationCreateOrUpdate.json
- */
- /**
- * Sample code: ConfigurationCreateOrUpdate.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void configurationCreateOrUpdate(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.configurations()
- .define("event_scheduler")
- .withExistingFlexibleServer("TestGroup", "testserver")
- .withValue("off")
- .withSource(ConfigurationSource.USER_OVERRIDE)
- .create();
- }
-}
-```
-
-### Configurations_Get
-
-```java
-/**
- * Samples for Configurations Get.
- */
-public final class ConfigurationsGetSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2023-06-01-preview/examples/
- * ConfigurationGet.json
- */
- /**
- * Sample code: Get a configuration.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void getAConfiguration(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.configurations()
- .getWithResponse("TestGroup", "testserver", "event_scheduler", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Configurations_ListByServer
-
-```java
-/**
- * Samples for Configurations ListByServer.
- */
-public final class ConfigurationsListByServerSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2023-06-01-preview/examples/
- * ConfigurationsListByServer.json
- */
- /**
- * Sample code: List all configurations for a server.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void
- listAllConfigurationsForAServer(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.configurations()
- .listByServer("testrg", "mysqltestserver", null, null, 1, 8, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Configurations_Update
-
-```java
-import com.azure.resourcemanager.mysqlflexibleserver.models.Configuration;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ConfigurationSource;
-
-/**
- * Samples for Configurations Update.
- */
-public final class ConfigurationsUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2023-06-01-preview/examples/
- * ConfigurationUpdate.json
- */
- /**
- * Sample code: Update a user configuration.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void updateAUserConfiguration(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- Configuration resource = manager.configurations()
- .getWithResponse("testrg", "testserver", "event_scheduler", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().withValue("on").withSource(ConfigurationSource.USER_OVERRIDE).apply();
- }
-}
-```
-
-### Databases_CreateOrUpdate
-
-```java
-/**
- * Samples for Databases CreateOrUpdate.
- */
-public final class DatabasesCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2023-06-01-preview/examples/
- * DatabaseCreate.json
- */
- /**
- * Sample code: Create a database.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void createADatabase(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.databases()
- .define("db1")
- .withExistingFlexibleServer("TestGroup", "testserver")
- .withCharset("utf8")
- .withCollation("utf8_general_ci")
- .create();
- }
-}
-```
-
-### Databases_Delete
-
-```java
-/**
- * Samples for Databases Delete.
- */
-public final class DatabasesDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2023-06-01-preview/examples/
- * DatabaseDelete.json
- */
- /**
- * Sample code: Delete a database.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void deleteADatabase(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.databases().delete("TestGroup", "testserver", "db1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Databases_Get
-
-```java
-/**
- * Samples for Databases Get.
- */
-public final class DatabasesGetSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2023-06-01-preview/examples/
- * DatabaseGet.json
- */
- /**
- * Sample code: Get a database.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void getADatabase(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.databases().getWithResponse("TestGroup", "testserver", "db1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Databases_ListByServer
-
-```java
-/**
- * Samples for Databases ListByServer.
- */
-public final class DatabasesListByServerSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2023-06-01-preview/examples/
- * DatabasesListByServer.json
- */
- /**
- * Sample code: List databases in a server.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void listDatabasesInAServer(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.databases().listByServer("TestGroup", "testserver", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### FirewallRules_CreateOrUpdate
-
-```java
-/**
- * Samples for FirewallRules CreateOrUpdate.
- */
-public final class FirewallRulesCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2023-06-01-preview/examples/
- * FirewallRuleCreate.json
- */
- /**
- * Sample code: Create a firewall rule.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void createAFirewallRule(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.firewallRules()
- .define("rule1")
- .withExistingFlexibleServer("TestGroup", "testserver")
- .withStartIpAddress("0.0.0.0")
- .withEndIpAddress("255.255.255.255")
- .create();
- }
-}
-```
-
-### FirewallRules_Delete
-
-```java
-/**
- * Samples for FirewallRules Delete.
- */
-public final class FirewallRulesDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2023-06-01-preview/examples/
- * FirewallRuleDelete.json
- */
- /**
- * Sample code: Delete a firewall rule.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void deleteAFirewallRule(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.firewallRules().delete("TestGroup", "testserver", "rule1", com.azure.core.util.Context.NONE);
+ .executeWithResponse("SouthEastAsia",
+ new NameAvailabilityRequest().withName("name1").withType("Microsoft.DBforMySQL/flexibleServers"),
+ com.azure.core.util.Context.NONE);
}
}
```
-### FirewallRules_Get
+### CheckNameAvailabilityWithoutLocation_Execute
```java
+import com.azure.resourcemanager.mysqlflexibleserver.models.NameAvailabilityRequest;
+
/**
- * Samples for FirewallRules Get.
+ * Samples for CheckNameAvailabilityWithoutLocation Execute.
*/
-public final class FirewallRulesGetSamples {
+public final class CheckNameAvailabilityWithoutLocationExecuteSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2023-06-01-preview/examples/
- * FirewallRuleGet.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/CheckNameAvailability
+ * .json
*/
/**
- * Sample code: Get a firewall rule.
+ * Sample code: Check name availability.
*
* @param manager Entry point to MySqlManager.
*/
- public static void getAFirewallRule(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.firewallRules().getWithResponse("TestGroup", "testserver", "rule1", com.azure.core.util.Context.NONE);
+ public static void checkNameAvailability(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
+ manager.checkNameAvailabilityWithoutLocations()
+ .executeWithResponse(
+ new NameAvailabilityRequest().withName("name1").withType("Microsoft.DBforMySQL/flexibleServers"),
+ com.azure.core.util.Context.NONE);
}
}
```
-### FirewallRules_ListByServer
+### CheckVirtualNetworkSubnetUsage_Execute
```java
+import com.azure.resourcemanager.mysqlflexibleserver.models.VirtualNetworkSubnetUsageParameter;
+
/**
- * Samples for FirewallRules ListByServer.
+ * Samples for CheckVirtualNetworkSubnetUsage Execute.
*/
-public final class FirewallRulesListByServerSamples {
+public final class CheckVirtualNetworkSubnetUsageExecuteSamples {
/*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2023-06-01-preview/examples/
- * FirewallRulesListByServer.json
+ * x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/
+ * CheckVirtualNetworkSubnetUsage.json
*/
/**
- * Sample code: List all firewall rules in a server.
+ * Sample code: CheckVirtualNetworkSubnetUsage.
*
* @param manager Entry point to MySqlManager.
*/
public static void
- listAllFirewallRulesInAServer(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.firewallRules().listByServer("TestGroup", "testserver", com.azure.core.util.Context.NONE);
+ checkVirtualNetworkSubnetUsage(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
+ manager.checkVirtualNetworkSubnetUsages()
+ .executeWithResponse("WestUS", new VirtualNetworkSubnetUsageParameter().withVirtualNetworkResourceId(
+ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/testvnet"),
+ com.azure.core.util.Context.NONE);
}
}
```
-### GetPrivateDnsZoneSuffix_Execute
+### Configurations_BatchUpdate
```java
+import com.azure.resourcemanager.mysqlflexibleserver.models.ConfigurationForBatchUpdate;
+import com.azure.resourcemanager.mysqlflexibleserver.models.ConfigurationListForBatchUpdate;
+import java.util.Arrays;
+
/**
- * Samples for GetPrivateDnsZoneSuffix Execute.
+ * Samples for Configurations BatchUpdate.
*/
-public final class GetPrivateDnsZoneSuffixExecuteSamples {
+public final class ConfigurationsBatchUpdateSamples {
/*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/
- * GetPrivateDnsZoneSuffix.json
+ * x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/
+ * ConfigurationsBatchUpdate.json
*/
/**
- * Sample code: GetPrivateDnsZoneSuffix.
+ * Sample code: ConfigurationList.
*
* @param manager Entry point to MySqlManager.
*/
- public static void getPrivateDnsZoneSuffix(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.getPrivateDnsZoneSuffixes().executeWithResponse(com.azure.core.util.Context.NONE);
+ public static void configurationList(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
+ manager.configurations()
+ .batchUpdate("testrg", "mysqltestserver",
+ new ConfigurationListForBatchUpdate().withValue(
+ Arrays.asList(new ConfigurationForBatchUpdate().withName("event_scheduler").withValue("OFF"),
+ new ConfigurationForBatchUpdate().withName("div_precision_increment").withValue("8"))),
+ com.azure.core.util.Context.NONE);
}
}
```
-### LocationBasedCapabilities_List
+### Configurations_Get
```java
/**
- * Samples for LocationBasedCapabilities List.
+ * Samples for Configurations Get.
*/
-public final class LocationBasedCapabilitiesListSamples {
+public final class ConfigurationsGetSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/
- * CapabilitiesByLocationList.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/ConfigurationGet.json
*/
/**
- * Sample code: CapabilitiesList.
+ * Sample code: Get a configuration.
*
* @param manager Entry point to MySqlManager.
*/
- public static void capabilitiesList(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.locationBasedCapabilities().list("WestUS", com.azure.core.util.Context.NONE);
+ public static void getAConfiguration(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
+ manager.configurations()
+ .getWithResponse("TestGroup", "testserver", "event_scheduler", com.azure.core.util.Context.NONE);
}
}
```
-### LocationBasedCapabilitySet_Get
+### Configurations_ListByServer
```java
/**
- * Samples for LocationBasedCapabilitySet Get.
+ * Samples for Configurations ListByServer.
*/
-public final class LocationBasedCapabilitySetGetSamples {
+public final class ConfigurationsListByServerSamples {
/*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/
- * CapabilitySetByLocation.json
+ * x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/
+ * ConfigurationsListByServer.json
*/
/**
- * Sample code: CapabilityResult.
+ * Sample code: List all configurations for a server.
*
* @param manager Entry point to MySqlManager.
*/
- public static void capabilityResult(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.locationBasedCapabilitySets().getWithResponse("WestUS", "default", com.azure.core.util.Context.NONE);
+ public static void
+ listAllConfigurationsForAServer(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
+ manager.configurations().listByServer("testrg", "mysqltestserver", com.azure.core.util.Context.NONE);
}
}
```
-### LocationBasedCapabilitySet_List
+### Configurations_Update
```java
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ConfigurationInner;
+import com.azure.resourcemanager.mysqlflexibleserver.models.ConfigurationSource;
+
/**
- * Samples for LocationBasedCapabilitySet List.
+ * Samples for Configurations Update.
*/
-public final class LocationBasedCapabilitySetListSamples {
+public final class ConfigurationsUpdateSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/
- * CapabilitySetListByLocation.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/ConfigurationUpdate.
+ * json
*/
/**
- * Sample code: CapabilitySetsResult.
+ * Sample code: Update a user configuration.
*
* @param manager Entry point to MySqlManager.
*/
- public static void capabilitySetsResult(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.locationBasedCapabilitySets().list("WestUS", com.azure.core.util.Context.NONE);
+ public static void updateAUserConfiguration(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
+ manager.configurations()
+ .update("testrg", "testserver", "event_scheduler",
+ new ConfigurationInner().withValue("on").withSource(ConfigurationSource.USER_OVERRIDE),
+ com.azure.core.util.Context.NONE);
}
}
```
-### LogFiles_ListByServer
+### Databases_CreateOrUpdate
```java
/**
- * Samples for LogFiles ListByServer.
+ * Samples for Databases CreateOrUpdate.
*/
-public final class LogFilesListByServerSamples {
+public final class DatabasesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/preview/2023-06-01-preview/examples/
- * LogFilesListByServer.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/DatabaseCreate.json
*/
/**
- * Sample code: List all server log files for a server.
+ * Sample code: Create a database.
*
* @param manager Entry point to MySqlManager.
*/
- public static void
- listAllServerLogFilesForAServer(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.logFiles().listByServer("testrg", "mysqltestsvc1", com.azure.core.util.Context.NONE);
+ public static void createADatabase(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
+ manager.databases()
+ .define("db1")
+ .withExistingFlexibleServer("TestGroup", "testserver")
+ .withCharset("utf8")
+ .withCollation("utf8_general_ci")
+ .create();
}
}
```
-### LongRunningBackup_Create
+### Databases_Delete
```java
/**
- * Samples for LongRunningBackup Create.
+ * Samples for Databases Delete.
*/
-public final class LongRunningBackupCreateSamples {
+public final class DatabasesDeleteSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2023-10-01-preview/examples/
- * LongRunningBackup.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/DatabaseDelete.json
*/
/**
- * Sample code: Create backup for a server.
+ * Sample code: Delete a database.
*
* @param manager Entry point to MySqlManager.
*/
- public static void createBackupForAServer(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.longRunningBackups()
- .define("testback")
- .withExistingFlexibleServer("TestGroup", "mysqltestserver")
- .create();
+ public static void deleteADatabase(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
+ manager.databases().delete("TestGroup", "testserver", "db1", com.azure.core.util.Context.NONE);
}
}
```
-### LongRunningBackupsOperation_Get
+### Databases_Get
```java
/**
- * Samples for LongRunningBackupsOperation Get.
+ * Samples for Databases Get.
*/
-public final class LongRunningBackupsOperationGetSamples {
+public final class DatabasesGetSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2023-10-01-preview/examples/
- * LongRunningBackupGet.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/DatabaseGet.json
*/
/**
- * Sample code: Get a backup for a server.
+ * Sample code: Get a database.
*
* @param manager Entry point to MySqlManager.
*/
- public static void getABackupForAServer(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.longRunningBackupsOperations()
- .getWithResponse("TestGroup", "mysqltestserver", "daily_20210615T160516", com.azure.core.util.Context.NONE);
+ public static void getADatabase(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
+ manager.databases().getWithResponse("TestGroup", "testserver", "db1", com.azure.core.util.Context.NONE);
}
}
```
-### LongRunningBackupsOperation_List
+### Databases_ListByServer
```java
/**
- * Samples for LongRunningBackupsOperation List.
+ * Samples for Databases ListByServer.
*/
-public final class LongRunningBackupsOperationListSamples {
+public final class DatabasesListByServerSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2023-10-01-preview/examples/
- * LongRunningBackupsListByServer.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/DatabasesListByServer
+ * .json
*/
/**
- * Sample code: List backups for a server.
+ * Sample code: List databases in a server.
*
* @param manager Entry point to MySqlManager.
*/
- public static void listBackupsForAServer(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.longRunningBackupsOperations().list("TestGroup", "mysqltestserver", com.azure.core.util.Context.NONE);
+ public static void listDatabasesInAServer(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
+ manager.databases().listByServer("TestGroup", "testserver", com.azure.core.util.Context.NONE);
}
}
```
-### Maintenances_List
+### FirewallRules_CreateOrUpdate
```java
/**
- * Samples for Maintenances List.
+ * Samples for FirewallRules CreateOrUpdate.
*/
-public final class MaintenancesListSamples {
+public final class FirewallRulesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Maintenance/preview/2023-10-01-preview/examples/
- * MaintenancesListByServer.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/FirewallRuleCreate.
+ * json
*/
/**
- * Sample code: List maintenances on a server.
+ * Sample code: Create a firewall rule.
*
* @param manager Entry point to MySqlManager.
*/
- public static void listMaintenancesOnAServer(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.maintenances().list("TestGroup", "testserver", com.azure.core.util.Context.NONE);
+ public static void createAFirewallRule(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
+ manager.firewallRules()
+ .define("rule1")
+ .withExistingFlexibleServer("TestGroup", "testserver")
+ .withStartIpAddress("0.0.0.0")
+ .withEndIpAddress("255.255.255.255")
+ .create();
}
}
```
-### Maintenances_Read
+### FirewallRules_Delete
```java
/**
- * Samples for Maintenances Read.
+ * Samples for FirewallRules Delete.
*/
-public final class MaintenancesReadSamples {
+public final class FirewallRulesDeleteSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Maintenance/preview/2023-10-01-preview/examples/
- * MaintenanceRead.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/FirewallRuleDelete.
+ * json
*/
/**
- * Sample code: Read a maintenance.
+ * Sample code: Delete a firewall rule.
*
* @param manager Entry point to MySqlManager.
*/
- public static void readAMaintenance(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.maintenances()
- .readWithResponse("TestGroup", "testserver", "_T9Q-TS8", com.azure.core.util.Context.NONE);
+ public static void deleteAFirewallRule(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
+ manager.firewallRules().delete("TestGroup", "testserver", "rule1", com.azure.core.util.Context.NONE);
}
}
```
-### Maintenances_Update
+### FirewallRules_Get
```java
-import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceUpdate;
-import java.time.OffsetDateTime;
-
/**
- * Samples for Maintenances Update.
+ * Samples for FirewallRules Get.
*/
-public final class MaintenancesUpdateSamples {
+public final class FirewallRulesGetSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/Maintenance/preview/2023-10-01-preview/examples/
- * MaintenanceUpdate.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/FirewallRuleGet.json
*/
/**
- * Sample code: Update maintenance on a server.
+ * Sample code: Get a firewall rule.
*
* @param manager Entry point to MySqlManager.
*/
- public static void updateMaintenanceOnAServer(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.maintenances()
- .update("TestGroup", "testserver", "_T9Q-TS8",
- new MaintenanceUpdate().withMaintenanceStartTime(OffsetDateTime.parse("2024-01-20T00:00:00")),
- com.azure.core.util.Context.NONE);
+ public static void getAFirewallRule(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
+ manager.firewallRules().getWithResponse("TestGroup", "testserver", "rule1", com.azure.core.util.Context.NONE);
}
}
```
-### OperationProgress_Get
+### FirewallRules_ListByServer
```java
/**
- * Samples for OperationProgress Get.
+ * Samples for FirewallRules ListByServer.
*/
-public final class OperationProgressGetSamples {
+public final class FirewallRulesListByServerSamples {
/*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/
- * OperationProgress_Get_BackupAndExport.json
+ * x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/
+ * FirewallRulesListByServer.json
*/
/**
- * Sample code: OperationProgress_Get BackupAndExport.
+ * Sample code: List all firewall rules in a server.
*
* @param manager Entry point to MySqlManager.
*/
public static void
- operationProgressGetBackupAndExport(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.operationProgress()
- .getWithResponse("westus", "00000000-0000-0000-0000-000000000000", com.azure.core.util.Context.NONE);
+ listAllFirewallRulesInAServer(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
+ manager.firewallRules().listByServer("TestGroup", "testserver", com.azure.core.util.Context.NONE);
}
+}
+```
+### GetPrivateDnsZoneSuffix_Execute
+
+```java
+/**
+ * Samples for GetPrivateDnsZoneSuffix Execute.
+ */
+public final class GetPrivateDnsZoneSuffixExecuteSamples {
/*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/
- * OperationProgress_Get_ImportFromStorage.json
+ * x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/
+ * GetPrivateDnsZoneSuffix.json
*/
/**
- * Sample code: OperationProgress_Get ImportFromStorage.
+ * Sample code: GetPrivateDnsZoneSuffix.
*
* @param manager Entry point to MySqlManager.
*/
- public static void
- operationProgressGetImportFromStorage(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.operationProgress()
- .getWithResponse("westus", "00000000-0000-0000-0000-000000000000", com.azure.core.util.Context.NONE);
+ public static void getPrivateDnsZoneSuffix(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
+ manager.getPrivateDnsZoneSuffixes().executeWithResponse(com.azure.core.util.Context.NONE);
}
}
```
-### OperationResults_Get
+### LocationBasedCapabilities_List
```java
/**
- * Samples for OperationResults Get.
+ * Samples for LocationBasedCapabilities List.
*/
-public final class OperationResultsGetSamples {
+public final class LocationBasedCapabilitiesListSamples {
/*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/
- * OperationResults_Get.json
+ * x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/
+ * CapabilitiesByLocationList.json
*/
/**
- * Sample code: OperationResults_Get.
+ * Sample code: CapabilitiesList.
*
* @param manager Entry point to MySqlManager.
*/
- public static void operationResultsGet(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.operationResults()
- .getWithResponse("westus", "00000000-0000-0000-0000-000000000000", com.azure.core.util.Context.NONE);
+ public static void capabilitiesList(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
+ manager.locationBasedCapabilities().list("WestUS", com.azure.core.util.Context.NONE);
}
}
```
@@ -1276,8 +546,7 @@ public final class OperationResultsGetSamples {
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/
- * OperationsList.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/OperationsList.json
*/
/**
* Sample code: OperationList.
@@ -1299,8 +568,8 @@ public final class OperationsListSamples {
public final class ReplicasListByServerSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
- * ReplicasListByServer.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/ReplicasListByServer.
+ * json
*/
/**
* Sample code: List replicas for a server.
@@ -1325,11 +594,11 @@ import com.azure.resourcemanager.mysqlflexibleserver.models.DataEncryptionType;
import com.azure.resourcemanager.mysqlflexibleserver.models.EnableStatusEnum;
import com.azure.resourcemanager.mysqlflexibleserver.models.HighAvailability;
import com.azure.resourcemanager.mysqlflexibleserver.models.HighAvailabilityMode;
+import com.azure.resourcemanager.mysqlflexibleserver.models.Identity;
import com.azure.resourcemanager.mysqlflexibleserver.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MySqlServerIdentity;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MySqlServerSku;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerSkuTier;
import com.azure.resourcemanager.mysqlflexibleserver.models.ServerVersion;
+import com.azure.resourcemanager.mysqlflexibleserver.models.Sku;
+import com.azure.resourcemanager.mysqlflexibleserver.models.SkuTier;
import com.azure.resourcemanager.mysqlflexibleserver.models.Storage;
import java.io.IOException;
import java.time.OffsetDateTime;
@@ -1342,8 +611,8 @@ import java.util.Map;
public final class ServersCreateSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
- * ServerCreateReplica.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/ServerCreateReplica.
+ * json
*/
/**
* Sample code: Create a replica server.
@@ -1363,8 +632,7 @@ public final class ServersCreateSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/ServerCreate
- * .json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/ServerCreate.json
*/
/**
* Sample code: Create a new server.
@@ -1377,16 +645,14 @@ public final class ServersCreateSamples {
.withRegion("southeastasia")
.withExistingResourceGroup("testrg")
.withTags(mapOf("num", "1"))
- .withSku(new MySqlServerSku().withName("Standard_D2ds_v4").withTier(ServerSkuTier.GENERAL_PURPOSE))
+ .withSku(new Sku().withName("Standard_D2ds_v4").withTier(SkuTier.GENERAL_PURPOSE))
.withAdministratorLogin("cloudsa")
.withAdministratorLoginPassword("your_password")
.withVersion(ServerVersion.FIVE_SEVEN)
.withAvailabilityZone("1")
.withCreateMode(CreateMode.DEFAULT)
.withStorage(new Storage().withStorageSizeGB(100).withIops(600).withAutoGrow(EnableStatusEnum.DISABLED))
- .withBackup(new Backup().withBackupRetentionDays(7)
- .withBackupIntervalHours(24)
- .withGeoRedundantBackup(EnableStatusEnum.DISABLED))
+ .withBackup(new Backup().withBackupRetentionDays(7).withGeoRedundantBackup(EnableStatusEnum.DISABLED))
.withHighAvailability(
new HighAvailability().withMode(HighAvailabilityMode.ZONE_REDUNDANT).withStandbyAvailabilityZone("3"))
.create();
@@ -1394,8 +660,8 @@ public final class ServersCreateSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
- * ServerCreateWithBYOK.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/ServerCreateWithBYOK.
+ * json
*/
/**
* Sample code: Create a server with byok.
@@ -1409,12 +675,12 @@ public final class ServersCreateSamples {
.withRegion("southeastasia")
.withExistingResourceGroup("testrg")
.withTags(mapOf("num", "1"))
- .withIdentity(new MySqlServerIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withIdentity(new Identity().withType(ManagedServiceIdentityType.USER_ASSIGNED)
.withUserAssignedIdentities(mapOf(
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity",
SerializerFactory.createDefaultManagementSerializerAdapter()
.deserialize("{}", Object.class, SerializerEncoding.JSON))))
- .withSku(new MySqlServerSku().withName("Standard_D2ds_v4").withTier(ServerSkuTier.GENERAL_PURPOSE))
+ .withSku(new Sku().withName("Standard_D2ds_v4").withTier(SkuTier.GENERAL_PURPOSE))
.withAdministratorLogin("cloudsa")
.withAdministratorLoginPassword("your_password")
.withVersion(ServerVersion.FIVE_SEVEN)
@@ -1428,17 +694,14 @@ public final class ServersCreateSamples {
.withGeoBackupKeyUri("fakeTokenPlaceholder")
.withType(DataEncryptionType.AZURE_KEY_VAULT))
.withStorage(new Storage().withStorageSizeGB(100).withIops(600).withAutoGrow(EnableStatusEnum.DISABLED))
- .withBackup(new Backup().withBackupRetentionDays(7)
- .withBackupIntervalHours(24)
- .withGeoRedundantBackup(EnableStatusEnum.DISABLED))
+ .withBackup(new Backup().withBackupRetentionDays(7).withGeoRedundantBackup(EnableStatusEnum.DISABLED))
.withHighAvailability(
new HighAvailability().withMode(HighAvailabilityMode.ZONE_REDUNDANT).withStandbyAvailabilityZone("3"))
.create();
}
/*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
+ * x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/
* ServerCreateWithPointInTimeRestore.json
*/
/**
@@ -1453,7 +716,7 @@ public final class ServersCreateSamples {
.withRegion("SoutheastAsia")
.withExistingResourceGroup("TargetResourceGroup")
.withTags(mapOf("num", "1"))
- .withSku(new MySqlServerSku().withName("Standard_D14_v2").withTier(ServerSkuTier.GENERAL_PURPOSE))
+ .withSku(new Sku().withName("Standard_D14_v2").withTier(SkuTier.GENERAL_PURPOSE))
.withCreateMode(CreateMode.POINT_IN_TIME_RESTORE)
.withSourceServerResourceId(
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/sourceserver")
@@ -1484,8 +747,7 @@ public final class ServersCreateSamples {
public final class ServersDeleteSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/ServerDelete
- * .json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/ServerDelete.json
*/
/**
* Sample code: Delete a server.
@@ -1507,8 +769,7 @@ public final class ServersDeleteSamples {
public final class ServersFailoverSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
- * ServerFailover.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/ServerFailover.json
*/
/**
* Sample code: Restart a server.
@@ -1530,8 +791,8 @@ public final class ServersFailoverSamples {
public final class ServersGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
- * ServerGetWithVnet.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/ServerGetWithVnet.
+ * json
*/
/**
* Sample code: Get a server with vnet.
@@ -1544,8 +805,7 @@ public final class ServersGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/ServerGet.
- * json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/ServerGet.json
*/
/**
* Sample code: Get a server.
@@ -1567,8 +827,7 @@ public final class ServersGetByResourceGroupSamples {
public final class ServersListSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/ServersList.
- * json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/ServersList.json
*/
/**
* Sample code: List servers in a subscription.
@@ -1589,8 +848,7 @@ public final class ServersListSamples {
*/
public final class ServersListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
+ * x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/
* ServersListByResourceGroup.json
*/
/**
@@ -1604,34 +862,6 @@ public final class ServersListByResourceGroupSamples {
}
```
-### Servers_ResetGtid
-
-```java
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerGtidSetParameter;
-
-/**
- * Samples for Servers ResetGtid.
- */
-public final class ServersResetGtidSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
- * ServerResetGtid.json
- */
- /**
- * Sample code: Reset GTID on a server.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void resetGTIDOnAServer(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.servers()
- .resetGtid("TestGroup", "testserver",
- new ServerGtidSetParameter().withGtidSet("4aff5b51-97ba-11ed-a955-002248036acc:1-16"),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
### Servers_Restart
```java
@@ -1644,8 +874,7 @@ import com.azure.resourcemanager.mysqlflexibleserver.models.ServerRestartParamet
public final class ServersRestartSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
- * ServerRestart.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/ServerRestart.json
*/
/**
* Sample code: Restart a server.
@@ -1671,8 +900,7 @@ public final class ServersRestartSamples {
public final class ServersStartSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/ServerStart.
- * json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/ServerStart.json
*/
/**
* Sample code: Start a server.
@@ -1694,8 +922,7 @@ public final class ServersStartSamples {
public final class ServersStopSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/ServerStop.
- * json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/ServerStop.json
*/
/**
* Sample code: Stop a server.
@@ -1716,10 +943,9 @@ import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.mysqlflexibleserver.models.DataEncryption;
import com.azure.resourcemanager.mysqlflexibleserver.models.DataEncryptionType;
import com.azure.resourcemanager.mysqlflexibleserver.models.EnableStatusEnum;
+import com.azure.resourcemanager.mysqlflexibleserver.models.Identity;
import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceWindow;
import com.azure.resourcemanager.mysqlflexibleserver.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MySqlServerIdentity;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Network;
import com.azure.resourcemanager.mysqlflexibleserver.models.Server;
import com.azure.resourcemanager.mysqlflexibleserver.models.Storage;
import java.io.IOException;
@@ -1731,8 +957,7 @@ import java.util.Map;
*/
public final class ServersUpdateSamples {
/*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
+ * x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/
* ServerUpdateWithCustomerMaintenanceWindow.json
*/
/**
@@ -1755,8 +980,8 @@ public final class ServersUpdateSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
- * ServerUpdateWithBYOK.json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/ServerUpdateWithBYOK.
+ * json
*/
/**
* Sample code: Update server with byok.
@@ -1769,7 +994,7 @@ public final class ServersUpdateSamples {
.getByResourceGroupWithResponse("testrg", "mysqltestserver", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
- .withIdentity(new MySqlServerIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withIdentity(new Identity().withType(ManagedServiceIdentityType.USER_ASSIGNED)
.withUserAssignedIdentities(mapOf(
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity",
SerializerFactory.createDefaultManagementSerializerAdapter()
@@ -1786,8 +1011,7 @@ public final class ServersUpdateSamples {
/*
* x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/ServerUpdate
- * .json
+ * specification/mysql/resource-manager/Microsoft.DBforMySQL/legacy/stable/2021-05-01/examples/ServerUpdate.json
*/
/**
* Sample code: Update a server.
@@ -1799,11 +1023,7 @@ public final class ServersUpdateSamples {
.getByResourceGroupWithResponse("testrg", "mysqltestserver", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
- .withStorage(new Storage().withStorageSizeGB(30)
- .withIops(200)
- .withAutoGrow(EnableStatusEnum.DISABLED)
- .withAutoIoScaling(EnableStatusEnum.DISABLED))
- .withNetwork(new Network().withPublicNetworkAccess(EnableStatusEnum.DISABLED))
+ .withStorage(new Storage().withStorageSizeGB(30).withIops(200).withAutoGrow(EnableStatusEnum.DISABLED))
.apply();
}
@@ -1821,56 +1041,3 @@ public final class ServersUpdateSamples {
}
```
-### Servers_ValidateEstimateHighAvailability
-
-```java
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.HighAvailabilityValidationEstimationInner;
-
-/**
- * Samples for Servers ValidateEstimateHighAvailability.
- */
-public final class ServersValidateEstimateHighAvailabilitySamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
- * ServerValidateEstimateHighAvailability.json
- */
- /**
- * Sample code: Validate a validation and estimation of high availability.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void validateAValidationAndEstimationOfHighAvailability(
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.servers()
- .validateEstimateHighAvailabilityWithResponse("TestGroup", "testserver",
- new HighAvailabilityValidationEstimationInner().withExpectedStandbyAvailabilityZone("1"),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ServersMigration_CutoverMigration
-
-```java
-/**
- * Samples for ServersMigration CutoverMigration.
- */
-public final class ServersMigrationCutoverMigrationSamples {
- /*
- * x-ms-original-file:
- * specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2023-12-30/examples/
- * CutoverMigration.json
- */
- /**
- * Sample code: Cutover migration for MySQL import.
- *
- * @param manager Entry point to MySqlManager.
- */
- public static void
- cutoverMigrationForMySQLImport(com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager) {
- manager.serversMigrations().cutoverMigration("testrg", "mysqltestserver", com.azure.core.util.Context.NONE);
- }
-}
-```
-
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/pom.xml b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/pom.xml
index bfcf35116b459..74d8eae397193 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/pom.xml
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/pom.xml
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-mysqlflexibleserver
- 1.0.0-beta.7
+ 1.0.0
jar
Microsoft Azure SDK for MySql Management
- This package contains Microsoft Azure SDK for MySql Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model. Package tag package-flexibleserver-2023-12-30.
+ This package contains Microsoft Azure SDK for MySql Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model. Package tag package-flexibleserver-2021-05-01.
https://github.com/Azure/azure-sdk-for-java
@@ -45,7 +45,6 @@
UTF-8
0
0
- true
false
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/MySqlManager.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/MySqlManager.java
index 2c2ac44f7381e..40b537b0aa42e 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/MySqlManager.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/MySqlManager.java
@@ -24,9 +24,6 @@
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mysqlflexibleserver.fluent.MySqlManagementClient;
-import com.azure.resourcemanager.mysqlflexibleserver.implementation.AdvancedThreatProtectionSettingsImpl;
-import com.azure.resourcemanager.mysqlflexibleserver.implementation.AzureADAdministratorsImpl;
-import com.azure.resourcemanager.mysqlflexibleserver.implementation.BackupAndExportsImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.BackupsImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.CheckNameAvailabilitiesImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.CheckNameAvailabilityWithoutLocationsImpl;
@@ -36,21 +33,10 @@
import com.azure.resourcemanager.mysqlflexibleserver.implementation.FirewallRulesImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.GetPrivateDnsZoneSuffixesImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.LocationBasedCapabilitiesImpl;
-import com.azure.resourcemanager.mysqlflexibleserver.implementation.LocationBasedCapabilitySetsImpl;
-import com.azure.resourcemanager.mysqlflexibleserver.implementation.LogFilesImpl;
-import com.azure.resourcemanager.mysqlflexibleserver.implementation.LongRunningBackupsImpl;
-import com.azure.resourcemanager.mysqlflexibleserver.implementation.LongRunningBackupsOperationsImpl;
-import com.azure.resourcemanager.mysqlflexibleserver.implementation.MaintenancesImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.MySqlManagementClientBuilder;
-import com.azure.resourcemanager.mysqlflexibleserver.implementation.OperationProgressImpl;
-import com.azure.resourcemanager.mysqlflexibleserver.implementation.OperationResultsImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.OperationsImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.ReplicasImpl;
import com.azure.resourcemanager.mysqlflexibleserver.implementation.ServersImpl;
-import com.azure.resourcemanager.mysqlflexibleserver.implementation.ServersMigrationsImpl;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionSettings;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AzureADAdministrators;
-import com.azure.resourcemanager.mysqlflexibleserver.models.BackupAndExports;
import com.azure.resourcemanager.mysqlflexibleserver.models.Backups;
import com.azure.resourcemanager.mysqlflexibleserver.models.CheckNameAvailabilities;
import com.azure.resourcemanager.mysqlflexibleserver.models.CheckNameAvailabilityWithoutLocations;
@@ -60,17 +46,9 @@
import com.azure.resourcemanager.mysqlflexibleserver.models.FirewallRules;
import com.azure.resourcemanager.mysqlflexibleserver.models.GetPrivateDnsZoneSuffixes;
import com.azure.resourcemanager.mysqlflexibleserver.models.LocationBasedCapabilities;
-import com.azure.resourcemanager.mysqlflexibleserver.models.LocationBasedCapabilitySets;
-import com.azure.resourcemanager.mysqlflexibleserver.models.LogFiles;
-import com.azure.resourcemanager.mysqlflexibleserver.models.LongRunningBackups;
-import com.azure.resourcemanager.mysqlflexibleserver.models.LongRunningBackupsOperations;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Maintenances;
-import com.azure.resourcemanager.mysqlflexibleserver.models.OperationProgress;
-import com.azure.resourcemanager.mysqlflexibleserver.models.OperationResults;
import com.azure.resourcemanager.mysqlflexibleserver.models.Operations;
import com.azure.resourcemanager.mysqlflexibleserver.models.Replicas;
import com.azure.resourcemanager.mysqlflexibleserver.models.Servers;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServersMigrations;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
@@ -84,35 +62,19 @@
* including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.
*/
public final class MySqlManager {
- private AzureADAdministrators azureADAdministrators;
-
- private Backups backups;
-
- private BackupAndExports backupAndExports;
-
- private LongRunningBackups longRunningBackups;
-
- private LongRunningBackupsOperations longRunningBackupsOperations;
-
- private Configurations configurations;
-
- private Databases databases;
-
- private FirewallRules firewallRules;
-
private Servers servers;
private Replicas replicas;
- private ServersMigrations serversMigrations;
+ private Backups backups;
- private AdvancedThreatProtectionSettings advancedThreatProtectionSettings;
+ private FirewallRules firewallRules;
- private LogFiles logFiles;
+ private Databases databases;
- private LocationBasedCapabilities locationBasedCapabilities;
+ private Configurations configurations;
- private LocationBasedCapabilitySets locationBasedCapabilitySets;
+ private LocationBasedCapabilities locationBasedCapabilities;
private CheckVirtualNetworkSubnetUsages checkVirtualNetworkSubnetUsages;
@@ -120,16 +82,10 @@ public final class MySqlManager {
private CheckNameAvailabilityWithoutLocations checkNameAvailabilityWithoutLocations;
- private OperationResults operationResults;
-
- private OperationProgress operationProgress;
-
private GetPrivateDnsZoneSuffixes getPrivateDnsZoneSuffixes;
private Operations operations;
- private Maintenances maintenances;
-
private final MySqlManagementClient clientObject;
private MySqlManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -294,7 +250,7 @@ public MySqlManager authenticate(TokenCredential credential, AzureProfile profil
.append("-")
.append("com.azure.resourcemanager.mysqlflexibleserver")
.append("/")
- .append("1.0.0-beta.6");
+ .append("1.0.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -340,103 +296,6 @@ public MySqlManager authenticate(TokenCredential credential, AzureProfile profil
}
}
- /**
- * Gets the resource collection API of AzureADAdministrators. It manages AzureADAdministrator.
- *
- * @return Resource collection API of AzureADAdministrators.
- */
- public AzureADAdministrators azureADAdministrators() {
- if (this.azureADAdministrators == null) {
- this.azureADAdministrators = new AzureADAdministratorsImpl(clientObject.getAzureADAdministrators(), this);
- }
- return azureADAdministrators;
- }
-
- /**
- * Gets the resource collection API of Backups.
- *
- * @return Resource collection API of Backups.
- */
- public Backups backups() {
- if (this.backups == null) {
- this.backups = new BackupsImpl(clientObject.getBackups(), this);
- }
- return backups;
- }
-
- /**
- * Gets the resource collection API of BackupAndExports.
- *
- * @return Resource collection API of BackupAndExports.
- */
- public BackupAndExports backupAndExports() {
- if (this.backupAndExports == null) {
- this.backupAndExports = new BackupAndExportsImpl(clientObject.getBackupAndExports(), this);
- }
- return backupAndExports;
- }
-
- /**
- * Gets the resource collection API of LongRunningBackups. It manages ServerBackupV2.
- *
- * @return Resource collection API of LongRunningBackups.
- */
- public LongRunningBackups longRunningBackups() {
- if (this.longRunningBackups == null) {
- this.longRunningBackups = new LongRunningBackupsImpl(clientObject.getLongRunningBackups(), this);
- }
- return longRunningBackups;
- }
-
- /**
- * Gets the resource collection API of LongRunningBackupsOperations.
- *
- * @return Resource collection API of LongRunningBackupsOperations.
- */
- public LongRunningBackupsOperations longRunningBackupsOperations() {
- if (this.longRunningBackupsOperations == null) {
- this.longRunningBackupsOperations
- = new LongRunningBackupsOperationsImpl(clientObject.getLongRunningBackupsOperations(), this);
- }
- return longRunningBackupsOperations;
- }
-
- /**
- * Gets the resource collection API of Configurations. It manages Configuration.
- *
- * @return Resource collection API of Configurations.
- */
- public Configurations configurations() {
- if (this.configurations == null) {
- this.configurations = new ConfigurationsImpl(clientObject.getConfigurations(), this);
- }
- return configurations;
- }
-
- /**
- * Gets the resource collection API of Databases. It manages Database.
- *
- * @return Resource collection API of Databases.
- */
- public Databases databases() {
- if (this.databases == null) {
- this.databases = new DatabasesImpl(clientObject.getDatabases(), this);
- }
- return databases;
- }
-
- /**
- * Gets the resource collection API of FirewallRules. It manages FirewallRule.
- *
- * @return Resource collection API of FirewallRules.
- */
- public FirewallRules firewallRules() {
- if (this.firewallRules == null) {
- this.firewallRules = new FirewallRulesImpl(clientObject.getFirewallRules(), this);
- }
- return firewallRules;
- }
-
/**
* Gets the resource collection API of Servers. It manages Server.
*
@@ -462,40 +321,51 @@ public Replicas replicas() {
}
/**
- * Gets the resource collection API of ServersMigrations.
+ * Gets the resource collection API of Backups.
+ *
+ * @return Resource collection API of Backups.
+ */
+ public Backups backups() {
+ if (this.backups == null) {
+ this.backups = new BackupsImpl(clientObject.getBackups(), this);
+ }
+ return backups;
+ }
+
+ /**
+ * Gets the resource collection API of FirewallRules. It manages FirewallRule.
*
- * @return Resource collection API of ServersMigrations.
+ * @return Resource collection API of FirewallRules.
*/
- public ServersMigrations serversMigrations() {
- if (this.serversMigrations == null) {
- this.serversMigrations = new ServersMigrationsImpl(clientObject.getServersMigrations(), this);
+ public FirewallRules firewallRules() {
+ if (this.firewallRules == null) {
+ this.firewallRules = new FirewallRulesImpl(clientObject.getFirewallRules(), this);
}
- return serversMigrations;
+ return firewallRules;
}
/**
- * Gets the resource collection API of AdvancedThreatProtectionSettings.
+ * Gets the resource collection API of Databases. It manages Database.
*
- * @return Resource collection API of AdvancedThreatProtectionSettings.
+ * @return Resource collection API of Databases.
*/
- public AdvancedThreatProtectionSettings advancedThreatProtectionSettings() {
- if (this.advancedThreatProtectionSettings == null) {
- this.advancedThreatProtectionSettings
- = new AdvancedThreatProtectionSettingsImpl(clientObject.getAdvancedThreatProtectionSettings(), this);
+ public Databases databases() {
+ if (this.databases == null) {
+ this.databases = new DatabasesImpl(clientObject.getDatabases(), this);
}
- return advancedThreatProtectionSettings;
+ return databases;
}
/**
- * Gets the resource collection API of LogFiles.
+ * Gets the resource collection API of Configurations.
*
- * @return Resource collection API of LogFiles.
+ * @return Resource collection API of Configurations.
*/
- public LogFiles logFiles() {
- if (this.logFiles == null) {
- this.logFiles = new LogFilesImpl(clientObject.getLogFiles(), this);
+ public Configurations configurations() {
+ if (this.configurations == null) {
+ this.configurations = new ConfigurationsImpl(clientObject.getConfigurations(), this);
}
- return logFiles;
+ return configurations;
}
/**
@@ -511,19 +381,6 @@ public LocationBasedCapabilities locationBasedCapabilities() {
return locationBasedCapabilities;
}
- /**
- * Gets the resource collection API of LocationBasedCapabilitySets.
- *
- * @return Resource collection API of LocationBasedCapabilitySets.
- */
- public LocationBasedCapabilitySets locationBasedCapabilitySets() {
- if (this.locationBasedCapabilitySets == null) {
- this.locationBasedCapabilitySets
- = new LocationBasedCapabilitySetsImpl(clientObject.getLocationBasedCapabilitySets(), this);
- }
- return locationBasedCapabilitySets;
- }
-
/**
* Gets the resource collection API of CheckVirtualNetworkSubnetUsages.
*
@@ -563,30 +420,6 @@ public CheckNameAvailabilityWithoutLocations checkNameAvailabilityWithoutLocatio
return checkNameAvailabilityWithoutLocations;
}
- /**
- * Gets the resource collection API of OperationResults.
- *
- * @return Resource collection API of OperationResults.
- */
- public OperationResults operationResults() {
- if (this.operationResults == null) {
- this.operationResults = new OperationResultsImpl(clientObject.getOperationResults(), this);
- }
- return operationResults;
- }
-
- /**
- * Gets the resource collection API of OperationProgress.
- *
- * @return Resource collection API of OperationProgress.
- */
- public OperationProgress operationProgress() {
- if (this.operationProgress == null) {
- this.operationProgress = new OperationProgressImpl(clientObject.getOperationProgress(), this);
- }
- return operationProgress;
- }
-
/**
* Gets the resource collection API of GetPrivateDnsZoneSuffixes.
*
@@ -612,18 +445,6 @@ public Operations operations() {
return operations;
}
- /**
- * Gets the resource collection API of Maintenances.
- *
- * @return Resource collection API of Maintenances.
- */
- public Maintenances maintenances() {
- if (this.maintenances == null) {
- this.maintenances = new MaintenancesImpl(clientObject.getMaintenances(), this);
- }
- return maintenances;
- }
-
/**
* Gets wrapped service client MySqlManagementClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/AdvancedThreatProtectionSettingsClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/AdvancedThreatProtectionSettingsClient.java
deleted file mode 100644
index 0dbca6c9e9d32..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/AdvancedThreatProtectionSettingsClient.java
+++ /dev/null
@@ -1,217 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.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.mysqlflexibleserver.fluent.models.AdvancedThreatProtectionInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionForUpdate;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionName;
-
-/**
- * An instance of this class provides access to all the operations defined in AdvancedThreatProtectionSettingsClient.
- */
-public interface AdvancedThreatProtectionSettingsClient {
- /**
- * Get a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @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 server's Advanced Threat Protection state along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, Context context);
-
- /**
- * Get a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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's Advanced Threat Protection state.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AdvancedThreatProtectionInner get(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName);
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to 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 SyncPoller} for polling of a server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AdvancedThreatProtectionInner> beginUpdate(
- String resourceGroupName, String serverName, AdvancedThreatProtectionName advancedThreatProtectionName,
- AdvancedThreatProtectionForUpdate parameters);
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @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 a server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AdvancedThreatProtectionInner> beginUpdate(
- String resourceGroupName, String serverName, AdvancedThreatProtectionName advancedThreatProtectionName,
- AdvancedThreatProtectionForUpdate parameters, Context context);
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to 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 server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AdvancedThreatProtectionInner update(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionForUpdate parameters);
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @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 server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AdvancedThreatProtectionInner update(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionForUpdate parameters,
- Context context);
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to 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 SyncPoller} for polling of a server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AdvancedThreatProtectionInner> beginUpdatePut(
- String resourceGroupName, String serverName, AdvancedThreatProtectionName advancedThreatProtectionName,
- AdvancedThreatProtectionInner parameters);
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @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 a server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AdvancedThreatProtectionInner> beginUpdatePut(
- String resourceGroupName, String serverName, AdvancedThreatProtectionName advancedThreatProtectionName,
- AdvancedThreatProtectionInner parameters, Context context);
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to 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 server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AdvancedThreatProtectionInner updatePut(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionInner parameters);
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @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 server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AdvancedThreatProtectionInner updatePut(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionInner parameters,
- Context context);
-
- /**
- * Gets a list of server's Advanced Threat Protection states.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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's Advanced Threat Protection states as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String serverName);
-
- /**
- * Gets a list of server's Advanced Threat Protection states.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 server's Advanced Threat Protection states as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String serverName, Context context);
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/AzureADAdministratorsClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/AzureADAdministratorsClient.java
deleted file mode 100644
index bd7e462531892..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/AzureADAdministratorsClient.java
+++ /dev/null
@@ -1,203 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.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.mysqlflexibleserver.fluent.models.AzureADAdministratorInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorName;
-
-/**
- * An instance of this class provides access to all the operations defined in AzureADAdministratorsClient.
- */
-public interface AzureADAdministratorsClient {
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 represents a Administrator.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AzureADAdministratorInner> beginCreateOrUpdate(
- String resourceGroupName, String serverName, AdministratorName administratorName,
- AzureADAdministratorInner parameters);
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @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 represents a Administrator.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AzureADAdministratorInner> beginCreateOrUpdate(
- String resourceGroupName, String serverName, AdministratorName administratorName,
- AzureADAdministratorInner parameters, Context context);
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 a Administrator.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureADAdministratorInner createOrUpdate(String resourceGroupName, String serverName,
- AdministratorName administratorName, AzureADAdministratorInner parameters);
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @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 represents a Administrator.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureADAdministratorInner createOrUpdate(String resourceGroupName, String serverName,
- AdministratorName administratorName, AzureADAdministratorInner parameters, Context context);
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String serverName,
- AdministratorName administratorName);
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @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 long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String serverName,
- AdministratorName administratorName, Context context);
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String serverName, AdministratorName administratorName);
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String serverName, AdministratorName administratorName, Context context);
-
- /**
- * Gets information about an azure ad administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @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 information about an azure ad administrator along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String serverName,
- AdministratorName administratorName, Context context);
-
- /**
- * Gets information about an azure ad administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about an azure ad administrator.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureADAdministratorInner get(String resourceGroupName, String serverName, AdministratorName administratorName);
-
- /**
- * List all the AAD administrators in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 ad administrators as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName);
-
- /**
- * List all the AAD administrators in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 azure ad administrators as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/BackupAndExportsClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/BackupAndExportsClient.java
deleted file mode 100644
index 8c76ad0a8b9df..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/BackupAndExportsClient.java
+++ /dev/null
@@ -1,109 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-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.mysqlflexibleserver.fluent.models.BackupAndExportResponseInner;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ValidateBackupResponseInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.BackupAndExportRequest;
-
-/**
- * An instance of this class provides access to all the operations defined in BackupAndExportsClient.
- */
-public interface BackupAndExportsClient {
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 represents BackupAndExport API Response.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BackupAndExportResponseInner>
- beginCreate(String resourceGroupName, String serverName, BackupAndExportRequest parameters);
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @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 represents BackupAndExport API Response.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BackupAndExportResponseInner>
- beginCreate(String resourceGroupName, String serverName, BackupAndExportRequest parameters, Context context);
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 BackupAndExport API Response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BackupAndExportResponseInner create(String resourceGroupName, String serverName, BackupAndExportRequest parameters);
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @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 represents BackupAndExport API Response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BackupAndExportResponseInner create(String resourceGroupName, String serverName, BackupAndExportRequest parameters,
- Context context);
-
- /**
- * Validates if backup can be performed for given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 represents ValidateBackup API Response along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response validateBackupWithResponse(String resourceGroupName, String serverName,
- Context context);
-
- /**
- * Validates if backup can be performed for given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 ValidateBackup API Response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ValidateBackupResponseInner validateBackup(String resourceGroupName, String serverName);
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/BackupsClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/BackupsClient.java
index 8c3c6ff1a943b..e6a21fde6914b 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/BackupsClient.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/BackupsClient.java
@@ -15,36 +15,6 @@
* An instance of this class provides access to all the operations defined in BackupsClient.
*/
public interface BackupsClient {
- /**
- * Create backup for a given server with specified backup name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @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 server backup properties along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response putWithResponse(String resourceGroupName, String serverName, String backupName,
- Context context);
-
- /**
- * Create backup for a given server with specified backup name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return server backup properties.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServerBackupInner put(String resourceGroupName, String serverName, String backupName);
-
/**
* List all the backups for a given server.
*
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ConfigurationsClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ConfigurationsClient.java
index 75dd91fda6c51..63b2c4ec50485 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ConfigurationsClient.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ConfigurationsClient.java
@@ -19,72 +19,6 @@
* An instance of this class provides access to all the operations defined in ConfigurationsClient.
*/
public interface ConfigurationsClient {
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 represents a Configuration.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfigurationInner> beginCreateOrUpdate(String resourceGroupName,
- String serverName, String configurationName, ConfigurationInner parameters);
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @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 represents a Configuration.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfigurationInner> beginCreateOrUpdate(String resourceGroupName,
- String serverName, String configurationName, ConfigurationInner parameters, Context context);
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 a Configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ConfigurationInner createOrUpdate(String resourceGroupName, String serverName, String configurationName,
- ConfigurationInner parameters);
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @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 represents a Configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ConfigurationInner createOrUpdate(String resourceGroupName, String serverName, String configurationName,
- ConfigurationInner parameters, Context context);
-
/**
* Updates a configuration of a server.
*
@@ -261,10 +195,6 @@ ConfigurationListResultInner batchUpdate(String resourceGroupName, String server
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param tags The tags of the server configuration.
- * @param keyword The keyword of the server configuration.
- * @param page The page of the server configuration.
- * @param pageSize The pageSize of the server configuration.
* @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.
@@ -272,6 +202,5 @@ ConfigurationListResultInner batchUpdate(String resourceGroupName, String server
* @return a list of server configurations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName, String tags,
- String keyword, Integer page, Integer pageSize, Context context);
+ PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/LocationBasedCapabilitySetsClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/LocationBasedCapabilitySetsClient.java
deleted file mode 100644
index 9e246e65de56a..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/LocationBasedCapabilitySetsClient.java
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.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.util.Context;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.CapabilityInner;
-
-/**
- * An instance of this class provides access to all the operations defined in LocationBasedCapabilitySetsClient.
- */
-public interface LocationBasedCapabilitySetsClient {
- /**
- * Get capabilities at specified location in a given subscription.
- *
- * @param locationName The name of the location.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return capabilities at specified location in a given subscription as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String locationName);
-
- /**
- * Get capabilities at specified location in a given subscription.
- *
- * @param locationName The name of the location.
- * @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 capabilities at specified location in a given subscription as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String locationName, Context context);
-
- /**
- * Get capabilities at specified location in a given subscription.
- *
- * @param locationName The name of the location.
- * @param capabilitySetName Name of capability set.
- * @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 capabilities at specified location in a given subscription along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String locationName, String capabilitySetName, Context context);
-
- /**
- * Get capabilities at specified location in a given subscription.
- *
- * @param locationName The name of the location.
- * @param capabilitySetName Name of capability set.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return capabilities at specified location in a given subscription.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CapabilityInner get(String locationName, String capabilitySetName);
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/LogFilesClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/LogFilesClient.java
deleted file mode 100644
index b80c24e9385c5..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/LogFilesClient.java
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.LogFileInner;
-
-/**
- * An instance of this class provides access to all the operations defined in LogFilesClient.
- */
-public interface LogFilesClient {
- /**
- * List all the server log files in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 logFiles as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName);
-
- /**
- * List all the server log files in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 logFiles as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/LongRunningBackupsClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/LongRunningBackupsClient.java
deleted file mode 100644
index 2a765bd13d1b8..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/LongRunningBackupsClient.java
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ServerBackupV2Inner;
-
-/**
- * An instance of this class provides access to all the operations defined in LongRunningBackupsClient.
- */
-public interface LongRunningBackupsClient {
- /**
- * Create backup for a given server with specified backup name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 server backup properties.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ServerBackupV2Inner> beginCreate(String resourceGroupName,
- String serverName, String backupName);
-
- /**
- * Create backup for a given server with specified backup name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @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 server backup properties.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ServerBackupV2Inner> beginCreate(String resourceGroupName,
- String serverName, String backupName, ServerBackupV2Inner parameters, Context context);
-
- /**
- * Create backup for a given server with specified backup name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return server backup properties.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServerBackupV2Inner create(String resourceGroupName, String serverName, String backupName);
-
- /**
- * Create backup for a given server with specified backup name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @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 server backup properties.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServerBackupV2Inner create(String resourceGroupName, String serverName, String backupName,
- ServerBackupV2Inner parameters, Context context);
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/LongRunningBackupsOperationsClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/LongRunningBackupsOperationsClient.java
deleted file mode 100644
index 7fa0a1d41d109..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/LongRunningBackupsOperationsClient.java
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.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.util.Context;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ServerBackupV2Inner;
-
-/**
- * An instance of this class provides access to all the operations defined in LongRunningBackupsOperationsClient.
- */
-public interface LongRunningBackupsOperationsClient {
- /**
- * Get backup for a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @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 backup for a given server along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String serverName, String backupName,
- Context context);
-
- /**
- * Get backup for a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backup for a given server.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServerBackupV2Inner get(String resourceGroupName, String serverName, String backupName);
-
- /**
- * List all the backups for a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 backups as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String serverName);
-
- /**
- * List all the backups for a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 server backups as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String serverName, Context context);
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/MaintenancesClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/MaintenancesClient.java
deleted file mode 100644
index 5dd065380a19e..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/MaintenancesClient.java
+++ /dev/null
@@ -1,140 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.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.mysqlflexibleserver.fluent.models.MaintenanceInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceUpdate;
-
-/**
- * An instance of this class provides access to all the operations defined in MaintenancesClient.
- */
-public interface MaintenancesClient {
- /**
- * Read maintenance.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param maintenanceName The name of the maintenance.
- * @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 represents a maintenance along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response readWithResponse(String resourceGroupName, String serverName, String maintenanceName,
- Context context);
-
- /**
- * Read maintenance.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param maintenanceName The name of the maintenance.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 a maintenance.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- MaintenanceInner read(String resourceGroupName, String serverName, String maintenanceName);
-
- /**
- * Update maintenances.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param maintenanceName The name of the maintenance.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 represents a maintenance.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, MaintenanceInner> beginUpdate(String resourceGroupName, String serverName,
- String maintenanceName);
-
- /**
- * Update maintenances.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param maintenanceName The name of the maintenance.
- * @param parameters The required parameters for update maintenance on a server.
- * @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 represents a maintenance.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, MaintenanceInner> beginUpdate(String resourceGroupName, String serverName,
- String maintenanceName, MaintenanceUpdate parameters, Context context);
-
- /**
- * Update maintenances.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param maintenanceName The name of the maintenance.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 a maintenance.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- MaintenanceInner update(String resourceGroupName, String serverName, String maintenanceName);
-
- /**
- * Update maintenances.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param maintenanceName The name of the maintenance.
- * @param parameters The required parameters for update maintenance on a server.
- * @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 represents a maintenance.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- MaintenanceInner update(String resourceGroupName, String serverName, String maintenanceName,
- MaintenanceUpdate parameters, Context context);
-
- /**
- * List maintenances.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 maintenances as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String serverName);
-
- /**
- * List maintenances.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 maintenances as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String serverName, Context context);
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/MySqlManagementClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/MySqlManagementClient.java
index 3de900b9fa497..727614c731261 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/MySqlManagementClient.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/MySqlManagementClient.java
@@ -12,7 +12,7 @@
*/
public interface MySqlManagementClient {
/**
- * Gets The ID of the target subscription. The value must be an UUID.
+ * Gets The ID of the target subscription.
*
* @return the subscriptionId value.
*/
@@ -25,6 +25,13 @@ public interface MySqlManagementClient {
*/
String getEndpoint();
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
/**
* Gets The HTTP pipeline to send requests through.
*
@@ -39,62 +46,6 @@ public interface MySqlManagementClient {
*/
Duration getDefaultPollInterval();
- /**
- * Gets the AzureADAdministratorsClient object to access its operations.
- *
- * @return the AzureADAdministratorsClient object.
- */
- AzureADAdministratorsClient getAzureADAdministrators();
-
- /**
- * Gets the BackupsClient object to access its operations.
- *
- * @return the BackupsClient object.
- */
- BackupsClient getBackups();
-
- /**
- * Gets the BackupAndExportsClient object to access its operations.
- *
- * @return the BackupAndExportsClient object.
- */
- BackupAndExportsClient getBackupAndExports();
-
- /**
- * Gets the LongRunningBackupsClient object to access its operations.
- *
- * @return the LongRunningBackupsClient object.
- */
- LongRunningBackupsClient getLongRunningBackups();
-
- /**
- * Gets the LongRunningBackupsOperationsClient object to access its operations.
- *
- * @return the LongRunningBackupsOperationsClient object.
- */
- LongRunningBackupsOperationsClient getLongRunningBackupsOperations();
-
- /**
- * Gets the ConfigurationsClient object to access its operations.
- *
- * @return the ConfigurationsClient object.
- */
- ConfigurationsClient getConfigurations();
-
- /**
- * Gets the DatabasesClient object to access its operations.
- *
- * @return the DatabasesClient object.
- */
- DatabasesClient getDatabases();
-
- /**
- * Gets the FirewallRulesClient object to access its operations.
- *
- * @return the FirewallRulesClient object.
- */
- FirewallRulesClient getFirewallRules();
-
/**
* Gets the ServersClient object to access its operations.
*
@@ -110,39 +61,39 @@ public interface MySqlManagementClient {
ReplicasClient getReplicas();
/**
- * Gets the ServersMigrationsClient object to access its operations.
+ * Gets the BackupsClient object to access its operations.
*
- * @return the ServersMigrationsClient object.
+ * @return the BackupsClient object.
*/
- ServersMigrationsClient getServersMigrations();
+ BackupsClient getBackups();
/**
- * Gets the AdvancedThreatProtectionSettingsClient object to access its operations.
+ * Gets the FirewallRulesClient object to access its operations.
*
- * @return the AdvancedThreatProtectionSettingsClient object.
+ * @return the FirewallRulesClient object.
*/
- AdvancedThreatProtectionSettingsClient getAdvancedThreatProtectionSettings();
+ FirewallRulesClient getFirewallRules();
/**
- * Gets the LogFilesClient object to access its operations.
+ * Gets the DatabasesClient object to access its operations.
*
- * @return the LogFilesClient object.
+ * @return the DatabasesClient object.
*/
- LogFilesClient getLogFiles();
+ DatabasesClient getDatabases();
/**
- * Gets the LocationBasedCapabilitiesClient object to access its operations.
+ * Gets the ConfigurationsClient object to access its operations.
*
- * @return the LocationBasedCapabilitiesClient object.
+ * @return the ConfigurationsClient object.
*/
- LocationBasedCapabilitiesClient getLocationBasedCapabilities();
+ ConfigurationsClient getConfigurations();
/**
- * Gets the LocationBasedCapabilitySetsClient object to access its operations.
+ * Gets the LocationBasedCapabilitiesClient object to access its operations.
*
- * @return the LocationBasedCapabilitySetsClient object.
+ * @return the LocationBasedCapabilitiesClient object.
*/
- LocationBasedCapabilitySetsClient getLocationBasedCapabilitySets();
+ LocationBasedCapabilitiesClient getLocationBasedCapabilities();
/**
* Gets the CheckVirtualNetworkSubnetUsagesClient object to access its operations.
@@ -165,20 +116,6 @@ public interface MySqlManagementClient {
*/
CheckNameAvailabilityWithoutLocationsClient getCheckNameAvailabilityWithoutLocations();
- /**
- * Gets the OperationResultsClient object to access its operations.
- *
- * @return the OperationResultsClient object.
- */
- OperationResultsClient getOperationResults();
-
- /**
- * Gets the OperationProgressClient object to access its operations.
- *
- * @return the OperationProgressClient object.
- */
- OperationProgressClient getOperationProgress();
-
/**
* Gets the GetPrivateDnsZoneSuffixesClient object to access its operations.
*
@@ -192,11 +129,4 @@ public interface MySqlManagementClient {
* @return the OperationsClient object.
*/
OperationsClient getOperations();
-
- /**
- * Gets the MaintenancesClient object to access its operations.
- *
- * @return the MaintenancesClient object.
- */
- MaintenancesClient getMaintenances();
}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/OperationProgressClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/OperationProgressClient.java
deleted file mode 100644
index 4145eff4908c9..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/OperationProgressClient.java
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.OperationProgressResultInner;
-
-/**
- * An instance of this class provides access to all the operations defined in OperationProgressClient.
- */
-public interface OperationProgressClient {
- /**
- * Get the operation result for a long running operation.
- *
- * @param locationName The name of the location.
- * @param operationId The ID of an ongoing async operation.
- * @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 operation result for a long running operation along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String locationName, String operationId, Context context);
-
- /**
- * Get the operation result for a long running operation.
- *
- * @param locationName The name of the location.
- * @param operationId The ID of an ongoing async 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 operation result for a long running operation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- OperationProgressResultInner get(String locationName, String operationId);
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/OperationResultsClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/OperationResultsClient.java
deleted file mode 100644
index 8647fc063175c..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/OperationResultsClient.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.OperationStatusExtendedResultInner;
-
-/**
- * An instance of this class provides access to all the operations defined in OperationResultsClient.
- */
-public interface OperationResultsClient {
- /**
- * Get the operation result for a long running operation.
- *
- * @param locationName The name of the location.
- * @param operationId The operation Id.
- * @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 operation result for a long running operation along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String locationName, String operationId,
- Context context);
-
- /**
- * Get the operation result for a long running operation.
- *
- * @param locationName The name of the location.
- * @param operationId The operation Id.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 operation result for a long running operation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusExtendedResultInner get(String locationName, String operationId);
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServersClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServersClient.java
index 12b95a2b0e190..ba7ffac6c34bc 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServersClient.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServersClient.java
@@ -11,10 +11,8 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.HighAvailabilityValidationEstimationInner;
import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ServerInner;
import com.azure.resourcemanager.mysqlflexibleserver.models.ServerForUpdate;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerGtidSetParameter;
import com.azure.resourcemanager.mysqlflexibleserver.models.ServerRestartParameter;
/**
@@ -323,38 +321,6 @@ SyncPoller, ServerInner> beginUpdate(String resourceGrou
@ServiceMethod(returns = ReturnType.SINGLE)
void failover(String resourceGroupName, String serverName, Context context);
- /**
- * Validate a deployment of high availability.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for validation of high availability deployment.
- * @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 high availability validation properties of a server along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response validateEstimateHighAvailabilityWithResponse(
- String resourceGroupName, String serverName, HighAvailabilityValidationEstimationInner parameters,
- Context context);
-
- /**
- * Validate a deployment of high availability.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for validation of high availability deployment.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return high availability validation properties of a server.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- HighAvailabilityValidationEstimationInner validateEstimateHighAvailability(String resourceGroupName,
- String serverName, HighAvailabilityValidationEstimationInner parameters);
-
/**
* Restarts a server.
*
@@ -516,62 +482,4 @@ SyncPoller, Void> beginRestart(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void stop(String resourceGroupName, String serverName, Context context);
-
- /**
- * Resets GTID on a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for resetting GTID on a server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginResetGtid(String resourceGroupName, String serverName,
- ServerGtidSetParameter parameters);
-
- /**
- * Resets GTID on a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for resetting GTID on a server.
- * @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 long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginResetGtid(String resourceGroupName, String serverName,
- ServerGtidSetParameter parameters, Context context);
-
- /**
- * Resets GTID on a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for resetting GTID on a server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void resetGtid(String resourceGroupName, String serverName, ServerGtidSetParameter parameters);
-
- /**
- * Resets GTID on a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for resetting GTID on a server.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void resetGtid(String resourceGroupName, String serverName, ServerGtidSetParameter parameters, Context context);
}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServersMigrationsClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServersMigrationsClient.java
deleted file mode 100644
index aa80c129bb97a..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServersMigrationsClient.java
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ServerInner;
-
-/**
- * An instance of this class provides access to all the operations defined in ServersMigrationsClient.
- */
-public interface ServersMigrationsClient {
- /**
- * Cutover migration for MySQL import, it will switch source elastic server DNS to flexible server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 represents a server.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ServerInner> beginCutoverMigration(String resourceGroupName, String serverName);
-
- /**
- * Cutover migration for MySQL import, it will switch source elastic server DNS to flexible server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 represents a server.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ServerInner> beginCutoverMigration(String resourceGroupName, String serverName,
- Context context);
-
- /**
- * Cutover migration for MySQL import, it will switch source elastic server DNS to flexible server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 a server.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServerInner cutoverMigration(String resourceGroupName, String serverName);
-
- /**
- * Cutover migration for MySQL import, it will switch source elastic server DNS to flexible server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 represents a server.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServerInner cutoverMigration(String resourceGroupName, String serverName, Context context);
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdministratorProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdministratorProperties.java
deleted file mode 100644
index 473688c6ec8e6..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdministratorProperties.java
+++ /dev/null
@@ -1,208 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorType;
-import java.io.IOException;
-
-/**
- * The properties of an administrator.
- */
-@Fluent
-public final class AdministratorProperties implements JsonSerializable {
- /*
- * Type of the sever administrator.
- */
- private AdministratorType administratorType;
-
- /*
- * Login name of the server administrator.
- */
- private String login;
-
- /*
- * SID (object ID) of the server administrator.
- */
- private String sid;
-
- /*
- * Tenant ID of the administrator.
- */
- private String tenantId;
-
- /*
- * The resource id of the identity used for AAD Authentication.
- */
- private String identityResourceId;
-
- /**
- * Creates an instance of AdministratorProperties class.
- */
- public AdministratorProperties() {
- }
-
- /**
- * Get the administratorType property: Type of the sever administrator.
- *
- * @return the administratorType value.
- */
- public AdministratorType administratorType() {
- return this.administratorType;
- }
-
- /**
- * Set the administratorType property: Type of the sever administrator.
- *
- * @param administratorType the administratorType value to set.
- * @return the AdministratorProperties object itself.
- */
- public AdministratorProperties withAdministratorType(AdministratorType administratorType) {
- this.administratorType = administratorType;
- return this;
- }
-
- /**
- * Get the login property: Login name of the server administrator.
- *
- * @return the login value.
- */
- public String login() {
- return this.login;
- }
-
- /**
- * Set the login property: Login name of the server administrator.
- *
- * @param login the login value to set.
- * @return the AdministratorProperties object itself.
- */
- public AdministratorProperties withLogin(String login) {
- this.login = login;
- return this;
- }
-
- /**
- * Get the sid property: SID (object ID) of the server administrator.
- *
- * @return the sid value.
- */
- public String sid() {
- return this.sid;
- }
-
- /**
- * Set the sid property: SID (object ID) of the server administrator.
- *
- * @param sid the sid value to set.
- * @return the AdministratorProperties object itself.
- */
- public AdministratorProperties withSid(String sid) {
- this.sid = sid;
- return this;
- }
-
- /**
- * Get the tenantId property: Tenant ID of the administrator.
- *
- * @return the tenantId value.
- */
- public String tenantId() {
- return this.tenantId;
- }
-
- /**
- * Set the tenantId property: Tenant ID of the administrator.
- *
- * @param tenantId the tenantId value to set.
- * @return the AdministratorProperties object itself.
- */
- public AdministratorProperties withTenantId(String tenantId) {
- this.tenantId = tenantId;
- return this;
- }
-
- /**
- * Get the identityResourceId property: The resource id of the identity used for AAD Authentication.
- *
- * @return the identityResourceId value.
- */
- public String identityResourceId() {
- return this.identityResourceId;
- }
-
- /**
- * Set the identityResourceId property: The resource id of the identity used for AAD Authentication.
- *
- * @param identityResourceId the identityResourceId value to set.
- * @return the AdministratorProperties object itself.
- */
- public AdministratorProperties withIdentityResourceId(String identityResourceId) {
- this.identityResourceId = identityResourceId;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("administratorType",
- this.administratorType == null ? null : this.administratorType.toString());
- jsonWriter.writeStringField("login", this.login);
- jsonWriter.writeStringField("sid", this.sid);
- jsonWriter.writeStringField("tenantId", this.tenantId);
- jsonWriter.writeStringField("identityResourceId", this.identityResourceId);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of AdministratorProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of AdministratorProperties if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IOException If an error occurs while reading the AdministratorProperties.
- */
- public static AdministratorProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- AdministratorProperties deserializedAdministratorProperties = new AdministratorProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("administratorType".equals(fieldName)) {
- deserializedAdministratorProperties.administratorType
- = AdministratorType.fromString(reader.getString());
- } else if ("login".equals(fieldName)) {
- deserializedAdministratorProperties.login = reader.getString();
- } else if ("sid".equals(fieldName)) {
- deserializedAdministratorProperties.sid = reader.getString();
- } else if ("tenantId".equals(fieldName)) {
- deserializedAdministratorProperties.tenantId = reader.getString();
- } else if ("identityResourceId".equals(fieldName)) {
- deserializedAdministratorProperties.identityResourceId = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedAdministratorProperties;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdvancedThreatProtectionInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdvancedThreatProtectionInner.java
deleted file mode 100644
index 8b65a85bbe836..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdvancedThreatProtectionInner.java
+++ /dev/null
@@ -1,202 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionProvisioningState;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionState;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-
-/**
- * A server's Advanced Threat Protection.
- */
-@Fluent
-public final class AdvancedThreatProtectionInner extends ProxyResource {
- /*
- * Resource properties.
- */
- private AdvancedThreatProtectionProperties innerProperties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of AdvancedThreatProtectionInner class.
- */
- public AdvancedThreatProtectionInner() {
- }
-
- /**
- * Get the innerProperties property: Resource properties.
- *
- * @return the innerProperties value.
- */
- private AdvancedThreatProtectionProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the creationTime property: Specifies the UTC creation time of the policy.
- *
- * @return the creationTime value.
- */
- public OffsetDateTime creationTime() {
- return this.innerProperties() == null ? null : this.innerProperties().creationTime();
- }
-
- /**
- * Get the state property: Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled
- * or a state has not been applied yet on the specific database or server.
- *
- * @return the state value.
- */
- public AdvancedThreatProtectionState state() {
- return this.innerProperties() == null ? null : this.innerProperties().state();
- }
-
- /**
- * Set the state property: Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled
- * or a state has not been applied yet on the specific database or server.
- *
- * @param state the state value to set.
- * @return the AdvancedThreatProtectionInner object itself.
- */
- public AdvancedThreatProtectionInner withState(AdvancedThreatProtectionState state) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AdvancedThreatProtectionProperties();
- }
- this.innerProperties().withState(state);
- return this;
- }
-
- /**
- * Get the provisioningState property: Provisioning state of the Threat Protection.
- *
- * @return the provisioningState value.
- */
- public AdvancedThreatProtectionProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of AdvancedThreatProtectionInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of AdvancedThreatProtectionInner if the JsonReader was pointing to an instance of it, or null
- * if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the AdvancedThreatProtectionInner.
- */
- public static AdvancedThreatProtectionInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- AdvancedThreatProtectionInner deserializedAdvancedThreatProtectionInner
- = new AdvancedThreatProtectionInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedAdvancedThreatProtectionInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedAdvancedThreatProtectionInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedAdvancedThreatProtectionInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedAdvancedThreatProtectionInner.innerProperties
- = AdvancedThreatProtectionProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedAdvancedThreatProtectionInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedAdvancedThreatProtectionInner;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdvancedThreatProtectionProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdvancedThreatProtectionProperties.java
deleted file mode 100644
index 7a3c58b6cef53..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdvancedThreatProtectionProperties.java
+++ /dev/null
@@ -1,136 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.CoreUtils;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionProvisioningState;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionState;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-
-/**
- * Properties of an Advanced Threat Protection setting.
- */
-@Fluent
-public final class AdvancedThreatProtectionProperties implements JsonSerializable {
- /*
- * Specifies the UTC creation time of the policy.
- */
- private OffsetDateTime creationTime;
-
- /*
- * Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been
- * applied yet on the specific database or server.
- */
- private AdvancedThreatProtectionState state;
-
- /*
- * Provisioning state of the Threat Protection.
- */
- private AdvancedThreatProtectionProvisioningState provisioningState;
-
- /**
- * Creates an instance of AdvancedThreatProtectionProperties class.
- */
- public AdvancedThreatProtectionProperties() {
- }
-
- /**
- * Get the creationTime property: Specifies the UTC creation time of the policy.
- *
- * @return the creationTime value.
- */
- public OffsetDateTime creationTime() {
- return this.creationTime;
- }
-
- /**
- * Get the state property: Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled
- * or a state has not been applied yet on the specific database or server.
- *
- * @return the state value.
- */
- public AdvancedThreatProtectionState state() {
- return this.state;
- }
-
- /**
- * Set the state property: Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled
- * or a state has not been applied yet on the specific database or server.
- *
- * @param state the state value to set.
- * @return the AdvancedThreatProtectionProperties object itself.
- */
- public AdvancedThreatProtectionProperties withState(AdvancedThreatProtectionState state) {
- this.state = state;
- return this;
- }
-
- /**
- * Get the provisioningState property: Provisioning state of the Threat Protection.
- *
- * @return the provisioningState value.
- */
- public AdvancedThreatProtectionProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString());
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of AdvancedThreatProtectionProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of AdvancedThreatProtectionProperties if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the AdvancedThreatProtectionProperties.
- */
- public static AdvancedThreatProtectionProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- AdvancedThreatProtectionProperties deserializedAdvancedThreatProtectionProperties
- = new AdvancedThreatProtectionProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("creationTime".equals(fieldName)) {
- deserializedAdvancedThreatProtectionProperties.creationTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("state".equals(fieldName)) {
- deserializedAdvancedThreatProtectionProperties.state
- = AdvancedThreatProtectionState.fromString(reader.getString());
- } else if ("provisioningState".equals(fieldName)) {
- deserializedAdvancedThreatProtectionProperties.provisioningState
- = AdvancedThreatProtectionProvisioningState.fromString(reader.getString());
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedAdvancedThreatProtectionProperties;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdvancedThreatProtectionUpdateProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdvancedThreatProtectionUpdateProperties.java
deleted file mode 100644
index 463d9d5a5f077..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdvancedThreatProtectionUpdateProperties.java
+++ /dev/null
@@ -1,109 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionState;
-import java.io.IOException;
-
-/**
- * Properties of Advanced Threat Protection that can be updated.
- */
-@Fluent
-public final class AdvancedThreatProtectionUpdateProperties
- implements JsonSerializable {
- /*
- * Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been
- * applied yet on the specific database or server.
- */
- private AdvancedThreatProtectionState state;
-
- /**
- * Creates an instance of AdvancedThreatProtectionUpdateProperties class.
- */
- public AdvancedThreatProtectionUpdateProperties() {
- }
-
- /**
- * Get the state property: Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled
- * or a state has not been applied yet on the specific database or server.
- *
- * @return the state value.
- */
- public AdvancedThreatProtectionState state() {
- return this.state;
- }
-
- /**
- * Set the state property: Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled
- * or a state has not been applied yet on the specific database or server.
- *
- * @param state the state value to set.
- * @return the AdvancedThreatProtectionUpdateProperties object itself.
- */
- public AdvancedThreatProtectionUpdateProperties withState(AdvancedThreatProtectionState state) {
- this.state = state;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (state() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property state in model AdvancedThreatProtectionUpdateProperties"));
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(AdvancedThreatProtectionUpdateProperties.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString());
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of AdvancedThreatProtectionUpdateProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of AdvancedThreatProtectionUpdateProperties if the JsonReader was pointing to an instance of
- * it, or null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the AdvancedThreatProtectionUpdateProperties.
- */
- public static AdvancedThreatProtectionUpdateProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- AdvancedThreatProtectionUpdateProperties deserializedAdvancedThreatProtectionUpdateProperties
- = new AdvancedThreatProtectionUpdateProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("state".equals(fieldName)) {
- deserializedAdvancedThreatProtectionUpdateProperties.state
- = AdvancedThreatProtectionState.fromString(reader.getString());
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedAdvancedThreatProtectionUpdateProperties;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AzureADAdministratorInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AzureADAdministratorInner.java
deleted file mode 100644
index ac756148dfc0e..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AzureADAdministratorInner.java
+++ /dev/null
@@ -1,270 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorType;
-import java.io.IOException;
-
-/**
- * Represents a Administrator.
- */
-@Fluent
-public final class AzureADAdministratorInner extends ProxyResource {
- /*
- * The properties of an administrator.
- */
- private AdministratorProperties innerProperties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of AzureADAdministratorInner class.
- */
- public AzureADAdministratorInner() {
- }
-
- /**
- * Get the innerProperties property: The properties of an administrator.
- *
- * @return the innerProperties value.
- */
- private AdministratorProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the administratorType property: Type of the sever administrator.
- *
- * @return the administratorType value.
- */
- public AdministratorType administratorType() {
- return this.innerProperties() == null ? null : this.innerProperties().administratorType();
- }
-
- /**
- * Set the administratorType property: Type of the sever administrator.
- *
- * @param administratorType the administratorType value to set.
- * @return the AzureADAdministratorInner object itself.
- */
- public AzureADAdministratorInner withAdministratorType(AdministratorType administratorType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AdministratorProperties();
- }
- this.innerProperties().withAdministratorType(administratorType);
- return this;
- }
-
- /**
- * Get the login property: Login name of the server administrator.
- *
- * @return the login value.
- */
- public String login() {
- return this.innerProperties() == null ? null : this.innerProperties().login();
- }
-
- /**
- * Set the login property: Login name of the server administrator.
- *
- * @param login the login value to set.
- * @return the AzureADAdministratorInner object itself.
- */
- public AzureADAdministratorInner withLogin(String login) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AdministratorProperties();
- }
- this.innerProperties().withLogin(login);
- return this;
- }
-
- /**
- * Get the sid property: SID (object ID) of the server administrator.
- *
- * @return the sid value.
- */
- public String sid() {
- return this.innerProperties() == null ? null : this.innerProperties().sid();
- }
-
- /**
- * Set the sid property: SID (object ID) of the server administrator.
- *
- * @param sid the sid value to set.
- * @return the AzureADAdministratorInner object itself.
- */
- public AzureADAdministratorInner withSid(String sid) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AdministratorProperties();
- }
- this.innerProperties().withSid(sid);
- return this;
- }
-
- /**
- * Get the tenantId property: Tenant ID of the administrator.
- *
- * @return the tenantId value.
- */
- public String tenantId() {
- return this.innerProperties() == null ? null : this.innerProperties().tenantId();
- }
-
- /**
- * Set the tenantId property: Tenant ID of the administrator.
- *
- * @param tenantId the tenantId value to set.
- * @return the AzureADAdministratorInner object itself.
- */
- public AzureADAdministratorInner withTenantId(String tenantId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AdministratorProperties();
- }
- this.innerProperties().withTenantId(tenantId);
- return this;
- }
-
- /**
- * Get the identityResourceId property: The resource id of the identity used for AAD Authentication.
- *
- * @return the identityResourceId value.
- */
- public String identityResourceId() {
- return this.innerProperties() == null ? null : this.innerProperties().identityResourceId();
- }
-
- /**
- * Set the identityResourceId property: The resource id of the identity used for AAD Authentication.
- *
- * @param identityResourceId the identityResourceId value to set.
- * @return the AzureADAdministratorInner object itself.
- */
- public AzureADAdministratorInner withIdentityResourceId(String identityResourceId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AdministratorProperties();
- }
- this.innerProperties().withIdentityResourceId(identityResourceId);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of AzureADAdministratorInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of AzureADAdministratorInner if the JsonReader was pointing to an instance of it, or null if
- * it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the AzureADAdministratorInner.
- */
- public static AzureADAdministratorInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- AzureADAdministratorInner deserializedAzureADAdministratorInner = new AzureADAdministratorInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedAzureADAdministratorInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedAzureADAdministratorInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedAzureADAdministratorInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedAzureADAdministratorInner.innerProperties = AdministratorProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedAzureADAdministratorInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedAzureADAdministratorInner;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/BackupAndExportResponseInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/BackupAndExportResponseInner.java
deleted file mode 100644
index 2ce1d491e88e7..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/BackupAndExportResponseInner.java
+++ /dev/null
@@ -1,376 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.core.management.exception.ManagementError;
-import com.azure.core.util.CoreUtils;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.mysqlflexibleserver.models.OperationStatus;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-import java.time.format.DateTimeFormatter;
-
-/**
- * Represents BackupAndExport API Response.
- */
-@Fluent
-public final class BackupAndExportResponseInner extends ProxyResource {
- /*
- * The operation status
- */
- private OperationStatus status;
-
- /*
- * Start time
- */
- private OffsetDateTime startTime;
-
- /*
- * End time
- */
- private OffsetDateTime endTime;
-
- /*
- * Operation progress (0-100).
- */
- private Double percentComplete;
-
- /*
- * The response properties of a backup and export operation.
- */
- private BackupAndExportResponseProperties innerProperties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * The error object.
- */
- private ManagementError error;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of BackupAndExportResponseInner class.
- */
- public BackupAndExportResponseInner() {
- }
-
- /**
- * Get the status property: The operation status.
- *
- * @return the status value.
- */
- public OperationStatus status() {
- return this.status;
- }
-
- /**
- * Set the status property: The operation status.
- *
- * @param status the status value to set.
- * @return the BackupAndExportResponseInner object itself.
- */
- public BackupAndExportResponseInner withStatus(OperationStatus status) {
- this.status = status;
- return this;
- }
-
- /**
- * Get the startTime property: Start time.
- *
- * @return the startTime value.
- */
- public OffsetDateTime startTime() {
- return this.startTime;
- }
-
- /**
- * Set the startTime property: Start time.
- *
- * @param startTime the startTime value to set.
- * @return the BackupAndExportResponseInner object itself.
- */
- public BackupAndExportResponseInner withStartTime(OffsetDateTime startTime) {
- this.startTime = startTime;
- return this;
- }
-
- /**
- * Get the endTime property: End time.
- *
- * @return the endTime value.
- */
- public OffsetDateTime endTime() {
- return this.endTime;
- }
-
- /**
- * Set the endTime property: End time.
- *
- * @param endTime the endTime value to set.
- * @return the BackupAndExportResponseInner object itself.
- */
- public BackupAndExportResponseInner withEndTime(OffsetDateTime endTime) {
- this.endTime = endTime;
- return this;
- }
-
- /**
- * Get the percentComplete property: Operation progress (0-100).
- *
- * @return the percentComplete value.
- */
- public Double percentComplete() {
- return this.percentComplete;
- }
-
- /**
- * Set the percentComplete property: Operation progress (0-100).
- *
- * @param percentComplete the percentComplete value to set.
- * @return the BackupAndExportResponseInner object itself.
- */
- public BackupAndExportResponseInner withPercentComplete(Double percentComplete) {
- this.percentComplete = percentComplete;
- return this;
- }
-
- /**
- * Get the innerProperties property: The response properties of a backup and export operation.
- *
- * @return the innerProperties value.
- */
- private BackupAndExportResponseProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the error property: The error object.
- *
- * @return the error value.
- */
- public ManagementError error() {
- return this.error;
- }
-
- /**
- * Set the error property: The error object.
- *
- * @param error the error value to set.
- * @return the BackupAndExportResponseInner object itself.
- */
- public BackupAndExportResponseInner withError(ManagementError error) {
- this.error = error;
- return this;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the datasourceSizeInBytes property: Size of datasource in bytes.
- *
- * @return the datasourceSizeInBytes value.
- */
- public Long datasourceSizeInBytes() {
- return this.innerProperties() == null ? null : this.innerProperties().datasourceSizeInBytes();
- }
-
- /**
- * Set the datasourceSizeInBytes property: Size of datasource in bytes.
- *
- * @param datasourceSizeInBytes the datasourceSizeInBytes value to set.
- * @return the BackupAndExportResponseInner object itself.
- */
- public BackupAndExportResponseInner withDatasourceSizeInBytes(Long datasourceSizeInBytes) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BackupAndExportResponseProperties();
- }
- this.innerProperties().withDatasourceSizeInBytes(datasourceSizeInBytes);
- return this;
- }
-
- /**
- * Get the dataTransferredInBytes property: Data transferred in bytes.
- *
- * @return the dataTransferredInBytes value.
- */
- public Long dataTransferredInBytes() {
- return this.innerProperties() == null ? null : this.innerProperties().dataTransferredInBytes();
- }
-
- /**
- * Set the dataTransferredInBytes property: Data transferred in bytes.
- *
- * @param dataTransferredInBytes the dataTransferredInBytes value to set.
- * @return the BackupAndExportResponseInner object itself.
- */
- public BackupAndExportResponseInner withDataTransferredInBytes(Long dataTransferredInBytes) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BackupAndExportResponseProperties();
- }
- this.innerProperties().withDataTransferredInBytes(dataTransferredInBytes);
- return this;
- }
-
- /**
- * Get the backupMetadata property: Metadata related to backup to be stored for restoring resource in key-value
- * pairs.
- *
- * @return the backupMetadata value.
- */
- public String backupMetadata() {
- return this.innerProperties() == null ? null : this.innerProperties().backupMetadata();
- }
-
- /**
- * Set the backupMetadata property: Metadata related to backup to be stored for restoring resource in key-value
- * pairs.
- *
- * @param backupMetadata the backupMetadata value to set.
- * @return the BackupAndExportResponseInner object itself.
- */
- public BackupAndExportResponseInner withBackupMetadata(String backupMetadata) {
- if (this.innerProperties() == null) {
- this.innerProperties = new BackupAndExportResponseProperties();
- }
- this.innerProperties().withBackupMetadata(backupMetadata);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("status", this.status == null ? null : this.status.toString());
- jsonWriter.writeStringField("startTime",
- this.startTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.startTime));
- jsonWriter.writeStringField("endTime",
- this.endTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.endTime));
- jsonWriter.writeNumberField("percentComplete", this.percentComplete);
- jsonWriter.writeJsonField("properties", this.innerProperties);
- jsonWriter.writeJsonField("error", this.error);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of BackupAndExportResponseInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of BackupAndExportResponseInner if the JsonReader was pointing to an instance of it, or null
- * if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the BackupAndExportResponseInner.
- */
- public static BackupAndExportResponseInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- BackupAndExportResponseInner deserializedBackupAndExportResponseInner = new BackupAndExportResponseInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedBackupAndExportResponseInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedBackupAndExportResponseInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedBackupAndExportResponseInner.type = reader.getString();
- } else if ("status".equals(fieldName)) {
- deserializedBackupAndExportResponseInner.status = OperationStatus.fromString(reader.getString());
- } else if ("startTime".equals(fieldName)) {
- deserializedBackupAndExportResponseInner.startTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("endTime".equals(fieldName)) {
- deserializedBackupAndExportResponseInner.endTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("percentComplete".equals(fieldName)) {
- deserializedBackupAndExportResponseInner.percentComplete
- = reader.getNullable(JsonReader::getDouble);
- } else if ("properties".equals(fieldName)) {
- deserializedBackupAndExportResponseInner.innerProperties
- = BackupAndExportResponseProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedBackupAndExportResponseInner.systemData = SystemData.fromJson(reader);
- } else if ("error".equals(fieldName)) {
- deserializedBackupAndExportResponseInner.error = ManagementError.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedBackupAndExportResponseInner;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/BackupAndExportResponseProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/BackupAndExportResponseProperties.java
deleted file mode 100644
index d3a735bc7a4ca..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/BackupAndExportResponseProperties.java
+++ /dev/null
@@ -1,154 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * BackupAndExport Response Properties.
- */
-@Fluent
-public final class BackupAndExportResponseProperties implements JsonSerializable {
- /*
- * Size of datasource in bytes
- */
- private Long datasourceSizeInBytes;
-
- /*
- * Data transferred in bytes
- */
- private Long dataTransferredInBytes;
-
- /*
- * Metadata related to backup to be stored for restoring resource in key-value pairs.
- */
- private String backupMetadata;
-
- /**
- * Creates an instance of BackupAndExportResponseProperties class.
- */
- public BackupAndExportResponseProperties() {
- }
-
- /**
- * Get the datasourceSizeInBytes property: Size of datasource in bytes.
- *
- * @return the datasourceSizeInBytes value.
- */
- public Long datasourceSizeInBytes() {
- return this.datasourceSizeInBytes;
- }
-
- /**
- * Set the datasourceSizeInBytes property: Size of datasource in bytes.
- *
- * @param datasourceSizeInBytes the datasourceSizeInBytes value to set.
- * @return the BackupAndExportResponseProperties object itself.
- */
- public BackupAndExportResponseProperties withDatasourceSizeInBytes(Long datasourceSizeInBytes) {
- this.datasourceSizeInBytes = datasourceSizeInBytes;
- return this;
- }
-
- /**
- * Get the dataTransferredInBytes property: Data transferred in bytes.
- *
- * @return the dataTransferredInBytes value.
- */
- public Long dataTransferredInBytes() {
- return this.dataTransferredInBytes;
- }
-
- /**
- * Set the dataTransferredInBytes property: Data transferred in bytes.
- *
- * @param dataTransferredInBytes the dataTransferredInBytes value to set.
- * @return the BackupAndExportResponseProperties object itself.
- */
- public BackupAndExportResponseProperties withDataTransferredInBytes(Long dataTransferredInBytes) {
- this.dataTransferredInBytes = dataTransferredInBytes;
- return this;
- }
-
- /**
- * Get the backupMetadata property: Metadata related to backup to be stored for restoring resource in key-value
- * pairs.
- *
- * @return the backupMetadata value.
- */
- public String backupMetadata() {
- return this.backupMetadata;
- }
-
- /**
- * Set the backupMetadata property: Metadata related to backup to be stored for restoring resource in key-value
- * pairs.
- *
- * @param backupMetadata the backupMetadata value to set.
- * @return the BackupAndExportResponseProperties object itself.
- */
- public BackupAndExportResponseProperties withBackupMetadata(String backupMetadata) {
- this.backupMetadata = backupMetadata;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeNumberField("datasourceSizeInBytes", this.datasourceSizeInBytes);
- jsonWriter.writeNumberField("dataTransferredInBytes", this.dataTransferredInBytes);
- jsonWriter.writeStringField("backupMetadata", this.backupMetadata);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of BackupAndExportResponseProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of BackupAndExportResponseProperties if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the BackupAndExportResponseProperties.
- */
- public static BackupAndExportResponseProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- BackupAndExportResponseProperties deserializedBackupAndExportResponseProperties
- = new BackupAndExportResponseProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("datasourceSizeInBytes".equals(fieldName)) {
- deserializedBackupAndExportResponseProperties.datasourceSizeInBytes
- = reader.getNullable(JsonReader::getLong);
- } else if ("dataTransferredInBytes".equals(fieldName)) {
- deserializedBackupAndExportResponseProperties.dataTransferredInBytes
- = reader.getNullable(JsonReader::getLong);
- } else if ("backupMetadata".equals(fieldName)) {
- deserializedBackupAndExportResponseProperties.backupMetadata = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedBackupAndExportResponseProperties;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/CapabilityInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/CapabilityInner.java
deleted file mode 100644
index 867fdbaf4ccbb..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/CapabilityInner.java
+++ /dev/null
@@ -1,184 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerEditionCapabilityV2;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerVersionCapabilityV2;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * Represents a location capability set.
- */
-@Immutable
-public final class CapabilityInner extends ProxyResource {
- /*
- * The properties of a location capability set.
- */
- private CapabilityPropertiesV2 innerProperties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of CapabilityInner class.
- */
- public CapabilityInner() {
- }
-
- /**
- * Get the innerProperties property: The properties of a location capability set.
- *
- * @return the innerProperties value.
- */
- private CapabilityPropertiesV2 innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the supportedGeoBackupRegions property: supported geo backup regions.
- *
- * @return the supportedGeoBackupRegions value.
- */
- public List supportedGeoBackupRegions() {
- return this.innerProperties() == null ? null : this.innerProperties().supportedGeoBackupRegions();
- }
-
- /**
- * Get the supportedFlexibleServerEditions property: A list of supported flexible server editions.
- *
- * @return the supportedFlexibleServerEditions value.
- */
- public List supportedFlexibleServerEditions() {
- return this.innerProperties() == null ? null : this.innerProperties().supportedFlexibleServerEditions();
- }
-
- /**
- * Get the supportedServerVersions property: A list of supported server versions.
- *
- * @return the supportedServerVersions value.
- */
- public List supportedServerVersions() {
- return this.innerProperties() == null ? null : this.innerProperties().supportedServerVersions();
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of CapabilityInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of CapabilityInner if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the CapabilityInner.
- */
- public static CapabilityInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- CapabilityInner deserializedCapabilityInner = new CapabilityInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedCapabilityInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedCapabilityInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedCapabilityInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedCapabilityInner.innerProperties = CapabilityPropertiesV2.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedCapabilityInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedCapabilityInner;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/CapabilityPropertiesV2.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/CapabilityPropertiesV2.java
deleted file mode 100644
index b4294d627a748..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/CapabilityPropertiesV2.java
+++ /dev/null
@@ -1,128 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerEditionCapabilityV2;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerVersionCapabilityV2;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * Location capability.
- */
-@Immutable
-public final class CapabilityPropertiesV2 implements JsonSerializable {
- /*
- * supported geo backup regions
- */
- private List supportedGeoBackupRegions;
-
- /*
- * A list of supported flexible server editions.
- */
- private List supportedFlexibleServerEditions;
-
- /*
- * A list of supported server versions.
- */
- private List supportedServerVersions;
-
- /**
- * Creates an instance of CapabilityPropertiesV2 class.
- */
- public CapabilityPropertiesV2() {
- }
-
- /**
- * Get the supportedGeoBackupRegions property: supported geo backup regions.
- *
- * @return the supportedGeoBackupRegions value.
- */
- public List supportedGeoBackupRegions() {
- return this.supportedGeoBackupRegions;
- }
-
- /**
- * Get the supportedFlexibleServerEditions property: A list of supported flexible server editions.
- *
- * @return the supportedFlexibleServerEditions value.
- */
- public List supportedFlexibleServerEditions() {
- return this.supportedFlexibleServerEditions;
- }
-
- /**
- * Get the supportedServerVersions property: A list of supported server versions.
- *
- * @return the supportedServerVersions value.
- */
- public List supportedServerVersions() {
- return this.supportedServerVersions;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (supportedFlexibleServerEditions() != null) {
- supportedFlexibleServerEditions().forEach(e -> e.validate());
- }
- if (supportedServerVersions() != null) {
- supportedServerVersions().forEach(e -> e.validate());
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of CapabilityPropertiesV2 from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of CapabilityPropertiesV2 if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IOException If an error occurs while reading the CapabilityPropertiesV2.
- */
- public static CapabilityPropertiesV2 fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- CapabilityPropertiesV2 deserializedCapabilityPropertiesV2 = new CapabilityPropertiesV2();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("supportedGeoBackupRegions".equals(fieldName)) {
- List supportedGeoBackupRegions = reader.readArray(reader1 -> reader1.getString());
- deserializedCapabilityPropertiesV2.supportedGeoBackupRegions = supportedGeoBackupRegions;
- } else if ("supportedFlexibleServerEditions".equals(fieldName)) {
- List supportedFlexibleServerEditions
- = reader.readArray(reader1 -> ServerEditionCapabilityV2.fromJson(reader1));
- deserializedCapabilityPropertiesV2.supportedFlexibleServerEditions
- = supportedFlexibleServerEditions;
- } else if ("supportedServerVersions".equals(fieldName)) {
- List supportedServerVersions
- = reader.readArray(reader1 -> ServerVersionCapabilityV2.fromJson(reader1));
- deserializedCapabilityPropertiesV2.supportedServerVersions = supportedServerVersions;
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedCapabilityPropertiesV2;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationInner.java
index 7ab7fa162144b..abffbd42f30fd 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationInner.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationInner.java
@@ -27,7 +27,7 @@ public final class ConfigurationInner extends ProxyResource {
private ConfigurationProperties innerProperties;
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * The system metadata relating to this resource.
*/
private SystemData systemData;
@@ -62,7 +62,7 @@ private ConfigurationProperties innerProperties() {
}
/**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Get the systemData property: The system metadata relating to this resource.
*
* @return the systemData value.
*/
@@ -123,29 +123,6 @@ public ConfigurationInner withValue(String value) {
return this;
}
- /**
- * Get the currentValue property: Current value of the configuration.
- *
- * @return the currentValue value.
- */
- public String currentValue() {
- return this.innerProperties() == null ? null : this.innerProperties().currentValue();
- }
-
- /**
- * Set the currentValue property: Current value of the configuration.
- *
- * @param currentValue the currentValue value to set.
- * @return the ConfigurationInner object itself.
- */
- public ConfigurationInner withCurrentValue(String currentValue) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ConfigurationProperties();
- }
- this.innerProperties().withCurrentValue(currentValue);
- return this;
- }
-
/**
* Get the description property: Description of the configuration.
*
@@ -155,15 +132,6 @@ public String description() {
return this.innerProperties() == null ? null : this.innerProperties().description();
}
- /**
- * Get the documentationLink property: The link used to get the document from community or Azure site.
- *
- * @return the documentationLink value.
- */
- public String documentationLink() {
- return this.innerProperties() == null ? null : this.innerProperties().documentationLink();
- }
-
/**
* Get the defaultValue property: Default value of the configuration.
*
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationProperties.java
index d97d297328c09..8c29eaa6b1861 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationProperties.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationProperties.java
@@ -25,21 +25,11 @@ public final class ConfigurationProperties implements JsonSerializable {
- /*
- * Estimated seconds of downtime for the deployment.
- */
- private Integer estimatedDowntime;
-
- /*
- * Scheduled Availability zone of the standby server.
- */
- private String scheduledStandbyAvailabilityZone;
-
- /*
- * Expected Availability zone of the standby server.
- */
- private String expectedStandbyAvailabilityZone;
-
- /**
- * Creates an instance of HighAvailabilityValidationEstimationInner class.
- */
- public HighAvailabilityValidationEstimationInner() {
- }
-
- /**
- * Get the estimatedDowntime property: Estimated seconds of downtime for the deployment.
- *
- * @return the estimatedDowntime value.
- */
- public Integer estimatedDowntime() {
- return this.estimatedDowntime;
- }
-
- /**
- * Get the scheduledStandbyAvailabilityZone property: Scheduled Availability zone of the standby server.
- *
- * @return the scheduledStandbyAvailabilityZone value.
- */
- public String scheduledStandbyAvailabilityZone() {
- return this.scheduledStandbyAvailabilityZone;
- }
-
- /**
- * Get the expectedStandbyAvailabilityZone property: Expected Availability zone of the standby server.
- *
- * @return the expectedStandbyAvailabilityZone value.
- */
- public String expectedStandbyAvailabilityZone() {
- return this.expectedStandbyAvailabilityZone;
- }
-
- /**
- * Set the expectedStandbyAvailabilityZone property: Expected Availability zone of the standby server.
- *
- * @param expectedStandbyAvailabilityZone the expectedStandbyAvailabilityZone value to set.
- * @return the HighAvailabilityValidationEstimationInner object itself.
- */
- public HighAvailabilityValidationEstimationInner
- withExpectedStandbyAvailabilityZone(String expectedStandbyAvailabilityZone) {
- this.expectedStandbyAvailabilityZone = expectedStandbyAvailabilityZone;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("expectedStandbyAvailabilityZone", this.expectedStandbyAvailabilityZone);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of HighAvailabilityValidationEstimationInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of HighAvailabilityValidationEstimationInner if the JsonReader was pointing to an instance of
- * it, or null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the HighAvailabilityValidationEstimationInner.
- */
- public static HighAvailabilityValidationEstimationInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- HighAvailabilityValidationEstimationInner deserializedHighAvailabilityValidationEstimationInner
- = new HighAvailabilityValidationEstimationInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("estimatedDowntime".equals(fieldName)) {
- deserializedHighAvailabilityValidationEstimationInner.estimatedDowntime
- = reader.getNullable(JsonReader::getInt);
- } else if ("scheduledStandbyAvailabilityZone".equals(fieldName)) {
- deserializedHighAvailabilityValidationEstimationInner.scheduledStandbyAvailabilityZone
- = reader.getString();
- } else if ("expectedStandbyAvailabilityZone".equals(fieldName)) {
- deserializedHighAvailabilityValidationEstimationInner.expectedStandbyAvailabilityZone
- = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedHighAvailabilityValidationEstimationInner;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileInner.java
deleted file mode 100644
index bd0e3d3cbeeb5..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileInner.java
+++ /dev/null
@@ -1,270 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-
-/**
- * Represents a logFile.
- */
-@Fluent
-public final class LogFileInner extends ProxyResource {
- /*
- * The properties of a logFile.
- */
- private LogFileProperties innerProperties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of LogFileInner class.
- */
- public LogFileInner() {
- }
-
- /**
- * Get the innerProperties property: The properties of a logFile.
- *
- * @return the innerProperties value.
- */
- private LogFileProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the sizeInKB property: The size in kb of the logFile.
- *
- * @return the sizeInKB value.
- */
- public Long sizeInKB() {
- return this.innerProperties() == null ? null : this.innerProperties().sizeInKB();
- }
-
- /**
- * Set the sizeInKB property: The size in kb of the logFile.
- *
- * @param sizeInKB the sizeInKB value to set.
- * @return the LogFileInner object itself.
- */
- public LogFileInner withSizeInKB(Long sizeInKB) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LogFileProperties();
- }
- this.innerProperties().withSizeInKB(sizeInKB);
- return this;
- }
-
- /**
- * Get the createdTime property: Creation timestamp of the log file.
- *
- * @return the createdTime value.
- */
- public OffsetDateTime createdTime() {
- return this.innerProperties() == null ? null : this.innerProperties().createdTime();
- }
-
- /**
- * Set the createdTime property: Creation timestamp of the log file.
- *
- * @param createdTime the createdTime value to set.
- * @return the LogFileInner object itself.
- */
- public LogFileInner withCreatedTime(OffsetDateTime createdTime) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LogFileProperties();
- }
- this.innerProperties().withCreatedTime(createdTime);
- return this;
- }
-
- /**
- * Get the type property: Type of the log file.
- *
- * @return the type value.
- */
- public String typePropertiesType() {
- return this.innerProperties() == null ? null : this.innerProperties().type();
- }
-
- /**
- * Set the type property: Type of the log file.
- *
- * @param type the type value to set.
- * @return the LogFileInner object itself.
- */
- public LogFileInner withTypePropertiesType(String type) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LogFileProperties();
- }
- this.innerProperties().withType(type);
- return this;
- }
-
- /**
- * Get the lastModifiedTime property: Last modified timestamp of the log file.
- *
- * @return the lastModifiedTime value.
- */
- public OffsetDateTime lastModifiedTime() {
- return this.innerProperties() == null ? null : this.innerProperties().lastModifiedTime();
- }
-
- /**
- * Set the lastModifiedTime property: Last modified timestamp of the log file.
- *
- * @param lastModifiedTime the lastModifiedTime value to set.
- * @return the LogFileInner object itself.
- */
- public LogFileInner withLastModifiedTime(OffsetDateTime lastModifiedTime) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LogFileProperties();
- }
- this.innerProperties().withLastModifiedTime(lastModifiedTime);
- return this;
- }
-
- /**
- * Get the url property: The url to download the log file from.
- *
- * @return the url value.
- */
- public String url() {
- return this.innerProperties() == null ? null : this.innerProperties().url();
- }
-
- /**
- * Set the url property: The url to download the log file from.
- *
- * @param url the url value to set.
- * @return the LogFileInner object itself.
- */
- public LogFileInner withUrl(String url) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LogFileProperties();
- }
- this.innerProperties().withUrl(url);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of LogFileInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of LogFileInner if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the LogFileInner.
- */
- public static LogFileInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- LogFileInner deserializedLogFileInner = new LogFileInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedLogFileInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedLogFileInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedLogFileInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedLogFileInner.innerProperties = LogFileProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedLogFileInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedLogFileInner;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileProperties.java
deleted file mode 100644
index 4662c7bdf953d..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileProperties.java
+++ /dev/null
@@ -1,214 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.CoreUtils;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-import java.time.format.DateTimeFormatter;
-
-/**
- * The properties of a logFile.
- */
-@Fluent
-public final class LogFileProperties implements JsonSerializable {
- /*
- * The size in kb of the logFile.
- */
- private Long sizeInKB;
-
- /*
- * Creation timestamp of the log file.
- */
- private OffsetDateTime createdTime;
-
- /*
- * Type of the log file.
- */
- private String type;
-
- /*
- * Last modified timestamp of the log file.
- */
- private OffsetDateTime lastModifiedTime;
-
- /*
- * The url to download the log file from.
- */
- private String url;
-
- /**
- * Creates an instance of LogFileProperties class.
- */
- public LogFileProperties() {
- }
-
- /**
- * Get the sizeInKB property: The size in kb of the logFile.
- *
- * @return the sizeInKB value.
- */
- public Long sizeInKB() {
- return this.sizeInKB;
- }
-
- /**
- * Set the sizeInKB property: The size in kb of the logFile.
- *
- * @param sizeInKB the sizeInKB value to set.
- * @return the LogFileProperties object itself.
- */
- public LogFileProperties withSizeInKB(Long sizeInKB) {
- this.sizeInKB = sizeInKB;
- return this;
- }
-
- /**
- * Get the createdTime property: Creation timestamp of the log file.
- *
- * @return the createdTime value.
- */
- public OffsetDateTime createdTime() {
- return this.createdTime;
- }
-
- /**
- * Set the createdTime property: Creation timestamp of the log file.
- *
- * @param createdTime the createdTime value to set.
- * @return the LogFileProperties object itself.
- */
- public LogFileProperties withCreatedTime(OffsetDateTime createdTime) {
- this.createdTime = createdTime;
- return this;
- }
-
- /**
- * Get the type property: Type of the log file.
- *
- * @return the type value.
- */
- public String type() {
- return this.type;
- }
-
- /**
- * Set the type property: Type of the log file.
- *
- * @param type the type value to set.
- * @return the LogFileProperties object itself.
- */
- public LogFileProperties withType(String type) {
- this.type = type;
- return this;
- }
-
- /**
- * Get the lastModifiedTime property: Last modified timestamp of the log file.
- *
- * @return the lastModifiedTime value.
- */
- public OffsetDateTime lastModifiedTime() {
- return this.lastModifiedTime;
- }
-
- /**
- * Set the lastModifiedTime property: Last modified timestamp of the log file.
- *
- * @param lastModifiedTime the lastModifiedTime value to set.
- * @return the LogFileProperties object itself.
- */
- public LogFileProperties withLastModifiedTime(OffsetDateTime lastModifiedTime) {
- this.lastModifiedTime = lastModifiedTime;
- return this;
- }
-
- /**
- * Get the url property: The url to download the log file from.
- *
- * @return the url value.
- */
- public String url() {
- return this.url;
- }
-
- /**
- * Set the url property: The url to download the log file from.
- *
- * @param url the url value to set.
- * @return the LogFileProperties object itself.
- */
- public LogFileProperties withUrl(String url) {
- this.url = url;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeNumberField("sizeInKB", this.sizeInKB);
- jsonWriter.writeStringField("createdTime",
- this.createdTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.createdTime));
- jsonWriter.writeStringField("type", this.type);
- jsonWriter.writeStringField("lastModifiedTime",
- this.lastModifiedTime == null
- ? null
- : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.lastModifiedTime));
- jsonWriter.writeStringField("url", this.url);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of LogFileProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of LogFileProperties if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IOException If an error occurs while reading the LogFileProperties.
- */
- public static LogFileProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- LogFileProperties deserializedLogFileProperties = new LogFileProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("sizeInKB".equals(fieldName)) {
- deserializedLogFileProperties.sizeInKB = reader.getNullable(JsonReader::getLong);
- } else if ("createdTime".equals(fieldName)) {
- deserializedLogFileProperties.createdTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("type".equals(fieldName)) {
- deserializedLogFileProperties.type = reader.getString();
- } else if ("lastModifiedTime".equals(fieldName)) {
- deserializedLogFileProperties.lastModifiedTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("url".equals(fieldName)) {
- deserializedLogFileProperties.url = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedLogFileProperties;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/MaintenanceInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/MaintenanceInner.java
deleted file mode 100644
index cb6eaf3474e2e..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/MaintenanceInner.java
+++ /dev/null
@@ -1,278 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-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.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceProvisioningState;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceState;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceType;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-
-/**
- * Represents a maintenance.
- */
-@Fluent
-public final class MaintenanceInner extends ProxyResource {
- /*
- * The properties of a maintenance
- */
- private MaintenanceProperties innerProperties = new MaintenanceProperties();
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of MaintenanceInner class.
- */
- public MaintenanceInner() {
- }
-
- /**
- * Get the innerProperties property: The properties of a maintenance.
- *
- * @return the innerProperties value.
- */
- private MaintenanceProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the maintenanceType property: A string defines maintenance type.
- *
- * @return the maintenanceType value.
- */
- public MaintenanceType maintenanceType() {
- return this.innerProperties() == null ? null : this.innerProperties().maintenanceType();
- }
-
- /**
- * Get the maintenanceState property: A string describes the maintenance status.
- *
- * @return the maintenanceState value.
- */
- public MaintenanceState maintenanceState() {
- return this.innerProperties() == null ? null : this.innerProperties().maintenanceState();
- }
-
- /**
- * Get the maintenanceStartTime property: The start time for a maintenance.
- *
- * @return the maintenanceStartTime value.
- */
- public OffsetDateTime maintenanceStartTime() {
- return this.innerProperties() == null ? null : this.innerProperties().maintenanceStartTime();
- }
-
- /**
- * Set the maintenanceStartTime property: The start time for a maintenance.
- *
- * @param maintenanceStartTime the maintenanceStartTime value to set.
- * @return the MaintenanceInner object itself.
- */
- public MaintenanceInner withMaintenanceStartTime(OffsetDateTime maintenanceStartTime) {
- if (this.innerProperties() == null) {
- this.innerProperties = new MaintenanceProperties();
- }
- this.innerProperties().withMaintenanceStartTime(maintenanceStartTime);
- return this;
- }
-
- /**
- * Get the maintenanceEndTime property: The end time for a maintenance.
- *
- * @return the maintenanceEndTime value.
- */
- public OffsetDateTime maintenanceEndTime() {
- return this.innerProperties() == null ? null : this.innerProperties().maintenanceEndTime();
- }
-
- /**
- * Get the maintenanceExecutionStartTime property: The start time for a maintenance execution.
- *
- * @return the maintenanceExecutionStartTime value.
- */
- public OffsetDateTime maintenanceExecutionStartTime() {
- return this.innerProperties() == null ? null : this.innerProperties().maintenanceExecutionStartTime();
- }
-
- /**
- * Get the maintenanceExecutionEndTime property: The end time for a maintenance execution.
- *
- * @return the maintenanceExecutionEndTime value.
- */
- public OffsetDateTime maintenanceExecutionEndTime() {
- return this.innerProperties() == null ? null : this.innerProperties().maintenanceExecutionEndTime();
- }
-
- /**
- * Get the maintenanceAvailableScheduleMinTime property: The min time the maintenance can be rescheduled.
- *
- * @return the maintenanceAvailableScheduleMinTime value.
- */
- public OffsetDateTime maintenanceAvailableScheduleMinTime() {
- return this.innerProperties() == null ? null : this.innerProperties().maintenanceAvailableScheduleMinTime();
- }
-
- /**
- * Get the maintenanceAvailableScheduleMaxTime property: The max time the maintenance can be rescheduled.
- *
- * @return the maintenanceAvailableScheduleMaxTime value.
- */
- public OffsetDateTime maintenanceAvailableScheduleMaxTime() {
- return this.innerProperties() == null ? null : this.innerProperties().maintenanceAvailableScheduleMaxTime();
- }
-
- /**
- * Get the maintenanceTitle property: The maintenance title.
- *
- * @return the maintenanceTitle value.
- */
- public String maintenanceTitle() {
- return this.innerProperties() == null ? null : this.innerProperties().maintenanceTitle();
- }
-
- /**
- * Get the maintenanceDescription property: The maintenance description.
- *
- * @return the maintenanceDescription value.
- */
- public String maintenanceDescription() {
- return this.innerProperties() == null ? null : this.innerProperties().maintenanceDescription();
- }
-
- /**
- * Get the provisioningState property: Provisioning state of the Maintenance.
- *
- * @return the provisioningState value.
- */
- public MaintenanceProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property innerProperties in model MaintenanceInner"));
- } else {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(MaintenanceInner.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of MaintenanceInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of MaintenanceInner if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the MaintenanceInner.
- */
- public static MaintenanceInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- MaintenanceInner deserializedMaintenanceInner = new MaintenanceInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedMaintenanceInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedMaintenanceInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedMaintenanceInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedMaintenanceInner.innerProperties = MaintenanceProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedMaintenanceInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedMaintenanceInner;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/MaintenanceProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/MaintenanceProperties.java
deleted file mode 100644
index 995c7d7d4ce39..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/MaintenanceProperties.java
+++ /dev/null
@@ -1,270 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.CoreUtils;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceProvisioningState;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceState;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceType;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-import java.time.format.DateTimeFormatter;
-
-/**
- * The properties of a maintenance resource.
- */
-@Fluent
-public final class MaintenanceProperties implements JsonSerializable {
- /*
- * A string defines maintenance type.
- */
- private MaintenanceType maintenanceType;
-
- /*
- * A string describes the maintenance status
- */
- private MaintenanceState maintenanceState;
-
- /*
- * The start time for a maintenance.
- */
- private OffsetDateTime maintenanceStartTime;
-
- /*
- * The end time for a maintenance.
- */
- private OffsetDateTime maintenanceEndTime;
-
- /*
- * The start time for a maintenance execution.
- */
- private OffsetDateTime maintenanceExecutionStartTime;
-
- /*
- * The end time for a maintenance execution.
- */
- private OffsetDateTime maintenanceExecutionEndTime;
-
- /*
- * The min time the maintenance can be rescheduled.
- */
- private OffsetDateTime maintenanceAvailableScheduleMinTime;
-
- /*
- * The max time the maintenance can be rescheduled.
- */
- private OffsetDateTime maintenanceAvailableScheduleMaxTime;
-
- /*
- * The maintenance title.
- */
- private String maintenanceTitle;
-
- /*
- * The maintenance description.
- */
- private String maintenanceDescription;
-
- /*
- * Provisioning state of the Maintenance.
- */
- private MaintenanceProvisioningState provisioningState;
-
- /**
- * Creates an instance of MaintenanceProperties class.
- */
- public MaintenanceProperties() {
- }
-
- /**
- * Get the maintenanceType property: A string defines maintenance type.
- *
- * @return the maintenanceType value.
- */
- public MaintenanceType maintenanceType() {
- return this.maintenanceType;
- }
-
- /**
- * Get the maintenanceState property: A string describes the maintenance status.
- *
- * @return the maintenanceState value.
- */
- public MaintenanceState maintenanceState() {
- return this.maintenanceState;
- }
-
- /**
- * Get the maintenanceStartTime property: The start time for a maintenance.
- *
- * @return the maintenanceStartTime value.
- */
- public OffsetDateTime maintenanceStartTime() {
- return this.maintenanceStartTime;
- }
-
- /**
- * Set the maintenanceStartTime property: The start time for a maintenance.
- *
- * @param maintenanceStartTime the maintenanceStartTime value to set.
- * @return the MaintenanceProperties object itself.
- */
- public MaintenanceProperties withMaintenanceStartTime(OffsetDateTime maintenanceStartTime) {
- this.maintenanceStartTime = maintenanceStartTime;
- return this;
- }
-
- /**
- * Get the maintenanceEndTime property: The end time for a maintenance.
- *
- * @return the maintenanceEndTime value.
- */
- public OffsetDateTime maintenanceEndTime() {
- return this.maintenanceEndTime;
- }
-
- /**
- * Get the maintenanceExecutionStartTime property: The start time for a maintenance execution.
- *
- * @return the maintenanceExecutionStartTime value.
- */
- public OffsetDateTime maintenanceExecutionStartTime() {
- return this.maintenanceExecutionStartTime;
- }
-
- /**
- * Get the maintenanceExecutionEndTime property: The end time for a maintenance execution.
- *
- * @return the maintenanceExecutionEndTime value.
- */
- public OffsetDateTime maintenanceExecutionEndTime() {
- return this.maintenanceExecutionEndTime;
- }
-
- /**
- * Get the maintenanceAvailableScheduleMinTime property: The min time the maintenance can be rescheduled.
- *
- * @return the maintenanceAvailableScheduleMinTime value.
- */
- public OffsetDateTime maintenanceAvailableScheduleMinTime() {
- return this.maintenanceAvailableScheduleMinTime;
- }
-
- /**
- * Get the maintenanceAvailableScheduleMaxTime property: The max time the maintenance can be rescheduled.
- *
- * @return the maintenanceAvailableScheduleMaxTime value.
- */
- public OffsetDateTime maintenanceAvailableScheduleMaxTime() {
- return this.maintenanceAvailableScheduleMaxTime;
- }
-
- /**
- * Get the maintenanceTitle property: The maintenance title.
- *
- * @return the maintenanceTitle value.
- */
- public String maintenanceTitle() {
- return this.maintenanceTitle;
- }
-
- /**
- * Get the maintenanceDescription property: The maintenance description.
- *
- * @return the maintenanceDescription value.
- */
- public String maintenanceDescription() {
- return this.maintenanceDescription;
- }
-
- /**
- * Get the provisioningState property: Provisioning state of the Maintenance.
- *
- * @return the provisioningState value.
- */
- public MaintenanceProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("maintenanceStartTime",
- this.maintenanceStartTime == null
- ? null
- : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.maintenanceStartTime));
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of MaintenanceProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of MaintenanceProperties if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IOException If an error occurs while reading the MaintenanceProperties.
- */
- public static MaintenanceProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- MaintenanceProperties deserializedMaintenanceProperties = new MaintenanceProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("maintenanceType".equals(fieldName)) {
- deserializedMaintenanceProperties.maintenanceType = MaintenanceType.fromString(reader.getString());
- } else if ("maintenanceState".equals(fieldName)) {
- deserializedMaintenanceProperties.maintenanceState
- = MaintenanceState.fromString(reader.getString());
- } else if ("maintenanceStartTime".equals(fieldName)) {
- deserializedMaintenanceProperties.maintenanceStartTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("maintenanceEndTime".equals(fieldName)) {
- deserializedMaintenanceProperties.maintenanceEndTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("maintenanceExecutionStartTime".equals(fieldName)) {
- deserializedMaintenanceProperties.maintenanceExecutionStartTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("maintenanceExecutionEndTime".equals(fieldName)) {
- deserializedMaintenanceProperties.maintenanceExecutionEndTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("maintenanceAvailableScheduleMinTime".equals(fieldName)) {
- deserializedMaintenanceProperties.maintenanceAvailableScheduleMinTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("maintenanceAvailableScheduleMaxTime".equals(fieldName)) {
- deserializedMaintenanceProperties.maintenanceAvailableScheduleMaxTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("maintenanceTitle".equals(fieldName)) {
- deserializedMaintenanceProperties.maintenanceTitle = reader.getString();
- } else if ("maintenanceDescription".equals(fieldName)) {
- deserializedMaintenanceProperties.maintenanceDescription = reader.getString();
- } else if ("provisioningState".equals(fieldName)) {
- deserializedMaintenanceProperties.provisioningState
- = MaintenanceProvisioningState.fromString(reader.getString());
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedMaintenanceProperties;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/MaintenancePropertiesForUpdate.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/MaintenancePropertiesForUpdate.java
deleted file mode 100644
index 70c63230412db..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/MaintenancePropertiesForUpdate.java
+++ /dev/null
@@ -1,101 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.CoreUtils;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-import java.time.format.DateTimeFormatter;
-
-/**
- * The properties of a maintenance update parameter.
- */
-@Fluent
-public final class MaintenancePropertiesForUpdate implements JsonSerializable {
- /*
- * The start time for a maintenance.
- */
- private OffsetDateTime maintenanceStartTime;
-
- /**
- * Creates an instance of MaintenancePropertiesForUpdate class.
- */
- public MaintenancePropertiesForUpdate() {
- }
-
- /**
- * Get the maintenanceStartTime property: The start time for a maintenance.
- *
- * @return the maintenanceStartTime value.
- */
- public OffsetDateTime maintenanceStartTime() {
- return this.maintenanceStartTime;
- }
-
- /**
- * Set the maintenanceStartTime property: The start time for a maintenance.
- *
- * @param maintenanceStartTime the maintenanceStartTime value to set.
- * @return the MaintenancePropertiesForUpdate object itself.
- */
- public MaintenancePropertiesForUpdate withMaintenanceStartTime(OffsetDateTime maintenanceStartTime) {
- this.maintenanceStartTime = maintenanceStartTime;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("maintenanceStartTime",
- this.maintenanceStartTime == null
- ? null
- : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.maintenanceStartTime));
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of MaintenancePropertiesForUpdate from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of MaintenancePropertiesForUpdate if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the MaintenancePropertiesForUpdate.
- */
- public static MaintenancePropertiesForUpdate fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- MaintenancePropertiesForUpdate deserializedMaintenancePropertiesForUpdate
- = new MaintenancePropertiesForUpdate();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("maintenanceStartTime".equals(fieldName)) {
- deserializedMaintenancePropertiesForUpdate.maintenanceStartTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedMaintenancePropertiesForUpdate;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/OperationProgressResultInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/OperationProgressResultInner.java
deleted file mode 100644
index 5792530f69875..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/OperationProgressResultInner.java
+++ /dev/null
@@ -1,237 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.exception.ManagementError;
-import com.azure.core.util.CoreUtils;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.mysqlflexibleserver.models.OperationProgressResponseType;
-import com.azure.resourcemanager.mysqlflexibleserver.models.OperationStatusResult;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-import java.time.format.DateTimeFormatter;
-import java.util.List;
-
-/**
- * Represents Operation Results API Response.
- */
-@Fluent
-public final class OperationProgressResultInner extends OperationStatusResult {
- /*
- * The response properties specific to the operation
- */
- private OperationProgressResponseType properties;
-
- /*
- * Fully qualified ID of the resource against which the original async operation was started.
- */
- private String resourceId;
-
- /**
- * Creates an instance of OperationProgressResultInner class.
- */
- public OperationProgressResultInner() {
- }
-
- /**
- * Get the properties property: The response properties specific to the operation.
- *
- * @return the properties value.
- */
- public OperationProgressResponseType properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: The response properties specific to the operation.
- *
- * @param properties the properties value to set.
- * @return the OperationProgressResultInner object itself.
- */
- public OperationProgressResultInner withProperties(OperationProgressResponseType properties) {
- this.properties = properties;
- return this;
- }
-
- /**
- * Get the resourceId property: Fully qualified ID of the resource against which the original async operation was
- * started.
- *
- * @return the resourceId value.
- */
- @Override
- public String resourceId() {
- return this.resourceId;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public OperationProgressResultInner withId(String id) {
- super.withId(id);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public OperationProgressResultInner withName(String name) {
- super.withName(name);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public OperationProgressResultInner withStatus(String status) {
- super.withStatus(status);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public OperationProgressResultInner withPercentComplete(Float percentComplete) {
- super.withPercentComplete(percentComplete);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public OperationProgressResultInner withStartTime(OffsetDateTime startTime) {
- super.withStartTime(startTime);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public OperationProgressResultInner withEndTime(OffsetDateTime endTime) {
- super.withEndTime(endTime);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public OperationProgressResultInner withOperations(List operations) {
- super.withOperations(operations);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public OperationProgressResultInner withError(ManagementError error) {
- super.withError(error);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- if (properties() != null) {
- properties().validate();
- }
- if (status() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property status in model OperationProgressResultInner"));
- }
- if (operations() != null) {
- operations().forEach(e -> e.validate());
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(OperationProgressResultInner.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("status", status());
- jsonWriter.writeStringField("id", id());
- jsonWriter.writeStringField("name", name());
- jsonWriter.writeNumberField("percentComplete", percentComplete());
- jsonWriter.writeStringField("startTime",
- startTime() == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(startTime()));
- jsonWriter.writeStringField("endTime",
- endTime() == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(endTime()));
- jsonWriter.writeArrayField("operations", operations(), (writer, element) -> writer.writeJson(element));
- jsonWriter.writeJsonField("error", error());
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of OperationProgressResultInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of OperationProgressResultInner if the JsonReader was pointing to an instance of it, or null
- * if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the OperationProgressResultInner.
- */
- public static OperationProgressResultInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- OperationProgressResultInner deserializedOperationProgressResultInner = new OperationProgressResultInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("status".equals(fieldName)) {
- deserializedOperationProgressResultInner.withStatus(reader.getString());
- } else if ("id".equals(fieldName)) {
- deserializedOperationProgressResultInner.withId(reader.getString());
- } else if ("resourceId".equals(fieldName)) {
- deserializedOperationProgressResultInner.resourceId = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedOperationProgressResultInner.withName(reader.getString());
- } else if ("percentComplete".equals(fieldName)) {
- deserializedOperationProgressResultInner
- .withPercentComplete(reader.getNullable(JsonReader::getFloat));
- } else if ("startTime".equals(fieldName)) {
- deserializedOperationProgressResultInner.withStartTime(reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())));
- } else if ("endTime".equals(fieldName)) {
- deserializedOperationProgressResultInner.withEndTime(reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())));
- } else if ("operations".equals(fieldName)) {
- List operations
- = reader.readArray(reader1 -> OperationStatusResult.fromJson(reader1));
- deserializedOperationProgressResultInner.withOperations(operations);
- } else if ("error".equals(fieldName)) {
- deserializedOperationProgressResultInner.withError(ManagementError.fromJson(reader));
- } else if ("properties".equals(fieldName)) {
- deserializedOperationProgressResultInner.properties
- = OperationProgressResponseType.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedOperationProgressResultInner;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/OperationStatusExtendedResultInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/OperationStatusExtendedResultInner.java
deleted file mode 100644
index 788cc02e22185..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/OperationStatusExtendedResultInner.java
+++ /dev/null
@@ -1,235 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.exception.ManagementError;
-import com.azure.core.util.CoreUtils;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.mysqlflexibleserver.models.OperationStatusResult;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-import java.time.format.DateTimeFormatter;
-import java.util.List;
-import java.util.Map;
-
-/**
- * Represents Operation Results API Response.
- */
-@Fluent
-public final class OperationStatusExtendedResultInner extends OperationStatusResult {
- /*
- * The extended properties of Operation Results
- */
- private Map properties;
-
- /*
- * Fully qualified ID of the resource against which the original async operation was started.
- */
- private String resourceId;
-
- /**
- * Creates an instance of OperationStatusExtendedResultInner class.
- */
- public OperationStatusExtendedResultInner() {
- }
-
- /**
- * Get the properties property: The extended properties of Operation Results.
- *
- * @return the properties value.
- */
- public Map properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: The extended properties of Operation Results.
- *
- * @param properties the properties value to set.
- * @return the OperationStatusExtendedResultInner object itself.
- */
- public OperationStatusExtendedResultInner withProperties(Map properties) {
- this.properties = properties;
- return this;
- }
-
- /**
- * Get the resourceId property: Fully qualified ID of the resource against which the original async operation was
- * started.
- *
- * @return the resourceId value.
- */
- @Override
- public String resourceId() {
- return this.resourceId;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public OperationStatusExtendedResultInner withId(String id) {
- super.withId(id);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public OperationStatusExtendedResultInner withName(String name) {
- super.withName(name);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public OperationStatusExtendedResultInner withStatus(String status) {
- super.withStatus(status);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public OperationStatusExtendedResultInner withPercentComplete(Float percentComplete) {
- super.withPercentComplete(percentComplete);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public OperationStatusExtendedResultInner withStartTime(OffsetDateTime startTime) {
- super.withStartTime(startTime);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public OperationStatusExtendedResultInner withEndTime(OffsetDateTime endTime) {
- super.withEndTime(endTime);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public OperationStatusExtendedResultInner withOperations(List operations) {
- super.withOperations(operations);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public OperationStatusExtendedResultInner withError(ManagementError error) {
- super.withError(error);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- if (status() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property status in model OperationStatusExtendedResultInner"));
- }
- if (operations() != null) {
- operations().forEach(e -> e.validate());
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(OperationStatusExtendedResultInner.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("status", status());
- jsonWriter.writeStringField("id", id());
- jsonWriter.writeStringField("name", name());
- jsonWriter.writeNumberField("percentComplete", percentComplete());
- jsonWriter.writeStringField("startTime",
- startTime() == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(startTime()));
- jsonWriter.writeStringField("endTime",
- endTime() == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(endTime()));
- jsonWriter.writeArrayField("operations", operations(), (writer, element) -> writer.writeJson(element));
- jsonWriter.writeJsonField("error", error());
- jsonWriter.writeMapField("properties", this.properties, (writer, element) -> writer.writeUntyped(element));
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of OperationStatusExtendedResultInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of OperationStatusExtendedResultInner if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the OperationStatusExtendedResultInner.
- */
- public static OperationStatusExtendedResultInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- OperationStatusExtendedResultInner deserializedOperationStatusExtendedResultInner
- = new OperationStatusExtendedResultInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("status".equals(fieldName)) {
- deserializedOperationStatusExtendedResultInner.withStatus(reader.getString());
- } else if ("id".equals(fieldName)) {
- deserializedOperationStatusExtendedResultInner.withId(reader.getString());
- } else if ("resourceId".equals(fieldName)) {
- deserializedOperationStatusExtendedResultInner.resourceId = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedOperationStatusExtendedResultInner.withName(reader.getString());
- } else if ("percentComplete".equals(fieldName)) {
- deserializedOperationStatusExtendedResultInner
- .withPercentComplete(reader.getNullable(JsonReader::getFloat));
- } else if ("startTime".equals(fieldName)) {
- deserializedOperationStatusExtendedResultInner.withStartTime(reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())));
- } else if ("endTime".equals(fieldName)) {
- deserializedOperationStatusExtendedResultInner.withEndTime(reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())));
- } else if ("operations".equals(fieldName)) {
- List operations
- = reader.readArray(reader1 -> OperationStatusResult.fromJson(reader1));
- deserializedOperationStatusExtendedResultInner.withOperations(operations);
- } else if ("error".equals(fieldName)) {
- deserializedOperationStatusExtendedResultInner.withError(ManagementError.fromJson(reader));
- } else if ("properties".equals(fieldName)) {
- Map properties = reader.readMap(reader1 -> reader1.readUntyped());
- deserializedOperationStatusExtendedResultInner.properties = properties;
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedOperationStatusExtendedResultInner;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionProperties.java
deleted file mode 100644
index 19ddbfdc2a73c..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionProperties.java
+++ /dev/null
@@ -1,179 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.mysqlflexibleserver.models.PrivateEndpoint;
-import com.azure.resourcemanager.mysqlflexibleserver.models.PrivateEndpointConnectionProvisioningState;
-import com.azure.resourcemanager.mysqlflexibleserver.models.PrivateLinkServiceConnectionState;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * Properties of the private endpoint connection.
- */
-@Fluent
-public final class PrivateEndpointConnectionProperties
- implements JsonSerializable {
- /*
- * The group ids for the private endpoint resource.
- */
- private List groupIds;
-
- /*
- * The private endpoint resource.
- */
- private PrivateEndpoint privateEndpoint;
-
- /*
- * A collection of information about the state of the connection between service consumer and provider.
- */
- private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
-
- /*
- * The provisioning state of the private endpoint connection resource.
- */
- private PrivateEndpointConnectionProvisioningState provisioningState;
-
- /**
- * Creates an instance of PrivateEndpointConnectionProperties class.
- */
- public PrivateEndpointConnectionProperties() {
- }
-
- /**
- * Get the groupIds property: The group ids for the private endpoint resource.
- *
- * @return the groupIds value.
- */
- public List groupIds() {
- return this.groupIds;
- }
-
- /**
- * Get the privateEndpoint property: The private endpoint resource.
- *
- * @return the privateEndpoint value.
- */
- public PrivateEndpoint privateEndpoint() {
- return this.privateEndpoint;
- }
-
- /**
- * Set the privateEndpoint property: The private endpoint resource.
- *
- * @param privateEndpoint the privateEndpoint value to set.
- * @return the PrivateEndpointConnectionProperties object itself.
- */
- public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
- this.privateEndpoint = privateEndpoint;
- return this;
- }
-
- /**
- * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
- *
- * @return the privateLinkServiceConnectionState value.
- */
- public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
- return this.privateLinkServiceConnectionState;
- }
-
- /**
- * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
- *
- * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
- * @return the PrivateEndpointConnectionProperties object itself.
- */
- public PrivateEndpointConnectionProperties
- withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
- this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
- return this;
- }
-
- /**
- * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
- *
- * @return the provisioningState value.
- */
- public PrivateEndpointConnectionProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (privateEndpoint() != null) {
- privateEndpoint().validate();
- }
- if (privateLinkServiceConnectionState() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property privateLinkServiceConnectionState in model PrivateEndpointConnectionProperties"));
- } else {
- privateLinkServiceConnectionState().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionProperties.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("privateLinkServiceConnectionState", this.privateLinkServiceConnectionState);
- jsonWriter.writeJsonField("privateEndpoint", this.privateEndpoint);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of PrivateEndpointConnectionProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of PrivateEndpointConnectionProperties if the JsonReader was pointing to an instance of it,
- * or null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the PrivateEndpointConnectionProperties.
- */
- public static PrivateEndpointConnectionProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- PrivateEndpointConnectionProperties deserializedPrivateEndpointConnectionProperties
- = new PrivateEndpointConnectionProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("privateLinkServiceConnectionState".equals(fieldName)) {
- deserializedPrivateEndpointConnectionProperties.privateLinkServiceConnectionState
- = PrivateLinkServiceConnectionState.fromJson(reader);
- } else if ("groupIds".equals(fieldName)) {
- List groupIds = reader.readArray(reader1 -> reader1.getString());
- deserializedPrivateEndpointConnectionProperties.groupIds = groupIds;
- } else if ("privateEndpoint".equals(fieldName)) {
- deserializedPrivateEndpointConnectionProperties.privateEndpoint = PrivateEndpoint.fromJson(reader);
- } else if ("provisioningState".equals(fieldName)) {
- deserializedPrivateEndpointConnectionProperties.provisioningState
- = PrivateEndpointConnectionProvisioningState.fromString(reader.getString());
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedPrivateEndpointConnectionProperties;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupInner.java
index 9a9bfd57250a3..fb2bcb081b039 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupInner.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupInner.java
@@ -24,7 +24,7 @@ public final class ServerBackupInner extends ProxyResource {
private ServerBackupProperties innerProperties;
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * The system metadata relating to this resource.
*/
private SystemData systemData;
@@ -59,7 +59,7 @@ private ServerBackupProperties innerProperties() {
}
/**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Get the systemData property: The system metadata relating to this resource.
*
* @return the systemData value.
*/
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupPropertiesV2.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupPropertiesV2.java
deleted file mode 100644
index 7b6cc175c67c7..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupPropertiesV2.java
+++ /dev/null
@@ -1,201 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.CoreUtils;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.mysqlflexibleserver.models.BackupType;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ProvisioningState;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-import java.time.format.DateTimeFormatter;
-
-/**
- * The properties of a server backup.
- */
-@Fluent
-public final class ServerBackupPropertiesV2 implements JsonSerializable {
- /*
- * Backup name
- */
- private String backupNameV2;
-
- /*
- * The backupType property.
- */
- private BackupType backupType;
-
- /*
- * Backup completed time (ISO8601 format).
- */
- private OffsetDateTime completedTime;
-
- /*
- * Backup source
- */
- private String source;
-
- /*
- * The provisioning state of backup resource.
- */
- private ProvisioningState provisioningState;
-
- /**
- * Creates an instance of ServerBackupPropertiesV2 class.
- */
- public ServerBackupPropertiesV2() {
- }
-
- /**
- * Get the backupNameV2 property: Backup name.
- *
- * @return the backupNameV2 value.
- */
- public String backupNameV2() {
- return this.backupNameV2;
- }
-
- /**
- * Set the backupNameV2 property: Backup name.
- *
- * @param backupNameV2 the backupNameV2 value to set.
- * @return the ServerBackupPropertiesV2 object itself.
- */
- public ServerBackupPropertiesV2 withBackupNameV2(String backupNameV2) {
- this.backupNameV2 = backupNameV2;
- return this;
- }
-
- /**
- * Get the backupType property: The backupType property.
- *
- * @return the backupType value.
- */
- public BackupType backupType() {
- return this.backupType;
- }
-
- /**
- * Set the backupType property: The backupType property.
- *
- * @param backupType the backupType value to set.
- * @return the ServerBackupPropertiesV2 object itself.
- */
- public ServerBackupPropertiesV2 withBackupType(BackupType backupType) {
- this.backupType = backupType;
- return this;
- }
-
- /**
- * Get the completedTime property: Backup completed time (ISO8601 format).
- *
- * @return the completedTime value.
- */
- public OffsetDateTime completedTime() {
- return this.completedTime;
- }
-
- /**
- * Set the completedTime property: Backup completed time (ISO8601 format).
- *
- * @param completedTime the completedTime value to set.
- * @return the ServerBackupPropertiesV2 object itself.
- */
- public ServerBackupPropertiesV2 withCompletedTime(OffsetDateTime completedTime) {
- this.completedTime = completedTime;
- return this;
- }
-
- /**
- * Get the source property: Backup source.
- *
- * @return the source value.
- */
- public String source() {
- return this.source;
- }
-
- /**
- * Set the source property: Backup source.
- *
- * @param source the source value to set.
- * @return the ServerBackupPropertiesV2 object itself.
- */
- public ServerBackupPropertiesV2 withSource(String source) {
- this.source = source;
- return this;
- }
-
- /**
- * Get the provisioningState property: The provisioning state of backup resource.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("backupNameV2", this.backupNameV2);
- jsonWriter.writeStringField("backupType", this.backupType == null ? null : this.backupType.toString());
- jsonWriter.writeStringField("completedTime",
- this.completedTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.completedTime));
- jsonWriter.writeStringField("source", this.source);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ServerBackupPropertiesV2 from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ServerBackupPropertiesV2 if the JsonReader was pointing to an instance of it, or null if
- * it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the ServerBackupPropertiesV2.
- */
- public static ServerBackupPropertiesV2 fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ServerBackupPropertiesV2 deserializedServerBackupPropertiesV2 = new ServerBackupPropertiesV2();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("backupNameV2".equals(fieldName)) {
- deserializedServerBackupPropertiesV2.backupNameV2 = reader.getString();
- } else if ("backupType".equals(fieldName)) {
- deserializedServerBackupPropertiesV2.backupType = BackupType.fromString(reader.getString());
- } else if ("completedTime".equals(fieldName)) {
- deserializedServerBackupPropertiesV2.completedTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("source".equals(fieldName)) {
- deserializedServerBackupPropertiesV2.source = reader.getString();
- } else if ("provisioningState".equals(fieldName)) {
- deserializedServerBackupPropertiesV2.provisioningState
- = ProvisioningState.fromString(reader.getString());
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedServerBackupPropertiesV2;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupV2Inner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupV2Inner.java
deleted file mode 100644
index e916cd8a708c2..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupV2Inner.java
+++ /dev/null
@@ -1,258 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.mysqlflexibleserver.models.BackupType;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ProvisioningState;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-
-/**
- * Server backup properties.
- */
-@Fluent
-public final class ServerBackupV2Inner extends ProxyResource {
- /*
- * The properties of a server backup.
- */
- private ServerBackupPropertiesV2 innerProperties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of ServerBackupV2Inner class.
- */
- public ServerBackupV2Inner() {
- }
-
- /**
- * Get the innerProperties property: The properties of a server backup.
- *
- * @return the innerProperties value.
- */
- private ServerBackupPropertiesV2 innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * Get the backupNameV2 property: Backup name.
- *
- * @return the backupNameV2 value.
- */
- public String backupNameV2() {
- return this.innerProperties() == null ? null : this.innerProperties().backupNameV2();
- }
-
- /**
- * Set the backupNameV2 property: Backup name.
- *
- * @param backupNameV2 the backupNameV2 value to set.
- * @return the ServerBackupV2Inner object itself.
- */
- public ServerBackupV2Inner withBackupNameV2(String backupNameV2) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerBackupPropertiesV2();
- }
- this.innerProperties().withBackupNameV2(backupNameV2);
- return this;
- }
-
- /**
- * Get the backupType property: The backupType property.
- *
- * @return the backupType value.
- */
- public BackupType backupType() {
- return this.innerProperties() == null ? null : this.innerProperties().backupType();
- }
-
- /**
- * Set the backupType property: The backupType property.
- *
- * @param backupType the backupType value to set.
- * @return the ServerBackupV2Inner object itself.
- */
- public ServerBackupV2Inner withBackupType(BackupType backupType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerBackupPropertiesV2();
- }
- this.innerProperties().withBackupType(backupType);
- return this;
- }
-
- /**
- * Get the completedTime property: Backup completed time (ISO8601 format).
- *
- * @return the completedTime value.
- */
- public OffsetDateTime completedTime() {
- return this.innerProperties() == null ? null : this.innerProperties().completedTime();
- }
-
- /**
- * Set the completedTime property: Backup completed time (ISO8601 format).
- *
- * @param completedTime the completedTime value to set.
- * @return the ServerBackupV2Inner object itself.
- */
- public ServerBackupV2Inner withCompletedTime(OffsetDateTime completedTime) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerBackupPropertiesV2();
- }
- this.innerProperties().withCompletedTime(completedTime);
- return this;
- }
-
- /**
- * Get the source property: Backup source.
- *
- * @return the source value.
- */
- public String source() {
- return this.innerProperties() == null ? null : this.innerProperties().source();
- }
-
- /**
- * Set the source property: Backup source.
- *
- * @param source the source value to set.
- * @return the ServerBackupV2Inner object itself.
- */
- public ServerBackupV2Inner withSource(String source) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerBackupPropertiesV2();
- }
- this.innerProperties().withSource(source);
- return this;
- }
-
- /**
- * Get the provisioningState property: The provisioning state of backup resource.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ServerBackupV2Inner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ServerBackupV2Inner if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the ServerBackupV2Inner.
- */
- public static ServerBackupV2Inner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ServerBackupV2Inner deserializedServerBackupV2Inner = new ServerBackupV2Inner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedServerBackupV2Inner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedServerBackupV2Inner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedServerBackupV2Inner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedServerBackupV2Inner.innerProperties = ServerBackupPropertiesV2.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedServerBackupV2Inner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedServerBackupV2Inner;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerInner.java
index d50518bed3b80..508feeccbf1a2 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerInner.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerInner.java
@@ -14,19 +14,16 @@
import com.azure.resourcemanager.mysqlflexibleserver.models.CreateMode;
import com.azure.resourcemanager.mysqlflexibleserver.models.DataEncryption;
import com.azure.resourcemanager.mysqlflexibleserver.models.HighAvailability;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ImportSourceProperties;
+import com.azure.resourcemanager.mysqlflexibleserver.models.Identity;
import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceWindow;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MySqlServerIdentity;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MySqlServerSku;
import com.azure.resourcemanager.mysqlflexibleserver.models.Network;
-import com.azure.resourcemanager.mysqlflexibleserver.models.PrivateEndpointConnection;
import com.azure.resourcemanager.mysqlflexibleserver.models.ReplicationRole;
import com.azure.resourcemanager.mysqlflexibleserver.models.ServerState;
import com.azure.resourcemanager.mysqlflexibleserver.models.ServerVersion;
+import com.azure.resourcemanager.mysqlflexibleserver.models.Sku;
import com.azure.resourcemanager.mysqlflexibleserver.models.Storage;
import java.io.IOException;
import java.time.OffsetDateTime;
-import java.util.List;
import java.util.Map;
/**
@@ -37,12 +34,12 @@ public final class ServerInner extends Resource {
/*
* The cmk identity for the server.
*/
- private MySqlServerIdentity identity;
+ private Identity identity;
/*
* The SKU (pricing tier) of the server.
*/
- private MySqlServerSku sku;
+ private Sku sku;
/*
* Properties of the server.
@@ -50,7 +47,7 @@ public final class ServerInner extends Resource {
private ServerProperties innerProperties;
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * The system metadata relating to this resource.
*/
private SystemData systemData;
@@ -80,7 +77,7 @@ public ServerInner() {
*
* @return the identity value.
*/
- public MySqlServerIdentity identity() {
+ public Identity identity() {
return this.identity;
}
@@ -90,7 +87,7 @@ public MySqlServerIdentity identity() {
* @param identity the identity value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withIdentity(MySqlServerIdentity identity) {
+ public ServerInner withIdentity(Identity identity) {
this.identity = identity;
return this;
}
@@ -100,7 +97,7 @@ public ServerInner withIdentity(MySqlServerIdentity identity) {
*
* @return the sku value.
*/
- public MySqlServerSku sku() {
+ public Sku sku() {
return this.sku;
}
@@ -110,7 +107,7 @@ public MySqlServerSku sku() {
* @param sku the sku value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withSku(MySqlServerSku sku) {
+ public ServerInner withSku(Sku sku) {
this.sku = sku;
return this;
}
@@ -125,7 +122,7 @@ private ServerProperties innerProperties() {
}
/**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Get the systemData property: The system metadata relating to this resource.
*
* @return the systemData value.
*/
@@ -513,15 +510,6 @@ public ServerInner withNetwork(Network network) {
return this;
}
- /**
- * Get the privateEndpointConnections property: PrivateEndpointConnections related properties of a server.
- *
- * @return the privateEndpointConnections value.
- */
- public List privateEndpointConnections() {
- return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections();
- }
-
/**
* Get the maintenanceWindow property: Maintenance window of a server.
*
@@ -545,29 +533,6 @@ public ServerInner withMaintenanceWindow(MaintenanceWindow maintenanceWindow) {
return this;
}
- /**
- * Get the importSourceProperties property: Source properties for import from storage.
- *
- * @return the importSourceProperties value.
- */
- public ImportSourceProperties importSourceProperties() {
- return this.innerProperties() == null ? null : this.innerProperties().importSourceProperties();
- }
-
- /**
- * Set the importSourceProperties property: Source properties for import from storage.
- *
- * @param importSourceProperties the importSourceProperties value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withImportSourceProperties(ImportSourceProperties importSourceProperties) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerProperties();
- }
- this.innerProperties().withImportSourceProperties(importSourceProperties);
- return this;
- }
-
/**
* Validates the instance.
*
@@ -627,9 +592,9 @@ public static ServerInner fromJson(JsonReader jsonReader) throws IOException {
Map tags = reader.readMap(reader1 -> reader1.getString());
deserializedServerInner.withTags(tags);
} else if ("identity".equals(fieldName)) {
- deserializedServerInner.identity = MySqlServerIdentity.fromJson(reader);
+ deserializedServerInner.identity = Identity.fromJson(reader);
} else if ("sku".equals(fieldName)) {
- deserializedServerInner.sku = MySqlServerSku.fromJson(reader);
+ deserializedServerInner.sku = Sku.fromJson(reader);
} else if ("properties".equals(fieldName)) {
deserializedServerInner.innerProperties = ServerProperties.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerProperties.java
index 04d68b4f983e2..6dd62aff6100f 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerProperties.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerProperties.java
@@ -14,10 +14,8 @@
import com.azure.resourcemanager.mysqlflexibleserver.models.CreateMode;
import com.azure.resourcemanager.mysqlflexibleserver.models.DataEncryption;
import com.azure.resourcemanager.mysqlflexibleserver.models.HighAvailability;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ImportSourceProperties;
import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceWindow;
import com.azure.resourcemanager.mysqlflexibleserver.models.Network;
-import com.azure.resourcemanager.mysqlflexibleserver.models.PrivateEndpointConnection;
import com.azure.resourcemanager.mysqlflexibleserver.models.ReplicationRole;
import com.azure.resourcemanager.mysqlflexibleserver.models.ServerState;
import com.azure.resourcemanager.mysqlflexibleserver.models.ServerVersion;
@@ -25,7 +23,6 @@
import java.io.IOException;
import java.time.OffsetDateTime;
import java.time.format.DateTimeFormatter;
-import java.util.List;
/**
* The properties of a server.
@@ -113,21 +110,11 @@ public final class ServerProperties implements JsonSerializable privateEndpointConnections;
-
/*
* Maintenance window of a server.
*/
private MaintenanceWindow maintenanceWindow;
- /*
- * Source properties for import from storage.
- */
- private ImportSourceProperties importSourceProperties;
-
/**
* Creates an instance of ServerProperties class.
*/
@@ -427,15 +414,6 @@ public ServerProperties withNetwork(Network network) {
return this;
}
- /**
- * Get the privateEndpointConnections property: PrivateEndpointConnections related properties of a server.
- *
- * @return the privateEndpointConnections value.
- */
- public List privateEndpointConnections() {
- return this.privateEndpointConnections;
- }
-
/**
* Get the maintenanceWindow property: Maintenance window of a server.
*
@@ -456,26 +434,6 @@ public ServerProperties withMaintenanceWindow(MaintenanceWindow maintenanceWindo
return this;
}
- /**
- * Get the importSourceProperties property: Source properties for import from storage.
- *
- * @return the importSourceProperties value.
- */
- public ImportSourceProperties importSourceProperties() {
- return this.importSourceProperties;
- }
-
- /**
- * Set the importSourceProperties property: Source properties for import from storage.
- *
- * @param importSourceProperties the importSourceProperties value to set.
- * @return the ServerProperties object itself.
- */
- public ServerProperties withImportSourceProperties(ImportSourceProperties importSourceProperties) {
- this.importSourceProperties = importSourceProperties;
- return this;
- }
-
/**
* Validates the instance.
*
@@ -497,15 +455,9 @@ public void validate() {
if (network() != null) {
network().validate();
}
- if (privateEndpointConnections() != null) {
- privateEndpointConnections().forEach(e -> e.validate());
- }
if (maintenanceWindow() != null) {
maintenanceWindow().validate();
}
- if (importSourceProperties() != null) {
- importSourceProperties().validate();
- }
}
/**
@@ -532,7 +484,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeJsonField("highAvailability", this.highAvailability);
jsonWriter.writeJsonField("network", this.network);
jsonWriter.writeJsonField("maintenanceWindow", this.maintenanceWindow);
- jsonWriter.writeJsonField("importSourceProperties", this.importSourceProperties);
return jsonWriter.writeEndObject();
}
@@ -584,14 +535,8 @@ public static ServerProperties fromJson(JsonReader jsonReader) throws IOExceptio
deserializedServerProperties.highAvailability = HighAvailability.fromJson(reader);
} else if ("network".equals(fieldName)) {
deserializedServerProperties.network = Network.fromJson(reader);
- } else if ("privateEndpointConnections".equals(fieldName)) {
- List privateEndpointConnections
- = reader.readArray(reader1 -> PrivateEndpointConnection.fromJson(reader1));
- deserializedServerProperties.privateEndpointConnections = privateEndpointConnections;
} else if ("maintenanceWindow".equals(fieldName)) {
deserializedServerProperties.maintenanceWindow = MaintenanceWindow.fromJson(reader);
- } else if ("importSourceProperties".equals(fieldName)) {
- deserializedServerProperties.importSourceProperties = ImportSourceProperties.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerPropertiesForUpdate.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerPropertiesForUpdate.java
index 49dddaa9514e8..e4db5bc6ca0e3 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerPropertiesForUpdate.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerPropertiesForUpdate.java
@@ -13,9 +13,7 @@
import com.azure.resourcemanager.mysqlflexibleserver.models.DataEncryption;
import com.azure.resourcemanager.mysqlflexibleserver.models.HighAvailability;
import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceWindow;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Network;
import com.azure.resourcemanager.mysqlflexibleserver.models.ReplicationRole;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerVersion;
import com.azure.resourcemanager.mysqlflexibleserver.models.Storage;
import java.io.IOException;
@@ -29,11 +27,6 @@ public final class ServerPropertiesForUpdate implements JsonSerializable {
- /*
- * The response properties of a pre backup operation.
- */
- private ValidateBackupResponseProperties innerProperties;
-
- /**
- * Creates an instance of ValidateBackupResponseInner class.
- */
- public ValidateBackupResponseInner() {
- }
-
- /**
- * Get the innerProperties property: The response properties of a pre backup operation.
- *
- * @return the innerProperties value.
- */
- private ValidateBackupResponseProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the numberOfContainers property: Estimated no of storage containers required for resource data to be backed
- * up.
- *
- * @return the numberOfContainers value.
- */
- public Integer numberOfContainers() {
- return this.innerProperties() == null ? null : this.innerProperties().numberOfContainers();
- }
-
- /**
- * Set the numberOfContainers property: Estimated no of storage containers required for resource data to be backed
- * up.
- *
- * @param numberOfContainers the numberOfContainers value to set.
- * @return the ValidateBackupResponseInner object itself.
- */
- public ValidateBackupResponseInner withNumberOfContainers(Integer numberOfContainers) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ValidateBackupResponseProperties();
- }
- this.innerProperties().withNumberOfContainers(numberOfContainers);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ValidateBackupResponseInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ValidateBackupResponseInner if the JsonReader was pointing to an instance of it, or null
- * if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the ValidateBackupResponseInner.
- */
- public static ValidateBackupResponseInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ValidateBackupResponseInner deserializedValidateBackupResponseInner = new ValidateBackupResponseInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("properties".equals(fieldName)) {
- deserializedValidateBackupResponseInner.innerProperties
- = ValidateBackupResponseProperties.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedValidateBackupResponseInner;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ValidateBackupResponseProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ValidateBackupResponseProperties.java
deleted file mode 100644
index a09825eb03a74..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ValidateBackupResponseProperties.java
+++ /dev/null
@@ -1,97 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * ValidateBackup Response Properties.
- */
-@Fluent
-public final class ValidateBackupResponseProperties implements JsonSerializable {
- /*
- * Estimated no of storage containers required for resource data to be backed up.
- */
- private Integer numberOfContainers;
-
- /**
- * Creates an instance of ValidateBackupResponseProperties class.
- */
- public ValidateBackupResponseProperties() {
- }
-
- /**
- * Get the numberOfContainers property: Estimated no of storage containers required for resource data to be backed
- * up.
- *
- * @return the numberOfContainers value.
- */
- public Integer numberOfContainers() {
- return this.numberOfContainers;
- }
-
- /**
- * Set the numberOfContainers property: Estimated no of storage containers required for resource data to be backed
- * up.
- *
- * @param numberOfContainers the numberOfContainers value to set.
- * @return the ValidateBackupResponseProperties object itself.
- */
- public ValidateBackupResponseProperties withNumberOfContainers(Integer numberOfContainers) {
- this.numberOfContainers = numberOfContainers;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeNumberField("numberOfContainers", this.numberOfContainers);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ValidateBackupResponseProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ValidateBackupResponseProperties if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the ValidateBackupResponseProperties.
- */
- public static ValidateBackupResponseProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ValidateBackupResponseProperties deserializedValidateBackupResponseProperties
- = new ValidateBackupResponseProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("numberOfContainers".equals(fieldName)) {
- deserializedValidateBackupResponseProperties.numberOfContainers
- = reader.getNullable(JsonReader::getInt);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedValidateBackupResponseProperties;
- });
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvancedThreatProtectionImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvancedThreatProtectionImpl.java
deleted file mode 100644
index f16ea1cbff87f..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvancedThreatProtectionImpl.java
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.AdvancedThreatProtectionInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtection;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionProvisioningState;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionState;
-import java.time.OffsetDateTime;
-
-public final class AdvancedThreatProtectionImpl implements AdvancedThreatProtection {
- private AdvancedThreatProtectionInner innerObject;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
-
- AdvancedThreatProtectionImpl(AdvancedThreatProtectionInner innerObject,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager 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 SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public OffsetDateTime creationTime() {
- return this.innerModel().creationTime();
- }
-
- public AdvancedThreatProtectionState state() {
- return this.innerModel().state();
- }
-
- public AdvancedThreatProtectionProvisioningState provisioningState() {
- return this.innerModel().provisioningState();
- }
-
- public AdvancedThreatProtectionInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvancedThreatProtectionSettingsClientImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvancedThreatProtectionSettingsClientImpl.java
deleted file mode 100644
index 851a980aec005..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvancedThreatProtectionSettingsClientImpl.java
+++ /dev/null
@@ -1,990 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.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.Patch;
-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.mysqlflexibleserver.fluent.AdvancedThreatProtectionSettingsClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.AdvancedThreatProtectionInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionForUpdate;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionListResult;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionName;
-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 AdvancedThreatProtectionSettingsClient.
- */
-public final class AdvancedThreatProtectionSettingsClientImpl implements AdvancedThreatProtectionSettingsClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final AdvancedThreatProtectionSettingsService service;
-
- /**
- * The service client containing this operation class.
- */
- private final MySqlManagementClientImpl client;
-
- /**
- * Initializes an instance of AdvancedThreatProtectionSettingsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- AdvancedThreatProtectionSettingsClientImpl(MySqlManagementClientImpl client) {
- this.service = RestProxy.create(AdvancedThreatProtectionSettingsService.class, client.getHttpPipeline(),
- client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for MySqlManagementClientAdvancedThreatProtectionSettings to be used by
- * the proxy service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "MySqlManagementClien")
- public interface AdvancedThreatProtectionSettingsService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serverName") String serverName,
- @PathParam("advancedThreatProtectionName") AdvancedThreatProtectionName advancedThreatProtectionName,
- @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serverName") String serverName,
- @PathParam("advancedThreatProtectionName") AdvancedThreatProtectionName advancedThreatProtectionName,
- @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") AdvancedThreatProtectionForUpdate parameters,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}")
- @ExpectedResponses({ 200, 201, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> updatePut(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serverName") String serverName,
- @PathParam("advancedThreatProtectionName") AdvancedThreatProtectionName advancedThreatProtectionName,
- @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") AdvancedThreatProtectionInner parameters,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/advancedThreatProtectionSettings")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serverName") String serverName,
- @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
- @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);
- }
-
- /**
- * Get a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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's Advanced Threat Protection state along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName,
- String serverName, AdvancedThreatProtectionName advancedThreatProtectionName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (advancedThreatProtectionName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter advancedThreatProtectionName 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."));
- }
- final String apiVersion = "2023-12-30";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, serverName,
- advancedThreatProtectionName, this.client.getSubscriptionId(), apiVersion, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @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 server's Advanced Threat Protection state along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName,
- String serverName, AdvancedThreatProtectionName advancedThreatProtectionName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (advancedThreatProtectionName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter advancedThreatProtectionName 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."));
- }
- final String apiVersion = "2023-12-30";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), resourceGroupName, serverName, advancedThreatProtectionName,
- this.client.getSubscriptionId(), apiVersion, accept, context);
- }
-
- /**
- * Get a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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's Advanced Threat Protection state on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName) {
- return getWithResponseAsync(resourceGroupName, serverName, advancedThreatProtectionName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Get a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @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 server's Advanced Threat Protection state along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, Context context) {
- return getWithResponseAsync(resourceGroupName, serverName, advancedThreatProtectionName, context).block();
- }
-
- /**
- * Get a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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's Advanced Threat Protection state.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public AdvancedThreatProtectionInner get(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName) {
- return getWithResponse(resourceGroupName, serverName, advancedThreatProtectionName, Context.NONE).getValue();
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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's Advanced Threat Protection along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionForUpdate parameters) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (advancedThreatProtectionName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter advancedThreatProtectionName 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 (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String apiVersion = "2023-12-30";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.update(this.client.getEndpoint(), resourceGroupName, serverName,
- advancedThreatProtectionName, this.client.getSubscriptionId(), apiVersion, parameters, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @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 server's Advanced Threat Protection along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionForUpdate parameters,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (advancedThreatProtectionName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter advancedThreatProtectionName 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 (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String apiVersion = "2023-12-30";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), resourceGroupName, serverName, advancedThreatProtectionName,
- this.client.getSubscriptionId(), apiVersion, parameters, accept, context);
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 a server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, AdvancedThreatProtectionInner> beginUpdateAsync(
- String resourceGroupName, String serverName, AdvancedThreatProtectionName advancedThreatProtectionName,
- AdvancedThreatProtectionForUpdate parameters) {
- Mono>> mono
- = updateWithResponseAsync(resourceGroupName, serverName, advancedThreatProtectionName, parameters);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), AdvancedThreatProtectionInner.class, AdvancedThreatProtectionInner.class,
- this.client.getContext());
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @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 a server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, AdvancedThreatProtectionInner> beginUpdateAsync(
- String resourceGroupName, String serverName, AdvancedThreatProtectionName advancedThreatProtectionName,
- AdvancedThreatProtectionForUpdate parameters, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = updateWithResponseAsync(resourceGroupName, serverName, advancedThreatProtectionName, parameters, context);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), AdvancedThreatProtectionInner.class, AdvancedThreatProtectionInner.class,
- context);
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 a server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, AdvancedThreatProtectionInner> beginUpdate(
- String resourceGroupName, String serverName, AdvancedThreatProtectionName advancedThreatProtectionName,
- AdvancedThreatProtectionForUpdate parameters) {
- return this.beginUpdateAsync(resourceGroupName, serverName, advancedThreatProtectionName, parameters)
- .getSyncPoller();
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @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 a server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, AdvancedThreatProtectionInner> beginUpdate(
- String resourceGroupName, String serverName, AdvancedThreatProtectionName advancedThreatProtectionName,
- AdvancedThreatProtectionForUpdate parameters, Context context) {
- return this.beginUpdateAsync(resourceGroupName, serverName, advancedThreatProtectionName, parameters, context)
- .getSyncPoller();
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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's Advanced Threat Protection on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionForUpdate parameters) {
- return beginUpdateAsync(resourceGroupName, serverName, advancedThreatProtectionName, parameters).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @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 server's Advanced Threat Protection on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionForUpdate parameters,
- Context context) {
- return beginUpdateAsync(resourceGroupName, serverName, advancedThreatProtectionName, parameters, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public AdvancedThreatProtectionInner update(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionForUpdate parameters) {
- return updateAsync(resourceGroupName, serverName, advancedThreatProtectionName, parameters).block();
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @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 server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public AdvancedThreatProtectionInner update(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionForUpdate parameters,
- Context context) {
- return updateAsync(resourceGroupName, serverName, advancedThreatProtectionName, parameters, context).block();
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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's Advanced Threat Protection along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updatePutWithResponseAsync(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionInner parameters) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (advancedThreatProtectionName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter advancedThreatProtectionName 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 (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String apiVersion = "2023-12-30";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.updatePut(this.client.getEndpoint(), resourceGroupName, serverName,
- advancedThreatProtectionName, this.client.getSubscriptionId(), apiVersion, parameters, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @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 server's Advanced Threat Protection along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updatePutWithResponseAsync(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionInner parameters,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (advancedThreatProtectionName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter advancedThreatProtectionName 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 (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String apiVersion = "2023-12-30";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.updatePut(this.client.getEndpoint(), resourceGroupName, serverName, advancedThreatProtectionName,
- this.client.getSubscriptionId(), apiVersion, parameters, accept, context);
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 a server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, AdvancedThreatProtectionInner> beginUpdatePutAsync(
- String resourceGroupName, String serverName, AdvancedThreatProtectionName advancedThreatProtectionName,
- AdvancedThreatProtectionInner parameters) {
- Mono>> mono
- = updatePutWithResponseAsync(resourceGroupName, serverName, advancedThreatProtectionName, parameters);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), AdvancedThreatProtectionInner.class, AdvancedThreatProtectionInner.class,
- this.client.getContext());
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @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 a server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, AdvancedThreatProtectionInner> beginUpdatePutAsync(
- String resourceGroupName, String serverName, AdvancedThreatProtectionName advancedThreatProtectionName,
- AdvancedThreatProtectionInner parameters, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono = updatePutWithResponseAsync(resourceGroupName, serverName,
- advancedThreatProtectionName, parameters, context);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), AdvancedThreatProtectionInner.class, AdvancedThreatProtectionInner.class,
- context);
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 a server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, AdvancedThreatProtectionInner> beginUpdatePut(
- String resourceGroupName, String serverName, AdvancedThreatProtectionName advancedThreatProtectionName,
- AdvancedThreatProtectionInner parameters) {
- return this.beginUpdatePutAsync(resourceGroupName, serverName, advancedThreatProtectionName, parameters)
- .getSyncPoller();
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @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 a server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, AdvancedThreatProtectionInner> beginUpdatePut(
- String resourceGroupName, String serverName, AdvancedThreatProtectionName advancedThreatProtectionName,
- AdvancedThreatProtectionInner parameters, Context context) {
- return this
- .beginUpdatePutAsync(resourceGroupName, serverName, advancedThreatProtectionName, parameters, context)
- .getSyncPoller();
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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's Advanced Threat Protection on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updatePutAsync(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionInner parameters) {
- return beginUpdatePutAsync(resourceGroupName, serverName, advancedThreatProtectionName, parameters).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @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 server's Advanced Threat Protection on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updatePutAsync(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionInner parameters,
- Context context) {
- return beginUpdatePutAsync(resourceGroupName, serverName, advancedThreatProtectionName, parameters, context)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public AdvancedThreatProtectionInner updatePut(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionInner parameters) {
- return updatePutAsync(resourceGroupName, serverName, advancedThreatProtectionName, parameters).block();
- }
-
- /**
- * Updates a server's Advanced Threat Protection state.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param advancedThreatProtectionName The name of the Advanced Threat Protection state.
- * @param parameters The server's Advanced Threat Protection body to update.
- * @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 server's Advanced Threat Protection.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public AdvancedThreatProtectionInner updatePut(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionInner parameters,
- Context context) {
- return updatePutAsync(resourceGroupName, serverName, advancedThreatProtectionName, parameters, context).block();
- }
-
- /**
- * Gets a list of server's Advanced Threat Protection states.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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's Advanced Threat Protection states along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String resourceGroupName,
- String serverName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName 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."));
- }
- final String apiVersion = "2023-12-30";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, serverName,
- this.client.getSubscriptionId(), apiVersion, 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()));
- }
-
- /**
- * Gets a list of server's Advanced Threat Protection states.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 server's Advanced Threat Protection states along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String resourceGroupName,
- String serverName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName 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."));
- }
- final String apiVersion = "2023-12-30";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(this.client.getEndpoint(), resourceGroupName, serverName, this.client.getSubscriptionId(), apiVersion,
- accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * Gets a list of server's Advanced Threat Protection states.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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's Advanced Threat Protection states as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String serverName) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, serverName),
- nextLink -> listNextSinglePageAsync(nextLink));
- }
-
- /**
- * Gets a list of server's Advanced Threat Protection states.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 server's Advanced Threat Protection states as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String serverName,
- Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, serverName, context),
- nextLink -> listNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * Gets a list of server's Advanced Threat Protection states.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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's Advanced Threat Protection states as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String resourceGroupName, String serverName) {
- return new PagedIterable<>(listAsync(resourceGroupName, serverName));
- }
-
- /**
- * Gets a list of server's Advanced Threat Protection states.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 server's Advanced Threat Protection states as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String resourceGroupName, String serverName,
- Context context) {
- return new PagedIterable<>(listAsync(resourceGroupName, serverName, context));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 Advanced Threat Protection configurations 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 URL to get the next list of items.
- * @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 Advanced Threat Protection configurations 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/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvancedThreatProtectionSettingsImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvancedThreatProtectionSettingsImpl.java
deleted file mode 100644
index 7a90939f638c8..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvancedThreatProtectionSettingsImpl.java
+++ /dev/null
@@ -1,119 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.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.mysqlflexibleserver.fluent.AdvancedThreatProtectionSettingsClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.AdvancedThreatProtectionInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtection;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionForUpdate;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionName;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdvancedThreatProtectionSettings;
-
-public final class AdvancedThreatProtectionSettingsImpl implements AdvancedThreatProtectionSettings {
- private static final ClientLogger LOGGER = new ClientLogger(AdvancedThreatProtectionSettingsImpl.class);
-
- private final AdvancedThreatProtectionSettingsClient innerClient;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
-
- public AdvancedThreatProtectionSettingsImpl(AdvancedThreatProtectionSettingsClient innerClient,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public Response getWithResponse(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, Context context) {
- Response inner = this.serviceClient()
- .getWithResponse(resourceGroupName, serverName, advancedThreatProtectionName, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new AdvancedThreatProtectionImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public AdvancedThreatProtection get(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName) {
- AdvancedThreatProtectionInner inner
- = this.serviceClient().get(resourceGroupName, serverName, advancedThreatProtectionName);
- if (inner != null) {
- return new AdvancedThreatProtectionImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public AdvancedThreatProtection update(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionForUpdate parameters) {
- AdvancedThreatProtectionInner inner
- = this.serviceClient().update(resourceGroupName, serverName, advancedThreatProtectionName, parameters);
- if (inner != null) {
- return new AdvancedThreatProtectionImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public AdvancedThreatProtection update(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionForUpdate parameters,
- Context context) {
- AdvancedThreatProtectionInner inner = this.serviceClient()
- .update(resourceGroupName, serverName, advancedThreatProtectionName, parameters, context);
- if (inner != null) {
- return new AdvancedThreatProtectionImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public AdvancedThreatProtection updatePut(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionInner parameters) {
- AdvancedThreatProtectionInner inner
- = this.serviceClient().updatePut(resourceGroupName, serverName, advancedThreatProtectionName, parameters);
- if (inner != null) {
- return new AdvancedThreatProtectionImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public AdvancedThreatProtection updatePut(String resourceGroupName, String serverName,
- AdvancedThreatProtectionName advancedThreatProtectionName, AdvancedThreatProtectionInner parameters,
- Context context) {
- AdvancedThreatProtectionInner inner = this.serviceClient()
- .updatePut(resourceGroupName, serverName, advancedThreatProtectionName, parameters, context);
- if (inner != null) {
- return new AdvancedThreatProtectionImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public PagedIterable list(String resourceGroupName, String serverName) {
- PagedIterable inner = this.serviceClient().list(resourceGroupName, serverName);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new AdvancedThreatProtectionImpl(inner1, this.manager()));
- }
-
- public PagedIterable list(String resourceGroupName, String serverName, Context context) {
- PagedIterable inner
- = this.serviceClient().list(resourceGroupName, serverName, context);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new AdvancedThreatProtectionImpl(inner1, this.manager()));
- }
-
- private AdvancedThreatProtectionSettingsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorImpl.java
deleted file mode 100644
index 7bdadb8ff89d1..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorImpl.java
+++ /dev/null
@@ -1,169 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.management.SystemData;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.AzureADAdministratorInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorName;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorType;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AzureADAdministrator;
-
-public final class AzureADAdministratorImpl
- implements AzureADAdministrator, AzureADAdministrator.Definition, AzureADAdministrator.Update {
- private AzureADAdministratorInner innerObject;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
-
- public String id() {
- return this.innerModel().id();
- }
-
- public String name() {
- return this.innerModel().name();
- }
-
- public String type() {
- return this.innerModel().type();
- }
-
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public AdministratorType administratorType() {
- return this.innerModel().administratorType();
- }
-
- public String login() {
- return this.innerModel().login();
- }
-
- public String sid() {
- return this.innerModel().sid();
- }
-
- public String tenantId() {
- return this.innerModel().tenantId();
- }
-
- public String identityResourceId() {
- return this.innerModel().identityResourceId();
- }
-
- public String resourceGroupName() {
- return resourceGroupName;
- }
-
- public AzureADAdministratorInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-
- private String resourceGroupName;
-
- private String serverName;
-
- private AdministratorName administratorName;
-
- public AzureADAdministratorImpl withExistingFlexibleServer(String resourceGroupName, String serverName) {
- this.resourceGroupName = resourceGroupName;
- this.serverName = serverName;
- return this;
- }
-
- public AzureADAdministrator create() {
- this.innerObject = serviceManager.serviceClient()
- .getAzureADAdministrators()
- .createOrUpdate(resourceGroupName, serverName, administratorName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public AzureADAdministrator create(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getAzureADAdministrators()
- .createOrUpdate(resourceGroupName, serverName, administratorName, this.innerModel(), context);
- return this;
- }
-
- AzureADAdministratorImpl(AdministratorName name,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerObject = new AzureADAdministratorInner();
- this.serviceManager = serviceManager;
- this.administratorName = name;
- }
-
- public AzureADAdministratorImpl update() {
- return this;
- }
-
- public AzureADAdministrator apply() {
- this.innerObject = serviceManager.serviceClient()
- .getAzureADAdministrators()
- .createOrUpdate(resourceGroupName, serverName, administratorName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public AzureADAdministrator apply(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getAzureADAdministrators()
- .createOrUpdate(resourceGroupName, serverName, administratorName, this.innerModel(), context);
- return this;
- }
-
- AzureADAdministratorImpl(AzureADAdministratorInner innerObject,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.serverName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "flexibleServers");
- this.administratorName = AdministratorName
- .fromString(ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "administrators"));
- }
-
- public AzureADAdministrator refresh() {
- this.innerObject = serviceManager.serviceClient()
- .getAzureADAdministrators()
- .getWithResponse(resourceGroupName, serverName, administratorName, Context.NONE)
- .getValue();
- return this;
- }
-
- public AzureADAdministrator refresh(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getAzureADAdministrators()
- .getWithResponse(resourceGroupName, serverName, administratorName, context)
- .getValue();
- return this;
- }
-
- public AzureADAdministratorImpl withAdministratorType(AdministratorType administratorType) {
- this.innerModel().withAdministratorType(administratorType);
- return this;
- }
-
- public AzureADAdministratorImpl withLogin(String login) {
- this.innerModel().withLogin(login);
- return this;
- }
-
- public AzureADAdministratorImpl withSid(String sid) {
- this.innerModel().withSid(sid);
- return this;
- }
-
- public AzureADAdministratorImpl withTenantId(String tenantId) {
- this.innerModel().withTenantId(tenantId);
- return this;
- }
-
- public AzureADAdministratorImpl withIdentityResourceId(String identityResourceId) {
- this.innerModel().withIdentityResourceId(identityResourceId);
- return this;
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorsClientImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorsClientImpl.java
deleted file mode 100644
index 980f0d89350ed..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorsClientImpl.java
+++ /dev/null
@@ -1,945 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.Delete;
-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.mysqlflexibleserver.fluent.AzureADAdministratorsClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.AzureADAdministratorInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorListResult;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorName;
-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 AzureADAdministratorsClient.
- */
-public final class AzureADAdministratorsClientImpl implements AzureADAdministratorsClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final AzureADAdministratorsService service;
-
- /**
- * The service client containing this operation class.
- */
- private final MySqlManagementClientImpl client;
-
- /**
- * Initializes an instance of AzureADAdministratorsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- AzureADAdministratorsClientImpl(MySqlManagementClientImpl client) {
- this.service = RestProxy.create(AzureADAdministratorsService.class, client.getHttpPipeline(),
- client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for MySqlManagementClientAzureADAdministrators to be used by the proxy
- * service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "MySqlManagementClien")
- public interface AzureADAdministratorsService {
- @Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/administrators/{administratorName}")
- @ExpectedResponses({ 200, 201, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serverName") String serverName,
- @PathParam("administratorName") AdministratorName administratorName,
- @BodyParam("application/json") AzureADAdministratorInner parameters, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/administrators/{administratorName}")
- @ExpectedResponses({ 200, 202, 204 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serverName") String serverName,
- @PathParam("administratorName") AdministratorName administratorName, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/administrators/{administratorName}")
- @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("serverName") String serverName,
- @PathParam("administratorName") AdministratorName administratorName, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/administrators")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByServer(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serverName") String serverName,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByServerNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept, Context context);
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 a Administrator along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String serverName, AdministratorName administratorName, AzureADAdministratorInner 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (administratorName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter administratorName 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 = "2023-06-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, serverName, administratorName, parameters, accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @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 represents a Administrator along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String serverName, AdministratorName administratorName, AzureADAdministratorInner 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (administratorName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter administratorName 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 = "2023-06-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, serverName, administratorName, parameters, accept, context);
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 represents a Administrator.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, AzureADAdministratorInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String serverName, AdministratorName administratorName,
- AzureADAdministratorInner parameters) {
- Mono>> mono
- = createOrUpdateWithResponseAsync(resourceGroupName, serverName, administratorName, parameters);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), AzureADAdministratorInner.class, AzureADAdministratorInner.class,
- this.client.getContext());
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @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 represents a Administrator.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, AzureADAdministratorInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String serverName, AdministratorName administratorName,
- AzureADAdministratorInner parameters, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = createOrUpdateWithResponseAsync(resourceGroupName, serverName, administratorName, parameters, context);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), AzureADAdministratorInner.class, AzureADAdministratorInner.class, context);
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 represents a Administrator.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, AzureADAdministratorInner> beginCreateOrUpdate(
- String resourceGroupName, String serverName, AdministratorName administratorName,
- AzureADAdministratorInner parameters) {
- return this.beginCreateOrUpdateAsync(resourceGroupName, serverName, administratorName, parameters)
- .getSyncPoller();
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @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 represents a Administrator.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, AzureADAdministratorInner> beginCreateOrUpdate(
- String resourceGroupName, String serverName, AdministratorName administratorName,
- AzureADAdministratorInner parameters, Context context) {
- return this.beginCreateOrUpdateAsync(resourceGroupName, serverName, administratorName, parameters, context)
- .getSyncPoller();
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 a Administrator on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String serverName,
- AdministratorName administratorName, AzureADAdministratorInner parameters) {
- return beginCreateOrUpdateAsync(resourceGroupName, serverName, administratorName, parameters).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @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 represents a Administrator on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String serverName,
- AdministratorName administratorName, AzureADAdministratorInner parameters, Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, serverName, administratorName, parameters, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 a Administrator.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public AzureADAdministratorInner createOrUpdate(String resourceGroupName, String serverName,
- AdministratorName administratorName, AzureADAdministratorInner parameters) {
- return createOrUpdateAsync(resourceGroupName, serverName, administratorName, parameters).block();
- }
-
- /**
- * Creates or updates an existing Azure Active Directory administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @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 represents a Administrator.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public AzureADAdministratorInner createOrUpdate(String resourceGroupName, String serverName,
- AdministratorName administratorName, AzureADAdministratorInner parameters, Context context) {
- return createOrUpdateAsync(resourceGroupName, serverName, administratorName, parameters, context).block();
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName, String serverName,
- AdministratorName administratorName) {
- 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (administratorName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter administratorName is required and cannot be null."));
- }
- final String apiVersion = "2023-06-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, serverName, administratorName, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @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 Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName, String serverName,
- AdministratorName administratorName, 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (administratorName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter administratorName is required and cannot be null."));
- }
- final String apiVersion = "2023-06-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- serverName, administratorName, accept, context);
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serverName,
- AdministratorName administratorName) {
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, serverName, administratorName);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @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 long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String serverName,
- AdministratorName administratorName, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, serverName, administratorName, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- context);
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String serverName,
- AdministratorName administratorName) {
- return this.beginDeleteAsync(resourceGroupName, serverName, administratorName).getSyncPoller();
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @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 long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String serverName,
- AdministratorName administratorName, Context context) {
- return this.beginDeleteAsync(resourceGroupName, serverName, administratorName, context).getSyncPoller();
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String serverName, AdministratorName administratorName) {
- return beginDeleteAsync(resourceGroupName, serverName, administratorName).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @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 {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String serverName, AdministratorName administratorName,
- Context context) {
- return beginDeleteAsync(resourceGroupName, serverName, administratorName, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String serverName, AdministratorName administratorName) {
- deleteAsync(resourceGroupName, serverName, administratorName).block();
- }
-
- /**
- * Deletes an Azure AD Administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String serverName, AdministratorName administratorName,
- Context context) {
- deleteAsync(resourceGroupName, serverName, administratorName, context).block();
- }
-
- /**
- * Gets information about an azure ad administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about an azure ad administrator along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName, String serverName,
- AdministratorName administratorName) {
- 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (administratorName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter administratorName is required and cannot be null."));
- }
- final String apiVersion = "2023-06-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, serverName, administratorName, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Gets information about an azure ad administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @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 information about an azure ad administrator along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName, String serverName,
- AdministratorName administratorName, 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (administratorName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter administratorName is required and cannot be null."));
- }
- final String apiVersion = "2023-06-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- serverName, administratorName, accept, context);
- }
-
- /**
- * Gets information about an azure ad administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about an azure ad administrator on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(String resourceGroupName, String serverName,
- AdministratorName administratorName) {
- return getWithResponseAsync(resourceGroupName, serverName, administratorName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Gets information about an azure ad administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @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 information about an azure ad administrator along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(String resourceGroupName, String serverName,
- AdministratorName administratorName, Context context) {
- return getWithResponseAsync(resourceGroupName, serverName, administratorName, context).block();
- }
-
- /**
- * Gets information about an azure ad administrator.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about an azure ad administrator.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public AzureADAdministratorInner get(String resourceGroupName, String serverName,
- AdministratorName administratorName) {
- return getWithResponse(resourceGroupName, serverName, administratorName, Context.NONE).getValue();
- }
-
- /**
- * List all the AAD administrators in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 ad administrators along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByServerSinglePageAsync(String resourceGroupName,
- String serverName) {
- 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- final String apiVersion = "2023-06-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listByServer(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, serverName, 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 all the AAD administrators in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 azure ad administrators along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByServerSinglePageAsync(String resourceGroupName,
- String serverName, 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- final String apiVersion = "2023-06-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByServer(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- serverName, accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * List all the AAD administrators in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 ad administrators as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByServerAsync(String resourceGroupName, String serverName) {
- return new PagedFlux<>(() -> listByServerSinglePageAsync(resourceGroupName, serverName),
- nextLink -> listByServerNextSinglePageAsync(nextLink));
- }
-
- /**
- * List all the AAD administrators in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 azure ad administrators as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByServerAsync(String resourceGroupName, String serverName,
- Context context) {
- return new PagedFlux<>(() -> listByServerSinglePageAsync(resourceGroupName, serverName, context),
- nextLink -> listByServerNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * List all the AAD administrators in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 ad administrators as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByServer(String resourceGroupName, String serverName) {
- return new PagedIterable<>(listByServerAsync(resourceGroupName, serverName));
- }
-
- /**
- * List all the AAD administrators in a given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 azure ad administrators as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByServer(String resourceGroupName, String serverName,
- Context context) {
- return new PagedIterable<>(listByServerAsync(resourceGroupName, serverName, context));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 ad administrators along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByServerNextSinglePageAsync(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.listByServerNext(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 URL to get the next list of items.
- * @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 azure ad administrators along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByServerNextSinglePageAsync(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.listByServerNext(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/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorsImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorsImpl.java
deleted file mode 100644
index 23e322189c45d..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorsImpl.java
+++ /dev/null
@@ -1,165 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.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.mysqlflexibleserver.fluent.AzureADAdministratorsClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.AzureADAdministratorInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorName;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AzureADAdministrator;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AzureADAdministrators;
-
-public final class AzureADAdministratorsImpl implements AzureADAdministrators {
- private static final ClientLogger LOGGER = new ClientLogger(AzureADAdministratorsImpl.class);
-
- private final AzureADAdministratorsClient innerClient;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
-
- public AzureADAdministratorsImpl(AzureADAdministratorsClient innerClient,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public void delete(String resourceGroupName, String serverName, AdministratorName administratorName) {
- this.serviceClient().delete(resourceGroupName, serverName, administratorName);
- }
-
- public void delete(String resourceGroupName, String serverName, AdministratorName administratorName,
- Context context) {
- this.serviceClient().delete(resourceGroupName, serverName, administratorName, context);
- }
-
- public Response getWithResponse(String resourceGroupName, String serverName,
- AdministratorName administratorName, Context context) {
- Response inner
- = this.serviceClient().getWithResponse(resourceGroupName, serverName, administratorName, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new AzureADAdministratorImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public AzureADAdministrator get(String resourceGroupName, String serverName, AdministratorName administratorName) {
- AzureADAdministratorInner inner = this.serviceClient().get(resourceGroupName, serverName, administratorName);
- if (inner != null) {
- return new AzureADAdministratorImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public PagedIterable listByServer(String resourceGroupName, String serverName) {
- PagedIterable inner
- = this.serviceClient().listByServer(resourceGroupName, serverName);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new AzureADAdministratorImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByServer(String resourceGroupName, String serverName,
- Context context) {
- PagedIterable inner
- = this.serviceClient().listByServer(resourceGroupName, serverName, context);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new AzureADAdministratorImpl(inner1, this.manager()));
- }
-
- public AzureADAdministrator getById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String serverName = ResourceManagerUtils.getValueFromIdByName(id, "flexibleServers");
- if (serverName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'flexibleServers'.", id)));
- }
- String administratorNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "administrators");
- if (administratorNameLocal == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'administrators'.", id)));
- }
- AdministratorName administratorName = AdministratorName.fromString(administratorNameLocal);
- return this.getWithResponse(resourceGroupName, serverName, administratorName, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String serverName = ResourceManagerUtils.getValueFromIdByName(id, "flexibleServers");
- if (serverName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'flexibleServers'.", id)));
- }
- String administratorNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "administrators");
- if (administratorNameLocal == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'administrators'.", id)));
- }
- AdministratorName administratorName = AdministratorName.fromString(administratorNameLocal);
- return this.getWithResponse(resourceGroupName, serverName, administratorName, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String serverName = ResourceManagerUtils.getValueFromIdByName(id, "flexibleServers");
- if (serverName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'flexibleServers'.", id)));
- }
- String administratorNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "administrators");
- if (administratorNameLocal == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'administrators'.", id)));
- }
- AdministratorName administratorName = AdministratorName.fromString(administratorNameLocal);
- this.delete(resourceGroupName, serverName, administratorName, Context.NONE);
- }
-
- public void deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String serverName = ResourceManagerUtils.getValueFromIdByName(id, "flexibleServers");
- if (serverName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'flexibleServers'.", id)));
- }
- String administratorNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "administrators");
- if (administratorNameLocal == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'administrators'.", id)));
- }
- AdministratorName administratorName = AdministratorName.fromString(administratorNameLocal);
- this.delete(resourceGroupName, serverName, administratorName, context);
- }
-
- private AzureADAdministratorsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-
- public AzureADAdministratorImpl define(AdministratorName name) {
- return new AzureADAdministratorImpl(name, this.manager());
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportResponseImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportResponseImpl.java
deleted file mode 100644
index 5b23fc76bddd7..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportResponseImpl.java
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.management.SystemData;
-import com.azure.core.management.exception.ManagementError;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.BackupAndExportResponseInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.BackupAndExportResponse;
-import com.azure.resourcemanager.mysqlflexibleserver.models.OperationStatus;
-import java.time.OffsetDateTime;
-
-public final class BackupAndExportResponseImpl implements BackupAndExportResponse {
- private BackupAndExportResponseInner innerObject;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
-
- BackupAndExportResponseImpl(BackupAndExportResponseInner innerObject,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager 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 OperationStatus status() {
- return this.innerModel().status();
- }
-
- public OffsetDateTime startTime() {
- return this.innerModel().startTime();
- }
-
- public OffsetDateTime endTime() {
- return this.innerModel().endTime();
- }
-
- public Double percentComplete() {
- return this.innerModel().percentComplete();
- }
-
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public ManagementError error() {
- return this.innerModel().error();
- }
-
- public Long datasourceSizeInBytes() {
- return this.innerModel().datasourceSizeInBytes();
- }
-
- public Long dataTransferredInBytes() {
- return this.innerModel().dataTransferredInBytes();
- }
-
- public String backupMetadata() {
- return this.innerModel().backupMetadata();
- }
-
- public BackupAndExportResponseInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportsClientImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportsClientImpl.java
deleted file mode 100644
index 16a2767fbe01c..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportsClientImpl.java
+++ /dev/null
@@ -1,445 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.ExpectedResponses;
-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.Post;
-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.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.mysqlflexibleserver.fluent.BackupAndExportsClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.BackupAndExportResponseInner;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ValidateBackupResponseInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.BackupAndExportRequest;
-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 BackupAndExportsClient.
- */
-public final class BackupAndExportsClientImpl implements BackupAndExportsClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final BackupAndExportsService service;
-
- /**
- * The service client containing this operation class.
- */
- private final MySqlManagementClientImpl client;
-
- /**
- * Initializes an instance of BackupAndExportsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- BackupAndExportsClientImpl(MySqlManagementClientImpl client) {
- this.service
- = RestProxy.create(BackupAndExportsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for MySqlManagementClientBackupAndExports to be used by the proxy service
- * to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "MySqlManagementClien")
- public interface BackupAndExportsService {
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backupAndExport")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> create(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serverName") String serverName,
- @BodyParam("application/json") BackupAndExportRequest parameters, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/validateBackup")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> validateBackup(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serverName") String serverName,
- @HeaderParam("Accept") String accept, Context context);
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 BackupAndExport API Response along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createWithResponseAsync(String resourceGroupName, String serverName,
- BackupAndExportRequest 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName 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 = "2023-10-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.create(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, serverName, parameters, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @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 represents BackupAndExport API Response along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createWithResponseAsync(String resourceGroupName, String serverName,
- BackupAndExportRequest 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName 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 = "2023-10-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- serverName, parameters, accept, context);
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 represents BackupAndExport API Response.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, BackupAndExportResponseInner>
- beginCreateAsync(String resourceGroupName, String serverName, BackupAndExportRequest parameters) {
- Mono>> mono = createWithResponseAsync(resourceGroupName, serverName, parameters);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), BackupAndExportResponseInner.class, BackupAndExportResponseInner.class,
- this.client.getContext());
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @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 represents BackupAndExport API Response.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, BackupAndExportResponseInner> beginCreateAsync(
- String resourceGroupName, String serverName, BackupAndExportRequest parameters, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = createWithResponseAsync(resourceGroupName, serverName, parameters, context);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), BackupAndExportResponseInner.class, BackupAndExportResponseInner.class,
- context);
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 represents BackupAndExport API Response.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, BackupAndExportResponseInner>
- beginCreate(String resourceGroupName, String serverName, BackupAndExportRequest parameters) {
- return this.beginCreateAsync(resourceGroupName, serverName, parameters).getSyncPoller();
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @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 represents BackupAndExport API Response.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, BackupAndExportResponseInner>
- beginCreate(String resourceGroupName, String serverName, BackupAndExportRequest parameters, Context context) {
- return this.beginCreateAsync(resourceGroupName, serverName, parameters, context).getSyncPoller();
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 BackupAndExport API Response on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createAsync(String resourceGroupName, String serverName,
- BackupAndExportRequest parameters) {
- return beginCreateAsync(resourceGroupName, serverName, parameters).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @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 represents BackupAndExport API Response on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createAsync(String resourceGroupName, String serverName,
- BackupAndExportRequest parameters, Context context) {
- return beginCreateAsync(resourceGroupName, serverName, parameters, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 BackupAndExport API Response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public BackupAndExportResponseInner create(String resourceGroupName, String serverName,
- BackupAndExportRequest parameters) {
- return createAsync(resourceGroupName, serverName, parameters).block();
- }
-
- /**
- * Exports the backup of the given server by creating a backup if not existing.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param parameters The required parameters for creating and exporting backup of the given server.
- * @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 represents BackupAndExport API Response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public BackupAndExportResponseInner create(String resourceGroupName, String serverName,
- BackupAndExportRequest parameters, Context context) {
- return createAsync(resourceGroupName, serverName, parameters, context).block();
- }
-
- /**
- * Validates if backup can be performed for given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 ValidateBackup API Response along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> validateBackupWithResponseAsync(String resourceGroupName,
- String serverName) {
- 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- final String apiVersion = "2023-10-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.validateBackup(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, serverName, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Validates if backup can be performed for given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 represents ValidateBackup API Response along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> validateBackupWithResponseAsync(String resourceGroupName,
- String serverName, 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- final String apiVersion = "2023-10-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.validateBackup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, serverName, accept, context);
- }
-
- /**
- * Validates if backup can be performed for given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 ValidateBackup API Response on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono validateBackupAsync(String resourceGroupName, String serverName) {
- return validateBackupWithResponseAsync(resourceGroupName, serverName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Validates if backup can be performed for given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @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 represents ValidateBackup API Response along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response validateBackupWithResponse(String resourceGroupName, String serverName,
- Context context) {
- return validateBackupWithResponseAsync(resourceGroupName, serverName, context).block();
- }
-
- /**
- * Validates if backup can be performed for given server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 ValidateBackup API Response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ValidateBackupResponseInner validateBackup(String resourceGroupName, String serverName) {
- return validateBackupWithResponse(resourceGroupName, serverName, Context.NONE).getValue();
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportsImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportsImpl.java
deleted file mode 100644
index bb4bf15d4d9f6..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupAndExportsImpl.java
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-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.mysqlflexibleserver.fluent.BackupAndExportsClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.BackupAndExportResponseInner;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ValidateBackupResponseInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.BackupAndExportRequest;
-import com.azure.resourcemanager.mysqlflexibleserver.models.BackupAndExportResponse;
-import com.azure.resourcemanager.mysqlflexibleserver.models.BackupAndExports;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ValidateBackupResponse;
-
-public final class BackupAndExportsImpl implements BackupAndExports {
- private static final ClientLogger LOGGER = new ClientLogger(BackupAndExportsImpl.class);
-
- private final BackupAndExportsClient innerClient;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
-
- public BackupAndExportsImpl(BackupAndExportsClient innerClient,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public BackupAndExportResponse create(String resourceGroupName, String serverName,
- BackupAndExportRequest parameters) {
- BackupAndExportResponseInner inner = this.serviceClient().create(resourceGroupName, serverName, parameters);
- if (inner != null) {
- return new BackupAndExportResponseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public BackupAndExportResponse create(String resourceGroupName, String serverName,
- BackupAndExportRequest parameters, Context context) {
- BackupAndExportResponseInner inner
- = this.serviceClient().create(resourceGroupName, serverName, parameters, context);
- if (inner != null) {
- return new BackupAndExportResponseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Response validateBackupWithResponse(String resourceGroupName, String serverName,
- Context context) {
- Response inner
- = this.serviceClient().validateBackupWithResponse(resourceGroupName, serverName, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new ValidateBackupResponseImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public ValidateBackupResponse validateBackup(String resourceGroupName, String serverName) {
- ValidateBackupResponseInner inner = this.serviceClient().validateBackup(resourceGroupName, serverName);
- if (inner != null) {
- return new ValidateBackupResponseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- private BackupAndExportsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupsClientImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupsClientImpl.java
index ec2fa0fe8f2e7..713b6d936e36f 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupsClientImpl.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupsClientImpl.java
@@ -11,7 +11,6 @@
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;
@@ -62,15 +61,6 @@ public final class BackupsClientImpl implements BackupsClient {
@Host("{$host}")
@ServiceInterface(name = "MySqlManagementClien")
public interface BackupsService {
- @Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backups/{backupName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> put(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serverName") String serverName,
- @PathParam("backupName") String backupName, @HeaderParam("Accept") String accept, Context context);
-
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backups/{backupName}")
@ExpectedResponses({ 200 })
@@ -98,137 +88,6 @@ Mono> listByServerNext(
@HeaderParam("Accept") String accept, Context context);
}
- /**
- * Create backup for a given server with specified backup name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return server backup properties along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> putWithResponseAsync(String resourceGroupName, String serverName,
- String backupName) {
- 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- final String apiVersion = "2023-10-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.put(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, serverName, backupName, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Create backup for a given server with specified backup name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @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 server backup properties along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> putWithResponseAsync(String resourceGroupName, String serverName,
- String backupName, 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (backupName == null) {
- return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
- }
- final String apiVersion = "2023-10-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.put(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- serverName, backupName, accept, context);
- }
-
- /**
- * Create backup for a given server with specified backup name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return server backup properties on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono putAsync(String resourceGroupName, String serverName, String backupName) {
- return putWithResponseAsync(resourceGroupName, serverName, backupName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Create backup for a given server with specified backup name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @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 server backup properties along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response putWithResponse(String resourceGroupName, String serverName, String backupName,
- Context context) {
- return putWithResponseAsync(resourceGroupName, serverName, backupName, context).block();
- }
-
- /**
- * Create backup for a given server with specified backup name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return server backup properties.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ServerBackupInner put(String resourceGroupName, String serverName, String backupName) {
- return putWithResponse(resourceGroupName, serverName, backupName, Context.NONE).getValue();
- }
-
/**
* List all the backups for a given server.
*
@@ -261,11 +120,10 @@ private Mono> getWithResponseAsync(String resourceGr
if (backupName == null) {
return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
}
- final String apiVersion = "2023-10-01-preview";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, serverName, backupName, accept, context))
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, serverName, backupName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -302,11 +160,10 @@ private Mono> getWithResponseAsync(String resourceGr
if (backupName == null) {
return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null."));
}
- final String apiVersion = "2023-10-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- serverName, backupName, accept, context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, serverName, backupName, accept, context);
}
/**
@@ -388,10 +245,9 @@ private Mono> listByServerSinglePageAsync(Strin
if (serverName == null) {
return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
}
- final String apiVersion = "2023-10-01-preview";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listByServer(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.listByServer(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), resourceGroupName, serverName, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
@@ -427,12 +283,11 @@ private Mono> listByServerSinglePageAsync(Strin
if (serverName == null) {
return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
}
- final String apiVersion = "2023-10-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listByServer(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- serverName, accept, context)
+ .listByServer(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, serverName, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupsImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupsImpl.java
index 7b8809b8c41b1..978c5749d31e0 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupsImpl.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupsImpl.java
@@ -27,27 +27,6 @@ public BackupsImpl(BackupsClient innerClient,
this.serviceManager = serviceManager;
}
- public Response putWithResponse(String resourceGroupName, String serverName, String backupName,
- Context context) {
- Response inner
- = this.serviceClient().putWithResponse(resourceGroupName, serverName, backupName, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new ServerBackupImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public ServerBackup put(String resourceGroupName, String serverName, String backupName) {
- ServerBackupInner inner = this.serviceClient().put(resourceGroupName, serverName, backupName);
- if (inner != null) {
- return new ServerBackupImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getWithResponse(String resourceGroupName, String serverName, String backupName,
Context context) {
Response inner
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CapabilityImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CapabilityImpl.java
deleted file mode 100644
index 95da88844c6a6..0000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CapabilityImpl.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.CapabilityInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Capability;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerEditionCapabilityV2;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerVersionCapabilityV2;
-import java.util.Collections;
-import java.util.List;
-
-public final class CapabilityImpl implements Capability {
- private CapabilityInner innerObject;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
-
- CapabilityImpl(CapabilityInner innerObject,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager 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 SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public List supportedGeoBackupRegions() {
- List inner = this.innerModel().supportedGeoBackupRegions();
- if (inner != null) {
- return Collections.unmodifiableList(inner);
- } else {
- return Collections.emptyList();
- }
- }
-
- public List supportedFlexibleServerEditions() {
- List inner = this.innerModel().supportedFlexibleServerEditions();
- if (inner != null) {
- return Collections.unmodifiableList(inner);
- } else {
- return Collections.emptyList();
- }
- }
-
- public List supportedServerVersions() {
- List inner = this.innerModel().supportedServerVersions();
- if (inner != null) {
- return Collections.unmodifiableList(inner);
- } else {
- return Collections.emptyList();
- }
- }
-
- public CapabilityInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilitiesClientImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilitiesClientImpl.java
index b175f018d2587..a8426abeb5a38 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilitiesClientImpl.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilitiesClientImpl.java
@@ -101,10 +101,9 @@ private Mono> executeWithResponseAsync(String lo
} else {
nameAvailabilityRequest.validate();
}
- final String apiVersion = "2023-12-30";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.execute(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.execute(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), locationName, nameAvailabilityRequest, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -141,11 +140,10 @@ private Mono> executeWithResponseAsync(String lo
} else {
nameAvailabilityRequest.validate();
}
- final String apiVersion = "2023-12-30";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.execute(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), locationName,
- nameAvailabilityRequest, accept, context);
+ return service.execute(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ locationName, nameAvailabilityRequest, accept, context);
}
/**
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilityWithoutLocationsClientImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilityWithoutLocationsClientImpl.java
index 3bcaab571016b..abf77aa3d9ca3 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilityWithoutLocationsClientImpl.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilityWithoutLocationsClientImpl.java
@@ -98,10 +98,9 @@ Mono> execute(@HostParam("$host") String endpoin
} else {
nameAvailabilityRequest.validate();
}
- final String apiVersion = "2023-12-30";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.execute(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.execute(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), nameAvailabilityRequest, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -134,10 +133,9 @@ Mono> execute(@HostParam("$host") String endpoin
} else {
nameAvailabilityRequest.validate();
}
- final String apiVersion = "2023-12-30";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.execute(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ return service.execute(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
nameAvailabilityRequest, accept, context);
}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckVirtualNetworkSubnetUsagesClientImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckVirtualNetworkSubnetUsagesClientImpl.java
index 3f3a94f7ca4a0..a29199c633626 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckVirtualNetworkSubnetUsagesClientImpl.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckVirtualNetworkSubnetUsagesClientImpl.java
@@ -100,10 +100,9 @@ private Mono> executeWithResponse
} else {
parameters.validate();
}
- final String apiVersion = "2023-12-30";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.execute(this.client.getEndpoint(), apiVersion,
+ .withContext(context -> service.execute(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), locationName, parameters, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -139,11 +138,10 @@ private Mono> executeWithResponse
} else {
parameters.validate();
}
- final String apiVersion = "2023-12-30";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.execute(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), locationName,
- parameters, accept, context);
+ return service.execute(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ locationName, parameters, accept, context);
}
/**
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ConfigurationImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ConfigurationImpl.java
index 787d8f9e07147..fb3b8b3776a35 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ConfigurationImpl.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ConfigurationImpl.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.mysqlflexibleserver.implementation;
import com.azure.core.management.SystemData;
-import com.azure.core.util.Context;
import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ConfigurationInner;
import com.azure.resourcemanager.mysqlflexibleserver.models.Configuration;
import com.azure.resourcemanager.mysqlflexibleserver.models.ConfigurationSource;
@@ -13,11 +12,17 @@
import com.azure.resourcemanager.mysqlflexibleserver.models.IsDynamicConfig;
import com.azure.resourcemanager.mysqlflexibleserver.models.IsReadOnly;
-public final class ConfigurationImpl implements Configuration, Configuration.Definition, Configuration.Update {
+public final class ConfigurationImpl implements Configuration {
private ConfigurationInner innerObject;
private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
+ ConfigurationImpl(ConfigurationInner innerObject,
+ com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
public String id() {
return this.innerModel().id();
}
@@ -38,18 +43,10 @@ public String value() {
return this.innerModel().value();
}
- public String currentValue() {
- return this.innerModel().currentValue();
- }
-
public String description() {
return this.innerModel().description();
}
- public String documentationLink() {
- return this.innerModel().documentationLink();
- }
-
public String defaultValue() {
return this.innerModel().defaultValue();
}
@@ -78,10 +75,6 @@ public IsDynamicConfig isDynamicConfig() {
return this.innerModel().isDynamicConfig();
}
- public String resourceGroupName() {
- return resourceGroupName;
- }
-
public ConfigurationInner innerModel() {
return this.innerObject;
}
@@ -89,94 +82,4 @@ public ConfigurationInner innerModel() {
private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
return this.serviceManager;
}
-
- private String resourceGroupName;
-
- private String serverName;
-
- private String configurationName;
-
- public ConfigurationImpl withExistingFlexibleServer(String resourceGroupName, String serverName) {
- this.resourceGroupName = resourceGroupName;
- this.serverName = serverName;
- return this;
- }
-
- public Configuration create() {
- this.innerObject = serviceManager.serviceClient()
- .getConfigurations()
- .createOrUpdate(resourceGroupName, serverName, configurationName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public Configuration create(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getConfigurations()
- .createOrUpdate(resourceGroupName, serverName, configurationName, this.innerModel(), context);
- return this;
- }
-
- ConfigurationImpl(String name, com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerObject = new ConfigurationInner();
- this.serviceManager = serviceManager;
- this.configurationName = name;
- }
-
- public ConfigurationImpl update() {
- return this;
- }
-
- public Configuration apply() {
- this.innerObject = serviceManager.serviceClient()
- .getConfigurations()
- .update(resourceGroupName, serverName, configurationName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public Configuration apply(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getConfigurations()
- .update(resourceGroupName, serverName, configurationName, this.innerModel(), context);
- return this;
- }
-
- ConfigurationImpl(ConfigurationInner innerObject,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.serverName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "flexibleServers");
- this.configurationName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "configurations");
- }
-
- public Configuration refresh() {
- this.innerObject = serviceManager.serviceClient()
- .getConfigurations()
- .getWithResponse(resourceGroupName, serverName, configurationName, Context.NONE)
- .getValue();
- return this;
- }
-
- public Configuration refresh(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getConfigurations()
- .getWithResponse(resourceGroupName, serverName, configurationName, context)
- .getValue();
- return this;
- }
-
- public ConfigurationImpl withValue(String value) {
- this.innerModel().withValue(value);
- return this;
- }
-
- public ConfigurationImpl withCurrentValue(String currentValue) {
- this.innerModel().withCurrentValue(currentValue);
- return this;
- }
-
- public ConfigurationImpl withSource(ConfigurationSource source) {
- this.innerModel().withSource(source);
- return this;
- }
}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ConfigurationsClientImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ConfigurationsClientImpl.java
index 9ee5d2dda5ee8..03a5ceba6549f 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ConfigurationsClientImpl.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/ConfigurationsClientImpl.java
@@ -14,7 +14,6 @@
import com.azure.core.annotation.Patch;
import com.azure.core.annotation.PathParam;
import com.azure.core.annotation.Post;
-import com.azure.core.annotation.Put;
import com.azure.core.annotation.QueryParam;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceInterface;
@@ -72,17 +71,6 @@ public final class ConfigurationsClientImpl implements ConfigurationsClient {
@Host("{$host}")
@ServiceInterface(name = "MySqlManagementClien")
public interface ConfigurationsService {
- @Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations/{configurationName}")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("serverName") String serverName,
- @PathParam("configurationName") String configurationName,
- @BodyParam("application/json") ConfigurationInner parameters, @HeaderParam("Accept") String accept,
- Context context);
-
@Headers({ "Content-Type: application/json" })
@Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations/{configurationName}")
@ExpectedResponses({ 200, 202 })
@@ -121,8 +109,7 @@ Mono>> batchUpdate(@HostParam("$host") String endpoint
Mono> listByServer(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("serverName") String serverName,
- @QueryParam("tags") String tags, @QueryParam("keyword") String keyword, @QueryParam("page") Integer page,
- @QueryParam("pageSize") Integer pageSize, @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@@ -133,261 +120,6 @@ Mono> listByServerNext(
@HeaderParam("Accept") String accept, Context context);
}
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 a Configuration along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String serverName, String configurationName, ConfigurationInner 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (configurationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter configurationName 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 = "2023-06-01-preview";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
- this.client.getSubscriptionId(), resourceGroupName, serverName, configurationName, parameters, accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @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 represents a Configuration along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String serverName, String configurationName, ConfigurationInner 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 (serverName == null) {
- return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
- }
- if (configurationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter configurationName 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 = "2023-06-01-preview";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, serverName, configurationName, parameters, accept, context);
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 represents a Configuration.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ConfigurationInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
- Mono>> mono
- = createOrUpdateWithResponseAsync(resourceGroupName, serverName, configurationName, parameters);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- ConfigurationInner.class, ConfigurationInner.class, this.client.getContext());
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @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 represents a Configuration.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ConfigurationInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters,
- Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = createOrUpdateWithResponseAsync(resourceGroupName, serverName, configurationName, parameters, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- ConfigurationInner.class, ConfigurationInner.class, context);
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 represents a Configuration.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ConfigurationInner> beginCreateOrUpdate(String resourceGroupName,
- String serverName, String configurationName, ConfigurationInner parameters) {
- return this.beginCreateOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters)
- .getSyncPoller();
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @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 represents a Configuration.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ConfigurationInner> beginCreateOrUpdate(String resourceGroupName,
- String serverName, String configurationName, ConfigurationInner parameters, Context context) {
- return this.beginCreateOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters, context)
- .getSyncPoller();
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 a Configuration on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String serverName,
- String configurationName, ConfigurationInner parameters) {
- return beginCreateOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @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 represents a Configuration on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String serverName,
- String configurationName, ConfigurationInner parameters, Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 a Configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ConfigurationInner createOrUpdate(String resourceGroupName, String serverName, String configurationName,
- ConfigurationInner parameters) {
- return createOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters).block();
- }
-
- /**
- * Updates a configuration of a server.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param serverName The name of the server.
- * @param configurationName The name of the server configuration.
- * @param parameters The required parameters for updating a server configuration.
- * @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 represents a Configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ConfigurationInner createOrUpdate(String resourceGroupName, String serverName, String configurationName,
- ConfigurationInner parameters, Context context) {
- return createOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters, context).block();
- }
-
/**
* Updates a configuration of a server.
*
@@ -427,12 +159,11 @@ private Mono>> updateWithResponseAsync(String resource
} else {
parameters.validate();
}
- final String apiVersion = "2023-06-01-preview";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, serverName, configurationName, parameters, accept, context))
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, serverName, configurationName, parameters, accept,
+ context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -476,11 +207,10 @@ private Mono>> updateWithResponseAsync(String resource
} else {
parameters.validate();
}
- final String apiVersion = "2023-06-01-preview";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
- serverName, configurationName, parameters, accept, context);
+ return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, serverName, configurationName, parameters, accept, context);
}
/**
@@ -675,11 +405,10 @@ private Mono> getWithResponseAsync(String resourceG
return Mono
.error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
}
- final String apiVersion = "2023-06-01-preview";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
- resourceGroupName, serverName, configurationName, accept, context))
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, serverName, configurationName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -718,11 +447,10 @@ private Mono