@azure/arm-mysql 3.4.0 → 5.0.0-alpha.20211215.1
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 +26 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +65 -83
- package/dist/index.js +7800 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1641 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +131 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +79 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +2145 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +46 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +372 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/mySQLManagementClient.d.ts +65 -0
- package/dist-esm/src/mySQLManagementClient.d.ts.map +1 -0
- package/dist-esm/src/mySQLManagementClient.js +151 -0
- package/dist-esm/src/mySQLManagementClient.js.map +1 -0
- package/dist-esm/src/mySQLManagementClientContext.d.ts +15 -0
- package/dist-esm/src/mySQLManagementClientContext.d.ts.map +1 -0
- package/dist-esm/src/mySQLManagementClientContext.js +48 -0
- package/dist-esm/src/mySQLManagementClientContext.js.map +1 -0
- package/dist-esm/src/operations/advisors.d.ts +46 -0
- package/dist-esm/src/operations/advisors.d.ts.map +1 -0
- package/dist-esm/src/operations/advisors.js +160 -0
- package/dist-esm/src/operations/advisors.js.map +1 -0
- package/dist-esm/src/operations/checkNameAvailability.d.ts +19 -0
- package/dist-esm/src/operations/checkNameAvailability.d.ts.map +1 -0
- package/dist-esm/src/operations/checkNameAvailability.js +49 -0
- package/dist-esm/src/operations/checkNameAvailability.js.map +1 -0
- package/dist-esm/src/operations/configurations.d.ts +57 -0
- package/dist-esm/src/operations/configurations.d.ts.map +1 -0
- package/dist-esm/src/operations/configurations.js +219 -0
- package/dist-esm/src/operations/configurations.js.map +1 -0
- package/dist-esm/src/operations/databases.d.ts +73 -0
- package/dist-esm/src/operations/databases.d.ts.map +1 -0
- package/dist-esm/src/operations/databases.js +293 -0
- package/dist-esm/src/operations/databases.js.map +1 -0
- package/dist-esm/src/operations/firewallRules.d.ts +73 -0
- package/dist-esm/src/operations/firewallRules.d.ts.map +1 -0
- package/dist-esm/src/operations/firewallRules.js +293 -0
- package/dist-esm/src/operations/firewallRules.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +26 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +33 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/locationBasedPerformanceTier.d.ts +28 -0
- package/dist-esm/src/operations/locationBasedPerformanceTier.d.ts.map +1 -0
- package/dist-esm/src/operations/locationBasedPerformanceTier.js +96 -0
- package/dist-esm/src/operations/locationBasedPerformanceTier.js.map +1 -0
- package/dist-esm/src/operations/locationBasedRecommendedActionSessionsOperationStatus.d.ts +20 -0
- package/dist-esm/src/operations/locationBasedRecommendedActionSessionsOperationStatus.d.ts.map +1 -0
- package/dist-esm/src/operations/locationBasedRecommendedActionSessionsOperationStatus.js +50 -0
- package/dist-esm/src/operations/locationBasedRecommendedActionSessionsOperationStatus.js.map +1 -0
- package/dist-esm/src/operations/locationBasedRecommendedActionSessionsResult.d.ts +38 -0
- package/dist-esm/src/operations/locationBasedRecommendedActionSessionsResult.d.ts.map +1 -0
- package/dist-esm/src/operations/locationBasedRecommendedActionSessionsResult.js +137 -0
- package/dist-esm/src/operations/locationBasedRecommendedActionSessionsResult.js.map +1 -0
- package/dist-esm/src/operations/logFiles.d.ts +30 -0
- package/dist-esm/src/operations/logFiles.d.ts.map +1 -0
- package/dist-esm/src/operations/logFiles.js +99 -0
- package/dist-esm/src/operations/logFiles.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +18 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +46 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +99 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +429 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +46 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +169 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/queryTexts.d.ts +49 -0
- package/dist-esm/src/operations/queryTexts.d.ts.map +1 -0
- package/dist-esm/src/operations/queryTexts.js +172 -0
- package/dist-esm/src/operations/queryTexts.js.map +1 -0
- package/dist-esm/src/operations/recommendedActions.d.ts +50 -0
- package/dist-esm/src/operations/recommendedActions.d.ts.map +1 -0
- package/dist-esm/src/operations/recommendedActions.js +173 -0
- package/dist-esm/src/operations/recommendedActions.js.map +1 -0
- package/dist-esm/src/operations/recoverableServers.d.ts +20 -0
- package/dist-esm/src/operations/recoverableServers.d.ts.map +1 -0
- package/dist-esm/src/operations/recoverableServers.js +53 -0
- package/dist-esm/src/operations/recoverableServers.js.map +1 -0
- package/dist-esm/src/operations/replicas.d.ts +30 -0
- package/dist-esm/src/operations/replicas.d.ts.map +1 -0
- package/dist-esm/src/operations/replicas.js +99 -0
- package/dist-esm/src/operations/replicas.js.map +1 -0
- package/dist-esm/src/operations/serverAdministrators.d.ts +70 -0
- package/dist-esm/src/operations/serverAdministrators.d.ts.map +1 -0
- package/dist-esm/src/operations/serverAdministrators.js +287 -0
- package/dist-esm/src/operations/serverAdministrators.js.map +1 -0
- package/dist-esm/src/operations/serverBasedPerformanceTier.d.ts +30 -0
- package/dist-esm/src/operations/serverBasedPerformanceTier.d.ts.map +1 -0
- package/dist-esm/src/operations/serverBasedPerformanceTier.js +99 -0
- package/dist-esm/src/operations/serverBasedPerformanceTier.js.map +1 -0
- package/dist-esm/src/operations/serverKeys.d.ts +81 -0
- package/dist-esm/src/operations/serverKeys.d.ts.map +1 -0
- package/dist-esm/src/operations/serverKeys.js +331 -0
- package/dist-esm/src/operations/serverKeys.js.map +1 -0
- package/dist-esm/src/operations/serverParameters.d.ts +30 -0
- package/dist-esm/src/operations/serverParameters.d.ts.map +1 -0
- package/dist-esm/src/operations/serverParameters.js +110 -0
- package/dist-esm/src/operations/serverParameters.js.map +1 -0
- package/dist-esm/src/operations/serverSecurityAlertPolicies.d.ts +65 -0
- package/dist-esm/src/operations/serverSecurityAlertPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/serverSecurityAlertPolicies.js +255 -0
- package/dist-esm/src/operations/serverSecurityAlertPolicies.js.map +1 -0
- package/dist-esm/src/operations/servers.d.ts +156 -0
- package/dist-esm/src/operations/servers.d.ts.map +1 -0
- package/dist-esm/src/operations/servers.js +722 -0
- package/dist-esm/src/operations/servers.js.map +1 -0
- package/dist-esm/src/operations/topQueryStatistics.d.ts +49 -0
- package/dist-esm/src/operations/topQueryStatistics.d.ts.map +1 -0
- package/dist-esm/src/operations/topQueryStatistics.js +174 -0
- package/dist-esm/src/operations/topQueryStatistics.js.map +1 -0
- package/dist-esm/src/operations/virtualNetworkRules.d.ts +81 -0
- package/dist-esm/src/operations/virtualNetworkRules.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualNetworkRules.js +320 -0
- package/dist-esm/src/operations/virtualNetworkRules.js.map +1 -0
- package/dist-esm/src/operations/waitStatistics.d.ts +49 -0
- package/dist-esm/src/operations/waitStatistics.d.ts.map +1 -0
- package/dist-esm/src/operations/waitStatistics.js +174 -0
- package/dist-esm/src/operations/waitStatistics.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/advisors.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/advisors.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/advisors.js +9 -0
- package/dist-esm/src/operationsInterfaces/advisors.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.js +9 -0
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/configurations.d.ts +40 -0
- package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/configurations.js +9 -0
- package/dist-esm/src/operationsInterfaces/configurations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/databases.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/databases.js +9 -0
- package/dist-esm/src/operationsInterfaces/databases.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +26 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +33 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/locationBasedPerformanceTier.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/locationBasedPerformanceTier.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/locationBasedPerformanceTier.js +9 -0
- package/dist-esm/src/operationsInterfaces/locationBasedPerformanceTier.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/locationBasedRecommendedActionSessionsOperationStatus.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/locationBasedRecommendedActionSessionsOperationStatus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/locationBasedRecommendedActionSessionsOperationStatus.js +9 -0
- package/dist-esm/src/operationsInterfaces/locationBasedRecommendedActionSessionsOperationStatus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/locationBasedRecommendedActionSessionsResult.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/locationBasedRecommendedActionSessionsResult.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/locationBasedRecommendedActionSessionsResult.js +9 -0
- package/dist-esm/src/operationsInterfaces/locationBasedRecommendedActionSessionsResult.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/logFiles.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/logFiles.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/logFiles.js +9 -0
- package/dist-esm/src/operationsInterfaces/logFiles.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/queryTexts.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/queryTexts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/queryTexts.js +9 -0
- package/dist-esm/src/operationsInterfaces/queryTexts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/recommendedActions.d.ts +23 -0
- package/dist-esm/src/operationsInterfaces/recommendedActions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/recommendedActions.js +9 -0
- package/dist-esm/src/operationsInterfaces/recommendedActions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/recoverableServers.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/recoverableServers.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/recoverableServers.js +9 -0
- package/dist-esm/src/operationsInterfaces/recoverableServers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicas.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/replicas.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/replicas.js +9 -0
- package/dist-esm/src/operationsInterfaces/replicas.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/serverAdministrators.d.ts +53 -0
- package/dist-esm/src/operationsInterfaces/serverAdministrators.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/serverAdministrators.js +9 -0
- package/dist-esm/src/operationsInterfaces/serverAdministrators.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/serverBasedPerformanceTier.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/serverBasedPerformanceTier.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/serverBasedPerformanceTier.js +9 -0
- package/dist-esm/src/operationsInterfaces/serverBasedPerformanceTier.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/serverKeys.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/serverKeys.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/serverKeys.js +9 -0
- package/dist-esm/src/operationsInterfaces/serverKeys.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/serverParameters.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/serverParameters.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/serverParameters.js +9 -0
- package/dist-esm/src/operationsInterfaces/serverParameters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/serverSecurityAlertPolicies.d.ts +40 -0
- package/dist-esm/src/operationsInterfaces/serverSecurityAlertPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/serverSecurityAlertPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/serverSecurityAlertPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/servers.d.ts +133 -0
- package/dist-esm/src/operationsInterfaces/servers.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/servers.js +9 -0
- package/dist-esm/src/operationsInterfaces/servers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/topQueryStatistics.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/topQueryStatistics.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/topQueryStatistics.js +9 -0
- package/dist-esm/src/operationsInterfaces/topQueryStatistics.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworkRules.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworkRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworkRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualNetworkRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/waitStatistics.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/waitStatistics.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/waitStatistics.js +9 -0
- package/dist-esm/src/operationsInterfaces/waitStatistics.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +63 -21
- package/review/arm-mysql.api.md +1577 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1584 -1096
- package/src/models/mappers.ts +1763 -534
- package/src/models/parameters.ts +344 -41
- package/src/mySQLManagementClient.ts +280 -51
- package/src/mySQLManagementClientContext.ts +46 -46
- package/src/operations/advisors.ts +224 -0
- package/src/operations/checkNameAvailability.ts +34 -57
- package/src/operations/configurations.ts +234 -150
- package/src/operations/databases.ts +324 -194
- package/src/operations/firewallRules.ts +324 -194
- package/src/operations/index.ts +18 -6
- package/src/operations/locationBasedPerformanceTier.ts +75 -44
- package/src/operations/locationBasedRecommendedActionSessionsOperationStatus.ts +70 -0
- package/src/operations/locationBasedRecommendedActionSessionsResult.ts +178 -0
- package/src/operations/logFiles.ts +97 -52
- package/src/operations/operations.ts +26 -41
- package/src/operations/privateEndpointConnections.ts +621 -0
- package/src/operations/privateLinkResources.ts +233 -0
- package/src/operations/queryTexts.ts +246 -0
- package/src/operations/recommendedActions.ts +248 -0
- package/src/operations/recoverableServers.ts +72 -0
- package/src/operations/replicas.ts +97 -52
- package/src/operations/serverAdministrators.ts +397 -0
- package/src/operations/serverBasedPerformanceTier.ts +124 -0
- package/src/operations/serverKeys.ts +464 -0
- package/src/operations/serverParameters.ts +160 -0
- package/src/operations/serverSecurityAlertPolicies.ts +300 -95
- package/src/operations/servers.ts +828 -280
- package/src/operations/topQueryStatistics.ts +249 -0
- package/src/operations/virtualNetworkRules.ts +357 -233
- package/src/operations/waitStatistics.ts +249 -0
- package/src/operationsInterfaces/advisors.ts +44 -0
- package/src/operationsInterfaces/checkNameAvailability.ts +26 -0
- package/src/operationsInterfaces/configurations.ts +82 -0
- package/src/operationsInterfaces/databases.ts +109 -0
- package/src/operationsInterfaces/firewallRules.ts +109 -0
- package/src/operationsInterfaces/index.ts +33 -0
- package/src/operationsInterfaces/locationBasedPerformanceTier.ts +27 -0
- package/src/operationsInterfaces/locationBasedRecommendedActionSessionsOperationStatus.ts +27 -0
- package/src/operationsInterfaces/locationBasedRecommendedActionSessionsResult.ts +29 -0
- package/src/operationsInterfaces/logFiles.ts +26 -0
- package/src/operationsInterfaces/operations.ts +21 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +147 -0
- package/src/operationsInterfaces/privateLinkResources.ts +44 -0
- package/src/operationsInterfaces/queryTexts.ts +46 -0
- package/src/operationsInterfaces/recommendedActions.ts +48 -0
- package/src/operationsInterfaces/recoverableServers.ts +27 -0
- package/src/operationsInterfaces/replicas.ts +26 -0
- package/src/operationsInterfaces/serverAdministrators.ts +101 -0
- package/src/operationsInterfaces/serverBasedPerformanceTier.ts +29 -0
- package/src/operationsInterfaces/serverKeys.ts +109 -0
- package/src/operationsInterfaces/serverParameters.ts +49 -0
- package/src/operationsInterfaces/serverSecurityAlertPolicies.ts +83 -0
- package/src/operationsInterfaces/servers.ts +233 -0
- package/src/operationsInterfaces/topQueryStatistics.ts +47 -0
- package/src/operationsInterfaces/virtualNetworkRules.ts +109 -0
- package/src/operationsInterfaces/waitStatistics.ts +47 -0
- package/tsconfig.json +4 -4
- package/types/arm-mysql.d.ts +2739 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-mysql.js +0 -3173
- package/dist/arm-mysql.js.map +0 -1
- package/dist/arm-mysql.min.js +0 -1
- package/dist/arm-mysql.min.js.map +0 -1
- package/esm/models/checkNameAvailabilityMappers.d.ts +0 -2
- package/esm/models/checkNameAvailabilityMappers.d.ts.map +0 -1
- package/esm/models/checkNameAvailabilityMappers.js +0 -9
- package/esm/models/checkNameAvailabilityMappers.js.map +0 -1
- package/esm/models/configurationsMappers.d.ts +0 -2
- package/esm/models/configurationsMappers.d.ts.map +0 -1
- package/esm/models/configurationsMappers.js +0 -9
- package/esm/models/configurationsMappers.js.map +0 -1
- package/esm/models/databasesMappers.d.ts +0 -2
- package/esm/models/databasesMappers.d.ts.map +0 -1
- package/esm/models/databasesMappers.js +0 -9
- package/esm/models/databasesMappers.js.map +0 -1
- package/esm/models/firewallRulesMappers.d.ts +0 -2
- package/esm/models/firewallRulesMappers.d.ts.map +0 -1
- package/esm/models/firewallRulesMappers.js +0 -9
- package/esm/models/firewallRulesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -1319
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/locationBasedPerformanceTierMappers.d.ts +0 -2
- package/esm/models/locationBasedPerformanceTierMappers.d.ts.map +0 -1
- package/esm/models/locationBasedPerformanceTierMappers.js +0 -9
- package/esm/models/locationBasedPerformanceTierMappers.js.map +0 -1
- package/esm/models/logFilesMappers.d.ts +0 -2
- package/esm/models/logFilesMappers.d.ts.map +0 -1
- package/esm/models/logFilesMappers.js +0 -9
- package/esm/models/logFilesMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -43
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -1037
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -14
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -133
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/replicasMappers.d.ts +0 -2
- package/esm/models/replicasMappers.d.ts.map +0 -1
- package/esm/models/replicasMappers.js +0 -9
- package/esm/models/replicasMappers.js.map +0 -1
- package/esm/models/serverSecurityAlertPoliciesMappers.d.ts +0 -2
- package/esm/models/serverSecurityAlertPoliciesMappers.d.ts.map +0 -1
- package/esm/models/serverSecurityAlertPoliciesMappers.js +0 -9
- package/esm/models/serverSecurityAlertPoliciesMappers.js.map +0 -1
- package/esm/models/serversMappers.d.ts +0 -2
- package/esm/models/serversMappers.d.ts.map +0 -1
- package/esm/models/serversMappers.js +0 -9
- package/esm/models/serversMappers.js.map +0 -1
- package/esm/models/virtualNetworkRulesMappers.d.ts +0 -2
- package/esm/models/virtualNetworkRulesMappers.d.ts.map +0 -1
- package/esm/models/virtualNetworkRulesMappers.js +0 -9
- package/esm/models/virtualNetworkRulesMappers.js.map +0 -1
- package/esm/mySQLManagementClient.d.ts +0 -34
- package/esm/mySQLManagementClient.d.ts.map +0 -1
- package/esm/mySQLManagementClient.js +0 -48
- package/esm/mySQLManagementClient.js.map +0 -1
- package/esm/mySQLManagementClientContext.d.ts +0 -22
- package/esm/mySQLManagementClientContext.d.ts.map +0 -1
- package/esm/mySQLManagementClientContext.js +0 -61
- package/esm/mySQLManagementClientContext.js.map +0 -1
- package/esm/operations/checkNameAvailability.d.ts +0 -34
- package/esm/operations/checkNameAvailability.d.ts.map +0 -1
- package/esm/operations/checkNameAvailability.js +0 -60
- package/esm/operations/checkNameAvailability.js.map +0 -1
- package/esm/operations/configurations.d.ts +0 -87
- package/esm/operations/configurations.d.ts.map +0 -1
- package/esm/operations/configurations.js +0 -155
- package/esm/operations/configurations.js.map +0 -1
- package/esm/operations/databases.d.ts +0 -107
- package/esm/operations/databases.d.ts.map +0 -1
- package/esm/operations/databases.js +0 -213
- package/esm/operations/databases.js.map +0 -1
- package/esm/operations/firewallRules.d.ts +0 -107
- package/esm/operations/firewallRules.d.ts.map +0 -1
- package/esm/operations/firewallRules.js +0 -213
- package/esm/operations/firewallRules.js.map +0 -1
- package/esm/operations/index.d.ts +0 -12
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -21
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/locationBasedPerformanceTier.d.ts +0 -31
- package/esm/operations/locationBasedPerformanceTier.d.ts.map +0 -1
- package/esm/operations/locationBasedPerformanceTier.js +0 -56
- package/esm/operations/locationBasedPerformanceTier.js.map +0 -1
- package/esm/operations/logFiles.d.ts +0 -37
- package/esm/operations/logFiles.d.ts.map +0 -1
- package/esm/operations/logFiles.js +0 -58
- package/esm/operations/logFiles.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/replicas.d.ts +0 -37
- package/esm/operations/replicas.d.ts.map +0 -1
- package/esm/operations/replicas.js +0 -58
- package/esm/operations/replicas.js.map +0 -1
- package/esm/operations/serverSecurityAlertPolicies.d.ts +0 -58
- package/esm/operations/serverSecurityAlertPolicies.d.ts.map +0 -1
- package/esm/operations/serverSecurityAlertPolicies.js +0 -120
- package/esm/operations/serverSecurityAlertPolicies.js.map +0 -1
- package/esm/operations/servers.d.ts +0 -154
- package/esm/operations/servers.d.ts.map +0 -1
- package/esm/operations/servers.js +0 -341
- package/esm/operations/servers.js.map +0 -1
- package/esm/operations/virtualNetworkRules.d.ts +0 -125
- package/esm/operations/virtualNetworkRules.d.ts.map +0 -1
- package/esm/operations/virtualNetworkRules.js +0 -239
- package/esm/operations/virtualNetworkRules.js.map +0 -1
- package/src/models/checkNameAvailabilityMappers.ts +0 -14
- package/src/models/configurationsMappers.ts +0 -25
- package/src/models/databasesMappers.ts +0 -25
- package/src/models/firewallRulesMappers.ts +0 -25
- package/src/models/locationBasedPerformanceTierMappers.ts +0 -15
- package/src/models/logFilesMappers.ts +0 -25
- package/src/models/operationsMappers.ts +0 -15
- package/src/models/replicasMappers.ts +0 -25
- package/src/models/serverSecurityAlertPoliciesMappers.ts +0 -24
- package/src/models/serversMappers.ts +0 -32
- package/src/models/virtualNetworkRulesMappers.ts +0 -25
|
@@ -1,449 +1,997 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
14
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Servers } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
15
13
|
import * as Parameters from "../models/parameters";
|
|
16
14
|
import { MySQLManagementClientContext } from "../mySQLManagementClientContext";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
Server,
|
|
19
|
+
ServersListByResourceGroupOptionalParams,
|
|
20
|
+
ServersListOptionalParams,
|
|
21
|
+
ServerForCreate,
|
|
22
|
+
ServersCreateOptionalParams,
|
|
23
|
+
ServersCreateResponse,
|
|
24
|
+
ServerUpdateParameters,
|
|
25
|
+
ServersUpdateOptionalParams,
|
|
26
|
+
ServersUpdateResponse,
|
|
27
|
+
ServersDeleteOptionalParams,
|
|
28
|
+
ServersGetOptionalParams,
|
|
29
|
+
ServersGetResponse,
|
|
30
|
+
ServersListByResourceGroupResponse,
|
|
31
|
+
ServersListResponse,
|
|
32
|
+
ServersRestartOptionalParams,
|
|
33
|
+
ServersStartOptionalParams,
|
|
34
|
+
ServersStopOptionalParams,
|
|
35
|
+
ServerUpgradeParameters,
|
|
36
|
+
ServersUpgradeOptionalParams
|
|
37
|
+
} from "../models";
|
|
17
38
|
|
|
18
|
-
|
|
19
|
-
|
|
39
|
+
/// <reference lib="esnext.asynciterable" />
|
|
40
|
+
/** Class containing Servers operations. */
|
|
41
|
+
export class ServersImpl implements Servers {
|
|
20
42
|
private readonly client: MySQLManagementClientContext;
|
|
21
43
|
|
|
22
44
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
45
|
+
* Initialize a new instance of the class Servers class.
|
|
46
|
+
* @param client Reference to the service client
|
|
25
47
|
*/
|
|
26
48
|
constructor(client: MySQLManagementClientContext) {
|
|
27
49
|
this.client = client;
|
|
28
50
|
}
|
|
29
51
|
|
|
30
52
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* @param
|
|
34
|
-
|
|
53
|
+
* List all the servers in a given resource group.
|
|
54
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
public listByResourceGroup(
|
|
58
|
+
resourceGroupName: string,
|
|
59
|
+
options?: ServersListByResourceGroupOptionalParams
|
|
60
|
+
): PagedAsyncIterableIterator<Server> {
|
|
61
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
62
|
+
return {
|
|
63
|
+
next() {
|
|
64
|
+
return iter.next();
|
|
65
|
+
},
|
|
66
|
+
[Symbol.asyncIterator]() {
|
|
67
|
+
return this;
|
|
68
|
+
},
|
|
69
|
+
byPage: () => {
|
|
70
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
private async *listByResourceGroupPagingPage(
|
|
76
|
+
resourceGroupName: string,
|
|
77
|
+
options?: ServersListByResourceGroupOptionalParams
|
|
78
|
+
): AsyncIterableIterator<Server[]> {
|
|
79
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
80
|
+
yield result.value || [];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
private async *listByResourceGroupPagingAll(
|
|
84
|
+
resourceGroupName: string,
|
|
85
|
+
options?: ServersListByResourceGroupOptionalParams
|
|
86
|
+
): AsyncIterableIterator<Server> {
|
|
87
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
88
|
+
resourceGroupName,
|
|
89
|
+
options
|
|
90
|
+
)) {
|
|
91
|
+
yield* page;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* List all the servers in a given subscription.
|
|
97
|
+
* @param options The options parameters.
|
|
98
|
+
*/
|
|
99
|
+
public list(
|
|
100
|
+
options?: ServersListOptionalParams
|
|
101
|
+
): PagedAsyncIterableIterator<Server> {
|
|
102
|
+
const iter = this.listPagingAll(options);
|
|
103
|
+
return {
|
|
104
|
+
next() {
|
|
105
|
+
return iter.next();
|
|
106
|
+
},
|
|
107
|
+
[Symbol.asyncIterator]() {
|
|
108
|
+
return this;
|
|
109
|
+
},
|
|
110
|
+
byPage: () => {
|
|
111
|
+
return this.listPagingPage(options);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
private async *listPagingPage(
|
|
117
|
+
options?: ServersListOptionalParams
|
|
118
|
+
): AsyncIterableIterator<Server[]> {
|
|
119
|
+
let result = await this._list(options);
|
|
120
|
+
yield result.value || [];
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
private async *listPagingAll(
|
|
124
|
+
options?: ServersListOptionalParams
|
|
125
|
+
): AsyncIterableIterator<Server> {
|
|
126
|
+
for await (const page of this.listPagingPage(options)) {
|
|
127
|
+
yield* page;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Creates a new server or updates an existing server. The update action will overwrite the existing
|
|
133
|
+
* server.
|
|
134
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
135
|
+
* @param serverName The name of the server.
|
|
136
|
+
* @param parameters The required parameters for creating or updating a server.
|
|
137
|
+
* @param options The options parameters.
|
|
138
|
+
*/
|
|
139
|
+
async beginCreate(
|
|
140
|
+
resourceGroupName: string,
|
|
141
|
+
serverName: string,
|
|
142
|
+
parameters: ServerForCreate,
|
|
143
|
+
options?: ServersCreateOptionalParams
|
|
144
|
+
): Promise<
|
|
145
|
+
PollerLike<PollOperationState<ServersCreateResponse>, ServersCreateResponse>
|
|
146
|
+
> {
|
|
147
|
+
const directSendOperation = async (
|
|
148
|
+
args: coreClient.OperationArguments,
|
|
149
|
+
spec: coreClient.OperationSpec
|
|
150
|
+
): Promise<ServersCreateResponse> => {
|
|
151
|
+
return this.client.sendOperationRequest(args, spec);
|
|
152
|
+
};
|
|
153
|
+
const sendOperation = async (
|
|
154
|
+
args: coreClient.OperationArguments,
|
|
155
|
+
spec: coreClient.OperationSpec
|
|
156
|
+
) => {
|
|
157
|
+
let currentRawResponse:
|
|
158
|
+
| coreClient.FullOperationResponse
|
|
159
|
+
| undefined = undefined;
|
|
160
|
+
const providedCallback = args.options?.onResponse;
|
|
161
|
+
const callback: coreClient.RawResponseCallback = (
|
|
162
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
163
|
+
flatResponse: unknown
|
|
164
|
+
) => {
|
|
165
|
+
currentRawResponse = rawResponse;
|
|
166
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
167
|
+
};
|
|
168
|
+
const updatedArgs = {
|
|
169
|
+
...args,
|
|
170
|
+
options: {
|
|
171
|
+
...args.options,
|
|
172
|
+
onResponse: callback
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
176
|
+
return {
|
|
177
|
+
flatResponse,
|
|
178
|
+
rawResponse: {
|
|
179
|
+
statusCode: currentRawResponse!.status,
|
|
180
|
+
body: currentRawResponse!.parsedBody,
|
|
181
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
const lro = new LroImpl(
|
|
187
|
+
sendOperation,
|
|
188
|
+
{ resourceGroupName, serverName, parameters, options },
|
|
189
|
+
createOperationSpec
|
|
190
|
+
);
|
|
191
|
+
return new LroEngine(lro, {
|
|
192
|
+
resumeFrom: options?.resumeFrom,
|
|
193
|
+
intervalInMs: options?.updateIntervalInMs
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Creates a new server or updates an existing server. The update action will overwrite the existing
|
|
199
|
+
* server.
|
|
200
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
35
201
|
* @param serverName The name of the server.
|
|
36
202
|
* @param parameters The required parameters for creating or updating a server.
|
|
37
|
-
* @param
|
|
38
|
-
* @returns Promise<Models.ServersCreateResponse>
|
|
203
|
+
* @param options The options parameters.
|
|
39
204
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
205
|
+
async beginCreateAndWait(
|
|
206
|
+
resourceGroupName: string,
|
|
207
|
+
serverName: string,
|
|
208
|
+
parameters: ServerForCreate,
|
|
209
|
+
options?: ServersCreateOptionalParams
|
|
210
|
+
): Promise<ServersCreateResponse> {
|
|
211
|
+
const poller = await this.beginCreate(
|
|
212
|
+
resourceGroupName,
|
|
213
|
+
serverName,
|
|
214
|
+
parameters,
|
|
215
|
+
options
|
|
216
|
+
);
|
|
217
|
+
return poller.pollUntilDone();
|
|
43
218
|
}
|
|
44
219
|
|
|
45
220
|
/**
|
|
46
|
-
* Updates an existing server. The request body can contain one to many of the properties present
|
|
47
|
-
*
|
|
48
|
-
* @param resourceGroupName The name of the resource group
|
|
49
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
221
|
+
* Updates an existing server. The request body can contain one to many of the properties present in
|
|
222
|
+
* the normal server definition.
|
|
223
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
50
224
|
* @param serverName The name of the server.
|
|
51
225
|
* @param parameters The required parameters for updating a server.
|
|
52
|
-
* @param
|
|
53
|
-
* @returns Promise<Models.ServersUpdateResponse>
|
|
226
|
+
* @param options The options parameters.
|
|
54
227
|
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
228
|
+
async beginUpdate(
|
|
229
|
+
resourceGroupName: string,
|
|
230
|
+
serverName: string,
|
|
231
|
+
parameters: ServerUpdateParameters,
|
|
232
|
+
options?: ServersUpdateOptionalParams
|
|
233
|
+
): Promise<
|
|
234
|
+
PollerLike<PollOperationState<ServersUpdateResponse>, ServersUpdateResponse>
|
|
235
|
+
> {
|
|
236
|
+
const directSendOperation = async (
|
|
237
|
+
args: coreClient.OperationArguments,
|
|
238
|
+
spec: coreClient.OperationSpec
|
|
239
|
+
): Promise<ServersUpdateResponse> => {
|
|
240
|
+
return this.client.sendOperationRequest(args, spec);
|
|
241
|
+
};
|
|
242
|
+
const sendOperation = async (
|
|
243
|
+
args: coreClient.OperationArguments,
|
|
244
|
+
spec: coreClient.OperationSpec
|
|
245
|
+
) => {
|
|
246
|
+
let currentRawResponse:
|
|
247
|
+
| coreClient.FullOperationResponse
|
|
248
|
+
| undefined = undefined;
|
|
249
|
+
const providedCallback = args.options?.onResponse;
|
|
250
|
+
const callback: coreClient.RawResponseCallback = (
|
|
251
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
252
|
+
flatResponse: unknown
|
|
253
|
+
) => {
|
|
254
|
+
currentRawResponse = rawResponse;
|
|
255
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
256
|
+
};
|
|
257
|
+
const updatedArgs = {
|
|
258
|
+
...args,
|
|
259
|
+
options: {
|
|
260
|
+
...args.options,
|
|
261
|
+
onResponse: callback
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
265
|
+
return {
|
|
266
|
+
flatResponse,
|
|
267
|
+
rawResponse: {
|
|
268
|
+
statusCode: currentRawResponse!.status,
|
|
269
|
+
body: currentRawResponse!.parsedBody,
|
|
270
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
const lro = new LroImpl(
|
|
276
|
+
sendOperation,
|
|
277
|
+
{ resourceGroupName, serverName, parameters, options },
|
|
278
|
+
updateOperationSpec
|
|
279
|
+
);
|
|
280
|
+
return new LroEngine(lro, {
|
|
281
|
+
resumeFrom: options?.resumeFrom,
|
|
282
|
+
intervalInMs: options?.updateIntervalInMs
|
|
283
|
+
});
|
|
58
284
|
}
|
|
59
285
|
|
|
60
286
|
/**
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
287
|
+
* Updates an existing server. The request body can contain one to many of the properties present in
|
|
288
|
+
* the normal server definition.
|
|
289
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
64
290
|
* @param serverName The name of the server.
|
|
65
|
-
* @param
|
|
66
|
-
* @
|
|
291
|
+
* @param parameters The required parameters for updating a server.
|
|
292
|
+
* @param options The options parameters.
|
|
67
293
|
*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
294
|
+
async beginUpdateAndWait(
|
|
295
|
+
resourceGroupName: string,
|
|
296
|
+
serverName: string,
|
|
297
|
+
parameters: ServerUpdateParameters,
|
|
298
|
+
options?: ServersUpdateOptionalParams
|
|
299
|
+
): Promise<ServersUpdateResponse> {
|
|
300
|
+
const poller = await this.beginUpdate(
|
|
301
|
+
resourceGroupName,
|
|
302
|
+
serverName,
|
|
303
|
+
parameters,
|
|
304
|
+
options
|
|
305
|
+
);
|
|
306
|
+
return poller.pollUntilDone();
|
|
71
307
|
}
|
|
72
308
|
|
|
73
309
|
/**
|
|
74
|
-
*
|
|
75
|
-
* @param resourceGroupName The name of the resource group
|
|
76
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
310
|
+
* Deletes a server.
|
|
311
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
77
312
|
* @param serverName The name of the server.
|
|
78
|
-
* @param
|
|
79
|
-
* @returns Promise<Models.ServersGetResponse>
|
|
313
|
+
* @param options The options parameters.
|
|
80
314
|
*/
|
|
81
|
-
|
|
315
|
+
async beginDelete(
|
|
316
|
+
resourceGroupName: string,
|
|
317
|
+
serverName: string,
|
|
318
|
+
options?: ServersDeleteOptionalParams
|
|
319
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
320
|
+
const directSendOperation = async (
|
|
321
|
+
args: coreClient.OperationArguments,
|
|
322
|
+
spec: coreClient.OperationSpec
|
|
323
|
+
): Promise<void> => {
|
|
324
|
+
return this.client.sendOperationRequest(args, spec);
|
|
325
|
+
};
|
|
326
|
+
const sendOperation = async (
|
|
327
|
+
args: coreClient.OperationArguments,
|
|
328
|
+
spec: coreClient.OperationSpec
|
|
329
|
+
) => {
|
|
330
|
+
let currentRawResponse:
|
|
331
|
+
| coreClient.FullOperationResponse
|
|
332
|
+
| undefined = undefined;
|
|
333
|
+
const providedCallback = args.options?.onResponse;
|
|
334
|
+
const callback: coreClient.RawResponseCallback = (
|
|
335
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
336
|
+
flatResponse: unknown
|
|
337
|
+
) => {
|
|
338
|
+
currentRawResponse = rawResponse;
|
|
339
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
340
|
+
};
|
|
341
|
+
const updatedArgs = {
|
|
342
|
+
...args,
|
|
343
|
+
options: {
|
|
344
|
+
...args.options,
|
|
345
|
+
onResponse: callback
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
349
|
+
return {
|
|
350
|
+
flatResponse,
|
|
351
|
+
rawResponse: {
|
|
352
|
+
statusCode: currentRawResponse!.status,
|
|
353
|
+
body: currentRawResponse!.parsedBody,
|
|
354
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
const lro = new LroImpl(
|
|
360
|
+
sendOperation,
|
|
361
|
+
{ resourceGroupName, serverName, options },
|
|
362
|
+
deleteOperationSpec
|
|
363
|
+
);
|
|
364
|
+
return new LroEngine(lro, {
|
|
365
|
+
resumeFrom: options?.resumeFrom,
|
|
366
|
+
intervalInMs: options?.updateIntervalInMs
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
|
|
82
370
|
/**
|
|
83
|
-
*
|
|
84
|
-
*
|
|
371
|
+
* Deletes a server.
|
|
372
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
85
373
|
* @param serverName The name of the server.
|
|
86
|
-
* @param
|
|
374
|
+
* @param options The options parameters.
|
|
87
375
|
*/
|
|
88
|
-
|
|
376
|
+
async beginDeleteAndWait(
|
|
377
|
+
resourceGroupName: string,
|
|
378
|
+
serverName: string,
|
|
379
|
+
options?: ServersDeleteOptionalParams
|
|
380
|
+
): Promise<void> {
|
|
381
|
+
const poller = await this.beginDelete(
|
|
382
|
+
resourceGroupName,
|
|
383
|
+
serverName,
|
|
384
|
+
options
|
|
385
|
+
);
|
|
386
|
+
return poller.pollUntilDone();
|
|
387
|
+
}
|
|
388
|
+
|
|
89
389
|
/**
|
|
90
|
-
*
|
|
91
|
-
*
|
|
390
|
+
* Gets information about a server.
|
|
391
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
92
392
|
* @param serverName The name of the server.
|
|
93
|
-
* @param options The
|
|
94
|
-
* @param callback The callback
|
|
393
|
+
* @param options The options parameters.
|
|
95
394
|
*/
|
|
96
|
-
get(
|
|
97
|
-
|
|
395
|
+
get(
|
|
396
|
+
resourceGroupName: string,
|
|
397
|
+
serverName: string,
|
|
398
|
+
options?: ServersGetOptionalParams
|
|
399
|
+
): Promise<ServersGetResponse> {
|
|
98
400
|
return this.client.sendOperationRequest(
|
|
99
|
-
{
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
options
|
|
103
|
-
},
|
|
104
|
-
getOperationSpec,
|
|
105
|
-
callback) as Promise<Models.ServersGetResponse>;
|
|
401
|
+
{ resourceGroupName, serverName, options },
|
|
402
|
+
getOperationSpec
|
|
403
|
+
);
|
|
106
404
|
}
|
|
107
405
|
|
|
108
406
|
/**
|
|
109
407
|
* List all the servers in a given resource group.
|
|
110
|
-
* @param resourceGroupName The name of the resource group
|
|
111
|
-
*
|
|
112
|
-
* @param [options] The optional parameters
|
|
113
|
-
* @returns Promise<Models.ServersListByResourceGroupResponse>
|
|
114
|
-
*/
|
|
115
|
-
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.ServersListByResourceGroupResponse>;
|
|
116
|
-
/**
|
|
117
|
-
* @param resourceGroupName The name of the resource group that contains the resource. You can
|
|
118
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
119
|
-
* @param callback The callback
|
|
120
|
-
*/
|
|
121
|
-
listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.ServerListResult>): void;
|
|
122
|
-
/**
|
|
123
|
-
* @param resourceGroupName The name of the resource group that contains the resource. You can
|
|
124
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
125
|
-
* @param options The optional parameters
|
|
126
|
-
* @param callback The callback
|
|
408
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
409
|
+
* @param options The options parameters.
|
|
127
410
|
*/
|
|
128
|
-
|
|
129
|
-
|
|
411
|
+
private _listByResourceGroup(
|
|
412
|
+
resourceGroupName: string,
|
|
413
|
+
options?: ServersListByResourceGroupOptionalParams
|
|
414
|
+
): Promise<ServersListByResourceGroupResponse> {
|
|
130
415
|
return this.client.sendOperationRequest(
|
|
131
|
-
{
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
},
|
|
135
|
-
listByResourceGroupOperationSpec,
|
|
136
|
-
callback) as Promise<Models.ServersListByResourceGroupResponse>;
|
|
416
|
+
{ resourceGroupName, options },
|
|
417
|
+
listByResourceGroupOperationSpec
|
|
418
|
+
);
|
|
137
419
|
}
|
|
138
420
|
|
|
139
421
|
/**
|
|
140
422
|
* List all the servers in a given subscription.
|
|
141
|
-
* @param
|
|
142
|
-
|
|
423
|
+
* @param options The options parameters.
|
|
424
|
+
*/
|
|
425
|
+
private _list(
|
|
426
|
+
options?: ServersListOptionalParams
|
|
427
|
+
): Promise<ServersListResponse> {
|
|
428
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Restarts a server.
|
|
433
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
434
|
+
* @param serverName The name of the server.
|
|
435
|
+
* @param options The options parameters.
|
|
143
436
|
*/
|
|
144
|
-
|
|
437
|
+
async beginRestart(
|
|
438
|
+
resourceGroupName: string,
|
|
439
|
+
serverName: string,
|
|
440
|
+
options?: ServersRestartOptionalParams
|
|
441
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
442
|
+
const directSendOperation = async (
|
|
443
|
+
args: coreClient.OperationArguments,
|
|
444
|
+
spec: coreClient.OperationSpec
|
|
445
|
+
): Promise<void> => {
|
|
446
|
+
return this.client.sendOperationRequest(args, spec);
|
|
447
|
+
};
|
|
448
|
+
const sendOperation = async (
|
|
449
|
+
args: coreClient.OperationArguments,
|
|
450
|
+
spec: coreClient.OperationSpec
|
|
451
|
+
) => {
|
|
452
|
+
let currentRawResponse:
|
|
453
|
+
| coreClient.FullOperationResponse
|
|
454
|
+
| undefined = undefined;
|
|
455
|
+
const providedCallback = args.options?.onResponse;
|
|
456
|
+
const callback: coreClient.RawResponseCallback = (
|
|
457
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
458
|
+
flatResponse: unknown
|
|
459
|
+
) => {
|
|
460
|
+
currentRawResponse = rawResponse;
|
|
461
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
462
|
+
};
|
|
463
|
+
const updatedArgs = {
|
|
464
|
+
...args,
|
|
465
|
+
options: {
|
|
466
|
+
...args.options,
|
|
467
|
+
onResponse: callback
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
471
|
+
return {
|
|
472
|
+
flatResponse,
|
|
473
|
+
rawResponse: {
|
|
474
|
+
statusCode: currentRawResponse!.status,
|
|
475
|
+
body: currentRawResponse!.parsedBody,
|
|
476
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
const lro = new LroImpl(
|
|
482
|
+
sendOperation,
|
|
483
|
+
{ resourceGroupName, serverName, options },
|
|
484
|
+
restartOperationSpec
|
|
485
|
+
);
|
|
486
|
+
return new LroEngine(lro, {
|
|
487
|
+
resumeFrom: options?.resumeFrom,
|
|
488
|
+
intervalInMs: options?.updateIntervalInMs
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
|
|
145
492
|
/**
|
|
146
|
-
*
|
|
493
|
+
* Restarts a server.
|
|
494
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
495
|
+
* @param serverName The name of the server.
|
|
496
|
+
* @param options The options parameters.
|
|
147
497
|
*/
|
|
148
|
-
|
|
498
|
+
async beginRestartAndWait(
|
|
499
|
+
resourceGroupName: string,
|
|
500
|
+
serverName: string,
|
|
501
|
+
options?: ServersRestartOptionalParams
|
|
502
|
+
): Promise<void> {
|
|
503
|
+
const poller = await this.beginRestart(
|
|
504
|
+
resourceGroupName,
|
|
505
|
+
serverName,
|
|
506
|
+
options
|
|
507
|
+
);
|
|
508
|
+
return poller.pollUntilDone();
|
|
509
|
+
}
|
|
510
|
+
|
|
149
511
|
/**
|
|
150
|
-
*
|
|
151
|
-
* @param
|
|
512
|
+
* Starts a stopped server.
|
|
513
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
514
|
+
* @param serverName The name of the server.
|
|
515
|
+
* @param options The options parameters.
|
|
152
516
|
*/
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
517
|
+
async beginStart(
|
|
518
|
+
resourceGroupName: string,
|
|
519
|
+
serverName: string,
|
|
520
|
+
options?: ServersStartOptionalParams
|
|
521
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
522
|
+
const directSendOperation = async (
|
|
523
|
+
args: coreClient.OperationArguments,
|
|
524
|
+
spec: coreClient.OperationSpec
|
|
525
|
+
): Promise<void> => {
|
|
526
|
+
return this.client.sendOperationRequest(args, spec);
|
|
527
|
+
};
|
|
528
|
+
const sendOperation = async (
|
|
529
|
+
args: coreClient.OperationArguments,
|
|
530
|
+
spec: coreClient.OperationSpec
|
|
531
|
+
) => {
|
|
532
|
+
let currentRawResponse:
|
|
533
|
+
| coreClient.FullOperationResponse
|
|
534
|
+
| undefined = undefined;
|
|
535
|
+
const providedCallback = args.options?.onResponse;
|
|
536
|
+
const callback: coreClient.RawResponseCallback = (
|
|
537
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
538
|
+
flatResponse: unknown
|
|
539
|
+
) => {
|
|
540
|
+
currentRawResponse = rawResponse;
|
|
541
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
542
|
+
};
|
|
543
|
+
const updatedArgs = {
|
|
544
|
+
...args,
|
|
545
|
+
options: {
|
|
546
|
+
...args.options,
|
|
547
|
+
onResponse: callback
|
|
548
|
+
}
|
|
549
|
+
};
|
|
550
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
551
|
+
return {
|
|
552
|
+
flatResponse,
|
|
553
|
+
rawResponse: {
|
|
554
|
+
statusCode: currentRawResponse!.status,
|
|
555
|
+
body: currentRawResponse!.parsedBody,
|
|
556
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
557
|
+
}
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
const lro = new LroImpl(
|
|
562
|
+
sendOperation,
|
|
563
|
+
{ resourceGroupName, serverName, options },
|
|
564
|
+
startOperationSpec
|
|
565
|
+
);
|
|
566
|
+
return new LroEngine(lro, {
|
|
567
|
+
resumeFrom: options?.resumeFrom,
|
|
568
|
+
intervalInMs: options?.updateIntervalInMs
|
|
569
|
+
});
|
|
161
570
|
}
|
|
162
571
|
|
|
163
572
|
/**
|
|
164
|
-
*
|
|
165
|
-
* @param resourceGroupName The name of the resource group
|
|
166
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
573
|
+
* Starts a stopped server.
|
|
574
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
167
575
|
* @param serverName The name of the server.
|
|
168
|
-
* @param
|
|
169
|
-
* @returns Promise<msRest.RestResponse>
|
|
576
|
+
* @param options The options parameters.
|
|
170
577
|
*/
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
578
|
+
async beginStartAndWait(
|
|
579
|
+
resourceGroupName: string,
|
|
580
|
+
serverName: string,
|
|
581
|
+
options?: ServersStartOptionalParams
|
|
582
|
+
): Promise<void> {
|
|
583
|
+
const poller = await this.beginStart(
|
|
584
|
+
resourceGroupName,
|
|
585
|
+
serverName,
|
|
586
|
+
options
|
|
587
|
+
);
|
|
588
|
+
return poller.pollUntilDone();
|
|
174
589
|
}
|
|
175
590
|
|
|
176
591
|
/**
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
* @param resourceGroupName The name of the resource group that contains the resource. You can
|
|
180
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
592
|
+
* Stops a running server.
|
|
593
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
181
594
|
* @param serverName The name of the server.
|
|
182
|
-
* @param
|
|
183
|
-
* @param [options] The optional parameters
|
|
184
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
595
|
+
* @param options The options parameters.
|
|
185
596
|
*/
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
597
|
+
async beginStop(
|
|
598
|
+
resourceGroupName: string,
|
|
599
|
+
serverName: string,
|
|
600
|
+
options?: ServersStopOptionalParams
|
|
601
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
602
|
+
const directSendOperation = async (
|
|
603
|
+
args: coreClient.OperationArguments,
|
|
604
|
+
spec: coreClient.OperationSpec
|
|
605
|
+
): Promise<void> => {
|
|
606
|
+
return this.client.sendOperationRequest(args, spec);
|
|
607
|
+
};
|
|
608
|
+
const sendOperation = async (
|
|
609
|
+
args: coreClient.OperationArguments,
|
|
610
|
+
spec: coreClient.OperationSpec
|
|
611
|
+
) => {
|
|
612
|
+
let currentRawResponse:
|
|
613
|
+
| coreClient.FullOperationResponse
|
|
614
|
+
| undefined = undefined;
|
|
615
|
+
const providedCallback = args.options?.onResponse;
|
|
616
|
+
const callback: coreClient.RawResponseCallback = (
|
|
617
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
618
|
+
flatResponse: unknown
|
|
619
|
+
) => {
|
|
620
|
+
currentRawResponse = rawResponse;
|
|
621
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
622
|
+
};
|
|
623
|
+
const updatedArgs = {
|
|
624
|
+
...args,
|
|
625
|
+
options: {
|
|
626
|
+
...args.options,
|
|
627
|
+
onResponse: callback
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
631
|
+
return {
|
|
632
|
+
flatResponse,
|
|
633
|
+
rawResponse: {
|
|
634
|
+
statusCode: currentRawResponse!.status,
|
|
635
|
+
body: currentRawResponse!.parsedBody,
|
|
636
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
637
|
+
}
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
|
|
641
|
+
const lro = new LroImpl(
|
|
642
|
+
sendOperation,
|
|
643
|
+
{ resourceGroupName, serverName, options },
|
|
644
|
+
stopOperationSpec
|
|
645
|
+
);
|
|
646
|
+
return new LroEngine(lro, {
|
|
647
|
+
resumeFrom: options?.resumeFrom,
|
|
648
|
+
intervalInMs: options?.updateIntervalInMs
|
|
649
|
+
});
|
|
196
650
|
}
|
|
197
651
|
|
|
198
652
|
/**
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
* @param resourceGroupName The name of the resource group that contains the resource. You can
|
|
202
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
653
|
+
* Stops a running server.
|
|
654
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
203
655
|
* @param serverName The name of the server.
|
|
204
|
-
* @param
|
|
205
|
-
* @param [options] The optional parameters
|
|
206
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
656
|
+
* @param options The options parameters.
|
|
207
657
|
*/
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
},
|
|
216
|
-
beginUpdateOperationSpec,
|
|
217
|
-
options);
|
|
658
|
+
async beginStopAndWait(
|
|
659
|
+
resourceGroupName: string,
|
|
660
|
+
serverName: string,
|
|
661
|
+
options?: ServersStopOptionalParams
|
|
662
|
+
): Promise<void> {
|
|
663
|
+
const poller = await this.beginStop(resourceGroupName, serverName, options);
|
|
664
|
+
return poller.pollUntilDone();
|
|
218
665
|
}
|
|
219
666
|
|
|
220
667
|
/**
|
|
221
|
-
*
|
|
222
|
-
* @param resourceGroupName The name of the resource group
|
|
223
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
668
|
+
* Upgrade server version.
|
|
669
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
224
670
|
* @param serverName The name of the server.
|
|
225
|
-
* @param
|
|
226
|
-
* @
|
|
671
|
+
* @param parameters The required parameters for updating a server.
|
|
672
|
+
* @param options The options parameters.
|
|
227
673
|
*/
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
674
|
+
async beginUpgrade(
|
|
675
|
+
resourceGroupName: string,
|
|
676
|
+
serverName: string,
|
|
677
|
+
parameters: ServerUpgradeParameters,
|
|
678
|
+
options?: ServersUpgradeOptionalParams
|
|
679
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
680
|
+
const directSendOperation = async (
|
|
681
|
+
args: coreClient.OperationArguments,
|
|
682
|
+
spec: coreClient.OperationSpec
|
|
683
|
+
): Promise<void> => {
|
|
684
|
+
return this.client.sendOperationRequest(args, spec);
|
|
685
|
+
};
|
|
686
|
+
const sendOperation = async (
|
|
687
|
+
args: coreClient.OperationArguments,
|
|
688
|
+
spec: coreClient.OperationSpec
|
|
689
|
+
) => {
|
|
690
|
+
let currentRawResponse:
|
|
691
|
+
| coreClient.FullOperationResponse
|
|
692
|
+
| undefined = undefined;
|
|
693
|
+
const providedCallback = args.options?.onResponse;
|
|
694
|
+
const callback: coreClient.RawResponseCallback = (
|
|
695
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
696
|
+
flatResponse: unknown
|
|
697
|
+
) => {
|
|
698
|
+
currentRawResponse = rawResponse;
|
|
699
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
700
|
+
};
|
|
701
|
+
const updatedArgs = {
|
|
702
|
+
...args,
|
|
703
|
+
options: {
|
|
704
|
+
...args.options,
|
|
705
|
+
onResponse: callback
|
|
706
|
+
}
|
|
707
|
+
};
|
|
708
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
709
|
+
return {
|
|
710
|
+
flatResponse,
|
|
711
|
+
rawResponse: {
|
|
712
|
+
statusCode: currentRawResponse!.status,
|
|
713
|
+
body: currentRawResponse!.parsedBody,
|
|
714
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
715
|
+
}
|
|
716
|
+
};
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
const lro = new LroImpl(
|
|
720
|
+
sendOperation,
|
|
721
|
+
{ resourceGroupName, serverName, parameters, options },
|
|
722
|
+
upgradeOperationSpec
|
|
723
|
+
);
|
|
724
|
+
return new LroEngine(lro, {
|
|
725
|
+
resumeFrom: options?.resumeFrom,
|
|
726
|
+
intervalInMs: options?.updateIntervalInMs
|
|
727
|
+
});
|
|
237
728
|
}
|
|
238
729
|
|
|
239
730
|
/**
|
|
240
|
-
*
|
|
241
|
-
* @param resourceGroupName The name of the resource group
|
|
242
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
731
|
+
* Upgrade server version.
|
|
732
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
243
733
|
* @param serverName The name of the server.
|
|
244
|
-
* @param
|
|
245
|
-
* @
|
|
734
|
+
* @param parameters The required parameters for updating a server.
|
|
735
|
+
* @param options The options parameters.
|
|
246
736
|
*/
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
737
|
+
async beginUpgradeAndWait(
|
|
738
|
+
resourceGroupName: string,
|
|
739
|
+
serverName: string,
|
|
740
|
+
parameters: ServerUpgradeParameters,
|
|
741
|
+
options?: ServersUpgradeOptionalParams
|
|
742
|
+
): Promise<void> {
|
|
743
|
+
const poller = await this.beginUpgrade(
|
|
744
|
+
resourceGroupName,
|
|
745
|
+
serverName,
|
|
746
|
+
parameters,
|
|
747
|
+
options
|
|
748
|
+
);
|
|
749
|
+
return poller.pollUntilDone();
|
|
256
750
|
}
|
|
257
751
|
}
|
|
258
|
-
|
|
259
752
|
// Operation Specifications
|
|
260
|
-
const serializer =
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
path:
|
|
753
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
754
|
+
|
|
755
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
756
|
+
path:
|
|
757
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}",
|
|
758
|
+
httpMethod: "PUT",
|
|
759
|
+
responses: {
|
|
760
|
+
200: {
|
|
761
|
+
bodyMapper: Mappers.Server
|
|
762
|
+
},
|
|
763
|
+
201: {
|
|
764
|
+
bodyMapper: Mappers.Server
|
|
765
|
+
},
|
|
766
|
+
202: {
|
|
767
|
+
bodyMapper: Mappers.Server
|
|
768
|
+
},
|
|
769
|
+
204: {
|
|
770
|
+
bodyMapper: Mappers.Server
|
|
771
|
+
},
|
|
772
|
+
default: {
|
|
773
|
+
bodyMapper: Mappers.CloudError
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
requestBody: Parameters.parameters,
|
|
777
|
+
queryParameters: [Parameters.apiVersion],
|
|
264
778
|
urlParameters: [
|
|
779
|
+
Parameters.$host,
|
|
265
780
|
Parameters.subscriptionId,
|
|
266
781
|
Parameters.resourceGroupName,
|
|
267
782
|
Parameters.serverName
|
|
268
783
|
],
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
784
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
785
|
+
mediaType: "json",
|
|
786
|
+
serializer
|
|
787
|
+
};
|
|
788
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
789
|
+
path:
|
|
790
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}",
|
|
791
|
+
httpMethod: "PATCH",
|
|
275
792
|
responses: {
|
|
276
793
|
200: {
|
|
277
794
|
bodyMapper: Mappers.Server
|
|
278
795
|
},
|
|
796
|
+
201: {
|
|
797
|
+
bodyMapper: Mappers.Server
|
|
798
|
+
},
|
|
799
|
+
202: {
|
|
800
|
+
bodyMapper: Mappers.Server
|
|
801
|
+
},
|
|
802
|
+
204: {
|
|
803
|
+
bodyMapper: Mappers.Server
|
|
804
|
+
},
|
|
279
805
|
default: {
|
|
280
806
|
bodyMapper: Mappers.CloudError
|
|
281
807
|
}
|
|
282
808
|
},
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
287
|
-
httpMethod: "GET",
|
|
288
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers",
|
|
809
|
+
requestBody: Parameters.parameters1,
|
|
810
|
+
queryParameters: [Parameters.apiVersion],
|
|
289
811
|
urlParameters: [
|
|
812
|
+
Parameters.$host,
|
|
290
813
|
Parameters.subscriptionId,
|
|
291
|
-
Parameters.resourceGroupName
|
|
292
|
-
|
|
293
|
-
queryParameters: [
|
|
294
|
-
Parameters.apiVersion
|
|
295
|
-
],
|
|
296
|
-
headerParameters: [
|
|
297
|
-
Parameters.acceptLanguage
|
|
814
|
+
Parameters.resourceGroupName,
|
|
815
|
+
Parameters.serverName
|
|
298
816
|
],
|
|
817
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
818
|
+
mediaType: "json",
|
|
819
|
+
serializer
|
|
820
|
+
};
|
|
821
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
822
|
+
path:
|
|
823
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}",
|
|
824
|
+
httpMethod: "DELETE",
|
|
299
825
|
responses: {
|
|
300
|
-
200: {
|
|
301
|
-
|
|
302
|
-
},
|
|
826
|
+
200: {},
|
|
827
|
+
201: {},
|
|
828
|
+
202: {},
|
|
829
|
+
204: {},
|
|
303
830
|
default: {
|
|
304
831
|
bodyMapper: Mappers.CloudError
|
|
305
832
|
}
|
|
306
833
|
},
|
|
834
|
+
queryParameters: [Parameters.apiVersion],
|
|
835
|
+
urlParameters: [
|
|
836
|
+
Parameters.$host,
|
|
837
|
+
Parameters.subscriptionId,
|
|
838
|
+
Parameters.resourceGroupName,
|
|
839
|
+
Parameters.serverName
|
|
840
|
+
],
|
|
841
|
+
headerParameters: [Parameters.accept],
|
|
307
842
|
serializer
|
|
308
843
|
};
|
|
309
|
-
|
|
310
|
-
|
|
844
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
845
|
+
path:
|
|
846
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}",
|
|
311
847
|
httpMethod: "GET",
|
|
312
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/servers",
|
|
313
|
-
urlParameters: [
|
|
314
|
-
Parameters.subscriptionId
|
|
315
|
-
],
|
|
316
|
-
queryParameters: [
|
|
317
|
-
Parameters.apiVersion
|
|
318
|
-
],
|
|
319
|
-
headerParameters: [
|
|
320
|
-
Parameters.acceptLanguage
|
|
321
|
-
],
|
|
322
848
|
responses: {
|
|
323
849
|
200: {
|
|
324
|
-
bodyMapper: Mappers.
|
|
850
|
+
bodyMapper: Mappers.Server
|
|
325
851
|
},
|
|
326
852
|
default: {
|
|
327
853
|
bodyMapper: Mappers.CloudError
|
|
328
854
|
}
|
|
329
855
|
},
|
|
330
|
-
|
|
331
|
-
};
|
|
332
|
-
|
|
333
|
-
const beginCreateOperationSpec: msRest.OperationSpec = {
|
|
334
|
-
httpMethod: "PUT",
|
|
335
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}",
|
|
856
|
+
queryParameters: [Parameters.apiVersion],
|
|
336
857
|
urlParameters: [
|
|
858
|
+
Parameters.$host,
|
|
337
859
|
Parameters.subscriptionId,
|
|
338
860
|
Parameters.resourceGroupName,
|
|
339
861
|
Parameters.serverName
|
|
340
862
|
],
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
parameterPath: "parameters",
|
|
349
|
-
mapper: {
|
|
350
|
-
...Mappers.ServerForCreate,
|
|
351
|
-
required: true
|
|
352
|
-
}
|
|
353
|
-
},
|
|
863
|
+
headerParameters: [Parameters.accept],
|
|
864
|
+
serializer
|
|
865
|
+
};
|
|
866
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
867
|
+
path:
|
|
868
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers",
|
|
869
|
+
httpMethod: "GET",
|
|
354
870
|
responses: {
|
|
355
871
|
200: {
|
|
356
|
-
bodyMapper: Mappers.
|
|
357
|
-
},
|
|
358
|
-
201: {
|
|
359
|
-
bodyMapper: Mappers.Server
|
|
872
|
+
bodyMapper: Mappers.ServerListResult
|
|
360
873
|
},
|
|
361
|
-
202: {},
|
|
362
874
|
default: {
|
|
363
875
|
bodyMapper: Mappers.CloudError
|
|
364
876
|
}
|
|
365
877
|
},
|
|
366
|
-
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
370
|
-
httpMethod: "PATCH",
|
|
371
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}",
|
|
878
|
+
queryParameters: [Parameters.apiVersion],
|
|
372
879
|
urlParameters: [
|
|
880
|
+
Parameters.$host,
|
|
373
881
|
Parameters.subscriptionId,
|
|
374
|
-
Parameters.resourceGroupName
|
|
375
|
-
Parameters.serverName
|
|
376
|
-
],
|
|
377
|
-
queryParameters: [
|
|
378
|
-
Parameters.apiVersion
|
|
379
|
-
],
|
|
380
|
-
headerParameters: [
|
|
381
|
-
Parameters.acceptLanguage
|
|
882
|
+
Parameters.resourceGroupName
|
|
382
883
|
],
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
}
|
|
389
|
-
|
|
884
|
+
headerParameters: [Parameters.accept],
|
|
885
|
+
serializer
|
|
886
|
+
};
|
|
887
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
888
|
+
path:
|
|
889
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/servers",
|
|
890
|
+
httpMethod: "GET",
|
|
390
891
|
responses: {
|
|
391
892
|
200: {
|
|
392
|
-
bodyMapper: Mappers.
|
|
893
|
+
bodyMapper: Mappers.ServerListResult
|
|
393
894
|
},
|
|
394
|
-
202: {},
|
|
395
895
|
default: {
|
|
396
896
|
bodyMapper: Mappers.CloudError
|
|
397
897
|
}
|
|
398
898
|
},
|
|
899
|
+
queryParameters: [Parameters.apiVersion],
|
|
900
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
901
|
+
headerParameters: [Parameters.accept],
|
|
399
902
|
serializer
|
|
400
903
|
};
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
904
|
+
const restartOperationSpec: coreClient.OperationSpec = {
|
|
905
|
+
path:
|
|
906
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/restart",
|
|
907
|
+
httpMethod: "POST",
|
|
908
|
+
responses: {
|
|
909
|
+
200: {},
|
|
910
|
+
201: {},
|
|
911
|
+
202: {},
|
|
912
|
+
204: {},
|
|
913
|
+
default: {
|
|
914
|
+
bodyMapper: Mappers.CloudError
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
queryParameters: [Parameters.apiVersion],
|
|
405
918
|
urlParameters: [
|
|
919
|
+
Parameters.$host,
|
|
406
920
|
Parameters.subscriptionId,
|
|
407
921
|
Parameters.resourceGroupName,
|
|
408
922
|
Parameters.serverName
|
|
409
923
|
],
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
924
|
+
headerParameters: [Parameters.accept],
|
|
925
|
+
serializer
|
|
926
|
+
};
|
|
927
|
+
const startOperationSpec: coreClient.OperationSpec = {
|
|
928
|
+
path:
|
|
929
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/start",
|
|
930
|
+
httpMethod: "POST",
|
|
416
931
|
responses: {
|
|
417
932
|
200: {},
|
|
933
|
+
201: {},
|
|
418
934
|
202: {},
|
|
419
935
|
204: {},
|
|
420
936
|
default: {
|
|
421
|
-
bodyMapper: Mappers.
|
|
937
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
422
938
|
}
|
|
423
939
|
},
|
|
940
|
+
queryParameters: [Parameters.apiVersion1],
|
|
941
|
+
urlParameters: [
|
|
942
|
+
Parameters.$host,
|
|
943
|
+
Parameters.subscriptionId,
|
|
944
|
+
Parameters.resourceGroupName,
|
|
945
|
+
Parameters.serverName
|
|
946
|
+
],
|
|
947
|
+
headerParameters: [Parameters.accept],
|
|
424
948
|
serializer
|
|
425
949
|
};
|
|
426
|
-
|
|
427
|
-
|
|
950
|
+
const stopOperationSpec: coreClient.OperationSpec = {
|
|
951
|
+
path:
|
|
952
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/stop",
|
|
428
953
|
httpMethod: "POST",
|
|
429
|
-
|
|
954
|
+
responses: {
|
|
955
|
+
200: {},
|
|
956
|
+
201: {},
|
|
957
|
+
202: {},
|
|
958
|
+
204: {},
|
|
959
|
+
default: {
|
|
960
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
queryParameters: [Parameters.apiVersion1],
|
|
430
964
|
urlParameters: [
|
|
965
|
+
Parameters.$host,
|
|
431
966
|
Parameters.subscriptionId,
|
|
432
967
|
Parameters.resourceGroupName,
|
|
433
968
|
Parameters.serverName
|
|
434
969
|
],
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
970
|
+
headerParameters: [Parameters.accept],
|
|
971
|
+
serializer
|
|
972
|
+
};
|
|
973
|
+
const upgradeOperationSpec: coreClient.OperationSpec = {
|
|
974
|
+
path:
|
|
975
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/upgrade",
|
|
976
|
+
httpMethod: "POST",
|
|
441
977
|
responses: {
|
|
442
978
|
200: {},
|
|
979
|
+
201: {},
|
|
443
980
|
202: {},
|
|
981
|
+
204: {},
|
|
444
982
|
default: {
|
|
445
|
-
bodyMapper: Mappers.
|
|
983
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
446
984
|
}
|
|
447
985
|
},
|
|
986
|
+
requestBody: Parameters.parameters2,
|
|
987
|
+
queryParameters: [Parameters.apiVersion1],
|
|
988
|
+
urlParameters: [
|
|
989
|
+
Parameters.$host,
|
|
990
|
+
Parameters.subscriptionId,
|
|
991
|
+
Parameters.resourceGroupName,
|
|
992
|
+
Parameters.serverName
|
|
993
|
+
],
|
|
994
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
995
|
+
mediaType: "json",
|
|
448
996
|
serializer
|
|
449
997
|
};
|