@azure/arm-mysql-flexible 4.0.0-beta.1 → 4.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +234 -5
- package/LICENSE +1 -1
- package/dist/index.js +3909 -1522
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/advancedThreatProtectionSettingsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/advancedThreatProtectionSettingsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/advancedThreatProtectionSettingsGetSample.js +40 -0
- package/dist-esm/samples-dev/advancedThreatProtectionSettingsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/advancedThreatProtectionSettingsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/advancedThreatProtectionSettingsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/advancedThreatProtectionSettingsListSample.js +55 -0
- package/dist-esm/samples-dev/advancedThreatProtectionSettingsListSample.js.map +1 -0
- package/dist-esm/samples-dev/advancedThreatProtectionSettingsUpdatePutSample.d.ts +2 -0
- package/dist-esm/samples-dev/advancedThreatProtectionSettingsUpdatePutSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/advancedThreatProtectionSettingsUpdatePutSample.js +62 -0
- package/dist-esm/samples-dev/advancedThreatProtectionSettingsUpdatePutSample.js.map +1 -0
- package/dist-esm/samples-dev/advancedThreatProtectionSettingsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/advancedThreatProtectionSettingsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/advancedThreatProtectionSettingsUpdateSample.js +62 -0
- package/dist-esm/samples-dev/advancedThreatProtectionSettingsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/azureAdAdministratorsCreateOrUpdateSample.js +3 -3
- package/dist-esm/samples-dev/azureAdAdministratorsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/azureAdAdministratorsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/azureAdAdministratorsGetSample.js +1 -1
- package/dist-esm/samples-dev/azureAdAdministratorsListByServerSample.js +5 -10
- package/dist-esm/samples-dev/azureAdAdministratorsListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/backupAndExportCreateSample.js +4 -4
- package/dist-esm/samples-dev/backupAndExportCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/backupAndExportValidateBackupSample.js +1 -1
- package/dist-esm/samples-dev/backupsGetSample.js +1 -1
- package/dist-esm/samples-dev/backupsListByServerSample.js +5 -10
- package/dist-esm/samples-dev/backupsListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/backupsPutSample.js +1 -1
- package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js +3 -3
- package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js.map +1 -1
- package/dist-esm/samples-dev/checkNameAvailabilityWithoutLocationExecuteSample.js +3 -3
- package/dist-esm/samples-dev/checkNameAvailabilityWithoutLocationExecuteSample.js.map +1 -1
- package/dist-esm/samples-dev/checkVirtualNetworkSubnetUsageExecuteSample.js +3 -3
- package/dist-esm/samples-dev/checkVirtualNetworkSubnetUsageExecuteSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsBatchUpdateSample.js +4 -4
- package/dist-esm/samples-dev/configurationsBatchUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/configurationsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsGetSample.js +1 -1
- package/dist-esm/samples-dev/configurationsListByServerSample.js +6 -11
- package/dist-esm/samples-dev/configurationsListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsUpdateSample.js +2 -2
- package/dist-esm/samples-dev/configurationsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesCreateOrUpdateSample.js +3 -3
- package/dist-esm/samples-dev/databasesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/databasesGetSample.js +1 -1
- package/dist-esm/samples-dev/databasesListByServerSample.js +5 -10
- package/dist-esm/samples-dev/databasesListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +3 -3
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/firewallRulesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/firewallRulesGetSample.js +1 -1
- package/dist-esm/samples-dev/firewallRulesListByServerSample.js +5 -10
- package/dist-esm/samples-dev/firewallRulesListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js +2 -4
- package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js.map +1 -1
- package/dist-esm/samples-dev/locationBasedCapabilitiesListSample.js +5 -10
- package/dist-esm/samples-dev/locationBasedCapabilitiesListSample.js.map +1 -1
- package/dist-esm/samples-dev/locationBasedCapabilitySetGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/locationBasedCapabilitySetGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/locationBasedCapabilitySetGetSample.js +39 -0
- package/dist-esm/samples-dev/locationBasedCapabilitySetGetSample.js.map +1 -0
- package/dist-esm/samples-dev/locationBasedCapabilitySetListSample.d.ts +2 -0
- package/dist-esm/samples-dev/locationBasedCapabilitySetListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/locationBasedCapabilitySetListSample.js +54 -0
- package/dist-esm/samples-dev/locationBasedCapabilitySetListSample.js.map +1 -0
- package/dist-esm/samples-dev/logFilesListByServerSample.js +5 -10
- package/dist-esm/samples-dev/logFilesListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/longRunningBackupCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/longRunningBackupCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/longRunningBackupCreateSample.js +40 -0
- package/dist-esm/samples-dev/longRunningBackupCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/longRunningBackupsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/longRunningBackupsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/longRunningBackupsGetSample.js +40 -0
- package/dist-esm/samples-dev/longRunningBackupsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/longRunningBackupsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/longRunningBackupsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/longRunningBackupsListSample.js +55 -0
- package/dist-esm/samples-dev/longRunningBackupsListSample.js.map +1 -0
- package/dist-esm/samples-dev/maintenancesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/maintenancesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/maintenancesListSample.js +55 -0
- package/dist-esm/samples-dev/maintenancesListSample.js.map +1 -0
- package/dist-esm/samples-dev/maintenancesReadSample.d.ts +2 -0
- package/dist-esm/samples-dev/maintenancesReadSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/maintenancesReadSample.js +40 -0
- package/dist-esm/samples-dev/maintenancesReadSample.js.map +1 -0
- package/dist-esm/samples-dev/maintenancesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/maintenancesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/maintenancesUpdateSample.js +44 -0
- package/dist-esm/samples-dev/maintenancesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationProgressGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationProgressGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationProgressGetSample.js +58 -0
- package/dist-esm/samples-dev/operationProgressGetSample.js.map +1 -0
- package/dist-esm/samples-dev/operationResultsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationResultsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationResultsGetSample.js +39 -0
- package/dist-esm/samples-dev/operationResultsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +5 -10
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/replicasListByServerSample.js +5 -10
- package/dist-esm/samples-dev/replicasListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/serversCreateSample.js +22 -14
- package/dist-esm/samples-dev/serversCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/serversDeleteSample.js +1 -1
- package/dist-esm/samples-dev/serversFailoverSample.js +1 -1
- package/dist-esm/samples-dev/serversGetSample.js +2 -2
- package/dist-esm/samples-dev/serversListByResourceGroupSample.js +5 -10
- package/dist-esm/samples-dev/serversListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/serversListSample.js +5 -10
- package/dist-esm/samples-dev/serversListSample.js.map +1 -1
- package/dist-esm/samples-dev/serversMigrationCutoverMigrationSample.d.ts +2 -0
- package/dist-esm/samples-dev/serversMigrationCutoverMigrationSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serversMigrationCutoverMigrationSample.js +39 -0
- package/dist-esm/samples-dev/serversMigrationCutoverMigrationSample.js.map +1 -0
- package/dist-esm/samples-dev/serversResetGtidSample.js +3 -3
- package/dist-esm/samples-dev/serversResetGtidSample.js.map +1 -1
- package/dist-esm/samples-dev/serversRestartSample.js +3 -3
- package/dist-esm/samples-dev/serversRestartSample.js.map +1 -1
- package/dist-esm/samples-dev/serversStartSample.js +1 -1
- package/dist-esm/samples-dev/serversStopSample.js +1 -1
- package/dist-esm/samples-dev/serversUpdateSample.js +13 -12
- package/dist-esm/samples-dev/serversUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/serversValidateEstimateHighAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/serversValidateEstimateHighAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serversValidateEstimateHighAvailabilitySample.js +42 -0
- package/dist-esm/samples-dev/serversValidateEstimateHighAvailabilitySample.js.map +1 -0
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +820 -94
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +131 -9
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +38 -5
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1609 -761
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +16 -5
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +180 -85
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/mySQLManagementFlexibleServerClient.d.ts +12 -3
- package/dist-esm/src/mySQLManagementFlexibleServerClient.d.ts.map +1 -1
- package/dist-esm/src/mySQLManagementFlexibleServerClient.js +27 -18
- package/dist-esm/src/mySQLManagementFlexibleServerClient.js.map +1 -1
- package/dist-esm/src/operations/advancedThreatProtectionSettings.d.ts +83 -0
- package/dist-esm/src/operations/advancedThreatProtectionSettings.d.ts.map +1 -0
- package/dist-esm/src/operations/advancedThreatProtectionSettings.js +382 -0
- package/dist-esm/src/operations/advancedThreatProtectionSettings.js.map +1 -0
- package/dist-esm/src/operations/azureADAdministrators.d.ts.map +1 -1
- package/dist-esm/src/operations/azureADAdministrators.js +41 -46
- package/dist-esm/src/operations/azureADAdministrators.js.map +1 -1
- package/dist-esm/src/operations/backupAndExport.d.ts.map +1 -1
- package/dist-esm/src/operations/backupAndExport.js +18 -18
- package/dist-esm/src/operations/backupAndExport.js.map +1 -1
- package/dist-esm/src/operations/backups.js +24 -29
- package/dist-esm/src/operations/backups.js.map +1 -1
- package/dist-esm/src/operations/checkNameAvailability.js +6 -6
- package/dist-esm/src/operations/checkNameAvailability.js.map +1 -1
- package/dist-esm/src/operations/checkNameAvailabilityWithoutLocation.d.ts.map +1 -1
- package/dist-esm/src/operations/checkNameAvailabilityWithoutLocation.js +5 -5
- package/dist-esm/src/operations/checkNameAvailabilityWithoutLocation.js.map +1 -1
- package/dist-esm/src/operations/checkVirtualNetworkSubnetUsage.d.ts.map +1 -1
- package/dist-esm/src/operations/checkVirtualNetworkSubnetUsage.js +7 -7
- package/dist-esm/src/operations/checkVirtualNetworkSubnetUsage.js.map +1 -1
- package/dist-esm/src/operations/configurations.d.ts.map +1 -1
- package/dist-esm/src/operations/configurations.js +62 -67
- package/dist-esm/src/operations/configurations.js.map +1 -1
- package/dist-esm/src/operations/databases.d.ts.map +1 -1
- package/dist-esm/src/operations/databases.js +42 -47
- package/dist-esm/src/operations/databases.js.map +1 -1
- package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
- package/dist-esm/src/operations/firewallRules.js +42 -47
- package/dist-esm/src/operations/firewallRules.js.map +1 -1
- package/dist-esm/src/operations/getPrivateDnsZoneSuffix.js +5 -5
- package/dist-esm/src/operations/getPrivateDnsZoneSuffix.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +8 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +8 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/locationBasedCapabilities.d.ts.map +1 -1
- package/dist-esm/src/operations/locationBasedCapabilities.js +15 -20
- package/dist-esm/src/operations/locationBasedCapabilities.js.map +1 -1
- package/dist-esm/src/operations/locationBasedCapabilitySet.d.ts +42 -0
- package/dist-esm/src/operations/locationBasedCapabilitySet.d.ts.map +1 -0
- package/dist-esm/src/operations/locationBasedCapabilitySet.js +175 -0
- package/dist-esm/src/operations/locationBasedCapabilitySet.js.map +1 -0
- package/dist-esm/src/operations/logFiles.js +14 -19
- package/dist-esm/src/operations/logFiles.js.map +1 -1
- package/dist-esm/src/operations/longRunningBackup.d.ts +30 -0
- package/dist-esm/src/operations/longRunningBackup.d.ts.map +1 -0
- package/dist-esm/src/operations/longRunningBackup.js +117 -0
- package/dist-esm/src/operations/longRunningBackup.js.map +1 -0
- package/dist-esm/src/operations/longRunningBackups.d.ts +46 -0
- package/dist-esm/src/operations/longRunningBackups.d.ts.map +1 -0
- package/dist-esm/src/operations/longRunningBackups.js +182 -0
- package/dist-esm/src/operations/longRunningBackups.js.map +1 -0
- package/dist-esm/src/operations/maintenances.d.ts +63 -0
- package/dist-esm/src/operations/maintenances.d.ts.map +1 -0
- package/dist-esm/src/operations/maintenances.js +274 -0
- package/dist-esm/src/operations/maintenances.js.map +1 -0
- package/dist-esm/src/operations/operationProgress.d.ts +20 -0
- package/dist-esm/src/operations/operationProgress.d.ts.map +1 -0
- package/dist-esm/src/operations/operationProgress.js +53 -0
- package/dist-esm/src/operations/operationProgress.js.map +1 -0
- package/dist-esm/src/operations/operationResults.d.ts +20 -0
- package/dist-esm/src/operations/operationResults.d.ts.map +1 -0
- package/dist-esm/src/operations/operationResults.js +53 -0
- package/dist-esm/src/operations/operationResults.js.map +1 -0
- package/dist-esm/src/operations/operations.js +13 -18
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/replicas.js +15 -20
- package/dist-esm/src/operations/replicas.js.map +1 -1
- package/dist-esm/src/operations/servers.d.ts +9 -1
- package/dist-esm/src/operations/servers.d.ts.map +1 -1
- package/dist-esm/src/operations/servers.js +153 -130
- package/dist-esm/src/operations/servers.js.map +1 -1
- package/dist-esm/src/operations/serversMigration.d.ts +28 -0
- package/dist-esm/src/operations/serversMigration.d.ts.map +1 -0
- package/dist-esm/src/operations/serversMigration.js +112 -0
- package/dist-esm/src/operations/serversMigration.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/advancedThreatProtectionSettings.d.ts +58 -0
- package/dist-esm/src/operationsInterfaces/advancedThreatProtectionSettings.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/advancedThreatProtectionSettings.js +9 -0
- package/dist-esm/src/operationsInterfaces/advancedThreatProtectionSettings.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +8 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/locationBasedCapabilitySet.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/locationBasedCapabilitySet.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/locationBasedCapabilitySet.js +9 -0
- package/dist-esm/src/operationsInterfaces/locationBasedCapabilitySet.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/longRunningBackup.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/longRunningBackup.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/longRunningBackup.js +9 -0
- package/dist-esm/src/operationsInterfaces/longRunningBackup.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/longRunningBackups.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/longRunningBackups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/longRunningBackups.js +9 -0
- package/dist-esm/src/operationsInterfaces/longRunningBackups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/maintenances.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/maintenances.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/maintenances.js +9 -0
- package/dist-esm/src/operationsInterfaces/maintenances.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationProgress.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/operationProgress.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationProgress.js +9 -0
- package/dist-esm/src/operationsInterfaces/operationProgress.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationResults.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/operationResults.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationResults.js +9 -0
- package/dist-esm/src/operationsInterfaces/operationResults.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/servers.d.ts +9 -1
- package/dist-esm/src/operationsInterfaces/servers.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/serversMigration.d.ts +20 -0
- package/dist-esm/src/operationsInterfaces/serversMigration.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/serversMigration.js +9 -0
- package/dist-esm/src/operationsInterfaces/serversMigration.js.map +1 -0
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/test/mysql_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/mysql_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/mysql_operations_test.spec.js +125 -0
- package/dist-esm/test/mysql_operations_test.spec.js.map +1 -0
- package/package.json +19 -24
- package/review/arm-mysql-flexible.api.md +596 -40
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +954 -116
- package/src/models/mappers.ts +1714 -780
- package/src/models/parameters.ts +197 -86
- package/src/mySQLManagementFlexibleServerClient.ts +71 -23
- package/src/operations/advancedThreatProtectionSettings.ts +528 -0
- package/src/operations/azureADAdministrators.ts +76 -82
- package/src/operations/backupAndExport.ts +33 -36
- package/src/operations/backups.ts +40 -43
- package/src/operations/checkNameAvailability.ts +10 -11
- package/src/operations/checkNameAvailabilityWithoutLocation.ts +11 -11
- package/src/operations/checkVirtualNetworkSubnetUsage.ts +13 -13
- package/src/operations/configurations.ts +108 -116
- package/src/operations/databases.ts +77 -83
- package/src/operations/firewallRules.ts +77 -83
- package/src/operations/getPrivateDnsZoneSuffix.ts +7 -7
- package/src/operations/index.ts +8 -0
- package/src/operations/locationBasedCapabilities.ts +23 -23
- package/src/operations/locationBasedCapabilitySet.ts +211 -0
- package/src/operations/logFiles.ts +24 -25
- package/src/operations/longRunningBackup.ts +167 -0
- package/src/operations/longRunningBackups.ts +236 -0
- package/src/operations/maintenances.ts +371 -0
- package/src/operations/operationProgress.ts +71 -0
- package/src/operations/operationResults.ts +71 -0
- package/src/operations/operations.ts +17 -17
- package/src/operations/replicas.ts +25 -26
- package/src/operations/servers.ts +269 -242
- package/src/operations/serversMigration.ts +159 -0
- package/src/operationsInterfaces/advancedThreatProtectionSettings.ts +121 -0
- package/src/operationsInterfaces/azureADAdministrators.ts +7 -7
- package/src/operationsInterfaces/backupAndExport.ts +4 -4
- package/src/operationsInterfaces/backups.ts +4 -4
- package/src/operationsInterfaces/checkNameAvailability.ts +2 -2
- package/src/operationsInterfaces/checkNameAvailabilityWithoutLocation.ts +2 -2
- package/src/operationsInterfaces/checkVirtualNetworkSubnetUsage.ts +2 -2
- package/src/operationsInterfaces/configurations.ts +9 -9
- package/src/operationsInterfaces/databases.ts +7 -7
- package/src/operationsInterfaces/firewallRules.ts +7 -7
- package/src/operationsInterfaces/getPrivateDnsZoneSuffix.ts +2 -2
- package/src/operationsInterfaces/index.ts +8 -0
- package/src/operationsInterfaces/locationBasedCapabilities.ts +2 -2
- package/src/operationsInterfaces/locationBasedCapabilitySet.ts +40 -0
- package/src/operationsInterfaces/logFiles.ts +1 -1
- package/src/operationsInterfaces/longRunningBackup.ts +48 -0
- package/src/operationsInterfaces/longRunningBackups.ts +44 -0
- package/src/operationsInterfaces/maintenances.ts +78 -0
- package/src/operationsInterfaces/operationProgress.ts +27 -0
- package/src/operationsInterfaces/operationResults.ts +27 -0
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/replicas.ts +1 -1
- package/src/operationsInterfaces/servers.ts +35 -19
- package/src/operationsInterfaces/serversMigration.ts +44 -0
- package/src/pagingHelper.ts +1 -1
- package/types/arm-mysql-flexible.d.ts +1134 -110
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/rollup.config.js +0 -122
package/src/models/parameters.ts
CHANGED
|
@@ -9,21 +9,26 @@
|
|
|
9
9
|
import {
|
|
10
10
|
OperationParameter,
|
|
11
11
|
OperationURLParameter,
|
|
12
|
-
OperationQueryParameter
|
|
12
|
+
OperationQueryParameter,
|
|
13
13
|
} from "@azure/core-client";
|
|
14
14
|
import {
|
|
15
15
|
AzureADAdministrator as AzureADAdministratorMapper,
|
|
16
16
|
BackupAndExportRequest as BackupAndExportRequestMapper,
|
|
17
|
+
ServerBackupV2 as ServerBackupV2Mapper,
|
|
17
18
|
Configuration as ConfigurationMapper,
|
|
18
19
|
ConfigurationListForBatchUpdate as ConfigurationListForBatchUpdateMapper,
|
|
19
20
|
Database as DatabaseMapper,
|
|
20
21
|
FirewallRule as FirewallRuleMapper,
|
|
21
22
|
Server as ServerMapper,
|
|
22
23
|
ServerForUpdate as ServerForUpdateMapper,
|
|
24
|
+
HighAvailabilityValidationEstimation as HighAvailabilityValidationEstimationMapper,
|
|
23
25
|
ServerRestartParameter as ServerRestartParameterMapper,
|
|
24
26
|
ServerGtidSetParameter as ServerGtidSetParameterMapper,
|
|
27
|
+
AdvancedThreatProtectionForUpdate as AdvancedThreatProtectionForUpdateMapper,
|
|
28
|
+
AdvancedThreatProtection as AdvancedThreatProtectionMapper,
|
|
25
29
|
VirtualNetworkSubnetUsageParameter as VirtualNetworkSubnetUsageParameterMapper,
|
|
26
|
-
NameAvailabilityRequest as NameAvailabilityRequestMapper
|
|
30
|
+
NameAvailabilityRequest as NameAvailabilityRequestMapper,
|
|
31
|
+
MaintenanceUpdate as MaintenanceUpdateMapper,
|
|
27
32
|
} from "../models/mappers";
|
|
28
33
|
|
|
29
34
|
export const contentType: OperationParameter = {
|
|
@@ -33,14 +38,14 @@ export const contentType: OperationParameter = {
|
|
|
33
38
|
isConstant: true,
|
|
34
39
|
serializedName: "Content-Type",
|
|
35
40
|
type: {
|
|
36
|
-
name: "String"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
41
|
+
name: "String",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
39
44
|
};
|
|
40
45
|
|
|
41
46
|
export const parameters: OperationParameter = {
|
|
42
47
|
parameterPath: "parameters",
|
|
43
|
-
mapper: AzureADAdministratorMapper
|
|
48
|
+
mapper: AzureADAdministratorMapper,
|
|
44
49
|
};
|
|
45
50
|
|
|
46
51
|
export const accept: OperationParameter = {
|
|
@@ -50,9 +55,9 @@ export const accept: OperationParameter = {
|
|
|
50
55
|
isConstant: true,
|
|
51
56
|
serializedName: "Accept",
|
|
52
57
|
type: {
|
|
53
|
-
name: "String"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
58
|
+
name: "String",
|
|
59
|
+
},
|
|
60
|
+
},
|
|
56
61
|
};
|
|
57
62
|
|
|
58
63
|
export const $host: OperationURLParameter = {
|
|
@@ -61,36 +66,33 @@ export const $host: OperationURLParameter = {
|
|
|
61
66
|
serializedName: "$host",
|
|
62
67
|
required: true,
|
|
63
68
|
type: {
|
|
64
|
-
name: "String"
|
|
65
|
-
}
|
|
69
|
+
name: "String",
|
|
70
|
+
},
|
|
66
71
|
},
|
|
67
|
-
skipEncoding: true
|
|
72
|
+
skipEncoding: true,
|
|
68
73
|
};
|
|
69
74
|
|
|
70
75
|
export const apiVersion: OperationQueryParameter = {
|
|
71
76
|
parameterPath: "apiVersion",
|
|
72
77
|
mapper: {
|
|
73
|
-
defaultValue: "
|
|
78
|
+
defaultValue: "2023-06-01-preview",
|
|
74
79
|
isConstant: true,
|
|
75
80
|
serializedName: "api-version",
|
|
76
81
|
type: {
|
|
77
|
-
name: "String"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
82
|
+
name: "String",
|
|
83
|
+
},
|
|
84
|
+
},
|
|
80
85
|
};
|
|
81
86
|
|
|
82
87
|
export const subscriptionId: OperationURLParameter = {
|
|
83
88
|
parameterPath: "subscriptionId",
|
|
84
89
|
mapper: {
|
|
85
|
-
constraints: {
|
|
86
|
-
MinLength: 1
|
|
87
|
-
},
|
|
88
90
|
serializedName: "subscriptionId",
|
|
89
91
|
required: true,
|
|
90
92
|
type: {
|
|
91
|
-
name: "
|
|
92
|
-
}
|
|
93
|
-
}
|
|
93
|
+
name: "Uuid",
|
|
94
|
+
},
|
|
95
|
+
},
|
|
94
96
|
};
|
|
95
97
|
|
|
96
98
|
export const resourceGroupName: OperationURLParameter = {
|
|
@@ -98,28 +100,28 @@ export const resourceGroupName: OperationURLParameter = {
|
|
|
98
100
|
mapper: {
|
|
99
101
|
constraints: {
|
|
100
102
|
MaxLength: 90,
|
|
101
|
-
MinLength: 1
|
|
103
|
+
MinLength: 1,
|
|
102
104
|
},
|
|
103
105
|
serializedName: "resourceGroupName",
|
|
104
106
|
required: true,
|
|
105
107
|
type: {
|
|
106
|
-
name: "String"
|
|
107
|
-
}
|
|
108
|
-
}
|
|
108
|
+
name: "String",
|
|
109
|
+
},
|
|
110
|
+
},
|
|
109
111
|
};
|
|
110
112
|
|
|
111
113
|
export const serverName: OperationURLParameter = {
|
|
112
114
|
parameterPath: "serverName",
|
|
113
115
|
mapper: {
|
|
114
116
|
constraints: {
|
|
115
|
-
Pattern: new RegExp("^[a-z0-9][-a-z0-9]*(?<!-)$")
|
|
117
|
+
Pattern: new RegExp("^[a-z0-9][-a-z0-9]*(?<!-)$"),
|
|
116
118
|
},
|
|
117
119
|
serializedName: "serverName",
|
|
118
120
|
required: true,
|
|
119
121
|
type: {
|
|
120
|
-
name: "String"
|
|
121
|
-
}
|
|
122
|
-
}
|
|
122
|
+
name: "String",
|
|
123
|
+
},
|
|
124
|
+
},
|
|
123
125
|
};
|
|
124
126
|
|
|
125
127
|
export const administratorName: OperationURLParameter = {
|
|
@@ -128,9 +130,9 @@ export const administratorName: OperationURLParameter = {
|
|
|
128
130
|
serializedName: "administratorName",
|
|
129
131
|
required: true,
|
|
130
132
|
type: {
|
|
131
|
-
name: "String"
|
|
132
|
-
}
|
|
133
|
-
}
|
|
133
|
+
name: "String",
|
|
134
|
+
},
|
|
135
|
+
},
|
|
134
136
|
};
|
|
135
137
|
|
|
136
138
|
export const nextLink: OperationURLParameter = {
|
|
@@ -139,46 +141,51 @@ export const nextLink: OperationURLParameter = {
|
|
|
139
141
|
serializedName: "nextLink",
|
|
140
142
|
required: true,
|
|
141
143
|
type: {
|
|
142
|
-
name: "String"
|
|
143
|
-
}
|
|
144
|
+
name: "String",
|
|
145
|
+
},
|
|
144
146
|
},
|
|
145
|
-
skipEncoding: true
|
|
147
|
+
skipEncoding: true,
|
|
146
148
|
};
|
|
147
149
|
|
|
148
150
|
export const apiVersion1: OperationQueryParameter = {
|
|
149
151
|
parameterPath: "apiVersion",
|
|
150
152
|
mapper: {
|
|
151
|
-
defaultValue: "
|
|
153
|
+
defaultValue: "2023-10-01-preview",
|
|
152
154
|
isConstant: true,
|
|
153
155
|
serializedName: "api-version",
|
|
154
156
|
type: {
|
|
155
|
-
name: "String"
|
|
156
|
-
}
|
|
157
|
-
}
|
|
157
|
+
name: "String",
|
|
158
|
+
},
|
|
159
|
+
},
|
|
158
160
|
};
|
|
159
161
|
|
|
160
162
|
export const backupName: OperationURLParameter = {
|
|
161
163
|
parameterPath: "backupName",
|
|
162
164
|
mapper: {
|
|
163
165
|
constraints: {
|
|
164
|
-
Pattern: new RegExp("^[-\\w\\._]+$")
|
|
166
|
+
Pattern: new RegExp("^[-\\w\\._]+$"),
|
|
165
167
|
},
|
|
166
168
|
serializedName: "backupName",
|
|
167
169
|
required: true,
|
|
168
170
|
type: {
|
|
169
|
-
name: "String"
|
|
170
|
-
}
|
|
171
|
-
}
|
|
171
|
+
name: "String",
|
|
172
|
+
},
|
|
173
|
+
},
|
|
172
174
|
};
|
|
173
175
|
|
|
174
176
|
export const parameters1: OperationParameter = {
|
|
175
177
|
parameterPath: "parameters",
|
|
176
|
-
mapper: BackupAndExportRequestMapper
|
|
178
|
+
mapper: BackupAndExportRequestMapper,
|
|
177
179
|
};
|
|
178
180
|
|
|
179
181
|
export const parameters2: OperationParameter = {
|
|
182
|
+
parameterPath: ["options", "parameters"],
|
|
183
|
+
mapper: ServerBackupV2Mapper,
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
export const parameters3: OperationParameter = {
|
|
180
187
|
parameterPath: "parameters",
|
|
181
|
-
mapper: ConfigurationMapper
|
|
188
|
+
mapper: ConfigurationMapper,
|
|
182
189
|
};
|
|
183
190
|
|
|
184
191
|
export const configurationName: OperationURLParameter = {
|
|
@@ -187,14 +194,14 @@ export const configurationName: OperationURLParameter = {
|
|
|
187
194
|
serializedName: "configurationName",
|
|
188
195
|
required: true,
|
|
189
196
|
type: {
|
|
190
|
-
name: "String"
|
|
191
|
-
}
|
|
192
|
-
}
|
|
197
|
+
name: "String",
|
|
198
|
+
},
|
|
199
|
+
},
|
|
193
200
|
};
|
|
194
201
|
|
|
195
|
-
export const
|
|
202
|
+
export const parameters4: OperationParameter = {
|
|
196
203
|
parameterPath: "parameters",
|
|
197
|
-
mapper: ConfigurationListForBatchUpdateMapper
|
|
204
|
+
mapper: ConfigurationListForBatchUpdateMapper,
|
|
198
205
|
};
|
|
199
206
|
|
|
200
207
|
export const tags: OperationQueryParameter = {
|
|
@@ -202,9 +209,9 @@ export const tags: OperationQueryParameter = {
|
|
|
202
209
|
mapper: {
|
|
203
210
|
serializedName: "tags",
|
|
204
211
|
type: {
|
|
205
|
-
name: "String"
|
|
206
|
-
}
|
|
207
|
-
}
|
|
212
|
+
name: "String",
|
|
213
|
+
},
|
|
214
|
+
},
|
|
208
215
|
};
|
|
209
216
|
|
|
210
217
|
export const keyword: OperationQueryParameter = {
|
|
@@ -212,9 +219,9 @@ export const keyword: OperationQueryParameter = {
|
|
|
212
219
|
mapper: {
|
|
213
220
|
serializedName: "keyword",
|
|
214
221
|
type: {
|
|
215
|
-
name: "String"
|
|
216
|
-
}
|
|
217
|
-
}
|
|
222
|
+
name: "String",
|
|
223
|
+
},
|
|
224
|
+
},
|
|
218
225
|
};
|
|
219
226
|
|
|
220
227
|
export const page: OperationQueryParameter = {
|
|
@@ -222,9 +229,9 @@ export const page: OperationQueryParameter = {
|
|
|
222
229
|
mapper: {
|
|
223
230
|
serializedName: "page",
|
|
224
231
|
type: {
|
|
225
|
-
name: "Number"
|
|
226
|
-
}
|
|
227
|
-
}
|
|
232
|
+
name: "Number",
|
|
233
|
+
},
|
|
234
|
+
},
|
|
228
235
|
};
|
|
229
236
|
|
|
230
237
|
export const pageSize: OperationQueryParameter = {
|
|
@@ -232,14 +239,14 @@ export const pageSize: OperationQueryParameter = {
|
|
|
232
239
|
mapper: {
|
|
233
240
|
serializedName: "pageSize",
|
|
234
241
|
type: {
|
|
235
|
-
name: "Number"
|
|
236
|
-
}
|
|
237
|
-
}
|
|
242
|
+
name: "Number",
|
|
243
|
+
},
|
|
244
|
+
},
|
|
238
245
|
};
|
|
239
246
|
|
|
240
|
-
export const
|
|
247
|
+
export const parameters5: OperationParameter = {
|
|
241
248
|
parameterPath: "parameters",
|
|
242
|
-
mapper: DatabaseMapper
|
|
249
|
+
mapper: DatabaseMapper,
|
|
243
250
|
};
|
|
244
251
|
|
|
245
252
|
export const databaseName: OperationURLParameter = {
|
|
@@ -248,64 +255,168 @@ export const databaseName: OperationURLParameter = {
|
|
|
248
255
|
serializedName: "databaseName",
|
|
249
256
|
required: true,
|
|
250
257
|
type: {
|
|
251
|
-
name: "String"
|
|
252
|
-
}
|
|
253
|
-
}
|
|
258
|
+
name: "String",
|
|
259
|
+
},
|
|
260
|
+
},
|
|
254
261
|
};
|
|
255
262
|
|
|
256
|
-
export const
|
|
263
|
+
export const parameters6: OperationParameter = {
|
|
257
264
|
parameterPath: "parameters",
|
|
258
|
-
mapper: FirewallRuleMapper
|
|
265
|
+
mapper: FirewallRuleMapper,
|
|
259
266
|
};
|
|
260
267
|
|
|
261
268
|
export const firewallRuleName: OperationURLParameter = {
|
|
262
269
|
parameterPath: "firewallRuleName",
|
|
263
270
|
mapper: {
|
|
271
|
+
constraints: {
|
|
272
|
+
Pattern: new RegExp("^[a-zA-Z0-9][-_a-zA-Z0-9]{0,79}(?<!-)$"),
|
|
273
|
+
},
|
|
264
274
|
serializedName: "firewallRuleName",
|
|
265
275
|
required: true,
|
|
266
276
|
type: {
|
|
267
|
-
name: "String"
|
|
268
|
-
}
|
|
269
|
-
}
|
|
277
|
+
name: "String",
|
|
278
|
+
},
|
|
279
|
+
},
|
|
270
280
|
};
|
|
271
281
|
|
|
272
|
-
export const
|
|
282
|
+
export const parameters7: OperationParameter = {
|
|
273
283
|
parameterPath: "parameters",
|
|
274
|
-
mapper: ServerMapper
|
|
284
|
+
mapper: ServerMapper,
|
|
275
285
|
};
|
|
276
286
|
|
|
277
|
-
export const
|
|
278
|
-
parameterPath: "
|
|
279
|
-
mapper:
|
|
287
|
+
export const apiVersion2: OperationQueryParameter = {
|
|
288
|
+
parameterPath: "apiVersion",
|
|
289
|
+
mapper: {
|
|
290
|
+
defaultValue: "2023-12-30",
|
|
291
|
+
isConstant: true,
|
|
292
|
+
serializedName: "api-version",
|
|
293
|
+
type: {
|
|
294
|
+
name: "String",
|
|
295
|
+
},
|
|
296
|
+
},
|
|
280
297
|
};
|
|
281
298
|
|
|
282
299
|
export const parameters8: OperationParameter = {
|
|
283
300
|
parameterPath: "parameters",
|
|
284
|
-
mapper:
|
|
301
|
+
mapper: ServerForUpdateMapper,
|
|
285
302
|
};
|
|
286
303
|
|
|
287
304
|
export const parameters9: OperationParameter = {
|
|
288
305
|
parameterPath: "parameters",
|
|
289
|
-
mapper:
|
|
306
|
+
mapper: HighAvailabilityValidationEstimationMapper,
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
export const parameters10: OperationParameter = {
|
|
310
|
+
parameterPath: "parameters",
|
|
311
|
+
mapper: ServerRestartParameterMapper,
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
export const parameters11: OperationParameter = {
|
|
315
|
+
parameterPath: "parameters",
|
|
316
|
+
mapper: ServerGtidSetParameterMapper,
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
export const advancedThreatProtectionName: OperationURLParameter = {
|
|
320
|
+
parameterPath: "advancedThreatProtectionName",
|
|
321
|
+
mapper: {
|
|
322
|
+
serializedName: "advancedThreatProtectionName",
|
|
323
|
+
required: true,
|
|
324
|
+
type: {
|
|
325
|
+
name: "String",
|
|
326
|
+
},
|
|
327
|
+
},
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
export const parameters12: OperationParameter = {
|
|
331
|
+
parameterPath: "parameters",
|
|
332
|
+
mapper: AdvancedThreatProtectionForUpdateMapper,
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
export const parameters13: OperationParameter = {
|
|
336
|
+
parameterPath: "parameters",
|
|
337
|
+
mapper: AdvancedThreatProtectionMapper,
|
|
290
338
|
};
|
|
291
339
|
|
|
292
340
|
export const locationName: OperationURLParameter = {
|
|
293
341
|
parameterPath: "locationName",
|
|
294
342
|
mapper: {
|
|
343
|
+
constraints: {
|
|
344
|
+
Pattern: new RegExp("^[ \\w]+$"),
|
|
345
|
+
MinLength: 1,
|
|
346
|
+
},
|
|
295
347
|
serializedName: "locationName",
|
|
296
348
|
required: true,
|
|
297
349
|
type: {
|
|
298
|
-
name: "String"
|
|
299
|
-
}
|
|
300
|
-
}
|
|
350
|
+
name: "String",
|
|
351
|
+
},
|
|
352
|
+
},
|
|
301
353
|
};
|
|
302
354
|
|
|
303
|
-
export const
|
|
355
|
+
export const capabilitySetName: OperationURLParameter = {
|
|
356
|
+
parameterPath: "capabilitySetName",
|
|
357
|
+
mapper: {
|
|
358
|
+
defaultValue: "default",
|
|
359
|
+
constraints: {
|
|
360
|
+
Pattern: new RegExp("^[a-z0-9][-a-z0-9]*(?<!-)$"),
|
|
361
|
+
},
|
|
362
|
+
serializedName: "capabilitySetName",
|
|
363
|
+
required: true,
|
|
364
|
+
type: {
|
|
365
|
+
name: "String",
|
|
366
|
+
},
|
|
367
|
+
},
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
export const parameters14: OperationParameter = {
|
|
304
371
|
parameterPath: "parameters",
|
|
305
|
-
mapper: VirtualNetworkSubnetUsageParameterMapper
|
|
372
|
+
mapper: VirtualNetworkSubnetUsageParameterMapper,
|
|
306
373
|
};
|
|
307
374
|
|
|
308
375
|
export const nameAvailabilityRequest: OperationParameter = {
|
|
309
376
|
parameterPath: "nameAvailabilityRequest",
|
|
310
|
-
mapper: NameAvailabilityRequestMapper
|
|
377
|
+
mapper: NameAvailabilityRequestMapper,
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
export const operationId: OperationURLParameter = {
|
|
381
|
+
parameterPath: "operationId",
|
|
382
|
+
mapper: {
|
|
383
|
+
serializedName: "operationId",
|
|
384
|
+
required: true,
|
|
385
|
+
type: {
|
|
386
|
+
name: "String",
|
|
387
|
+
},
|
|
388
|
+
},
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
export const operationId1: OperationURLParameter = {
|
|
392
|
+
parameterPath: "operationId",
|
|
393
|
+
mapper: {
|
|
394
|
+
constraints: {
|
|
395
|
+
MinLength: 1,
|
|
396
|
+
},
|
|
397
|
+
serializedName: "operationId",
|
|
398
|
+
required: true,
|
|
399
|
+
type: {
|
|
400
|
+
name: "String",
|
|
401
|
+
},
|
|
402
|
+
},
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
export const maintenanceName: OperationURLParameter = {
|
|
406
|
+
parameterPath: "maintenanceName",
|
|
407
|
+
mapper: {
|
|
408
|
+
constraints: {
|
|
409
|
+
Pattern: new RegExp("^[a-zA-Z0-9-_]*$"),
|
|
410
|
+
},
|
|
411
|
+
serializedName: "maintenanceName",
|
|
412
|
+
required: true,
|
|
413
|
+
type: {
|
|
414
|
+
name: "String",
|
|
415
|
+
},
|
|
416
|
+
},
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
export const parameters15: OperationParameter = {
|
|
420
|
+
parameterPath: ["options", "parameters"],
|
|
421
|
+
mapper: MaintenanceUpdateMapper,
|
|
311
422
|
};
|
|
@@ -13,58 +13,90 @@ import {
|
|
|
13
13
|
AzureADAdministratorsImpl,
|
|
14
14
|
BackupsImpl,
|
|
15
15
|
BackupAndExportImpl,
|
|
16
|
+
LongRunningBackupImpl,
|
|
17
|
+
LongRunningBackupsImpl,
|
|
16
18
|
ConfigurationsImpl,
|
|
17
19
|
DatabasesImpl,
|
|
18
20
|
FirewallRulesImpl,
|
|
19
21
|
ServersImpl,
|
|
20
22
|
ReplicasImpl,
|
|
23
|
+
ServersMigrationImpl,
|
|
24
|
+
AdvancedThreatProtectionSettingsImpl,
|
|
21
25
|
LogFilesImpl,
|
|
22
26
|
LocationBasedCapabilitiesImpl,
|
|
27
|
+
LocationBasedCapabilitySetImpl,
|
|
23
28
|
CheckVirtualNetworkSubnetUsageImpl,
|
|
24
29
|
CheckNameAvailabilityImpl,
|
|
25
30
|
CheckNameAvailabilityWithoutLocationImpl,
|
|
31
|
+
OperationResultsImpl,
|
|
32
|
+
OperationProgressImpl,
|
|
26
33
|
GetPrivateDnsZoneSuffixImpl,
|
|
27
|
-
OperationsImpl
|
|
34
|
+
OperationsImpl,
|
|
35
|
+
MaintenancesImpl,
|
|
28
36
|
} from "./operations";
|
|
29
37
|
import {
|
|
30
38
|
AzureADAdministrators,
|
|
31
39
|
Backups,
|
|
32
40
|
BackupAndExport,
|
|
41
|
+
LongRunningBackup,
|
|
42
|
+
LongRunningBackups,
|
|
33
43
|
Configurations,
|
|
34
44
|
Databases,
|
|
35
45
|
FirewallRules,
|
|
36
46
|
Servers,
|
|
37
47
|
Replicas,
|
|
48
|
+
ServersMigration,
|
|
49
|
+
AdvancedThreatProtectionSettings,
|
|
38
50
|
LogFiles,
|
|
39
51
|
LocationBasedCapabilities,
|
|
52
|
+
LocationBasedCapabilitySet,
|
|
40
53
|
CheckVirtualNetworkSubnetUsage,
|
|
41
54
|
CheckNameAvailability,
|
|
42
55
|
CheckNameAvailabilityWithoutLocation,
|
|
56
|
+
OperationResults,
|
|
57
|
+
OperationProgress,
|
|
43
58
|
GetPrivateDnsZoneSuffix,
|
|
44
|
-
Operations
|
|
59
|
+
Operations,
|
|
60
|
+
Maintenances,
|
|
45
61
|
} from "./operationsInterfaces";
|
|
46
62
|
import { MySQLManagementFlexibleServerClientOptionalParams } from "./models";
|
|
47
63
|
|
|
48
64
|
export class MySQLManagementFlexibleServerClient extends coreClient.ServiceClient {
|
|
49
65
|
$host: string;
|
|
50
|
-
subscriptionId
|
|
66
|
+
subscriptionId?: string;
|
|
51
67
|
|
|
52
68
|
/**
|
|
53
69
|
* Initializes a new instance of the MySQLManagementFlexibleServerClient class.
|
|
54
70
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
55
|
-
* @param subscriptionId The ID of the target subscription.
|
|
71
|
+
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
|
|
56
72
|
* @param options The parameter options
|
|
57
73
|
*/
|
|
58
74
|
constructor(
|
|
59
75
|
credentials: coreAuth.TokenCredential,
|
|
60
76
|
subscriptionId: string,
|
|
61
|
-
options?: MySQLManagementFlexibleServerClientOptionalParams
|
|
77
|
+
options?: MySQLManagementFlexibleServerClientOptionalParams,
|
|
78
|
+
);
|
|
79
|
+
constructor(
|
|
80
|
+
credentials: coreAuth.TokenCredential,
|
|
81
|
+
options?: MySQLManagementFlexibleServerClientOptionalParams,
|
|
82
|
+
);
|
|
83
|
+
constructor(
|
|
84
|
+
credentials: coreAuth.TokenCredential,
|
|
85
|
+
subscriptionIdOrOptions?:
|
|
86
|
+
| MySQLManagementFlexibleServerClientOptionalParams
|
|
87
|
+
| string,
|
|
88
|
+
options?: MySQLManagementFlexibleServerClientOptionalParams,
|
|
62
89
|
) {
|
|
63
90
|
if (credentials === undefined) {
|
|
64
91
|
throw new Error("'credentials' cannot be null");
|
|
65
92
|
}
|
|
66
|
-
|
|
67
|
-
|
|
93
|
+
|
|
94
|
+
let subscriptionId: string | undefined;
|
|
95
|
+
|
|
96
|
+
if (typeof subscriptionIdOrOptions === "string") {
|
|
97
|
+
subscriptionId = subscriptionIdOrOptions;
|
|
98
|
+
} else if (typeof subscriptionIdOrOptions === "object") {
|
|
99
|
+
options = subscriptionIdOrOptions;
|
|
68
100
|
}
|
|
69
101
|
|
|
70
102
|
// Initializing default values for options
|
|
@@ -73,10 +105,10 @@ export class MySQLManagementFlexibleServerClient extends coreClient.ServiceClien
|
|
|
73
105
|
}
|
|
74
106
|
const defaults: MySQLManagementFlexibleServerClientOptionalParams = {
|
|
75
107
|
requestContentType: "application/json; charset=utf-8",
|
|
76
|
-
credential: credentials
|
|
108
|
+
credential: credentials,
|
|
77
109
|
};
|
|
78
110
|
|
|
79
|
-
const packageDetails = `azsdk-js-arm-mysql-flexible/4.0.0-beta.
|
|
111
|
+
const packageDetails = `azsdk-js-arm-mysql-flexible/4.0.0-beta.2`;
|
|
80
112
|
const userAgentPrefix =
|
|
81
113
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
82
114
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -86,20 +118,21 @@ export class MySQLManagementFlexibleServerClient extends coreClient.ServiceClien
|
|
|
86
118
|
...defaults,
|
|
87
119
|
...options,
|
|
88
120
|
userAgentOptions: {
|
|
89
|
-
userAgentPrefix
|
|
121
|
+
userAgentPrefix,
|
|
90
122
|
},
|
|
91
123
|
endpoint:
|
|
92
|
-
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
124
|
+
options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
93
125
|
};
|
|
94
126
|
super(optionsWithDefaults);
|
|
95
127
|
|
|
96
128
|
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
97
129
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
98
|
-
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
|
130
|
+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
|
131
|
+
options.pipeline.getOrderedPolicies();
|
|
99
132
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
100
133
|
(pipelinePolicy) =>
|
|
101
134
|
pipelinePolicy.name ===
|
|
102
|
-
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
135
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
103
136
|
);
|
|
104
137
|
}
|
|
105
138
|
if (
|
|
@@ -109,7 +142,7 @@ export class MySQLManagementFlexibleServerClient extends coreClient.ServiceClien
|
|
|
109
142
|
!bearerTokenAuthenticationPolicyFound
|
|
110
143
|
) {
|
|
111
144
|
this.pipeline.removePolicy({
|
|
112
|
-
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
145
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
113
146
|
});
|
|
114
147
|
this.pipeline.addPolicy(
|
|
115
148
|
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
@@ -119,9 +152,9 @@ export class MySQLManagementFlexibleServerClient extends coreClient.ServiceClien
|
|
|
119
152
|
`${optionsWithDefaults.endpoint}/.default`,
|
|
120
153
|
challengeCallbacks: {
|
|
121
154
|
authorizeRequestOnChallenge:
|
|
122
|
-
coreClient.authorizeRequestOnClaimChallenge
|
|
123
|
-
}
|
|
124
|
-
})
|
|
155
|
+
coreClient.authorizeRequestOnClaimChallenge,
|
|
156
|
+
},
|
|
157
|
+
}),
|
|
125
158
|
);
|
|
126
159
|
}
|
|
127
160
|
// Parameter assignments
|
|
@@ -132,37 +165,52 @@ export class MySQLManagementFlexibleServerClient extends coreClient.ServiceClien
|
|
|
132
165
|
this.azureADAdministrators = new AzureADAdministratorsImpl(this);
|
|
133
166
|
this.backups = new BackupsImpl(this);
|
|
134
167
|
this.backupAndExport = new BackupAndExportImpl(this);
|
|
168
|
+
this.longRunningBackup = new LongRunningBackupImpl(this);
|
|
169
|
+
this.longRunningBackups = new LongRunningBackupsImpl(this);
|
|
135
170
|
this.configurations = new ConfigurationsImpl(this);
|
|
136
171
|
this.databases = new DatabasesImpl(this);
|
|
137
172
|
this.firewallRules = new FirewallRulesImpl(this);
|
|
138
173
|
this.servers = new ServersImpl(this);
|
|
139
174
|
this.replicas = new ReplicasImpl(this);
|
|
175
|
+
this.serversMigration = new ServersMigrationImpl(this);
|
|
176
|
+
this.advancedThreatProtectionSettings =
|
|
177
|
+
new AdvancedThreatProtectionSettingsImpl(this);
|
|
140
178
|
this.logFiles = new LogFilesImpl(this);
|
|
141
179
|
this.locationBasedCapabilities = new LocationBasedCapabilitiesImpl(this);
|
|
142
|
-
this.
|
|
143
|
-
|
|
144
|
-
|
|
180
|
+
this.locationBasedCapabilitySet = new LocationBasedCapabilitySetImpl(this);
|
|
181
|
+
this.checkVirtualNetworkSubnetUsage =
|
|
182
|
+
new CheckVirtualNetworkSubnetUsageImpl(this);
|
|
145
183
|
this.checkNameAvailability = new CheckNameAvailabilityImpl(this);
|
|
146
|
-
this.checkNameAvailabilityWithoutLocation =
|
|
147
|
-
this
|
|
148
|
-
);
|
|
184
|
+
this.checkNameAvailabilityWithoutLocation =
|
|
185
|
+
new CheckNameAvailabilityWithoutLocationImpl(this);
|
|
186
|
+
this.operationResults = new OperationResultsImpl(this);
|
|
187
|
+
this.operationProgress = new OperationProgressImpl(this);
|
|
149
188
|
this.getPrivateDnsZoneSuffix = new GetPrivateDnsZoneSuffixImpl(this);
|
|
150
189
|
this.operations = new OperationsImpl(this);
|
|
190
|
+
this.maintenances = new MaintenancesImpl(this);
|
|
151
191
|
}
|
|
152
192
|
|
|
153
193
|
azureADAdministrators: AzureADAdministrators;
|
|
154
194
|
backups: Backups;
|
|
155
195
|
backupAndExport: BackupAndExport;
|
|
196
|
+
longRunningBackup: LongRunningBackup;
|
|
197
|
+
longRunningBackups: LongRunningBackups;
|
|
156
198
|
configurations: Configurations;
|
|
157
199
|
databases: Databases;
|
|
158
200
|
firewallRules: FirewallRules;
|
|
159
201
|
servers: Servers;
|
|
160
202
|
replicas: Replicas;
|
|
203
|
+
serversMigration: ServersMigration;
|
|
204
|
+
advancedThreatProtectionSettings: AdvancedThreatProtectionSettings;
|
|
161
205
|
logFiles: LogFiles;
|
|
162
206
|
locationBasedCapabilities: LocationBasedCapabilities;
|
|
207
|
+
locationBasedCapabilitySet: LocationBasedCapabilitySet;
|
|
163
208
|
checkVirtualNetworkSubnetUsage: CheckVirtualNetworkSubnetUsage;
|
|
164
209
|
checkNameAvailability: CheckNameAvailability;
|
|
165
210
|
checkNameAvailabilityWithoutLocation: CheckNameAvailabilityWithoutLocation;
|
|
211
|
+
operationResults: OperationResults;
|
|
212
|
+
operationProgress: OperationProgress;
|
|
166
213
|
getPrivateDnsZoneSuffix: GetPrivateDnsZoneSuffix;
|
|
167
214
|
operations: Operations;
|
|
215
|
+
maintenances: Maintenances;
|
|
168
216
|
}
|