@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
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
+
import { LongRunningBackups } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { MySQLManagementFlexibleServerClient } from "../mySQLManagementFlexibleServerClient";
|
|
16
|
+
import {
|
|
17
|
+
ServerBackupV2,
|
|
18
|
+
LongRunningBackupsListNextOptionalParams,
|
|
19
|
+
LongRunningBackupsListOptionalParams,
|
|
20
|
+
LongRunningBackupsListResponse,
|
|
21
|
+
LongRunningBackupsGetOptionalParams,
|
|
22
|
+
LongRunningBackupsGetResponse,
|
|
23
|
+
LongRunningBackupsListNextResponse,
|
|
24
|
+
} from "../models";
|
|
25
|
+
|
|
26
|
+
/// <reference lib="esnext.asynciterable" />
|
|
27
|
+
/** Class containing LongRunningBackups operations. */
|
|
28
|
+
export class LongRunningBackupsImpl implements LongRunningBackups {
|
|
29
|
+
private readonly client: MySQLManagementFlexibleServerClient;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Initialize a new instance of the class LongRunningBackups class.
|
|
33
|
+
* @param client Reference to the service client
|
|
34
|
+
*/
|
|
35
|
+
constructor(client: MySQLManagementFlexibleServerClient) {
|
|
36
|
+
this.client = client;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* List all the backups for a given server.
|
|
41
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
42
|
+
* @param serverName The name of the server.
|
|
43
|
+
* @param options The options parameters.
|
|
44
|
+
*/
|
|
45
|
+
public list(
|
|
46
|
+
resourceGroupName: string,
|
|
47
|
+
serverName: string,
|
|
48
|
+
options?: LongRunningBackupsListOptionalParams,
|
|
49
|
+
): PagedAsyncIterableIterator<ServerBackupV2> {
|
|
50
|
+
const iter = this.listPagingAll(resourceGroupName, serverName, options);
|
|
51
|
+
return {
|
|
52
|
+
next() {
|
|
53
|
+
return iter.next();
|
|
54
|
+
},
|
|
55
|
+
[Symbol.asyncIterator]() {
|
|
56
|
+
return this;
|
|
57
|
+
},
|
|
58
|
+
byPage: (settings?: PageSettings) => {
|
|
59
|
+
if (settings?.maxPageSize) {
|
|
60
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
61
|
+
}
|
|
62
|
+
return this.listPagingPage(
|
|
63
|
+
resourceGroupName,
|
|
64
|
+
serverName,
|
|
65
|
+
options,
|
|
66
|
+
settings,
|
|
67
|
+
);
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
private async *listPagingPage(
|
|
73
|
+
resourceGroupName: string,
|
|
74
|
+
serverName: string,
|
|
75
|
+
options?: LongRunningBackupsListOptionalParams,
|
|
76
|
+
settings?: PageSettings,
|
|
77
|
+
): AsyncIterableIterator<ServerBackupV2[]> {
|
|
78
|
+
let result: LongRunningBackupsListResponse;
|
|
79
|
+
let continuationToken = settings?.continuationToken;
|
|
80
|
+
if (!continuationToken) {
|
|
81
|
+
result = await this._list(resourceGroupName, serverName, options);
|
|
82
|
+
let page = result.value || [];
|
|
83
|
+
continuationToken = result.nextLink;
|
|
84
|
+
setContinuationToken(page, continuationToken);
|
|
85
|
+
yield page;
|
|
86
|
+
}
|
|
87
|
+
while (continuationToken) {
|
|
88
|
+
result = await this._listNext(
|
|
89
|
+
resourceGroupName,
|
|
90
|
+
serverName,
|
|
91
|
+
continuationToken,
|
|
92
|
+
options,
|
|
93
|
+
);
|
|
94
|
+
continuationToken = result.nextLink;
|
|
95
|
+
let page = result.value || [];
|
|
96
|
+
setContinuationToken(page, continuationToken);
|
|
97
|
+
yield page;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
private async *listPagingAll(
|
|
102
|
+
resourceGroupName: string,
|
|
103
|
+
serverName: string,
|
|
104
|
+
options?: LongRunningBackupsListOptionalParams,
|
|
105
|
+
): AsyncIterableIterator<ServerBackupV2> {
|
|
106
|
+
for await (const page of this.listPagingPage(
|
|
107
|
+
resourceGroupName,
|
|
108
|
+
serverName,
|
|
109
|
+
options,
|
|
110
|
+
)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Get backup for a given server.
|
|
117
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
118
|
+
* @param serverName The name of the server.
|
|
119
|
+
* @param backupName The name of the backup.
|
|
120
|
+
* @param options The options parameters.
|
|
121
|
+
*/
|
|
122
|
+
get(
|
|
123
|
+
resourceGroupName: string,
|
|
124
|
+
serverName: string,
|
|
125
|
+
backupName: string,
|
|
126
|
+
options?: LongRunningBackupsGetOptionalParams,
|
|
127
|
+
): Promise<LongRunningBackupsGetResponse> {
|
|
128
|
+
return this.client.sendOperationRequest(
|
|
129
|
+
{ resourceGroupName, serverName, backupName, options },
|
|
130
|
+
getOperationSpec,
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* List all the backups for a given server.
|
|
136
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
137
|
+
* @param serverName The name of the server.
|
|
138
|
+
* @param options The options parameters.
|
|
139
|
+
*/
|
|
140
|
+
private _list(
|
|
141
|
+
resourceGroupName: string,
|
|
142
|
+
serverName: string,
|
|
143
|
+
options?: LongRunningBackupsListOptionalParams,
|
|
144
|
+
): Promise<LongRunningBackupsListResponse> {
|
|
145
|
+
return this.client.sendOperationRequest(
|
|
146
|
+
{ resourceGroupName, serverName, options },
|
|
147
|
+
listOperationSpec,
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* ListNext
|
|
153
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
154
|
+
* @param serverName The name of the server.
|
|
155
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
156
|
+
* @param options The options parameters.
|
|
157
|
+
*/
|
|
158
|
+
private _listNext(
|
|
159
|
+
resourceGroupName: string,
|
|
160
|
+
serverName: string,
|
|
161
|
+
nextLink: string,
|
|
162
|
+
options?: LongRunningBackupsListNextOptionalParams,
|
|
163
|
+
): Promise<LongRunningBackupsListNextResponse> {
|
|
164
|
+
return this.client.sendOperationRequest(
|
|
165
|
+
{ resourceGroupName, serverName, nextLink, options },
|
|
166
|
+
listNextOperationSpec,
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
// Operation Specifications
|
|
171
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
172
|
+
|
|
173
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
174
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backupsV2/{backupName}",
|
|
175
|
+
httpMethod: "GET",
|
|
176
|
+
responses: {
|
|
177
|
+
200: {
|
|
178
|
+
bodyMapper: Mappers.ServerBackupV2,
|
|
179
|
+
},
|
|
180
|
+
default: {
|
|
181
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
queryParameters: [Parameters.apiVersion1],
|
|
185
|
+
urlParameters: [
|
|
186
|
+
Parameters.$host,
|
|
187
|
+
Parameters.subscriptionId,
|
|
188
|
+
Parameters.resourceGroupName,
|
|
189
|
+
Parameters.serverName,
|
|
190
|
+
Parameters.backupName,
|
|
191
|
+
],
|
|
192
|
+
headerParameters: [Parameters.accept],
|
|
193
|
+
serializer,
|
|
194
|
+
};
|
|
195
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
196
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backupsV2",
|
|
197
|
+
httpMethod: "GET",
|
|
198
|
+
responses: {
|
|
199
|
+
200: {
|
|
200
|
+
bodyMapper: Mappers.ServerBackupV2ListResult,
|
|
201
|
+
},
|
|
202
|
+
default: {
|
|
203
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
queryParameters: [Parameters.apiVersion1],
|
|
207
|
+
urlParameters: [
|
|
208
|
+
Parameters.$host,
|
|
209
|
+
Parameters.subscriptionId,
|
|
210
|
+
Parameters.resourceGroupName,
|
|
211
|
+
Parameters.serverName,
|
|
212
|
+
],
|
|
213
|
+
headerParameters: [Parameters.accept],
|
|
214
|
+
serializer,
|
|
215
|
+
};
|
|
216
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
217
|
+
path: "{nextLink}",
|
|
218
|
+
httpMethod: "GET",
|
|
219
|
+
responses: {
|
|
220
|
+
200: {
|
|
221
|
+
bodyMapper: Mappers.ServerBackupV2ListResult,
|
|
222
|
+
},
|
|
223
|
+
default: {
|
|
224
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
urlParameters: [
|
|
228
|
+
Parameters.$host,
|
|
229
|
+
Parameters.subscriptionId,
|
|
230
|
+
Parameters.resourceGroupName,
|
|
231
|
+
Parameters.serverName,
|
|
232
|
+
Parameters.nextLink,
|
|
233
|
+
],
|
|
234
|
+
headerParameters: [Parameters.accept],
|
|
235
|
+
serializer,
|
|
236
|
+
};
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
+
import { Maintenances } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { MySQLManagementFlexibleServerClient } from "../mySQLManagementFlexibleServerClient";
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller,
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
22
|
+
import {
|
|
23
|
+
Maintenance,
|
|
24
|
+
MaintenancesListNextOptionalParams,
|
|
25
|
+
MaintenancesListOptionalParams,
|
|
26
|
+
MaintenancesListResponse,
|
|
27
|
+
MaintenancesReadOptionalParams,
|
|
28
|
+
MaintenancesReadResponse,
|
|
29
|
+
MaintenancesUpdateOptionalParams,
|
|
30
|
+
MaintenancesUpdateResponse,
|
|
31
|
+
MaintenancesListNextResponse,
|
|
32
|
+
} from "../models";
|
|
33
|
+
|
|
34
|
+
/// <reference lib="esnext.asynciterable" />
|
|
35
|
+
/** Class containing Maintenances operations. */
|
|
36
|
+
export class MaintenancesImpl implements Maintenances {
|
|
37
|
+
private readonly client: MySQLManagementFlexibleServerClient;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Initialize a new instance of the class Maintenances class.
|
|
41
|
+
* @param client Reference to the service client
|
|
42
|
+
*/
|
|
43
|
+
constructor(client: MySQLManagementFlexibleServerClient) {
|
|
44
|
+
this.client = client;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* List maintenances.
|
|
49
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
50
|
+
* @param serverName The name of the server.
|
|
51
|
+
* @param options The options parameters.
|
|
52
|
+
*/
|
|
53
|
+
public list(
|
|
54
|
+
resourceGroupName: string,
|
|
55
|
+
serverName: string,
|
|
56
|
+
options?: MaintenancesListOptionalParams,
|
|
57
|
+
): PagedAsyncIterableIterator<Maintenance> {
|
|
58
|
+
const iter = this.listPagingAll(resourceGroupName, serverName, options);
|
|
59
|
+
return {
|
|
60
|
+
next() {
|
|
61
|
+
return iter.next();
|
|
62
|
+
},
|
|
63
|
+
[Symbol.asyncIterator]() {
|
|
64
|
+
return this;
|
|
65
|
+
},
|
|
66
|
+
byPage: (settings?: PageSettings) => {
|
|
67
|
+
if (settings?.maxPageSize) {
|
|
68
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
69
|
+
}
|
|
70
|
+
return this.listPagingPage(
|
|
71
|
+
resourceGroupName,
|
|
72
|
+
serverName,
|
|
73
|
+
options,
|
|
74
|
+
settings,
|
|
75
|
+
);
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
private async *listPagingPage(
|
|
81
|
+
resourceGroupName: string,
|
|
82
|
+
serverName: string,
|
|
83
|
+
options?: MaintenancesListOptionalParams,
|
|
84
|
+
settings?: PageSettings,
|
|
85
|
+
): AsyncIterableIterator<Maintenance[]> {
|
|
86
|
+
let result: MaintenancesListResponse;
|
|
87
|
+
let continuationToken = settings?.continuationToken;
|
|
88
|
+
if (!continuationToken) {
|
|
89
|
+
result = await this._list(resourceGroupName, serverName, options);
|
|
90
|
+
let page = result.value || [];
|
|
91
|
+
continuationToken = result.nextLink;
|
|
92
|
+
setContinuationToken(page, continuationToken);
|
|
93
|
+
yield page;
|
|
94
|
+
}
|
|
95
|
+
while (continuationToken) {
|
|
96
|
+
result = await this._listNext(
|
|
97
|
+
resourceGroupName,
|
|
98
|
+
serverName,
|
|
99
|
+
continuationToken,
|
|
100
|
+
options,
|
|
101
|
+
);
|
|
102
|
+
continuationToken = result.nextLink;
|
|
103
|
+
let page = result.value || [];
|
|
104
|
+
setContinuationToken(page, continuationToken);
|
|
105
|
+
yield page;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
private async *listPagingAll(
|
|
110
|
+
resourceGroupName: string,
|
|
111
|
+
serverName: string,
|
|
112
|
+
options?: MaintenancesListOptionalParams,
|
|
113
|
+
): AsyncIterableIterator<Maintenance> {
|
|
114
|
+
for await (const page of this.listPagingPage(
|
|
115
|
+
resourceGroupName,
|
|
116
|
+
serverName,
|
|
117
|
+
options,
|
|
118
|
+
)) {
|
|
119
|
+
yield* page;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Read maintenance.
|
|
125
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
126
|
+
* @param serverName The name of the server.
|
|
127
|
+
* @param maintenanceName The name of the maintenance.
|
|
128
|
+
* @param options The options parameters.
|
|
129
|
+
*/
|
|
130
|
+
read(
|
|
131
|
+
resourceGroupName: string,
|
|
132
|
+
serverName: string,
|
|
133
|
+
maintenanceName: string,
|
|
134
|
+
options?: MaintenancesReadOptionalParams,
|
|
135
|
+
): Promise<MaintenancesReadResponse> {
|
|
136
|
+
return this.client.sendOperationRequest(
|
|
137
|
+
{ resourceGroupName, serverName, maintenanceName, options },
|
|
138
|
+
readOperationSpec,
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Update maintenances.
|
|
144
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
145
|
+
* @param serverName The name of the server.
|
|
146
|
+
* @param maintenanceName The name of the maintenance.
|
|
147
|
+
* @param options The options parameters.
|
|
148
|
+
*/
|
|
149
|
+
async beginUpdate(
|
|
150
|
+
resourceGroupName: string,
|
|
151
|
+
serverName: string,
|
|
152
|
+
maintenanceName: string,
|
|
153
|
+
options?: MaintenancesUpdateOptionalParams,
|
|
154
|
+
): Promise<
|
|
155
|
+
SimplePollerLike<
|
|
156
|
+
OperationState<MaintenancesUpdateResponse>,
|
|
157
|
+
MaintenancesUpdateResponse
|
|
158
|
+
>
|
|
159
|
+
> {
|
|
160
|
+
const directSendOperation = async (
|
|
161
|
+
args: coreClient.OperationArguments,
|
|
162
|
+
spec: coreClient.OperationSpec,
|
|
163
|
+
): Promise<MaintenancesUpdateResponse> => {
|
|
164
|
+
return this.client.sendOperationRequest(args, spec);
|
|
165
|
+
};
|
|
166
|
+
const sendOperationFn = async (
|
|
167
|
+
args: coreClient.OperationArguments,
|
|
168
|
+
spec: coreClient.OperationSpec,
|
|
169
|
+
) => {
|
|
170
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
171
|
+
undefined;
|
|
172
|
+
const providedCallback = args.options?.onResponse;
|
|
173
|
+
const callback: coreClient.RawResponseCallback = (
|
|
174
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
175
|
+
flatResponse: unknown,
|
|
176
|
+
) => {
|
|
177
|
+
currentRawResponse = rawResponse;
|
|
178
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
179
|
+
};
|
|
180
|
+
const updatedArgs = {
|
|
181
|
+
...args,
|
|
182
|
+
options: {
|
|
183
|
+
...args.options,
|
|
184
|
+
onResponse: callback,
|
|
185
|
+
},
|
|
186
|
+
};
|
|
187
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
188
|
+
return {
|
|
189
|
+
flatResponse,
|
|
190
|
+
rawResponse: {
|
|
191
|
+
statusCode: currentRawResponse!.status,
|
|
192
|
+
body: currentRawResponse!.parsedBody,
|
|
193
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
194
|
+
},
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
const lro = createLroSpec({
|
|
199
|
+
sendOperationFn,
|
|
200
|
+
args: { resourceGroupName, serverName, maintenanceName, options },
|
|
201
|
+
spec: updateOperationSpec,
|
|
202
|
+
});
|
|
203
|
+
const poller = await createHttpPoller<
|
|
204
|
+
MaintenancesUpdateResponse,
|
|
205
|
+
OperationState<MaintenancesUpdateResponse>
|
|
206
|
+
>(lro, {
|
|
207
|
+
restoreFrom: options?.resumeFrom,
|
|
208
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
209
|
+
});
|
|
210
|
+
await poller.poll();
|
|
211
|
+
return poller;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Update maintenances.
|
|
216
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
217
|
+
* @param serverName The name of the server.
|
|
218
|
+
* @param maintenanceName The name of the maintenance.
|
|
219
|
+
* @param options The options parameters.
|
|
220
|
+
*/
|
|
221
|
+
async beginUpdateAndWait(
|
|
222
|
+
resourceGroupName: string,
|
|
223
|
+
serverName: string,
|
|
224
|
+
maintenanceName: string,
|
|
225
|
+
options?: MaintenancesUpdateOptionalParams,
|
|
226
|
+
): Promise<MaintenancesUpdateResponse> {
|
|
227
|
+
const poller = await this.beginUpdate(
|
|
228
|
+
resourceGroupName,
|
|
229
|
+
serverName,
|
|
230
|
+
maintenanceName,
|
|
231
|
+
options,
|
|
232
|
+
);
|
|
233
|
+
return poller.pollUntilDone();
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* List maintenances.
|
|
238
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
239
|
+
* @param serverName The name of the server.
|
|
240
|
+
* @param options The options parameters.
|
|
241
|
+
*/
|
|
242
|
+
private _list(
|
|
243
|
+
resourceGroupName: string,
|
|
244
|
+
serverName: string,
|
|
245
|
+
options?: MaintenancesListOptionalParams,
|
|
246
|
+
): Promise<MaintenancesListResponse> {
|
|
247
|
+
return this.client.sendOperationRequest(
|
|
248
|
+
{ resourceGroupName, serverName, options },
|
|
249
|
+
listOperationSpec,
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* ListNext
|
|
255
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
256
|
+
* @param serverName The name of the server.
|
|
257
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
258
|
+
* @param options The options parameters.
|
|
259
|
+
*/
|
|
260
|
+
private _listNext(
|
|
261
|
+
resourceGroupName: string,
|
|
262
|
+
serverName: string,
|
|
263
|
+
nextLink: string,
|
|
264
|
+
options?: MaintenancesListNextOptionalParams,
|
|
265
|
+
): Promise<MaintenancesListNextResponse> {
|
|
266
|
+
return this.client.sendOperationRequest(
|
|
267
|
+
{ resourceGroupName, serverName, nextLink, options },
|
|
268
|
+
listNextOperationSpec,
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
// Operation Specifications
|
|
273
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
274
|
+
|
|
275
|
+
const readOperationSpec: coreClient.OperationSpec = {
|
|
276
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/maintenances/{maintenanceName}",
|
|
277
|
+
httpMethod: "GET",
|
|
278
|
+
responses: {
|
|
279
|
+
200: {
|
|
280
|
+
bodyMapper: Mappers.Maintenance,
|
|
281
|
+
},
|
|
282
|
+
default: {
|
|
283
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
queryParameters: [Parameters.apiVersion1],
|
|
287
|
+
urlParameters: [
|
|
288
|
+
Parameters.$host,
|
|
289
|
+
Parameters.subscriptionId,
|
|
290
|
+
Parameters.resourceGroupName,
|
|
291
|
+
Parameters.serverName,
|
|
292
|
+
Parameters.maintenanceName,
|
|
293
|
+
],
|
|
294
|
+
headerParameters: [Parameters.accept],
|
|
295
|
+
serializer,
|
|
296
|
+
};
|
|
297
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
298
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/maintenances/{maintenanceName}",
|
|
299
|
+
httpMethod: "PATCH",
|
|
300
|
+
responses: {
|
|
301
|
+
200: {
|
|
302
|
+
bodyMapper: Mappers.Maintenance,
|
|
303
|
+
},
|
|
304
|
+
201: {
|
|
305
|
+
bodyMapper: Mappers.Maintenance,
|
|
306
|
+
},
|
|
307
|
+
202: {
|
|
308
|
+
bodyMapper: Mappers.Maintenance,
|
|
309
|
+
},
|
|
310
|
+
204: {
|
|
311
|
+
bodyMapper: Mappers.Maintenance,
|
|
312
|
+
},
|
|
313
|
+
default: {
|
|
314
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
requestBody: Parameters.parameters15,
|
|
318
|
+
queryParameters: [Parameters.apiVersion1],
|
|
319
|
+
urlParameters: [
|
|
320
|
+
Parameters.$host,
|
|
321
|
+
Parameters.subscriptionId,
|
|
322
|
+
Parameters.resourceGroupName,
|
|
323
|
+
Parameters.serverName,
|
|
324
|
+
Parameters.maintenanceName,
|
|
325
|
+
],
|
|
326
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
327
|
+
mediaType: "json",
|
|
328
|
+
serializer,
|
|
329
|
+
};
|
|
330
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
331
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/maintenances",
|
|
332
|
+
httpMethod: "GET",
|
|
333
|
+
responses: {
|
|
334
|
+
200: {
|
|
335
|
+
bodyMapper: Mappers.MaintenanceListResult,
|
|
336
|
+
},
|
|
337
|
+
default: {
|
|
338
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
339
|
+
},
|
|
340
|
+
},
|
|
341
|
+
queryParameters: [Parameters.apiVersion1],
|
|
342
|
+
urlParameters: [
|
|
343
|
+
Parameters.$host,
|
|
344
|
+
Parameters.subscriptionId,
|
|
345
|
+
Parameters.resourceGroupName,
|
|
346
|
+
Parameters.serverName,
|
|
347
|
+
],
|
|
348
|
+
headerParameters: [Parameters.accept],
|
|
349
|
+
serializer,
|
|
350
|
+
};
|
|
351
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
352
|
+
path: "{nextLink}",
|
|
353
|
+
httpMethod: "GET",
|
|
354
|
+
responses: {
|
|
355
|
+
200: {
|
|
356
|
+
bodyMapper: Mappers.MaintenanceListResult,
|
|
357
|
+
},
|
|
358
|
+
default: {
|
|
359
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
360
|
+
},
|
|
361
|
+
},
|
|
362
|
+
urlParameters: [
|
|
363
|
+
Parameters.$host,
|
|
364
|
+
Parameters.subscriptionId,
|
|
365
|
+
Parameters.resourceGroupName,
|
|
366
|
+
Parameters.serverName,
|
|
367
|
+
Parameters.nextLink,
|
|
368
|
+
],
|
|
369
|
+
headerParameters: [Parameters.accept],
|
|
370
|
+
serializer,
|
|
371
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { OperationProgress } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
import { MySQLManagementFlexibleServerClient } from "../mySQLManagementFlexibleServerClient";
|
|
14
|
+
import {
|
|
15
|
+
OperationProgressGetOptionalParams,
|
|
16
|
+
OperationProgressGetResponse,
|
|
17
|
+
} from "../models";
|
|
18
|
+
|
|
19
|
+
/** Class containing OperationProgress operations. */
|
|
20
|
+
export class OperationProgressImpl implements OperationProgress {
|
|
21
|
+
private readonly client: MySQLManagementFlexibleServerClient;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Initialize a new instance of the class OperationProgress class.
|
|
25
|
+
* @param client Reference to the service client
|
|
26
|
+
*/
|
|
27
|
+
constructor(client: MySQLManagementFlexibleServerClient) {
|
|
28
|
+
this.client = client;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Get the operation result for a long running operation.
|
|
33
|
+
* @param locationName The name of the location.
|
|
34
|
+
* @param operationId The ID of an ongoing async operation.
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
get(
|
|
38
|
+
locationName: string,
|
|
39
|
+
operationId: string,
|
|
40
|
+
options?: OperationProgressGetOptionalParams,
|
|
41
|
+
): Promise<OperationProgressGetResponse> {
|
|
42
|
+
return this.client.sendOperationRequest(
|
|
43
|
+
{ locationName, operationId, options },
|
|
44
|
+
getOperationSpec,
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
// Operation Specifications
|
|
49
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
50
|
+
|
|
51
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
52
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/operationProgress/{operationId}",
|
|
53
|
+
httpMethod: "GET",
|
|
54
|
+
responses: {
|
|
55
|
+
200: {
|
|
56
|
+
bodyMapper: Mappers.OperationProgressResult,
|
|
57
|
+
},
|
|
58
|
+
default: {
|
|
59
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
queryParameters: [Parameters.apiVersion2],
|
|
63
|
+
urlParameters: [
|
|
64
|
+
Parameters.$host,
|
|
65
|
+
Parameters.subscriptionId,
|
|
66
|
+
Parameters.locationName,
|
|
67
|
+
Parameters.operationId1,
|
|
68
|
+
],
|
|
69
|
+
headerParameters: [Parameters.accept],
|
|
70
|
+
serializer,
|
|
71
|
+
};
|