@azure/arm-mysql-flexible 1.0.0 → 2.0.0
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 +11 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +81 -82
- package/dist/index.js +4360 -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/samples-dev/backupsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupsGetSample.js +32 -0
- package/dist-esm/samples-dev/backupsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/backupsListByServerSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupsListByServerSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupsListByServerSample.js +45 -0
- package/dist-esm/samples-dev/backupsListByServerSample.js.map +1 -0
- package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.d.ts +2 -0
- package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js +34 -0
- package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js.map +1 -0
- package/dist-esm/samples-dev/checkVirtualNetworkSubnetUsageExecuteSample.d.ts +2 -0
- package/dist-esm/samples-dev/checkVirtualNetworkSubnetUsageExecuteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/checkVirtualNetworkSubnetUsageExecuteSample.js +33 -0
- package/dist-esm/samples-dev/checkVirtualNetworkSubnetUsageExecuteSample.js.map +1 -0
- package/dist-esm/samples-dev/configurationsBatchUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/configurationsBatchUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/configurationsBatchUpdateSample.js +37 -0
- package/dist-esm/samples-dev/configurationsBatchUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/configurationsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/configurationsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/configurationsGetSample.js +32 -0
- package/dist-esm/samples-dev/configurationsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/configurationsListByServerSample.d.ts +2 -0
- package/dist-esm/samples-dev/configurationsListByServerSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/configurationsListByServerSample.js +45 -0
- package/dist-esm/samples-dev/configurationsListByServerSample.js.map +1 -0
- package/dist-esm/samples-dev/configurationsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/configurationsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/configurationsUpdateSample.js +33 -0
- package/dist-esm/samples-dev/configurationsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/databasesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesCreateOrUpdateSample.js +36 -0
- package/dist-esm/samples-dev/databasesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/databasesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesDeleteSample.js +32 -0
- package/dist-esm/samples-dev/databasesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/databasesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesGetSample.js +32 -0
- package/dist-esm/samples-dev/databasesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/databasesListByServerSample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesListByServerSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesListByServerSample.js +45 -0
- package/dist-esm/samples-dev/databasesListByServerSample.js.map +1 -0
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +36 -0
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/firewallRulesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/firewallRulesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firewallRulesDeleteSample.js +32 -0
- package/dist-esm/samples-dev/firewallRulesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/firewallRulesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/firewallRulesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firewallRulesGetSample.js +32 -0
- package/dist-esm/samples-dev/firewallRulesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/firewallRulesListByServerSample.d.ts +2 -0
- package/dist-esm/samples-dev/firewallRulesListByServerSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firewallRulesListByServerSample.js +45 -0
- package/dist-esm/samples-dev/firewallRulesListByServerSample.js.map +1 -0
- package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.d.ts +2 -0
- package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js +29 -0
- package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js.map +1 -0
- package/dist-esm/samples-dev/locationBasedCapabilitiesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/locationBasedCapabilitiesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/locationBasedCapabilitiesListSample.js +44 -0
- package/dist-esm/samples-dev/locationBasedCapabilitiesListSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/replicasListByServerSample.d.ts +2 -0
- package/dist-esm/samples-dev/replicasListByServerSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/replicasListByServerSample.js +45 -0
- package/dist-esm/samples-dev/replicasListByServerSample.js.map +1 -0
- package/dist-esm/samples-dev/serversCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/serversCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serversCreateSample.js +137 -0
- package/dist-esm/samples-dev/serversCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/serversDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/serversDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serversDeleteSample.js +31 -0
- package/dist-esm/samples-dev/serversDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/serversFailoverSample.d.ts +2 -0
- package/dist-esm/samples-dev/serversFailoverSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serversFailoverSample.js +31 -0
- package/dist-esm/samples-dev/serversFailoverSample.js.map +1 -0
- package/dist-esm/samples-dev/serversGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/serversGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serversGetSample.js +49 -0
- package/dist-esm/samples-dev/serversGetSample.js.map +1 -0
- package/dist-esm/samples-dev/serversListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/serversListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serversListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/serversListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/serversListSample.d.ts +2 -0
- package/dist-esm/samples-dev/serversListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serversListSample.js +43 -0
- package/dist-esm/samples-dev/serversListSample.js.map +1 -0
- package/dist-esm/samples-dev/serversRestartSample.d.ts +2 -0
- package/dist-esm/samples-dev/serversRestartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serversRestartSample.js +35 -0
- package/dist-esm/samples-dev/serversRestartSample.js.map +1 -0
- package/dist-esm/samples-dev/serversStartSample.d.ts +2 -0
- package/dist-esm/samples-dev/serversStartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serversStartSample.js +31 -0
- package/dist-esm/samples-dev/serversStartSample.js.map +1 -0
- package/dist-esm/samples-dev/serversStopSample.d.ts +2 -0
- package/dist-esm/samples-dev/serversStopSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serversStopSample.js +31 -0
- package/dist-esm/samples-dev/serversStopSample.js.map +1 -0
- package/dist-esm/samples-dev/serversUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/serversUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serversUpdateSample.js +93 -0
- package/dist-esm/samples-dev/serversUpdateSample.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -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 +1084 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +101 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +47 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +730 -662
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +24 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +187 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/mySQLManagementFlexibleServerClient.d.ts +28 -0
- package/dist-esm/src/mySQLManagementFlexibleServerClient.d.ts.map +1 -0
- package/dist-esm/src/mySQLManagementFlexibleServerClient.js +61 -0
- package/dist-esm/src/mySQLManagementFlexibleServerClient.js.map +1 -0
- package/dist-esm/src/operations/backups.d.ts +46 -0
- package/dist-esm/src/operations/backups.d.ts.map +1 -0
- package/dist-esm/src/operations/backups.js +169 -0
- package/dist-esm/src/operations/backups.js.map +1 -0
- package/dist-esm/src/operations/checkNameAvailability.d.ts +20 -0
- package/dist-esm/src/operations/checkNameAvailability.d.ts.map +1 -0
- package/dist-esm/src/operations/checkNameAvailability.js +54 -0
- package/dist-esm/src/operations/checkNameAvailability.js.map +1 -0
- package/dist-esm/src/operations/checkVirtualNetworkSubnetUsage.d.ts +20 -0
- package/dist-esm/src/operations/checkVirtualNetworkSubnetUsage.d.ts.map +1 -0
- package/dist-esm/src/operations/checkVirtualNetworkSubnetUsage.js +54 -0
- package/dist-esm/src/operations/checkVirtualNetworkSubnetUsage.js.map +1 -0
- package/dist-esm/src/operations/configurations.d.ts +81 -0
- package/dist-esm/src/operations/configurations.d.ts.map +1 -0
- package/dist-esm/src/operations/configurations.js +341 -0
- package/dist-esm/src/operations/configurations.js.map +1 -0
- package/dist-esm/src/operations/databases.d.ts +81 -0
- package/dist-esm/src/operations/databases.d.ts.map +1 -0
- package/dist-esm/src/operations/databases.js +331 -0
- package/dist-esm/src/operations/databases.js.map +1 -0
- package/dist-esm/src/operations/firewallRules.d.ts +81 -0
- package/dist-esm/src/operations/firewallRules.d.ts.map +1 -0
- package/dist-esm/src/operations/firewallRules.js +331 -0
- package/dist-esm/src/operations/firewallRules.js.map +1 -0
- package/dist-esm/src/operations/getPrivateDnsZoneSuffix.d.ts +18 -0
- package/dist-esm/src/operations/getPrivateDnsZoneSuffix.d.ts.map +1 -0
- package/dist-esm/src/operations/getPrivateDnsZoneSuffix.js +46 -0
- package/dist-esm/src/operations/getPrivateDnsZoneSuffix.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/locationBasedCapabilities.d.ts +35 -0
- package/dist-esm/src/operations/locationBasedCapabilities.d.ts.map +1 -0
- package/dist-esm/src/operations/locationBasedCapabilities.js +132 -0
- package/dist-esm/src/operations/locationBasedCapabilities.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/replicas.d.ts +38 -0
- package/dist-esm/src/operations/replicas.d.ts.map +1 -0
- package/dist-esm/src/operations/replicas.js +137 -0
- package/dist-esm/src/operations/replicas.js.map +1 -0
- package/dist-esm/src/operations/servers.d.ts +169 -0
- package/dist-esm/src/operations/servers.d.ts.map +1 -0
- package/dist-esm/src/operations/servers.js +792 -0
- package/dist-esm/src/operations/servers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/backups.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/backups.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/backups.js} +2 -1
- package/dist-esm/src/operationsInterfaces/backups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts.map +1 -0
- package/{src/models/getPrivateDnsZoneSuffixMappers.ts → dist-esm/src/operationsInterfaces/checkNameAvailability.js} +2 -7
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/checkVirtualNetworkSubnetUsage.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/checkVirtualNetworkSubnetUsage.d.ts.map +1 -0
- package/{src/models/checkNameAvailabilityMappers.ts → dist-esm/src/operationsInterfaces/checkVirtualNetworkSubnetUsage.js} +2 -8
- package/dist-esm/src/operationsInterfaces/checkVirtualNetworkSubnetUsage.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/configurations.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/configurations.js} +2 -9
- 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/getPrivateDnsZoneSuffix.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/getPrivateDnsZoneSuffix.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/getPrivateDnsZoneSuffix.js +9 -0
- package/dist-esm/src/operationsInterfaces/getPrivateDnsZoneSuffix.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +19 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/locationBasedCapabilities.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/locationBasedCapabilities.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/locationBasedCapabilities.js +9 -0
- package/dist-esm/src/operationsInterfaces/locationBasedCapabilities.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -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/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/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/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 +83 -24
- package/review/arm-mysql-flexible.api.md +939 -0
- package/rollup.config.js +115 -30
- package/src/{models/checkVirtualNetworkSubnetUsageMappers.ts → index.ts} +4 -8
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +927 -1445
- package/src/models/mappers.ts +765 -691
- package/src/models/parameters.ts +141 -49
- package/src/mySQLManagementFlexibleServerClient.ts +121 -0
- package/src/operations/backups.ts +156 -123
- package/src/operations/checkNameAvailability.ts +39 -57
- package/src/operations/checkVirtualNetworkSubnetUsage.ts +40 -57
- package/src/operations/configurations.ts +368 -212
- package/src/operations/databases.ts +355 -212
- package/src/operations/firewallRules.ts +355 -212
- package/src/operations/getPrivateDnsZoneSuffix.ts +27 -41
- package/src/operations/index.ts +1 -2
- package/src/operations/locationBasedCapabilities.ts +106 -80
- package/src/operations/operations.ts +85 -73
- package/src/operations/replicas.ts +133 -82
- package/src/operations/servers.ts +833 -454
- package/src/operationsInterfaces/backups.ts +44 -0
- package/src/operationsInterfaces/checkNameAvailability.ts +28 -0
- package/src/operationsInterfaces/checkVirtualNetworkSubnetUsage.ts +28 -0
- package/src/operationsInterfaces/configurations.ts +116 -0
- package/src/operationsInterfaces/databases.ts +109 -0
- package/src/operationsInterfaces/firewallRules.ts +109 -0
- package/src/operationsInterfaces/getPrivateDnsZoneSuffix.ts +23 -0
- package/src/operationsInterfaces/index.ts +19 -0
- package/src/operationsInterfaces/locationBasedCapabilities.ts +27 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/replicas.ts +26 -0
- package/src/operationsInterfaces/servers.ts +232 -0
- package/tsconfig.json +21 -7
- package/types/arm-mysql-flexible.d.ts +1627 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-mysql-flexible.js +0 -3773
- package/dist/arm-mysql-flexible.js.map +0 -1
- package/dist/arm-mysql-flexible.min.js +0 -1
- package/dist/arm-mysql-flexible.min.js.map +0 -1
- package/esm/models/backupsMappers.d.ts +0 -2
- package/esm/models/backupsMappers.d.ts.map +0 -1
- package/esm/models/backupsMappers.js +0 -9
- package/esm/models/backupsMappers.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/checkVirtualNetworkSubnetUsageMappers.d.ts +0 -2
- package/esm/models/checkVirtualNetworkSubnetUsageMappers.d.ts.map +0 -1
- package/esm/models/checkVirtualNetworkSubnetUsageMappers.js +0 -9
- package/esm/models/checkVirtualNetworkSubnetUsageMappers.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/getPrivateDnsZoneSuffixMappers.d.ts +0 -2
- package/esm/models/getPrivateDnsZoneSuffixMappers.d.ts.map +0 -1
- package/esm/models/getPrivateDnsZoneSuffixMappers.js +0 -9
- package/esm/models/getPrivateDnsZoneSuffixMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -1621
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/locationBasedCapabilitiesMappers.d.ts +0 -2
- package/esm/models/locationBasedCapabilitiesMappers.d.ts.map +0 -1
- package/esm/models/locationBasedCapabilitiesMappers.js +0 -9
- package/esm/models/locationBasedCapabilitiesMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -46
- package/esm/models/mappers.d.ts.map +0 -1
- 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 -13
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -130
- 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/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/mySQLManagementClient.d.ts +0 -34
- package/esm/mySQLManagementClient.d.ts.map +0 -1
- package/esm/mySQLManagementClient.js +0 -47
- 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 -60
- package/esm/mySQLManagementClientContext.js.map +0 -1
- package/esm/operations/backups.d.ts +0 -76
- package/esm/operations/backups.d.ts.map +0 -1
- package/esm/operations/backups.js +0 -119
- package/esm/operations/backups.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 -61
- package/esm/operations/checkNameAvailability.js.map +0 -1
- package/esm/operations/checkVirtualNetworkSubnetUsage.d.ts +0 -34
- package/esm/operations/checkVirtualNetworkSubnetUsage.d.ts.map +0 -1
- package/esm/operations/checkVirtualNetworkSubnetUsage.js +0 -61
- package/esm/operations/checkVirtualNetworkSubnetUsage.js.map +0 -1
- package/esm/operations/configurations.d.ts +0 -115
- package/esm/operations/configurations.d.ts.map +0 -1
- package/esm/operations/configurations.js +0 -238
- package/esm/operations/configurations.js.map +0 -1
- package/esm/operations/databases.d.ts +0 -115
- package/esm/operations/databases.d.ts.map +0 -1
- package/esm/operations/databases.js +0 -237
- package/esm/operations/databases.js.map +0 -1
- package/esm/operations/firewallRules.d.ts +0 -115
- package/esm/operations/firewallRules.d.ts.map +0 -1
- package/esm/operations/firewallRules.js +0 -237
- package/esm/operations/firewallRules.js.map +0 -1
- package/esm/operations/getPrivateDnsZoneSuffix.d.ts +0 -28
- package/esm/operations/getPrivateDnsZoneSuffix.d.ts.map +0 -1
- package/esm/operations/getPrivateDnsZoneSuffix.js +0 -50
- package/esm/operations/getPrivateDnsZoneSuffix.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/locationBasedCapabilities.d.ts +0 -49
- package/esm/operations/locationBasedCapabilities.d.ts.map +0 -1
- package/esm/operations/locationBasedCapabilities.js +0 -84
- package/esm/operations/locationBasedCapabilities.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/replicas.d.ts +0 -52
- package/esm/operations/replicas.d.ts.map +0 -1
- package/esm/operations/replicas.js +0 -86
- package/esm/operations/replicas.js.map +0 -1
- package/esm/operations/servers.d.ts +0 -226
- package/esm/operations/servers.d.ts.map +0 -1
- package/esm/operations/servers.js +0 -541
- package/esm/operations/servers.js.map +0 -1
- package/src/models/backupsMappers.ts +0 -31
- package/src/models/configurationsMappers.ts +0 -33
- package/src/models/databasesMappers.ts +0 -31
- package/src/models/firewallRulesMappers.ts +0 -31
- package/src/models/locationBasedCapabilitiesMappers.ts +0 -19
- package/src/models/replicasMappers.ts +0 -31
- package/src/models/serversMappers.ts +0 -33
- package/src/mySQLManagementClient.ts +0 -67
- package/src/mySQLManagementClientContext.ts +0 -67
package/dist/index.js
ADDED
|
@@ -0,0 +1,4360 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
|
+
var coreLro = require('@azure/core-lro');
|
|
8
|
+
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n["default"] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
28
|
+
|
|
29
|
+
/*
|
|
30
|
+
* Copyright (c) Microsoft Corporation.
|
|
31
|
+
* Licensed under the MIT License.
|
|
32
|
+
*
|
|
33
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
34
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
35
|
+
*/
|
|
36
|
+
/** Known values of {@link SkuTier} that the service accepts. */
|
|
37
|
+
exports.KnownSkuTier = void 0;
|
|
38
|
+
(function (KnownSkuTier) {
|
|
39
|
+
KnownSkuTier["Burstable"] = "Burstable";
|
|
40
|
+
KnownSkuTier["GeneralPurpose"] = "GeneralPurpose";
|
|
41
|
+
KnownSkuTier["MemoryOptimized"] = "MemoryOptimized";
|
|
42
|
+
})(exports.KnownSkuTier || (exports.KnownSkuTier = {}));
|
|
43
|
+
/** Known values of {@link ServerVersion} that the service accepts. */
|
|
44
|
+
exports.KnownServerVersion = void 0;
|
|
45
|
+
(function (KnownServerVersion) {
|
|
46
|
+
KnownServerVersion["Five7"] = "5.7";
|
|
47
|
+
KnownServerVersion["Eight021"] = "8.0.21";
|
|
48
|
+
})(exports.KnownServerVersion || (exports.KnownServerVersion = {}));
|
|
49
|
+
/** Known values of {@link CreateMode} that the service accepts. */
|
|
50
|
+
exports.KnownCreateMode = void 0;
|
|
51
|
+
(function (KnownCreateMode) {
|
|
52
|
+
KnownCreateMode["Default"] = "Default";
|
|
53
|
+
KnownCreateMode["PointInTimeRestore"] = "PointInTimeRestore";
|
|
54
|
+
KnownCreateMode["Replica"] = "Replica";
|
|
55
|
+
KnownCreateMode["GeoRestore"] = "GeoRestore";
|
|
56
|
+
})(exports.KnownCreateMode || (exports.KnownCreateMode = {}));
|
|
57
|
+
/** Known values of {@link ReplicationRole} that the service accepts. */
|
|
58
|
+
exports.KnownReplicationRole = void 0;
|
|
59
|
+
(function (KnownReplicationRole) {
|
|
60
|
+
KnownReplicationRole["None"] = "None";
|
|
61
|
+
KnownReplicationRole["Source"] = "Source";
|
|
62
|
+
KnownReplicationRole["Replica"] = "Replica";
|
|
63
|
+
})(exports.KnownReplicationRole || (exports.KnownReplicationRole = {}));
|
|
64
|
+
/** Known values of {@link ServerState} that the service accepts. */
|
|
65
|
+
exports.KnownServerState = void 0;
|
|
66
|
+
(function (KnownServerState) {
|
|
67
|
+
KnownServerState["Ready"] = "Ready";
|
|
68
|
+
KnownServerState["Dropping"] = "Dropping";
|
|
69
|
+
KnownServerState["Disabled"] = "Disabled";
|
|
70
|
+
KnownServerState["Starting"] = "Starting";
|
|
71
|
+
KnownServerState["Stopping"] = "Stopping";
|
|
72
|
+
KnownServerState["Stopped"] = "Stopped";
|
|
73
|
+
KnownServerState["Updating"] = "Updating";
|
|
74
|
+
})(exports.KnownServerState || (exports.KnownServerState = {}));
|
|
75
|
+
/** Known values of {@link EnableStatusEnum} that the service accepts. */
|
|
76
|
+
exports.KnownEnableStatusEnum = void 0;
|
|
77
|
+
(function (KnownEnableStatusEnum) {
|
|
78
|
+
KnownEnableStatusEnum["Enabled"] = "Enabled";
|
|
79
|
+
KnownEnableStatusEnum["Disabled"] = "Disabled";
|
|
80
|
+
})(exports.KnownEnableStatusEnum || (exports.KnownEnableStatusEnum = {}));
|
|
81
|
+
/** Known values of {@link HighAvailabilityMode} that the service accepts. */
|
|
82
|
+
exports.KnownHighAvailabilityMode = void 0;
|
|
83
|
+
(function (KnownHighAvailabilityMode) {
|
|
84
|
+
KnownHighAvailabilityMode["Disabled"] = "Disabled";
|
|
85
|
+
KnownHighAvailabilityMode["ZoneRedundant"] = "ZoneRedundant";
|
|
86
|
+
KnownHighAvailabilityMode["SameZone"] = "SameZone";
|
|
87
|
+
})(exports.KnownHighAvailabilityMode || (exports.KnownHighAvailabilityMode = {}));
|
|
88
|
+
/** Known values of {@link HighAvailabilityState} that the service accepts. */
|
|
89
|
+
exports.KnownHighAvailabilityState = void 0;
|
|
90
|
+
(function (KnownHighAvailabilityState) {
|
|
91
|
+
KnownHighAvailabilityState["NotEnabled"] = "NotEnabled";
|
|
92
|
+
KnownHighAvailabilityState["CreatingStandby"] = "CreatingStandby";
|
|
93
|
+
KnownHighAvailabilityState["Healthy"] = "Healthy";
|
|
94
|
+
KnownHighAvailabilityState["FailingOver"] = "FailingOver";
|
|
95
|
+
KnownHighAvailabilityState["RemovingStandby"] = "RemovingStandby";
|
|
96
|
+
})(exports.KnownHighAvailabilityState || (exports.KnownHighAvailabilityState = {}));
|
|
97
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
98
|
+
exports.KnownCreatedByType = void 0;
|
|
99
|
+
(function (KnownCreatedByType) {
|
|
100
|
+
KnownCreatedByType["User"] = "User";
|
|
101
|
+
KnownCreatedByType["Application"] = "Application";
|
|
102
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
103
|
+
KnownCreatedByType["Key"] = "Key";
|
|
104
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
105
|
+
/** Known values of {@link ConfigurationSource} that the service accepts. */
|
|
106
|
+
exports.KnownConfigurationSource = void 0;
|
|
107
|
+
(function (KnownConfigurationSource) {
|
|
108
|
+
KnownConfigurationSource["SystemDefault"] = "system-default";
|
|
109
|
+
KnownConfigurationSource["UserOverride"] = "user-override";
|
|
110
|
+
})(exports.KnownConfigurationSource || (exports.KnownConfigurationSource = {}));
|
|
111
|
+
/** Known values of {@link IsReadOnly} that the service accepts. */
|
|
112
|
+
exports.KnownIsReadOnly = void 0;
|
|
113
|
+
(function (KnownIsReadOnly) {
|
|
114
|
+
KnownIsReadOnly["True"] = "True";
|
|
115
|
+
KnownIsReadOnly["False"] = "False";
|
|
116
|
+
})(exports.KnownIsReadOnly || (exports.KnownIsReadOnly = {}));
|
|
117
|
+
/** Known values of {@link IsConfigPendingRestart} that the service accepts. */
|
|
118
|
+
exports.KnownIsConfigPendingRestart = void 0;
|
|
119
|
+
(function (KnownIsConfigPendingRestart) {
|
|
120
|
+
KnownIsConfigPendingRestart["True"] = "True";
|
|
121
|
+
KnownIsConfigPendingRestart["False"] = "False";
|
|
122
|
+
})(exports.KnownIsConfigPendingRestart || (exports.KnownIsConfigPendingRestart = {}));
|
|
123
|
+
/** Known values of {@link IsDynamicConfig} that the service accepts. */
|
|
124
|
+
exports.KnownIsDynamicConfig = void 0;
|
|
125
|
+
(function (KnownIsDynamicConfig) {
|
|
126
|
+
KnownIsDynamicConfig["True"] = "True";
|
|
127
|
+
KnownIsDynamicConfig["False"] = "False";
|
|
128
|
+
})(exports.KnownIsDynamicConfig || (exports.KnownIsDynamicConfig = {}));
|
|
129
|
+
|
|
130
|
+
/*
|
|
131
|
+
* Copyright (c) Microsoft Corporation.
|
|
132
|
+
* Licensed under the MIT License.
|
|
133
|
+
*
|
|
134
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
135
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
136
|
+
*/
|
|
137
|
+
const Identity = {
|
|
138
|
+
type: {
|
|
139
|
+
name: "Composite",
|
|
140
|
+
className: "Identity",
|
|
141
|
+
modelProperties: {
|
|
142
|
+
principalId: {
|
|
143
|
+
serializedName: "principalId",
|
|
144
|
+
readOnly: true,
|
|
145
|
+
type: {
|
|
146
|
+
name: "String"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
tenantId: {
|
|
150
|
+
serializedName: "tenantId",
|
|
151
|
+
readOnly: true,
|
|
152
|
+
type: {
|
|
153
|
+
name: "String"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
type: {
|
|
157
|
+
defaultValue: "UserAssigned",
|
|
158
|
+
isConstant: true,
|
|
159
|
+
serializedName: "type",
|
|
160
|
+
type: {
|
|
161
|
+
name: "String"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
userAssignedIdentities: {
|
|
165
|
+
serializedName: "userAssignedIdentities",
|
|
166
|
+
type: {
|
|
167
|
+
name: "Dictionary",
|
|
168
|
+
value: {
|
|
169
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
const Sku = {
|
|
177
|
+
type: {
|
|
178
|
+
name: "Composite",
|
|
179
|
+
className: "Sku",
|
|
180
|
+
modelProperties: {
|
|
181
|
+
name: {
|
|
182
|
+
serializedName: "name",
|
|
183
|
+
required: true,
|
|
184
|
+
type: {
|
|
185
|
+
name: "String"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
tier: {
|
|
189
|
+
serializedName: "tier",
|
|
190
|
+
required: true,
|
|
191
|
+
type: {
|
|
192
|
+
name: "String"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
const DataEncryption = {
|
|
199
|
+
type: {
|
|
200
|
+
name: "Composite",
|
|
201
|
+
className: "DataEncryption",
|
|
202
|
+
modelProperties: {
|
|
203
|
+
primaryUserAssignedIdentityId: {
|
|
204
|
+
serializedName: "primaryUserAssignedIdentityId",
|
|
205
|
+
type: {
|
|
206
|
+
name: "String"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
primaryKeyUri: {
|
|
210
|
+
serializedName: "primaryKeyUri",
|
|
211
|
+
type: {
|
|
212
|
+
name: "String"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
geoBackupUserAssignedIdentityId: {
|
|
216
|
+
serializedName: "geoBackupUserAssignedIdentityId",
|
|
217
|
+
type: {
|
|
218
|
+
name: "String"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
geoBackupKeyUri: {
|
|
222
|
+
serializedName: "geoBackupKeyUri",
|
|
223
|
+
type: {
|
|
224
|
+
name: "String"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
type: {
|
|
228
|
+
serializedName: "type",
|
|
229
|
+
type: {
|
|
230
|
+
name: "Enum",
|
|
231
|
+
allowedValues: ["AzureKeyVault", "SystemManaged"]
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
const Storage = {
|
|
238
|
+
type: {
|
|
239
|
+
name: "Composite",
|
|
240
|
+
className: "Storage",
|
|
241
|
+
modelProperties: {
|
|
242
|
+
storageSizeGB: {
|
|
243
|
+
serializedName: "storageSizeGB",
|
|
244
|
+
type: {
|
|
245
|
+
name: "Number"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
iops: {
|
|
249
|
+
serializedName: "iops",
|
|
250
|
+
type: {
|
|
251
|
+
name: "Number"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
autoGrow: {
|
|
255
|
+
serializedName: "autoGrow",
|
|
256
|
+
type: {
|
|
257
|
+
name: "String"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
storageSku: {
|
|
261
|
+
serializedName: "storageSku",
|
|
262
|
+
readOnly: true,
|
|
263
|
+
type: {
|
|
264
|
+
name: "String"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
const Backup = {
|
|
271
|
+
type: {
|
|
272
|
+
name: "Composite",
|
|
273
|
+
className: "Backup",
|
|
274
|
+
modelProperties: {
|
|
275
|
+
backupRetentionDays: {
|
|
276
|
+
serializedName: "backupRetentionDays",
|
|
277
|
+
type: {
|
|
278
|
+
name: "Number"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
geoRedundantBackup: {
|
|
282
|
+
serializedName: "geoRedundantBackup",
|
|
283
|
+
type: {
|
|
284
|
+
name: "String"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
earliestRestoreDate: {
|
|
288
|
+
serializedName: "earliestRestoreDate",
|
|
289
|
+
readOnly: true,
|
|
290
|
+
type: {
|
|
291
|
+
name: "DateTime"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
const HighAvailability = {
|
|
298
|
+
type: {
|
|
299
|
+
name: "Composite",
|
|
300
|
+
className: "HighAvailability",
|
|
301
|
+
modelProperties: {
|
|
302
|
+
mode: {
|
|
303
|
+
serializedName: "mode",
|
|
304
|
+
type: {
|
|
305
|
+
name: "String"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
state: {
|
|
309
|
+
serializedName: "state",
|
|
310
|
+
readOnly: true,
|
|
311
|
+
type: {
|
|
312
|
+
name: "String"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
standbyAvailabilityZone: {
|
|
316
|
+
serializedName: "standbyAvailabilityZone",
|
|
317
|
+
type: {
|
|
318
|
+
name: "String"
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
const Network = {
|
|
325
|
+
type: {
|
|
326
|
+
name: "Composite",
|
|
327
|
+
className: "Network",
|
|
328
|
+
modelProperties: {
|
|
329
|
+
publicNetworkAccess: {
|
|
330
|
+
serializedName: "publicNetworkAccess",
|
|
331
|
+
readOnly: true,
|
|
332
|
+
type: {
|
|
333
|
+
name: "String"
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
delegatedSubnetResourceId: {
|
|
337
|
+
serializedName: "delegatedSubnetResourceId",
|
|
338
|
+
type: {
|
|
339
|
+
name: "String"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
privateDnsZoneResourceId: {
|
|
343
|
+
serializedName: "privateDnsZoneResourceId",
|
|
344
|
+
type: {
|
|
345
|
+
name: "String"
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
const MaintenanceWindow = {
|
|
352
|
+
type: {
|
|
353
|
+
name: "Composite",
|
|
354
|
+
className: "MaintenanceWindow",
|
|
355
|
+
modelProperties: {
|
|
356
|
+
customWindow: {
|
|
357
|
+
serializedName: "customWindow",
|
|
358
|
+
type: {
|
|
359
|
+
name: "String"
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
startHour: {
|
|
363
|
+
serializedName: "startHour",
|
|
364
|
+
type: {
|
|
365
|
+
name: "Number"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
startMinute: {
|
|
369
|
+
serializedName: "startMinute",
|
|
370
|
+
type: {
|
|
371
|
+
name: "Number"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
dayOfWeek: {
|
|
375
|
+
serializedName: "dayOfWeek",
|
|
376
|
+
type: {
|
|
377
|
+
name: "Number"
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
const SystemData = {
|
|
384
|
+
type: {
|
|
385
|
+
name: "Composite",
|
|
386
|
+
className: "SystemData",
|
|
387
|
+
modelProperties: {
|
|
388
|
+
createdBy: {
|
|
389
|
+
serializedName: "createdBy",
|
|
390
|
+
type: {
|
|
391
|
+
name: "String"
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
createdByType: {
|
|
395
|
+
serializedName: "createdByType",
|
|
396
|
+
type: {
|
|
397
|
+
name: "String"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
createdAt: {
|
|
401
|
+
serializedName: "createdAt",
|
|
402
|
+
type: {
|
|
403
|
+
name: "DateTime"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
lastModifiedBy: {
|
|
407
|
+
serializedName: "lastModifiedBy",
|
|
408
|
+
type: {
|
|
409
|
+
name: "String"
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
lastModifiedByType: {
|
|
413
|
+
serializedName: "lastModifiedByType",
|
|
414
|
+
type: {
|
|
415
|
+
name: "String"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
lastModifiedAt: {
|
|
419
|
+
serializedName: "lastModifiedAt",
|
|
420
|
+
type: {
|
|
421
|
+
name: "DateTime"
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
const Resource = {
|
|
428
|
+
type: {
|
|
429
|
+
name: "Composite",
|
|
430
|
+
className: "Resource",
|
|
431
|
+
modelProperties: {
|
|
432
|
+
id: {
|
|
433
|
+
serializedName: "id",
|
|
434
|
+
readOnly: true,
|
|
435
|
+
type: {
|
|
436
|
+
name: "String"
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
name: {
|
|
440
|
+
serializedName: "name",
|
|
441
|
+
readOnly: true,
|
|
442
|
+
type: {
|
|
443
|
+
name: "String"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
type: {
|
|
447
|
+
serializedName: "type",
|
|
448
|
+
readOnly: true,
|
|
449
|
+
type: {
|
|
450
|
+
name: "String"
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
const CloudError = {
|
|
457
|
+
type: {
|
|
458
|
+
name: "Composite",
|
|
459
|
+
className: "CloudError",
|
|
460
|
+
modelProperties: {
|
|
461
|
+
error: {
|
|
462
|
+
serializedName: "error",
|
|
463
|
+
type: {
|
|
464
|
+
name: "Composite",
|
|
465
|
+
className: "ErrorResponse"
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
const ErrorResponse = {
|
|
472
|
+
type: {
|
|
473
|
+
name: "Composite",
|
|
474
|
+
className: "ErrorResponse",
|
|
475
|
+
modelProperties: {
|
|
476
|
+
code: {
|
|
477
|
+
serializedName: "code",
|
|
478
|
+
readOnly: true,
|
|
479
|
+
type: {
|
|
480
|
+
name: "String"
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
message: {
|
|
484
|
+
serializedName: "message",
|
|
485
|
+
readOnly: true,
|
|
486
|
+
type: {
|
|
487
|
+
name: "String"
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
target: {
|
|
491
|
+
serializedName: "target",
|
|
492
|
+
readOnly: true,
|
|
493
|
+
type: {
|
|
494
|
+
name: "String"
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
details: {
|
|
498
|
+
serializedName: "details",
|
|
499
|
+
readOnly: true,
|
|
500
|
+
type: {
|
|
501
|
+
name: "Sequence",
|
|
502
|
+
element: {
|
|
503
|
+
type: {
|
|
504
|
+
name: "Composite",
|
|
505
|
+
className: "ErrorResponse"
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
additionalInfo: {
|
|
511
|
+
serializedName: "additionalInfo",
|
|
512
|
+
readOnly: true,
|
|
513
|
+
type: {
|
|
514
|
+
name: "Sequence",
|
|
515
|
+
element: {
|
|
516
|
+
type: {
|
|
517
|
+
name: "Composite",
|
|
518
|
+
className: "ErrorAdditionalInfo"
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
const ErrorAdditionalInfo = {
|
|
527
|
+
type: {
|
|
528
|
+
name: "Composite",
|
|
529
|
+
className: "ErrorAdditionalInfo",
|
|
530
|
+
modelProperties: {
|
|
531
|
+
type: {
|
|
532
|
+
serializedName: "type",
|
|
533
|
+
readOnly: true,
|
|
534
|
+
type: {
|
|
535
|
+
name: "String"
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
info: {
|
|
539
|
+
serializedName: "info",
|
|
540
|
+
readOnly: true,
|
|
541
|
+
type: {
|
|
542
|
+
name: "Dictionary",
|
|
543
|
+
value: { type: { name: "any" } }
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
const ServerForUpdate = {
|
|
550
|
+
type: {
|
|
551
|
+
name: "Composite",
|
|
552
|
+
className: "ServerForUpdate",
|
|
553
|
+
modelProperties: {
|
|
554
|
+
identity: {
|
|
555
|
+
serializedName: "identity",
|
|
556
|
+
type: {
|
|
557
|
+
name: "Composite",
|
|
558
|
+
className: "Identity"
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
sku: {
|
|
562
|
+
serializedName: "sku",
|
|
563
|
+
type: {
|
|
564
|
+
name: "Composite",
|
|
565
|
+
className: "Sku"
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
tags: {
|
|
569
|
+
serializedName: "tags",
|
|
570
|
+
type: {
|
|
571
|
+
name: "Dictionary",
|
|
572
|
+
value: { type: { name: "String" } }
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
administratorLoginPassword: {
|
|
576
|
+
serializedName: "properties.administratorLoginPassword",
|
|
577
|
+
type: {
|
|
578
|
+
name: "String"
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
storage: {
|
|
582
|
+
serializedName: "properties.storage",
|
|
583
|
+
type: {
|
|
584
|
+
name: "Composite",
|
|
585
|
+
className: "Storage"
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
backup: {
|
|
589
|
+
serializedName: "properties.backup",
|
|
590
|
+
type: {
|
|
591
|
+
name: "Composite",
|
|
592
|
+
className: "Backup"
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
highAvailability: {
|
|
596
|
+
serializedName: "properties.highAvailability",
|
|
597
|
+
type: {
|
|
598
|
+
name: "Composite",
|
|
599
|
+
className: "HighAvailability"
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
maintenanceWindow: {
|
|
603
|
+
serializedName: "properties.maintenanceWindow",
|
|
604
|
+
type: {
|
|
605
|
+
name: "Composite",
|
|
606
|
+
className: "MaintenanceWindow"
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
replicationRole: {
|
|
610
|
+
serializedName: "properties.replicationRole",
|
|
611
|
+
type: {
|
|
612
|
+
name: "String"
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
dataEncryption: {
|
|
616
|
+
serializedName: "properties.dataEncryption",
|
|
617
|
+
type: {
|
|
618
|
+
name: "Composite",
|
|
619
|
+
className: "DataEncryption"
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
const ServerListResult = {
|
|
626
|
+
type: {
|
|
627
|
+
name: "Composite",
|
|
628
|
+
className: "ServerListResult",
|
|
629
|
+
modelProperties: {
|
|
630
|
+
value: {
|
|
631
|
+
serializedName: "value",
|
|
632
|
+
type: {
|
|
633
|
+
name: "Sequence",
|
|
634
|
+
element: {
|
|
635
|
+
type: {
|
|
636
|
+
name: "Composite",
|
|
637
|
+
className: "Server"
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
nextLink: {
|
|
643
|
+
serializedName: "nextLink",
|
|
644
|
+
type: {
|
|
645
|
+
name: "String"
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
};
|
|
651
|
+
const ServerRestartParameter = {
|
|
652
|
+
type: {
|
|
653
|
+
name: "Composite",
|
|
654
|
+
className: "ServerRestartParameter",
|
|
655
|
+
modelProperties: {
|
|
656
|
+
restartWithFailover: {
|
|
657
|
+
serializedName: "restartWithFailover",
|
|
658
|
+
type: {
|
|
659
|
+
name: "String"
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
maxFailoverSeconds: {
|
|
663
|
+
serializedName: "maxFailoverSeconds",
|
|
664
|
+
type: {
|
|
665
|
+
name: "Number"
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
};
|
|
671
|
+
const ServerBackupListResult = {
|
|
672
|
+
type: {
|
|
673
|
+
name: "Composite",
|
|
674
|
+
className: "ServerBackupListResult",
|
|
675
|
+
modelProperties: {
|
|
676
|
+
value: {
|
|
677
|
+
serializedName: "value",
|
|
678
|
+
type: {
|
|
679
|
+
name: "Sequence",
|
|
680
|
+
element: {
|
|
681
|
+
type: {
|
|
682
|
+
name: "Composite",
|
|
683
|
+
className: "ServerBackup"
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
nextLink: {
|
|
689
|
+
serializedName: "nextLink",
|
|
690
|
+
type: {
|
|
691
|
+
name: "String"
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
};
|
|
697
|
+
const FirewallRuleListResult = {
|
|
698
|
+
type: {
|
|
699
|
+
name: "Composite",
|
|
700
|
+
className: "FirewallRuleListResult",
|
|
701
|
+
modelProperties: {
|
|
702
|
+
value: {
|
|
703
|
+
serializedName: "value",
|
|
704
|
+
type: {
|
|
705
|
+
name: "Sequence",
|
|
706
|
+
element: {
|
|
707
|
+
type: {
|
|
708
|
+
name: "Composite",
|
|
709
|
+
className: "FirewallRule"
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
nextLink: {
|
|
715
|
+
serializedName: "nextLink",
|
|
716
|
+
type: {
|
|
717
|
+
name: "String"
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
const DatabaseListResult = {
|
|
724
|
+
type: {
|
|
725
|
+
name: "Composite",
|
|
726
|
+
className: "DatabaseListResult",
|
|
727
|
+
modelProperties: {
|
|
728
|
+
value: {
|
|
729
|
+
serializedName: "value",
|
|
730
|
+
type: {
|
|
731
|
+
name: "Sequence",
|
|
732
|
+
element: {
|
|
733
|
+
type: {
|
|
734
|
+
name: "Composite",
|
|
735
|
+
className: "Database"
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
},
|
|
740
|
+
nextLink: {
|
|
741
|
+
serializedName: "nextLink",
|
|
742
|
+
type: {
|
|
743
|
+
name: "String"
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
};
|
|
749
|
+
const ConfigurationListForBatchUpdate = {
|
|
750
|
+
type: {
|
|
751
|
+
name: "Composite",
|
|
752
|
+
className: "ConfigurationListForBatchUpdate",
|
|
753
|
+
modelProperties: {
|
|
754
|
+
value: {
|
|
755
|
+
serializedName: "value",
|
|
756
|
+
type: {
|
|
757
|
+
name: "Sequence",
|
|
758
|
+
element: {
|
|
759
|
+
type: {
|
|
760
|
+
name: "Composite",
|
|
761
|
+
className: "ConfigurationForBatchUpdate"
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
};
|
|
769
|
+
const ConfigurationForBatchUpdate = {
|
|
770
|
+
type: {
|
|
771
|
+
name: "Composite",
|
|
772
|
+
className: "ConfigurationForBatchUpdate",
|
|
773
|
+
modelProperties: {
|
|
774
|
+
name: {
|
|
775
|
+
serializedName: "name",
|
|
776
|
+
type: {
|
|
777
|
+
name: "String"
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
value: {
|
|
781
|
+
serializedName: "properties.value",
|
|
782
|
+
type: {
|
|
783
|
+
name: "String"
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
source: {
|
|
787
|
+
serializedName: "properties.source",
|
|
788
|
+
type: {
|
|
789
|
+
name: "String"
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
};
|
|
795
|
+
const ConfigurationListResult = {
|
|
796
|
+
type: {
|
|
797
|
+
name: "Composite",
|
|
798
|
+
className: "ConfigurationListResult",
|
|
799
|
+
modelProperties: {
|
|
800
|
+
value: {
|
|
801
|
+
serializedName: "value",
|
|
802
|
+
type: {
|
|
803
|
+
name: "Sequence",
|
|
804
|
+
element: {
|
|
805
|
+
type: {
|
|
806
|
+
name: "Composite",
|
|
807
|
+
className: "Configuration"
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
nextLink: {
|
|
813
|
+
serializedName: "nextLink",
|
|
814
|
+
type: {
|
|
815
|
+
name: "String"
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
};
|
|
821
|
+
const CapabilitiesListResult = {
|
|
822
|
+
type: {
|
|
823
|
+
name: "Composite",
|
|
824
|
+
className: "CapabilitiesListResult",
|
|
825
|
+
modelProperties: {
|
|
826
|
+
value: {
|
|
827
|
+
serializedName: "value",
|
|
828
|
+
readOnly: true,
|
|
829
|
+
type: {
|
|
830
|
+
name: "Sequence",
|
|
831
|
+
element: {
|
|
832
|
+
type: {
|
|
833
|
+
name: "Composite",
|
|
834
|
+
className: "CapabilityProperties"
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
nextLink: {
|
|
840
|
+
serializedName: "nextLink",
|
|
841
|
+
readOnly: true,
|
|
842
|
+
type: {
|
|
843
|
+
name: "String"
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
};
|
|
849
|
+
const CapabilityProperties = {
|
|
850
|
+
type: {
|
|
851
|
+
name: "Composite",
|
|
852
|
+
className: "CapabilityProperties",
|
|
853
|
+
modelProperties: {
|
|
854
|
+
zone: {
|
|
855
|
+
serializedName: "zone",
|
|
856
|
+
readOnly: true,
|
|
857
|
+
type: {
|
|
858
|
+
name: "String"
|
|
859
|
+
}
|
|
860
|
+
},
|
|
861
|
+
supportedHAMode: {
|
|
862
|
+
serializedName: "supportedHAMode",
|
|
863
|
+
readOnly: true,
|
|
864
|
+
type: {
|
|
865
|
+
name: "Sequence",
|
|
866
|
+
element: {
|
|
867
|
+
type: {
|
|
868
|
+
name: "String"
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
supportedGeoBackupRegions: {
|
|
874
|
+
serializedName: "supportedGeoBackupRegions",
|
|
875
|
+
readOnly: true,
|
|
876
|
+
type: {
|
|
877
|
+
name: "Sequence",
|
|
878
|
+
element: {
|
|
879
|
+
type: {
|
|
880
|
+
name: "String"
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
supportedFlexibleServerEditions: {
|
|
886
|
+
serializedName: "supportedFlexibleServerEditions",
|
|
887
|
+
readOnly: true,
|
|
888
|
+
type: {
|
|
889
|
+
name: "Sequence",
|
|
890
|
+
element: {
|
|
891
|
+
type: {
|
|
892
|
+
name: "Composite",
|
|
893
|
+
className: "ServerEditionCapability"
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
};
|
|
901
|
+
const ServerEditionCapability = {
|
|
902
|
+
type: {
|
|
903
|
+
name: "Composite",
|
|
904
|
+
className: "ServerEditionCapability",
|
|
905
|
+
modelProperties: {
|
|
906
|
+
name: {
|
|
907
|
+
serializedName: "name",
|
|
908
|
+
readOnly: true,
|
|
909
|
+
type: {
|
|
910
|
+
name: "String"
|
|
911
|
+
}
|
|
912
|
+
},
|
|
913
|
+
supportedStorageEditions: {
|
|
914
|
+
serializedName: "supportedStorageEditions",
|
|
915
|
+
readOnly: true,
|
|
916
|
+
type: {
|
|
917
|
+
name: "Sequence",
|
|
918
|
+
element: {
|
|
919
|
+
type: {
|
|
920
|
+
name: "Composite",
|
|
921
|
+
className: "StorageEditionCapability"
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
},
|
|
926
|
+
supportedServerVersions: {
|
|
927
|
+
serializedName: "supportedServerVersions",
|
|
928
|
+
readOnly: true,
|
|
929
|
+
type: {
|
|
930
|
+
name: "Sequence",
|
|
931
|
+
element: {
|
|
932
|
+
type: {
|
|
933
|
+
name: "Composite",
|
|
934
|
+
className: "ServerVersionCapability"
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
};
|
|
942
|
+
const StorageEditionCapability = {
|
|
943
|
+
type: {
|
|
944
|
+
name: "Composite",
|
|
945
|
+
className: "StorageEditionCapability",
|
|
946
|
+
modelProperties: {
|
|
947
|
+
name: {
|
|
948
|
+
serializedName: "name",
|
|
949
|
+
readOnly: true,
|
|
950
|
+
type: {
|
|
951
|
+
name: "String"
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
minStorageSize: {
|
|
955
|
+
serializedName: "minStorageSize",
|
|
956
|
+
readOnly: true,
|
|
957
|
+
type: {
|
|
958
|
+
name: "Number"
|
|
959
|
+
}
|
|
960
|
+
},
|
|
961
|
+
maxStorageSize: {
|
|
962
|
+
serializedName: "maxStorageSize",
|
|
963
|
+
readOnly: true,
|
|
964
|
+
type: {
|
|
965
|
+
name: "Number"
|
|
966
|
+
}
|
|
967
|
+
},
|
|
968
|
+
minBackupRetentionDays: {
|
|
969
|
+
serializedName: "minBackupRetentionDays",
|
|
970
|
+
readOnly: true,
|
|
971
|
+
type: {
|
|
972
|
+
name: "Number"
|
|
973
|
+
}
|
|
974
|
+
},
|
|
975
|
+
maxBackupRetentionDays: {
|
|
976
|
+
serializedName: "maxBackupRetentionDays",
|
|
977
|
+
readOnly: true,
|
|
978
|
+
type: {
|
|
979
|
+
name: "Number"
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
};
|
|
985
|
+
const ServerVersionCapability = {
|
|
986
|
+
type: {
|
|
987
|
+
name: "Composite",
|
|
988
|
+
className: "ServerVersionCapability",
|
|
989
|
+
modelProperties: {
|
|
990
|
+
name: {
|
|
991
|
+
serializedName: "name",
|
|
992
|
+
readOnly: true,
|
|
993
|
+
type: {
|
|
994
|
+
name: "String"
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
supportedSkus: {
|
|
998
|
+
serializedName: "supportedSkus",
|
|
999
|
+
readOnly: true,
|
|
1000
|
+
type: {
|
|
1001
|
+
name: "Sequence",
|
|
1002
|
+
element: {
|
|
1003
|
+
type: {
|
|
1004
|
+
name: "Composite",
|
|
1005
|
+
className: "SkuCapability"
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
};
|
|
1013
|
+
const SkuCapability = {
|
|
1014
|
+
type: {
|
|
1015
|
+
name: "Composite",
|
|
1016
|
+
className: "SkuCapability",
|
|
1017
|
+
modelProperties: {
|
|
1018
|
+
name: {
|
|
1019
|
+
serializedName: "name",
|
|
1020
|
+
readOnly: true,
|
|
1021
|
+
type: {
|
|
1022
|
+
name: "String"
|
|
1023
|
+
}
|
|
1024
|
+
},
|
|
1025
|
+
vCores: {
|
|
1026
|
+
serializedName: "vCores",
|
|
1027
|
+
readOnly: true,
|
|
1028
|
+
type: {
|
|
1029
|
+
name: "Number"
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
supportedIops: {
|
|
1033
|
+
serializedName: "supportedIops",
|
|
1034
|
+
readOnly: true,
|
|
1035
|
+
type: {
|
|
1036
|
+
name: "Number"
|
|
1037
|
+
}
|
|
1038
|
+
},
|
|
1039
|
+
supportedMemoryPerVCoreMB: {
|
|
1040
|
+
serializedName: "supportedMemoryPerVCoreMB",
|
|
1041
|
+
readOnly: true,
|
|
1042
|
+
type: {
|
|
1043
|
+
name: "Number"
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
};
|
|
1049
|
+
const VirtualNetworkSubnetUsageParameter = {
|
|
1050
|
+
type: {
|
|
1051
|
+
name: "Composite",
|
|
1052
|
+
className: "VirtualNetworkSubnetUsageParameter",
|
|
1053
|
+
modelProperties: {
|
|
1054
|
+
virtualNetworkResourceId: {
|
|
1055
|
+
serializedName: "virtualNetworkResourceId",
|
|
1056
|
+
type: {
|
|
1057
|
+
name: "String"
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
};
|
|
1063
|
+
const VirtualNetworkSubnetUsageResult = {
|
|
1064
|
+
type: {
|
|
1065
|
+
name: "Composite",
|
|
1066
|
+
className: "VirtualNetworkSubnetUsageResult",
|
|
1067
|
+
modelProperties: {
|
|
1068
|
+
delegatedSubnetsUsage: {
|
|
1069
|
+
serializedName: "delegatedSubnetsUsage",
|
|
1070
|
+
readOnly: true,
|
|
1071
|
+
type: {
|
|
1072
|
+
name: "Sequence",
|
|
1073
|
+
element: {
|
|
1074
|
+
type: {
|
|
1075
|
+
name: "Composite",
|
|
1076
|
+
className: "DelegatedSubnetUsage"
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
};
|
|
1084
|
+
const DelegatedSubnetUsage = {
|
|
1085
|
+
type: {
|
|
1086
|
+
name: "Composite",
|
|
1087
|
+
className: "DelegatedSubnetUsage",
|
|
1088
|
+
modelProperties: {
|
|
1089
|
+
subnetName: {
|
|
1090
|
+
serializedName: "subnetName",
|
|
1091
|
+
readOnly: true,
|
|
1092
|
+
type: {
|
|
1093
|
+
name: "String"
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
usage: {
|
|
1097
|
+
serializedName: "usage",
|
|
1098
|
+
readOnly: true,
|
|
1099
|
+
type: {
|
|
1100
|
+
name: "Number"
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
};
|
|
1106
|
+
const NameAvailabilityRequest = {
|
|
1107
|
+
type: {
|
|
1108
|
+
name: "Composite",
|
|
1109
|
+
className: "NameAvailabilityRequest",
|
|
1110
|
+
modelProperties: {
|
|
1111
|
+
name: {
|
|
1112
|
+
serializedName: "name",
|
|
1113
|
+
required: true,
|
|
1114
|
+
type: {
|
|
1115
|
+
name: "String"
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
type: {
|
|
1119
|
+
serializedName: "type",
|
|
1120
|
+
type: {
|
|
1121
|
+
name: "String"
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
};
|
|
1127
|
+
const NameAvailability = {
|
|
1128
|
+
type: {
|
|
1129
|
+
name: "Composite",
|
|
1130
|
+
className: "NameAvailability",
|
|
1131
|
+
modelProperties: {
|
|
1132
|
+
message: {
|
|
1133
|
+
serializedName: "message",
|
|
1134
|
+
type: {
|
|
1135
|
+
name: "String"
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
nameAvailable: {
|
|
1139
|
+
serializedName: "nameAvailable",
|
|
1140
|
+
type: {
|
|
1141
|
+
name: "Boolean"
|
|
1142
|
+
}
|
|
1143
|
+
},
|
|
1144
|
+
reason: {
|
|
1145
|
+
serializedName: "reason",
|
|
1146
|
+
type: {
|
|
1147
|
+
name: "String"
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
};
|
|
1153
|
+
const GetPrivateDnsZoneSuffixResponse = {
|
|
1154
|
+
type: {
|
|
1155
|
+
name: "Composite",
|
|
1156
|
+
className: "GetPrivateDnsZoneSuffixResponse",
|
|
1157
|
+
modelProperties: {
|
|
1158
|
+
privateDnsZoneSuffix: {
|
|
1159
|
+
serializedName: "privateDnsZoneSuffix",
|
|
1160
|
+
type: {
|
|
1161
|
+
name: "String"
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
};
|
|
1167
|
+
const OperationListResult = {
|
|
1168
|
+
type: {
|
|
1169
|
+
name: "Composite",
|
|
1170
|
+
className: "OperationListResult",
|
|
1171
|
+
modelProperties: {
|
|
1172
|
+
value: {
|
|
1173
|
+
serializedName: "value",
|
|
1174
|
+
type: {
|
|
1175
|
+
name: "Sequence",
|
|
1176
|
+
element: {
|
|
1177
|
+
type: {
|
|
1178
|
+
name: "Composite",
|
|
1179
|
+
className: "Operation"
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
nextLink: {
|
|
1185
|
+
serializedName: "nextLink",
|
|
1186
|
+
type: {
|
|
1187
|
+
name: "String"
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
};
|
|
1193
|
+
const Operation = {
|
|
1194
|
+
type: {
|
|
1195
|
+
name: "Composite",
|
|
1196
|
+
className: "Operation",
|
|
1197
|
+
modelProperties: {
|
|
1198
|
+
name: {
|
|
1199
|
+
serializedName: "name",
|
|
1200
|
+
type: {
|
|
1201
|
+
name: "String"
|
|
1202
|
+
}
|
|
1203
|
+
},
|
|
1204
|
+
display: {
|
|
1205
|
+
serializedName: "display",
|
|
1206
|
+
type: {
|
|
1207
|
+
name: "Composite",
|
|
1208
|
+
className: "OperationDisplay"
|
|
1209
|
+
}
|
|
1210
|
+
},
|
|
1211
|
+
origin: {
|
|
1212
|
+
serializedName: "origin",
|
|
1213
|
+
type: {
|
|
1214
|
+
name: "String"
|
|
1215
|
+
}
|
|
1216
|
+
},
|
|
1217
|
+
properties: {
|
|
1218
|
+
serializedName: "properties",
|
|
1219
|
+
type: {
|
|
1220
|
+
name: "Dictionary",
|
|
1221
|
+
value: {
|
|
1222
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
};
|
|
1229
|
+
const OperationDisplay = {
|
|
1230
|
+
type: {
|
|
1231
|
+
name: "Composite",
|
|
1232
|
+
className: "OperationDisplay",
|
|
1233
|
+
modelProperties: {
|
|
1234
|
+
provider: {
|
|
1235
|
+
serializedName: "provider",
|
|
1236
|
+
type: {
|
|
1237
|
+
name: "String"
|
|
1238
|
+
}
|
|
1239
|
+
},
|
|
1240
|
+
resource: {
|
|
1241
|
+
serializedName: "resource",
|
|
1242
|
+
type: {
|
|
1243
|
+
name: "String"
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
operation: {
|
|
1247
|
+
serializedName: "operation",
|
|
1248
|
+
type: {
|
|
1249
|
+
name: "String"
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
description: {
|
|
1253
|
+
serializedName: "description",
|
|
1254
|
+
type: {
|
|
1255
|
+
name: "String"
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
};
|
|
1261
|
+
const UserAssignedIdentity = {
|
|
1262
|
+
type: {
|
|
1263
|
+
name: "Composite",
|
|
1264
|
+
className: "UserAssignedIdentity",
|
|
1265
|
+
modelProperties: {
|
|
1266
|
+
principalId: {
|
|
1267
|
+
serializedName: "principalId",
|
|
1268
|
+
readOnly: true,
|
|
1269
|
+
type: {
|
|
1270
|
+
name: "String"
|
|
1271
|
+
}
|
|
1272
|
+
},
|
|
1273
|
+
clientId: {
|
|
1274
|
+
serializedName: "clientId",
|
|
1275
|
+
readOnly: true,
|
|
1276
|
+
type: {
|
|
1277
|
+
name: "String"
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
};
|
|
1283
|
+
const TrackedResource = {
|
|
1284
|
+
type: {
|
|
1285
|
+
name: "Composite",
|
|
1286
|
+
className: "TrackedResource",
|
|
1287
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
1288
|
+
serializedName: "tags",
|
|
1289
|
+
type: {
|
|
1290
|
+
name: "Dictionary",
|
|
1291
|
+
value: { type: { name: "String" } }
|
|
1292
|
+
}
|
|
1293
|
+
}, location: {
|
|
1294
|
+
serializedName: "location",
|
|
1295
|
+
required: true,
|
|
1296
|
+
type: {
|
|
1297
|
+
name: "String"
|
|
1298
|
+
}
|
|
1299
|
+
} })
|
|
1300
|
+
}
|
|
1301
|
+
};
|
|
1302
|
+
const ProxyResource = {
|
|
1303
|
+
type: {
|
|
1304
|
+
name: "Composite",
|
|
1305
|
+
className: "ProxyResource",
|
|
1306
|
+
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
|
1307
|
+
}
|
|
1308
|
+
};
|
|
1309
|
+
const Server = {
|
|
1310
|
+
type: {
|
|
1311
|
+
name: "Composite",
|
|
1312
|
+
className: "Server",
|
|
1313
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
|
|
1314
|
+
serializedName: "identity",
|
|
1315
|
+
type: {
|
|
1316
|
+
name: "Composite",
|
|
1317
|
+
className: "Identity"
|
|
1318
|
+
}
|
|
1319
|
+
}, sku: {
|
|
1320
|
+
serializedName: "sku",
|
|
1321
|
+
type: {
|
|
1322
|
+
name: "Composite",
|
|
1323
|
+
className: "Sku"
|
|
1324
|
+
}
|
|
1325
|
+
}, systemData: {
|
|
1326
|
+
serializedName: "systemData",
|
|
1327
|
+
type: {
|
|
1328
|
+
name: "Composite",
|
|
1329
|
+
className: "SystemData"
|
|
1330
|
+
}
|
|
1331
|
+
}, administratorLogin: {
|
|
1332
|
+
serializedName: "properties.administratorLogin",
|
|
1333
|
+
type: {
|
|
1334
|
+
name: "String"
|
|
1335
|
+
}
|
|
1336
|
+
}, administratorLoginPassword: {
|
|
1337
|
+
serializedName: "properties.administratorLoginPassword",
|
|
1338
|
+
type: {
|
|
1339
|
+
name: "String"
|
|
1340
|
+
}
|
|
1341
|
+
}, version: {
|
|
1342
|
+
serializedName: "properties.version",
|
|
1343
|
+
type: {
|
|
1344
|
+
name: "String"
|
|
1345
|
+
}
|
|
1346
|
+
}, availabilityZone: {
|
|
1347
|
+
serializedName: "properties.availabilityZone",
|
|
1348
|
+
type: {
|
|
1349
|
+
name: "String"
|
|
1350
|
+
}
|
|
1351
|
+
}, createMode: {
|
|
1352
|
+
serializedName: "properties.createMode",
|
|
1353
|
+
type: {
|
|
1354
|
+
name: "String"
|
|
1355
|
+
}
|
|
1356
|
+
}, sourceServerResourceId: {
|
|
1357
|
+
serializedName: "properties.sourceServerResourceId",
|
|
1358
|
+
type: {
|
|
1359
|
+
name: "String"
|
|
1360
|
+
}
|
|
1361
|
+
}, restorePointInTime: {
|
|
1362
|
+
serializedName: "properties.restorePointInTime",
|
|
1363
|
+
type: {
|
|
1364
|
+
name: "DateTime"
|
|
1365
|
+
}
|
|
1366
|
+
}, replicationRole: {
|
|
1367
|
+
serializedName: "properties.replicationRole",
|
|
1368
|
+
type: {
|
|
1369
|
+
name: "String"
|
|
1370
|
+
}
|
|
1371
|
+
}, replicaCapacity: {
|
|
1372
|
+
constraints: {
|
|
1373
|
+
InclusiveMinimum: 0
|
|
1374
|
+
},
|
|
1375
|
+
serializedName: "properties.replicaCapacity",
|
|
1376
|
+
readOnly: true,
|
|
1377
|
+
type: {
|
|
1378
|
+
name: "Number"
|
|
1379
|
+
}
|
|
1380
|
+
}, dataEncryption: {
|
|
1381
|
+
serializedName: "properties.dataEncryption",
|
|
1382
|
+
type: {
|
|
1383
|
+
name: "Composite",
|
|
1384
|
+
className: "DataEncryption"
|
|
1385
|
+
}
|
|
1386
|
+
}, state: {
|
|
1387
|
+
serializedName: "properties.state",
|
|
1388
|
+
readOnly: true,
|
|
1389
|
+
type: {
|
|
1390
|
+
name: "String"
|
|
1391
|
+
}
|
|
1392
|
+
}, fullyQualifiedDomainName: {
|
|
1393
|
+
serializedName: "properties.fullyQualifiedDomainName",
|
|
1394
|
+
readOnly: true,
|
|
1395
|
+
type: {
|
|
1396
|
+
name: "String"
|
|
1397
|
+
}
|
|
1398
|
+
}, storage: {
|
|
1399
|
+
serializedName: "properties.storage",
|
|
1400
|
+
type: {
|
|
1401
|
+
name: "Composite",
|
|
1402
|
+
className: "Storage"
|
|
1403
|
+
}
|
|
1404
|
+
}, backup: {
|
|
1405
|
+
serializedName: "properties.backup",
|
|
1406
|
+
type: {
|
|
1407
|
+
name: "Composite",
|
|
1408
|
+
className: "Backup"
|
|
1409
|
+
}
|
|
1410
|
+
}, highAvailability: {
|
|
1411
|
+
serializedName: "properties.highAvailability",
|
|
1412
|
+
type: {
|
|
1413
|
+
name: "Composite",
|
|
1414
|
+
className: "HighAvailability"
|
|
1415
|
+
}
|
|
1416
|
+
}, network: {
|
|
1417
|
+
serializedName: "properties.network",
|
|
1418
|
+
type: {
|
|
1419
|
+
name: "Composite",
|
|
1420
|
+
className: "Network"
|
|
1421
|
+
}
|
|
1422
|
+
}, maintenanceWindow: {
|
|
1423
|
+
serializedName: "properties.maintenanceWindow",
|
|
1424
|
+
type: {
|
|
1425
|
+
name: "Composite",
|
|
1426
|
+
className: "MaintenanceWindow"
|
|
1427
|
+
}
|
|
1428
|
+
} })
|
|
1429
|
+
}
|
|
1430
|
+
};
|
|
1431
|
+
const ServerBackup = {
|
|
1432
|
+
type: {
|
|
1433
|
+
name: "Composite",
|
|
1434
|
+
className: "ServerBackup",
|
|
1435
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
|
|
1436
|
+
serializedName: "systemData",
|
|
1437
|
+
type: {
|
|
1438
|
+
name: "Composite",
|
|
1439
|
+
className: "SystemData"
|
|
1440
|
+
}
|
|
1441
|
+
}, backupType: {
|
|
1442
|
+
serializedName: "properties.backupType",
|
|
1443
|
+
type: {
|
|
1444
|
+
name: "String"
|
|
1445
|
+
}
|
|
1446
|
+
}, completedTime: {
|
|
1447
|
+
serializedName: "properties.completedTime",
|
|
1448
|
+
type: {
|
|
1449
|
+
name: "DateTime"
|
|
1450
|
+
}
|
|
1451
|
+
}, source: {
|
|
1452
|
+
serializedName: "properties.source",
|
|
1453
|
+
type: {
|
|
1454
|
+
name: "String"
|
|
1455
|
+
}
|
|
1456
|
+
} })
|
|
1457
|
+
}
|
|
1458
|
+
};
|
|
1459
|
+
const FirewallRule = {
|
|
1460
|
+
type: {
|
|
1461
|
+
name: "Composite",
|
|
1462
|
+
className: "FirewallRule",
|
|
1463
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
|
|
1464
|
+
serializedName: "systemData",
|
|
1465
|
+
type: {
|
|
1466
|
+
name: "Composite",
|
|
1467
|
+
className: "SystemData"
|
|
1468
|
+
}
|
|
1469
|
+
}, startIpAddress: {
|
|
1470
|
+
constraints: {
|
|
1471
|
+
Pattern: new RegExp("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$")
|
|
1472
|
+
},
|
|
1473
|
+
serializedName: "properties.startIpAddress",
|
|
1474
|
+
required: true,
|
|
1475
|
+
type: {
|
|
1476
|
+
name: "String"
|
|
1477
|
+
}
|
|
1478
|
+
}, endIpAddress: {
|
|
1479
|
+
constraints: {
|
|
1480
|
+
Pattern: new RegExp("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$")
|
|
1481
|
+
},
|
|
1482
|
+
serializedName: "properties.endIpAddress",
|
|
1483
|
+
required: true,
|
|
1484
|
+
type: {
|
|
1485
|
+
name: "String"
|
|
1486
|
+
}
|
|
1487
|
+
} })
|
|
1488
|
+
}
|
|
1489
|
+
};
|
|
1490
|
+
const Database = {
|
|
1491
|
+
type: {
|
|
1492
|
+
name: "Composite",
|
|
1493
|
+
className: "Database",
|
|
1494
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
|
|
1495
|
+
serializedName: "systemData",
|
|
1496
|
+
type: {
|
|
1497
|
+
name: "Composite",
|
|
1498
|
+
className: "SystemData"
|
|
1499
|
+
}
|
|
1500
|
+
}, charset: {
|
|
1501
|
+
serializedName: "properties.charset",
|
|
1502
|
+
type: {
|
|
1503
|
+
name: "String"
|
|
1504
|
+
}
|
|
1505
|
+
}, collation: {
|
|
1506
|
+
serializedName: "properties.collation",
|
|
1507
|
+
type: {
|
|
1508
|
+
name: "String"
|
|
1509
|
+
}
|
|
1510
|
+
} })
|
|
1511
|
+
}
|
|
1512
|
+
};
|
|
1513
|
+
const Configuration = {
|
|
1514
|
+
type: {
|
|
1515
|
+
name: "Composite",
|
|
1516
|
+
className: "Configuration",
|
|
1517
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
|
|
1518
|
+
serializedName: "systemData",
|
|
1519
|
+
type: {
|
|
1520
|
+
name: "Composite",
|
|
1521
|
+
className: "SystemData"
|
|
1522
|
+
}
|
|
1523
|
+
}, value: {
|
|
1524
|
+
serializedName: "properties.value",
|
|
1525
|
+
type: {
|
|
1526
|
+
name: "String"
|
|
1527
|
+
}
|
|
1528
|
+
}, description: {
|
|
1529
|
+
serializedName: "properties.description",
|
|
1530
|
+
readOnly: true,
|
|
1531
|
+
type: {
|
|
1532
|
+
name: "String"
|
|
1533
|
+
}
|
|
1534
|
+
}, defaultValue: {
|
|
1535
|
+
serializedName: "properties.defaultValue",
|
|
1536
|
+
readOnly: true,
|
|
1537
|
+
type: {
|
|
1538
|
+
name: "String"
|
|
1539
|
+
}
|
|
1540
|
+
}, dataType: {
|
|
1541
|
+
serializedName: "properties.dataType",
|
|
1542
|
+
readOnly: true,
|
|
1543
|
+
type: {
|
|
1544
|
+
name: "String"
|
|
1545
|
+
}
|
|
1546
|
+
}, allowedValues: {
|
|
1547
|
+
serializedName: "properties.allowedValues",
|
|
1548
|
+
readOnly: true,
|
|
1549
|
+
type: {
|
|
1550
|
+
name: "String"
|
|
1551
|
+
}
|
|
1552
|
+
}, source: {
|
|
1553
|
+
serializedName: "properties.source",
|
|
1554
|
+
type: {
|
|
1555
|
+
name: "String"
|
|
1556
|
+
}
|
|
1557
|
+
}, isReadOnly: {
|
|
1558
|
+
serializedName: "properties.isReadOnly",
|
|
1559
|
+
readOnly: true,
|
|
1560
|
+
type: {
|
|
1561
|
+
name: "String"
|
|
1562
|
+
}
|
|
1563
|
+
}, isConfigPendingRestart: {
|
|
1564
|
+
serializedName: "properties.isConfigPendingRestart",
|
|
1565
|
+
readOnly: true,
|
|
1566
|
+
type: {
|
|
1567
|
+
name: "String"
|
|
1568
|
+
}
|
|
1569
|
+
}, isDynamicConfig: {
|
|
1570
|
+
serializedName: "properties.isDynamicConfig",
|
|
1571
|
+
readOnly: true,
|
|
1572
|
+
type: {
|
|
1573
|
+
name: "String"
|
|
1574
|
+
}
|
|
1575
|
+
} })
|
|
1576
|
+
}
|
|
1577
|
+
};
|
|
1578
|
+
|
|
1579
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1580
|
+
__proto__: null,
|
|
1581
|
+
Identity: Identity,
|
|
1582
|
+
Sku: Sku,
|
|
1583
|
+
DataEncryption: DataEncryption,
|
|
1584
|
+
Storage: Storage,
|
|
1585
|
+
Backup: Backup,
|
|
1586
|
+
HighAvailability: HighAvailability,
|
|
1587
|
+
Network: Network,
|
|
1588
|
+
MaintenanceWindow: MaintenanceWindow,
|
|
1589
|
+
SystemData: SystemData,
|
|
1590
|
+
Resource: Resource,
|
|
1591
|
+
CloudError: CloudError,
|
|
1592
|
+
ErrorResponse: ErrorResponse,
|
|
1593
|
+
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1594
|
+
ServerForUpdate: ServerForUpdate,
|
|
1595
|
+
ServerListResult: ServerListResult,
|
|
1596
|
+
ServerRestartParameter: ServerRestartParameter,
|
|
1597
|
+
ServerBackupListResult: ServerBackupListResult,
|
|
1598
|
+
FirewallRuleListResult: FirewallRuleListResult,
|
|
1599
|
+
DatabaseListResult: DatabaseListResult,
|
|
1600
|
+
ConfigurationListForBatchUpdate: ConfigurationListForBatchUpdate,
|
|
1601
|
+
ConfigurationForBatchUpdate: ConfigurationForBatchUpdate,
|
|
1602
|
+
ConfigurationListResult: ConfigurationListResult,
|
|
1603
|
+
CapabilitiesListResult: CapabilitiesListResult,
|
|
1604
|
+
CapabilityProperties: CapabilityProperties,
|
|
1605
|
+
ServerEditionCapability: ServerEditionCapability,
|
|
1606
|
+
StorageEditionCapability: StorageEditionCapability,
|
|
1607
|
+
ServerVersionCapability: ServerVersionCapability,
|
|
1608
|
+
SkuCapability: SkuCapability,
|
|
1609
|
+
VirtualNetworkSubnetUsageParameter: VirtualNetworkSubnetUsageParameter,
|
|
1610
|
+
VirtualNetworkSubnetUsageResult: VirtualNetworkSubnetUsageResult,
|
|
1611
|
+
DelegatedSubnetUsage: DelegatedSubnetUsage,
|
|
1612
|
+
NameAvailabilityRequest: NameAvailabilityRequest,
|
|
1613
|
+
NameAvailability: NameAvailability,
|
|
1614
|
+
GetPrivateDnsZoneSuffixResponse: GetPrivateDnsZoneSuffixResponse,
|
|
1615
|
+
OperationListResult: OperationListResult,
|
|
1616
|
+
Operation: Operation,
|
|
1617
|
+
OperationDisplay: OperationDisplay,
|
|
1618
|
+
UserAssignedIdentity: UserAssignedIdentity,
|
|
1619
|
+
TrackedResource: TrackedResource,
|
|
1620
|
+
ProxyResource: ProxyResource,
|
|
1621
|
+
Server: Server,
|
|
1622
|
+
ServerBackup: ServerBackup,
|
|
1623
|
+
FirewallRule: FirewallRule,
|
|
1624
|
+
Database: Database,
|
|
1625
|
+
Configuration: Configuration
|
|
1626
|
+
});
|
|
1627
|
+
|
|
1628
|
+
/*
|
|
1629
|
+
* Copyright (c) Microsoft Corporation.
|
|
1630
|
+
* Licensed under the MIT License.
|
|
1631
|
+
*
|
|
1632
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1633
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1634
|
+
*/
|
|
1635
|
+
const contentType = {
|
|
1636
|
+
parameterPath: ["options", "contentType"],
|
|
1637
|
+
mapper: {
|
|
1638
|
+
defaultValue: "application/json",
|
|
1639
|
+
isConstant: true,
|
|
1640
|
+
serializedName: "Content-Type",
|
|
1641
|
+
type: {
|
|
1642
|
+
name: "String"
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
};
|
|
1646
|
+
const parameters = {
|
|
1647
|
+
parameterPath: "parameters",
|
|
1648
|
+
mapper: Server
|
|
1649
|
+
};
|
|
1650
|
+
const accept = {
|
|
1651
|
+
parameterPath: "accept",
|
|
1652
|
+
mapper: {
|
|
1653
|
+
defaultValue: "application/json",
|
|
1654
|
+
isConstant: true,
|
|
1655
|
+
serializedName: "Accept",
|
|
1656
|
+
type: {
|
|
1657
|
+
name: "String"
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
};
|
|
1661
|
+
const $host = {
|
|
1662
|
+
parameterPath: "$host",
|
|
1663
|
+
mapper: {
|
|
1664
|
+
serializedName: "$host",
|
|
1665
|
+
required: true,
|
|
1666
|
+
type: {
|
|
1667
|
+
name: "String"
|
|
1668
|
+
}
|
|
1669
|
+
},
|
|
1670
|
+
skipEncoding: true
|
|
1671
|
+
};
|
|
1672
|
+
const apiVersion = {
|
|
1673
|
+
parameterPath: "apiVersion",
|
|
1674
|
+
mapper: {
|
|
1675
|
+
defaultValue: "2021-05-01",
|
|
1676
|
+
isConstant: true,
|
|
1677
|
+
serializedName: "api-version",
|
|
1678
|
+
type: {
|
|
1679
|
+
name: "String"
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
};
|
|
1683
|
+
const subscriptionId = {
|
|
1684
|
+
parameterPath: "subscriptionId",
|
|
1685
|
+
mapper: {
|
|
1686
|
+
constraints: {
|
|
1687
|
+
MinLength: 1
|
|
1688
|
+
},
|
|
1689
|
+
serializedName: "subscriptionId",
|
|
1690
|
+
required: true,
|
|
1691
|
+
type: {
|
|
1692
|
+
name: "String"
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
};
|
|
1696
|
+
const resourceGroupName = {
|
|
1697
|
+
parameterPath: "resourceGroupName",
|
|
1698
|
+
mapper: {
|
|
1699
|
+
constraints: {
|
|
1700
|
+
MaxLength: 90,
|
|
1701
|
+
MinLength: 1
|
|
1702
|
+
},
|
|
1703
|
+
serializedName: "resourceGroupName",
|
|
1704
|
+
required: true,
|
|
1705
|
+
type: {
|
|
1706
|
+
name: "String"
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
};
|
|
1710
|
+
const serverName = {
|
|
1711
|
+
parameterPath: "serverName",
|
|
1712
|
+
mapper: {
|
|
1713
|
+
serializedName: "serverName",
|
|
1714
|
+
required: true,
|
|
1715
|
+
type: {
|
|
1716
|
+
name: "String"
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
};
|
|
1720
|
+
const parameters1 = {
|
|
1721
|
+
parameterPath: "parameters",
|
|
1722
|
+
mapper: ServerForUpdate
|
|
1723
|
+
};
|
|
1724
|
+
const parameters2 = {
|
|
1725
|
+
parameterPath: "parameters",
|
|
1726
|
+
mapper: ServerRestartParameter
|
|
1727
|
+
};
|
|
1728
|
+
const nextLink = {
|
|
1729
|
+
parameterPath: "nextLink",
|
|
1730
|
+
mapper: {
|
|
1731
|
+
serializedName: "nextLink",
|
|
1732
|
+
required: true,
|
|
1733
|
+
type: {
|
|
1734
|
+
name: "String"
|
|
1735
|
+
}
|
|
1736
|
+
},
|
|
1737
|
+
skipEncoding: true
|
|
1738
|
+
};
|
|
1739
|
+
const backupName = {
|
|
1740
|
+
parameterPath: "backupName",
|
|
1741
|
+
mapper: {
|
|
1742
|
+
serializedName: "backupName",
|
|
1743
|
+
required: true,
|
|
1744
|
+
type: {
|
|
1745
|
+
name: "String"
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
};
|
|
1749
|
+
const parameters3 = {
|
|
1750
|
+
parameterPath: "parameters",
|
|
1751
|
+
mapper: FirewallRule
|
|
1752
|
+
};
|
|
1753
|
+
const firewallRuleName = {
|
|
1754
|
+
parameterPath: "firewallRuleName",
|
|
1755
|
+
mapper: {
|
|
1756
|
+
serializedName: "firewallRuleName",
|
|
1757
|
+
required: true,
|
|
1758
|
+
type: {
|
|
1759
|
+
name: "String"
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
};
|
|
1763
|
+
const parameters4 = {
|
|
1764
|
+
parameterPath: "parameters",
|
|
1765
|
+
mapper: Database
|
|
1766
|
+
};
|
|
1767
|
+
const databaseName = {
|
|
1768
|
+
parameterPath: "databaseName",
|
|
1769
|
+
mapper: {
|
|
1770
|
+
serializedName: "databaseName",
|
|
1771
|
+
required: true,
|
|
1772
|
+
type: {
|
|
1773
|
+
name: "String"
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1776
|
+
};
|
|
1777
|
+
const parameters5 = {
|
|
1778
|
+
parameterPath: "parameters",
|
|
1779
|
+
mapper: Configuration
|
|
1780
|
+
};
|
|
1781
|
+
const configurationName = {
|
|
1782
|
+
parameterPath: "configurationName",
|
|
1783
|
+
mapper: {
|
|
1784
|
+
serializedName: "configurationName",
|
|
1785
|
+
required: true,
|
|
1786
|
+
type: {
|
|
1787
|
+
name: "String"
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
};
|
|
1791
|
+
const parameters6 = {
|
|
1792
|
+
parameterPath: "parameters",
|
|
1793
|
+
mapper: ConfigurationListForBatchUpdate
|
|
1794
|
+
};
|
|
1795
|
+
const locationName = {
|
|
1796
|
+
parameterPath: "locationName",
|
|
1797
|
+
mapper: {
|
|
1798
|
+
serializedName: "locationName",
|
|
1799
|
+
required: true,
|
|
1800
|
+
type: {
|
|
1801
|
+
name: "String"
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
};
|
|
1805
|
+
const parameters7 = {
|
|
1806
|
+
parameterPath: "parameters",
|
|
1807
|
+
mapper: VirtualNetworkSubnetUsageParameter
|
|
1808
|
+
};
|
|
1809
|
+
const nameAvailabilityRequest = {
|
|
1810
|
+
parameterPath: "nameAvailabilityRequest",
|
|
1811
|
+
mapper: NameAvailabilityRequest
|
|
1812
|
+
};
|
|
1813
|
+
|
|
1814
|
+
/*
|
|
1815
|
+
* Copyright (c) Microsoft Corporation.
|
|
1816
|
+
* Licensed under the MIT License.
|
|
1817
|
+
*
|
|
1818
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1819
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1820
|
+
*/
|
|
1821
|
+
class LroImpl {
|
|
1822
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
1823
|
+
this.sendOperationFn = sendOperationFn;
|
|
1824
|
+
this.args = args;
|
|
1825
|
+
this.spec = spec;
|
|
1826
|
+
this.requestPath = requestPath;
|
|
1827
|
+
this.requestMethod = requestMethod;
|
|
1828
|
+
}
|
|
1829
|
+
sendInitialRequest() {
|
|
1830
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1831
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
1832
|
+
});
|
|
1833
|
+
}
|
|
1834
|
+
sendPollRequest(path) {
|
|
1835
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1836
|
+
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1837
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1838
|
+
});
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
/*
|
|
1843
|
+
* Copyright (c) Microsoft Corporation.
|
|
1844
|
+
* Licensed under the MIT License.
|
|
1845
|
+
*
|
|
1846
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1847
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1848
|
+
*/
|
|
1849
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1850
|
+
/** Class containing Servers operations. */
|
|
1851
|
+
class ServersImpl {
|
|
1852
|
+
/**
|
|
1853
|
+
* Initialize a new instance of the class Servers class.
|
|
1854
|
+
* @param client Reference to the service client
|
|
1855
|
+
*/
|
|
1856
|
+
constructor(client) {
|
|
1857
|
+
this.client = client;
|
|
1858
|
+
}
|
|
1859
|
+
/**
|
|
1860
|
+
* List all the servers in a given resource group.
|
|
1861
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1862
|
+
* @param options The options parameters.
|
|
1863
|
+
*/
|
|
1864
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
1865
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1866
|
+
return {
|
|
1867
|
+
next() {
|
|
1868
|
+
return iter.next();
|
|
1869
|
+
},
|
|
1870
|
+
[Symbol.asyncIterator]() {
|
|
1871
|
+
return this;
|
|
1872
|
+
},
|
|
1873
|
+
byPage: () => {
|
|
1874
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
1875
|
+
}
|
|
1876
|
+
};
|
|
1877
|
+
}
|
|
1878
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1879
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1880
|
+
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1881
|
+
yield yield tslib.__await(result.value || []);
|
|
1882
|
+
let continuationToken = result.nextLink;
|
|
1883
|
+
while (continuationToken) {
|
|
1884
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1885
|
+
continuationToken = result.nextLink;
|
|
1886
|
+
yield yield tslib.__await(result.value || []);
|
|
1887
|
+
}
|
|
1888
|
+
});
|
|
1889
|
+
}
|
|
1890
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1891
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1892
|
+
var e_1, _a;
|
|
1893
|
+
try {
|
|
1894
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1895
|
+
const page = _c.value;
|
|
1896
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1900
|
+
finally {
|
|
1901
|
+
try {
|
|
1902
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1903
|
+
}
|
|
1904
|
+
finally { if (e_1) throw e_1.error; }
|
|
1905
|
+
}
|
|
1906
|
+
});
|
|
1907
|
+
}
|
|
1908
|
+
/**
|
|
1909
|
+
* List all the servers in a given subscription.
|
|
1910
|
+
* @param options The options parameters.
|
|
1911
|
+
*/
|
|
1912
|
+
list(options) {
|
|
1913
|
+
const iter = this.listPagingAll(options);
|
|
1914
|
+
return {
|
|
1915
|
+
next() {
|
|
1916
|
+
return iter.next();
|
|
1917
|
+
},
|
|
1918
|
+
[Symbol.asyncIterator]() {
|
|
1919
|
+
return this;
|
|
1920
|
+
},
|
|
1921
|
+
byPage: () => {
|
|
1922
|
+
return this.listPagingPage(options);
|
|
1923
|
+
}
|
|
1924
|
+
};
|
|
1925
|
+
}
|
|
1926
|
+
listPagingPage(options) {
|
|
1927
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1928
|
+
let result = yield tslib.__await(this._list(options));
|
|
1929
|
+
yield yield tslib.__await(result.value || []);
|
|
1930
|
+
let continuationToken = result.nextLink;
|
|
1931
|
+
while (continuationToken) {
|
|
1932
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1933
|
+
continuationToken = result.nextLink;
|
|
1934
|
+
yield yield tslib.__await(result.value || []);
|
|
1935
|
+
}
|
|
1936
|
+
});
|
|
1937
|
+
}
|
|
1938
|
+
listPagingAll(options) {
|
|
1939
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1940
|
+
var e_2, _a;
|
|
1941
|
+
try {
|
|
1942
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1943
|
+
const page = _c.value;
|
|
1944
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1948
|
+
finally {
|
|
1949
|
+
try {
|
|
1950
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1951
|
+
}
|
|
1952
|
+
finally { if (e_2) throw e_2.error; }
|
|
1953
|
+
}
|
|
1954
|
+
});
|
|
1955
|
+
}
|
|
1956
|
+
/**
|
|
1957
|
+
* Creates a new server or updates an existing server. The update action will overwrite the existing
|
|
1958
|
+
* server.
|
|
1959
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1960
|
+
* @param serverName The name of the server.
|
|
1961
|
+
* @param parameters The required parameters for creating or updating a server.
|
|
1962
|
+
* @param options The options parameters.
|
|
1963
|
+
*/
|
|
1964
|
+
beginCreate(resourceGroupName, serverName, parameters, options) {
|
|
1965
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1966
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1967
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1968
|
+
});
|
|
1969
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1970
|
+
var _a;
|
|
1971
|
+
let currentRawResponse = undefined;
|
|
1972
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1973
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1974
|
+
currentRawResponse = rawResponse;
|
|
1975
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1976
|
+
};
|
|
1977
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1978
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1979
|
+
return {
|
|
1980
|
+
flatResponse,
|
|
1981
|
+
rawResponse: {
|
|
1982
|
+
statusCode: currentRawResponse.status,
|
|
1983
|
+
body: currentRawResponse.parsedBody,
|
|
1984
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1985
|
+
}
|
|
1986
|
+
};
|
|
1987
|
+
});
|
|
1988
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, parameters, options }, createOperationSpec);
|
|
1989
|
+
return new coreLro.LroEngine(lro, {
|
|
1990
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1991
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1992
|
+
});
|
|
1993
|
+
});
|
|
1994
|
+
}
|
|
1995
|
+
/**
|
|
1996
|
+
* Creates a new server or updates an existing server. The update action will overwrite the existing
|
|
1997
|
+
* server.
|
|
1998
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1999
|
+
* @param serverName The name of the server.
|
|
2000
|
+
* @param parameters The required parameters for creating or updating a server.
|
|
2001
|
+
* @param options The options parameters.
|
|
2002
|
+
*/
|
|
2003
|
+
beginCreateAndWait(resourceGroupName, serverName, parameters, options) {
|
|
2004
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2005
|
+
const poller = yield this.beginCreate(resourceGroupName, serverName, parameters, options);
|
|
2006
|
+
return poller.pollUntilDone();
|
|
2007
|
+
});
|
|
2008
|
+
}
|
|
2009
|
+
/**
|
|
2010
|
+
* Updates an existing server. The request body can contain one to many of the properties present in
|
|
2011
|
+
* the normal server definition.
|
|
2012
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2013
|
+
* @param serverName The name of the server.
|
|
2014
|
+
* @param parameters The required parameters for updating a server.
|
|
2015
|
+
* @param options The options parameters.
|
|
2016
|
+
*/
|
|
2017
|
+
beginUpdate(resourceGroupName, serverName, parameters, options) {
|
|
2018
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2019
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2020
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2021
|
+
});
|
|
2022
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2023
|
+
var _a;
|
|
2024
|
+
let currentRawResponse = undefined;
|
|
2025
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2026
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2027
|
+
currentRawResponse = rawResponse;
|
|
2028
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2029
|
+
};
|
|
2030
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2031
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2032
|
+
return {
|
|
2033
|
+
flatResponse,
|
|
2034
|
+
rawResponse: {
|
|
2035
|
+
statusCode: currentRawResponse.status,
|
|
2036
|
+
body: currentRawResponse.parsedBody,
|
|
2037
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2038
|
+
}
|
|
2039
|
+
};
|
|
2040
|
+
});
|
|
2041
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, parameters, options }, updateOperationSpec$1);
|
|
2042
|
+
return new coreLro.LroEngine(lro, {
|
|
2043
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2044
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2045
|
+
});
|
|
2046
|
+
});
|
|
2047
|
+
}
|
|
2048
|
+
/**
|
|
2049
|
+
* Updates an existing server. The request body can contain one to many of the properties present in
|
|
2050
|
+
* the normal server definition.
|
|
2051
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2052
|
+
* @param serverName The name of the server.
|
|
2053
|
+
* @param parameters The required parameters for updating a server.
|
|
2054
|
+
* @param options The options parameters.
|
|
2055
|
+
*/
|
|
2056
|
+
beginUpdateAndWait(resourceGroupName, serverName, parameters, options) {
|
|
2057
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2058
|
+
const poller = yield this.beginUpdate(resourceGroupName, serverName, parameters, options);
|
|
2059
|
+
return poller.pollUntilDone();
|
|
2060
|
+
});
|
|
2061
|
+
}
|
|
2062
|
+
/**
|
|
2063
|
+
* Deletes a server.
|
|
2064
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2065
|
+
* @param serverName The name of the server.
|
|
2066
|
+
* @param options The options parameters.
|
|
2067
|
+
*/
|
|
2068
|
+
beginDelete(resourceGroupName, serverName, options) {
|
|
2069
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2070
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2071
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2072
|
+
});
|
|
2073
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2074
|
+
var _a;
|
|
2075
|
+
let currentRawResponse = undefined;
|
|
2076
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2077
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2078
|
+
currentRawResponse = rawResponse;
|
|
2079
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2080
|
+
};
|
|
2081
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2082
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2083
|
+
return {
|
|
2084
|
+
flatResponse,
|
|
2085
|
+
rawResponse: {
|
|
2086
|
+
statusCode: currentRawResponse.status,
|
|
2087
|
+
body: currentRawResponse.parsedBody,
|
|
2088
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2089
|
+
}
|
|
2090
|
+
};
|
|
2091
|
+
});
|
|
2092
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, options }, deleteOperationSpec$2);
|
|
2093
|
+
return new coreLro.LroEngine(lro, {
|
|
2094
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2095
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2096
|
+
});
|
|
2097
|
+
});
|
|
2098
|
+
}
|
|
2099
|
+
/**
|
|
2100
|
+
* Deletes a server.
|
|
2101
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2102
|
+
* @param serverName The name of the server.
|
|
2103
|
+
* @param options The options parameters.
|
|
2104
|
+
*/
|
|
2105
|
+
beginDeleteAndWait(resourceGroupName, serverName, options) {
|
|
2106
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2107
|
+
const poller = yield this.beginDelete(resourceGroupName, serverName, options);
|
|
2108
|
+
return poller.pollUntilDone();
|
|
2109
|
+
});
|
|
2110
|
+
}
|
|
2111
|
+
/**
|
|
2112
|
+
* Gets information about a server.
|
|
2113
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2114
|
+
* @param serverName The name of the server.
|
|
2115
|
+
* @param options The options parameters.
|
|
2116
|
+
*/
|
|
2117
|
+
get(resourceGroupName, serverName, options) {
|
|
2118
|
+
return this.client.sendOperationRequest({ resourceGroupName, serverName, options }, getOperationSpec$4);
|
|
2119
|
+
}
|
|
2120
|
+
/**
|
|
2121
|
+
* List all the servers in a given resource group.
|
|
2122
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2123
|
+
* @param options The options parameters.
|
|
2124
|
+
*/
|
|
2125
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
2126
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
2127
|
+
}
|
|
2128
|
+
/**
|
|
2129
|
+
* List all the servers in a given subscription.
|
|
2130
|
+
* @param options The options parameters.
|
|
2131
|
+
*/
|
|
2132
|
+
_list(options) {
|
|
2133
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
2134
|
+
}
|
|
2135
|
+
/**
|
|
2136
|
+
* Manual failover a server.
|
|
2137
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2138
|
+
* @param serverName The name of the server.
|
|
2139
|
+
* @param options The options parameters.
|
|
2140
|
+
*/
|
|
2141
|
+
beginFailover(resourceGroupName, serverName, options) {
|
|
2142
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2143
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2144
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2145
|
+
});
|
|
2146
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2147
|
+
var _a;
|
|
2148
|
+
let currentRawResponse = undefined;
|
|
2149
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2150
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2151
|
+
currentRawResponse = rawResponse;
|
|
2152
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2153
|
+
};
|
|
2154
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2155
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2156
|
+
return {
|
|
2157
|
+
flatResponse,
|
|
2158
|
+
rawResponse: {
|
|
2159
|
+
statusCode: currentRawResponse.status,
|
|
2160
|
+
body: currentRawResponse.parsedBody,
|
|
2161
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2162
|
+
}
|
|
2163
|
+
};
|
|
2164
|
+
});
|
|
2165
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, options }, failoverOperationSpec);
|
|
2166
|
+
return new coreLro.LroEngine(lro, {
|
|
2167
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2168
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2169
|
+
});
|
|
2170
|
+
});
|
|
2171
|
+
}
|
|
2172
|
+
/**
|
|
2173
|
+
* Manual failover a server.
|
|
2174
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2175
|
+
* @param serverName The name of the server.
|
|
2176
|
+
* @param options The options parameters.
|
|
2177
|
+
*/
|
|
2178
|
+
beginFailoverAndWait(resourceGroupName, serverName, options) {
|
|
2179
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2180
|
+
const poller = yield this.beginFailover(resourceGroupName, serverName, options);
|
|
2181
|
+
return poller.pollUntilDone();
|
|
2182
|
+
});
|
|
2183
|
+
}
|
|
2184
|
+
/**
|
|
2185
|
+
* Restarts a server.
|
|
2186
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2187
|
+
* @param serverName The name of the server.
|
|
2188
|
+
* @param parameters The required parameters for restarting a server.
|
|
2189
|
+
* @param options The options parameters.
|
|
2190
|
+
*/
|
|
2191
|
+
beginRestart(resourceGroupName, serverName, parameters, options) {
|
|
2192
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2193
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2194
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2195
|
+
});
|
|
2196
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2197
|
+
var _a;
|
|
2198
|
+
let currentRawResponse = undefined;
|
|
2199
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2200
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2201
|
+
currentRawResponse = rawResponse;
|
|
2202
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2203
|
+
};
|
|
2204
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2205
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2206
|
+
return {
|
|
2207
|
+
flatResponse,
|
|
2208
|
+
rawResponse: {
|
|
2209
|
+
statusCode: currentRawResponse.status,
|
|
2210
|
+
body: currentRawResponse.parsedBody,
|
|
2211
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2212
|
+
}
|
|
2213
|
+
};
|
|
2214
|
+
});
|
|
2215
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, parameters, options }, restartOperationSpec);
|
|
2216
|
+
return new coreLro.LroEngine(lro, {
|
|
2217
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2218
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2219
|
+
});
|
|
2220
|
+
});
|
|
2221
|
+
}
|
|
2222
|
+
/**
|
|
2223
|
+
* Restarts a server.
|
|
2224
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2225
|
+
* @param serverName The name of the server.
|
|
2226
|
+
* @param parameters The required parameters for restarting a server.
|
|
2227
|
+
* @param options The options parameters.
|
|
2228
|
+
*/
|
|
2229
|
+
beginRestartAndWait(resourceGroupName, serverName, parameters, options) {
|
|
2230
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2231
|
+
const poller = yield this.beginRestart(resourceGroupName, serverName, parameters, options);
|
|
2232
|
+
return poller.pollUntilDone();
|
|
2233
|
+
});
|
|
2234
|
+
}
|
|
2235
|
+
/**
|
|
2236
|
+
* Starts a server.
|
|
2237
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2238
|
+
* @param serverName The name of the server.
|
|
2239
|
+
* @param options The options parameters.
|
|
2240
|
+
*/
|
|
2241
|
+
beginStart(resourceGroupName, serverName, options) {
|
|
2242
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2243
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2244
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2245
|
+
});
|
|
2246
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2247
|
+
var _a;
|
|
2248
|
+
let currentRawResponse = undefined;
|
|
2249
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2250
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2251
|
+
currentRawResponse = rawResponse;
|
|
2252
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2253
|
+
};
|
|
2254
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2255
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2256
|
+
return {
|
|
2257
|
+
flatResponse,
|
|
2258
|
+
rawResponse: {
|
|
2259
|
+
statusCode: currentRawResponse.status,
|
|
2260
|
+
body: currentRawResponse.parsedBody,
|
|
2261
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2262
|
+
}
|
|
2263
|
+
};
|
|
2264
|
+
});
|
|
2265
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, options }, startOperationSpec);
|
|
2266
|
+
return new coreLro.LroEngine(lro, {
|
|
2267
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2268
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2269
|
+
});
|
|
2270
|
+
});
|
|
2271
|
+
}
|
|
2272
|
+
/**
|
|
2273
|
+
* Starts a server.
|
|
2274
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2275
|
+
* @param serverName The name of the server.
|
|
2276
|
+
* @param options The options parameters.
|
|
2277
|
+
*/
|
|
2278
|
+
beginStartAndWait(resourceGroupName, serverName, options) {
|
|
2279
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2280
|
+
const poller = yield this.beginStart(resourceGroupName, serverName, options);
|
|
2281
|
+
return poller.pollUntilDone();
|
|
2282
|
+
});
|
|
2283
|
+
}
|
|
2284
|
+
/**
|
|
2285
|
+
* Stops a server.
|
|
2286
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2287
|
+
* @param serverName The name of the server.
|
|
2288
|
+
* @param options The options parameters.
|
|
2289
|
+
*/
|
|
2290
|
+
beginStop(resourceGroupName, serverName, options) {
|
|
2291
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2292
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2293
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2294
|
+
});
|
|
2295
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2296
|
+
var _a;
|
|
2297
|
+
let currentRawResponse = undefined;
|
|
2298
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2299
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2300
|
+
currentRawResponse = rawResponse;
|
|
2301
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2302
|
+
};
|
|
2303
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2304
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2305
|
+
return {
|
|
2306
|
+
flatResponse,
|
|
2307
|
+
rawResponse: {
|
|
2308
|
+
statusCode: currentRawResponse.status,
|
|
2309
|
+
body: currentRawResponse.parsedBody,
|
|
2310
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2311
|
+
}
|
|
2312
|
+
};
|
|
2313
|
+
});
|
|
2314
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, options }, stopOperationSpec);
|
|
2315
|
+
return new coreLro.LroEngine(lro, {
|
|
2316
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2317
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2318
|
+
});
|
|
2319
|
+
});
|
|
2320
|
+
}
|
|
2321
|
+
/**
|
|
2322
|
+
* Stops a server.
|
|
2323
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2324
|
+
* @param serverName The name of the server.
|
|
2325
|
+
* @param options The options parameters.
|
|
2326
|
+
*/
|
|
2327
|
+
beginStopAndWait(resourceGroupName, serverName, options) {
|
|
2328
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2329
|
+
const poller = yield this.beginStop(resourceGroupName, serverName, options);
|
|
2330
|
+
return poller.pollUntilDone();
|
|
2331
|
+
});
|
|
2332
|
+
}
|
|
2333
|
+
/**
|
|
2334
|
+
* ListByResourceGroupNext
|
|
2335
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2336
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
2337
|
+
* @param options The options parameters.
|
|
2338
|
+
*/
|
|
2339
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
2340
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
2341
|
+
}
|
|
2342
|
+
/**
|
|
2343
|
+
* ListNext
|
|
2344
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
2345
|
+
* @param options The options parameters.
|
|
2346
|
+
*/
|
|
2347
|
+
_listNext(nextLink, options) {
|
|
2348
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
|
|
2349
|
+
}
|
|
2350
|
+
}
|
|
2351
|
+
// Operation Specifications
|
|
2352
|
+
const serializer$a = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2353
|
+
const createOperationSpec = {
|
|
2354
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}",
|
|
2355
|
+
httpMethod: "PUT",
|
|
2356
|
+
responses: {
|
|
2357
|
+
200: {
|
|
2358
|
+
bodyMapper: Server
|
|
2359
|
+
},
|
|
2360
|
+
201: {
|
|
2361
|
+
bodyMapper: Server
|
|
2362
|
+
},
|
|
2363
|
+
202: {
|
|
2364
|
+
bodyMapper: Server
|
|
2365
|
+
},
|
|
2366
|
+
204: {
|
|
2367
|
+
bodyMapper: Server
|
|
2368
|
+
},
|
|
2369
|
+
default: {
|
|
2370
|
+
bodyMapper: CloudError
|
|
2371
|
+
}
|
|
2372
|
+
},
|
|
2373
|
+
requestBody: parameters,
|
|
2374
|
+
queryParameters: [apiVersion],
|
|
2375
|
+
urlParameters: [
|
|
2376
|
+
$host,
|
|
2377
|
+
subscriptionId,
|
|
2378
|
+
resourceGroupName,
|
|
2379
|
+
serverName
|
|
2380
|
+
],
|
|
2381
|
+
headerParameters: [contentType, accept],
|
|
2382
|
+
mediaType: "json",
|
|
2383
|
+
serializer: serializer$a
|
|
2384
|
+
};
|
|
2385
|
+
const updateOperationSpec$1 = {
|
|
2386
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}",
|
|
2387
|
+
httpMethod: "PATCH",
|
|
2388
|
+
responses: {
|
|
2389
|
+
200: {
|
|
2390
|
+
bodyMapper: Server
|
|
2391
|
+
},
|
|
2392
|
+
201: {
|
|
2393
|
+
bodyMapper: Server
|
|
2394
|
+
},
|
|
2395
|
+
202: {
|
|
2396
|
+
bodyMapper: Server
|
|
2397
|
+
},
|
|
2398
|
+
204: {
|
|
2399
|
+
bodyMapper: Server
|
|
2400
|
+
},
|
|
2401
|
+
default: {
|
|
2402
|
+
bodyMapper: CloudError
|
|
2403
|
+
}
|
|
2404
|
+
},
|
|
2405
|
+
requestBody: parameters1,
|
|
2406
|
+
queryParameters: [apiVersion],
|
|
2407
|
+
urlParameters: [
|
|
2408
|
+
$host,
|
|
2409
|
+
subscriptionId,
|
|
2410
|
+
resourceGroupName,
|
|
2411
|
+
serverName
|
|
2412
|
+
],
|
|
2413
|
+
headerParameters: [contentType, accept],
|
|
2414
|
+
mediaType: "json",
|
|
2415
|
+
serializer: serializer$a
|
|
2416
|
+
};
|
|
2417
|
+
const deleteOperationSpec$2 = {
|
|
2418
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}",
|
|
2419
|
+
httpMethod: "DELETE",
|
|
2420
|
+
responses: {
|
|
2421
|
+
200: {},
|
|
2422
|
+
201: {},
|
|
2423
|
+
202: {},
|
|
2424
|
+
204: {},
|
|
2425
|
+
default: {
|
|
2426
|
+
bodyMapper: CloudError
|
|
2427
|
+
}
|
|
2428
|
+
},
|
|
2429
|
+
queryParameters: [apiVersion],
|
|
2430
|
+
urlParameters: [
|
|
2431
|
+
$host,
|
|
2432
|
+
subscriptionId,
|
|
2433
|
+
resourceGroupName,
|
|
2434
|
+
serverName
|
|
2435
|
+
],
|
|
2436
|
+
headerParameters: [accept],
|
|
2437
|
+
serializer: serializer$a
|
|
2438
|
+
};
|
|
2439
|
+
const getOperationSpec$4 = {
|
|
2440
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}",
|
|
2441
|
+
httpMethod: "GET",
|
|
2442
|
+
responses: {
|
|
2443
|
+
200: {
|
|
2444
|
+
bodyMapper: Server
|
|
2445
|
+
},
|
|
2446
|
+
default: {
|
|
2447
|
+
bodyMapper: CloudError
|
|
2448
|
+
}
|
|
2449
|
+
},
|
|
2450
|
+
queryParameters: [apiVersion],
|
|
2451
|
+
urlParameters: [
|
|
2452
|
+
$host,
|
|
2453
|
+
subscriptionId,
|
|
2454
|
+
resourceGroupName,
|
|
2455
|
+
serverName
|
|
2456
|
+
],
|
|
2457
|
+
headerParameters: [accept],
|
|
2458
|
+
serializer: serializer$a
|
|
2459
|
+
};
|
|
2460
|
+
const listByResourceGroupOperationSpec = {
|
|
2461
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers",
|
|
2462
|
+
httpMethod: "GET",
|
|
2463
|
+
responses: {
|
|
2464
|
+
200: {
|
|
2465
|
+
bodyMapper: ServerListResult
|
|
2466
|
+
},
|
|
2467
|
+
default: {
|
|
2468
|
+
bodyMapper: CloudError
|
|
2469
|
+
}
|
|
2470
|
+
},
|
|
2471
|
+
queryParameters: [apiVersion],
|
|
2472
|
+
urlParameters: [
|
|
2473
|
+
$host,
|
|
2474
|
+
subscriptionId,
|
|
2475
|
+
resourceGroupName
|
|
2476
|
+
],
|
|
2477
|
+
headerParameters: [accept],
|
|
2478
|
+
serializer: serializer$a
|
|
2479
|
+
};
|
|
2480
|
+
const listOperationSpec$2 = {
|
|
2481
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/flexibleServers",
|
|
2482
|
+
httpMethod: "GET",
|
|
2483
|
+
responses: {
|
|
2484
|
+
200: {
|
|
2485
|
+
bodyMapper: ServerListResult
|
|
2486
|
+
},
|
|
2487
|
+
default: {
|
|
2488
|
+
bodyMapper: CloudError
|
|
2489
|
+
}
|
|
2490
|
+
},
|
|
2491
|
+
queryParameters: [apiVersion],
|
|
2492
|
+
urlParameters: [$host, subscriptionId],
|
|
2493
|
+
headerParameters: [accept],
|
|
2494
|
+
serializer: serializer$a
|
|
2495
|
+
};
|
|
2496
|
+
const failoverOperationSpec = {
|
|
2497
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/failover",
|
|
2498
|
+
httpMethod: "POST",
|
|
2499
|
+
responses: {
|
|
2500
|
+
200: {},
|
|
2501
|
+
201: {},
|
|
2502
|
+
202: {},
|
|
2503
|
+
204: {},
|
|
2504
|
+
default: {
|
|
2505
|
+
bodyMapper: CloudError
|
|
2506
|
+
}
|
|
2507
|
+
},
|
|
2508
|
+
queryParameters: [apiVersion],
|
|
2509
|
+
urlParameters: [
|
|
2510
|
+
$host,
|
|
2511
|
+
subscriptionId,
|
|
2512
|
+
resourceGroupName,
|
|
2513
|
+
serverName
|
|
2514
|
+
],
|
|
2515
|
+
headerParameters: [accept],
|
|
2516
|
+
serializer: serializer$a
|
|
2517
|
+
};
|
|
2518
|
+
const restartOperationSpec = {
|
|
2519
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/restart",
|
|
2520
|
+
httpMethod: "POST",
|
|
2521
|
+
responses: {
|
|
2522
|
+
200: {},
|
|
2523
|
+
201: {},
|
|
2524
|
+
202: {},
|
|
2525
|
+
204: {},
|
|
2526
|
+
default: {
|
|
2527
|
+
bodyMapper: CloudError
|
|
2528
|
+
}
|
|
2529
|
+
},
|
|
2530
|
+
requestBody: parameters2,
|
|
2531
|
+
queryParameters: [apiVersion],
|
|
2532
|
+
urlParameters: [
|
|
2533
|
+
$host,
|
|
2534
|
+
subscriptionId,
|
|
2535
|
+
resourceGroupName,
|
|
2536
|
+
serverName
|
|
2537
|
+
],
|
|
2538
|
+
headerParameters: [contentType, accept],
|
|
2539
|
+
mediaType: "json",
|
|
2540
|
+
serializer: serializer$a
|
|
2541
|
+
};
|
|
2542
|
+
const startOperationSpec = {
|
|
2543
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/start",
|
|
2544
|
+
httpMethod: "POST",
|
|
2545
|
+
responses: {
|
|
2546
|
+
200: {},
|
|
2547
|
+
201: {},
|
|
2548
|
+
202: {},
|
|
2549
|
+
204: {},
|
|
2550
|
+
default: {
|
|
2551
|
+
bodyMapper: CloudError
|
|
2552
|
+
}
|
|
2553
|
+
},
|
|
2554
|
+
queryParameters: [apiVersion],
|
|
2555
|
+
urlParameters: [
|
|
2556
|
+
$host,
|
|
2557
|
+
subscriptionId,
|
|
2558
|
+
resourceGroupName,
|
|
2559
|
+
serverName
|
|
2560
|
+
],
|
|
2561
|
+
headerParameters: [accept],
|
|
2562
|
+
serializer: serializer$a
|
|
2563
|
+
};
|
|
2564
|
+
const stopOperationSpec = {
|
|
2565
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/stop",
|
|
2566
|
+
httpMethod: "POST",
|
|
2567
|
+
responses: {
|
|
2568
|
+
200: {},
|
|
2569
|
+
201: {},
|
|
2570
|
+
202: {},
|
|
2571
|
+
204: {},
|
|
2572
|
+
default: {
|
|
2573
|
+
bodyMapper: CloudError
|
|
2574
|
+
}
|
|
2575
|
+
},
|
|
2576
|
+
queryParameters: [apiVersion],
|
|
2577
|
+
urlParameters: [
|
|
2578
|
+
$host,
|
|
2579
|
+
subscriptionId,
|
|
2580
|
+
resourceGroupName,
|
|
2581
|
+
serverName
|
|
2582
|
+
],
|
|
2583
|
+
headerParameters: [accept],
|
|
2584
|
+
serializer: serializer$a
|
|
2585
|
+
};
|
|
2586
|
+
const listByResourceGroupNextOperationSpec = {
|
|
2587
|
+
path: "{nextLink}",
|
|
2588
|
+
httpMethod: "GET",
|
|
2589
|
+
responses: {
|
|
2590
|
+
200: {
|
|
2591
|
+
bodyMapper: ServerListResult
|
|
2592
|
+
},
|
|
2593
|
+
default: {
|
|
2594
|
+
bodyMapper: CloudError
|
|
2595
|
+
}
|
|
2596
|
+
},
|
|
2597
|
+
queryParameters: [apiVersion],
|
|
2598
|
+
urlParameters: [
|
|
2599
|
+
$host,
|
|
2600
|
+
subscriptionId,
|
|
2601
|
+
resourceGroupName,
|
|
2602
|
+
nextLink
|
|
2603
|
+
],
|
|
2604
|
+
headerParameters: [accept],
|
|
2605
|
+
serializer: serializer$a
|
|
2606
|
+
};
|
|
2607
|
+
const listNextOperationSpec$2 = {
|
|
2608
|
+
path: "{nextLink}",
|
|
2609
|
+
httpMethod: "GET",
|
|
2610
|
+
responses: {
|
|
2611
|
+
200: {
|
|
2612
|
+
bodyMapper: ServerListResult
|
|
2613
|
+
},
|
|
2614
|
+
default: {
|
|
2615
|
+
bodyMapper: CloudError
|
|
2616
|
+
}
|
|
2617
|
+
},
|
|
2618
|
+
queryParameters: [apiVersion],
|
|
2619
|
+
urlParameters: [
|
|
2620
|
+
$host,
|
|
2621
|
+
subscriptionId,
|
|
2622
|
+
nextLink
|
|
2623
|
+
],
|
|
2624
|
+
headerParameters: [accept],
|
|
2625
|
+
serializer: serializer$a
|
|
2626
|
+
};
|
|
2627
|
+
|
|
2628
|
+
/*
|
|
2629
|
+
* Copyright (c) Microsoft Corporation.
|
|
2630
|
+
* Licensed under the MIT License.
|
|
2631
|
+
*
|
|
2632
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2633
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2634
|
+
*/
|
|
2635
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2636
|
+
/** Class containing Replicas operations. */
|
|
2637
|
+
class ReplicasImpl {
|
|
2638
|
+
/**
|
|
2639
|
+
* Initialize a new instance of the class Replicas class.
|
|
2640
|
+
* @param client Reference to the service client
|
|
2641
|
+
*/
|
|
2642
|
+
constructor(client) {
|
|
2643
|
+
this.client = client;
|
|
2644
|
+
}
|
|
2645
|
+
/**
|
|
2646
|
+
* List all the replicas for a given server.
|
|
2647
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2648
|
+
* @param serverName The name of the server.
|
|
2649
|
+
* @param options The options parameters.
|
|
2650
|
+
*/
|
|
2651
|
+
listByServer(resourceGroupName, serverName, options) {
|
|
2652
|
+
const iter = this.listByServerPagingAll(resourceGroupName, serverName, options);
|
|
2653
|
+
return {
|
|
2654
|
+
next() {
|
|
2655
|
+
return iter.next();
|
|
2656
|
+
},
|
|
2657
|
+
[Symbol.asyncIterator]() {
|
|
2658
|
+
return this;
|
|
2659
|
+
},
|
|
2660
|
+
byPage: () => {
|
|
2661
|
+
return this.listByServerPagingPage(resourceGroupName, serverName, options);
|
|
2662
|
+
}
|
|
2663
|
+
};
|
|
2664
|
+
}
|
|
2665
|
+
listByServerPagingPage(resourceGroupName, serverName, options) {
|
|
2666
|
+
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
2667
|
+
let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
2668
|
+
yield yield tslib.__await(result.value || []);
|
|
2669
|
+
let continuationToken = result.nextLink;
|
|
2670
|
+
while (continuationToken) {
|
|
2671
|
+
result = yield tslib.__await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
|
|
2672
|
+
continuationToken = result.nextLink;
|
|
2673
|
+
yield yield tslib.__await(result.value || []);
|
|
2674
|
+
}
|
|
2675
|
+
});
|
|
2676
|
+
}
|
|
2677
|
+
listByServerPagingAll(resourceGroupName, serverName, options) {
|
|
2678
|
+
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingAll_1() {
|
|
2679
|
+
var e_1, _a;
|
|
2680
|
+
try {
|
|
2681
|
+
for (var _b = tslib.__asyncValues(this.listByServerPagingPage(resourceGroupName, serverName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2682
|
+
const page = _c.value;
|
|
2683
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2684
|
+
}
|
|
2685
|
+
}
|
|
2686
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2687
|
+
finally {
|
|
2688
|
+
try {
|
|
2689
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2690
|
+
}
|
|
2691
|
+
finally { if (e_1) throw e_1.error; }
|
|
2692
|
+
}
|
|
2693
|
+
});
|
|
2694
|
+
}
|
|
2695
|
+
/**
|
|
2696
|
+
* List all the replicas for a given server.
|
|
2697
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2698
|
+
* @param serverName The name of the server.
|
|
2699
|
+
* @param options The options parameters.
|
|
2700
|
+
*/
|
|
2701
|
+
_listByServer(resourceGroupName, serverName, options) {
|
|
2702
|
+
return this.client.sendOperationRequest({ resourceGroupName, serverName, options }, listByServerOperationSpec$4);
|
|
2703
|
+
}
|
|
2704
|
+
/**
|
|
2705
|
+
* ListByServerNext
|
|
2706
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2707
|
+
* @param serverName The name of the server.
|
|
2708
|
+
* @param nextLink The nextLink from the previous successful call to the ListByServer method.
|
|
2709
|
+
* @param options The options parameters.
|
|
2710
|
+
*/
|
|
2711
|
+
_listByServerNext(resourceGroupName, serverName, nextLink, options) {
|
|
2712
|
+
return this.client.sendOperationRequest({ resourceGroupName, serverName, nextLink, options }, listByServerNextOperationSpec$4);
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
// Operation Specifications
|
|
2716
|
+
const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2717
|
+
const listByServerOperationSpec$4 = {
|
|
2718
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/replicas",
|
|
2719
|
+
httpMethod: "GET",
|
|
2720
|
+
responses: {
|
|
2721
|
+
200: {
|
|
2722
|
+
bodyMapper: ServerListResult
|
|
2723
|
+
},
|
|
2724
|
+
default: {
|
|
2725
|
+
bodyMapper: CloudError
|
|
2726
|
+
}
|
|
2727
|
+
},
|
|
2728
|
+
queryParameters: [apiVersion],
|
|
2729
|
+
urlParameters: [
|
|
2730
|
+
$host,
|
|
2731
|
+
subscriptionId,
|
|
2732
|
+
resourceGroupName,
|
|
2733
|
+
serverName
|
|
2734
|
+
],
|
|
2735
|
+
headerParameters: [accept],
|
|
2736
|
+
serializer: serializer$9
|
|
2737
|
+
};
|
|
2738
|
+
const listByServerNextOperationSpec$4 = {
|
|
2739
|
+
path: "{nextLink}",
|
|
2740
|
+
httpMethod: "GET",
|
|
2741
|
+
responses: {
|
|
2742
|
+
200: {
|
|
2743
|
+
bodyMapper: ServerListResult
|
|
2744
|
+
},
|
|
2745
|
+
default: {
|
|
2746
|
+
bodyMapper: CloudError
|
|
2747
|
+
}
|
|
2748
|
+
},
|
|
2749
|
+
queryParameters: [apiVersion],
|
|
2750
|
+
urlParameters: [
|
|
2751
|
+
$host,
|
|
2752
|
+
subscriptionId,
|
|
2753
|
+
resourceGroupName,
|
|
2754
|
+
serverName,
|
|
2755
|
+
nextLink
|
|
2756
|
+
],
|
|
2757
|
+
headerParameters: [accept],
|
|
2758
|
+
serializer: serializer$9
|
|
2759
|
+
};
|
|
2760
|
+
|
|
2761
|
+
/*
|
|
2762
|
+
* Copyright (c) Microsoft Corporation.
|
|
2763
|
+
* Licensed under the MIT License.
|
|
2764
|
+
*
|
|
2765
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2766
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2767
|
+
*/
|
|
2768
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2769
|
+
/** Class containing Backups operations. */
|
|
2770
|
+
class BackupsImpl {
|
|
2771
|
+
/**
|
|
2772
|
+
* Initialize a new instance of the class Backups class.
|
|
2773
|
+
* @param client Reference to the service client
|
|
2774
|
+
*/
|
|
2775
|
+
constructor(client) {
|
|
2776
|
+
this.client = client;
|
|
2777
|
+
}
|
|
2778
|
+
/**
|
|
2779
|
+
* List all the backups for a given server.
|
|
2780
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2781
|
+
* @param serverName The name of the server.
|
|
2782
|
+
* @param options The options parameters.
|
|
2783
|
+
*/
|
|
2784
|
+
listByServer(resourceGroupName, serverName, options) {
|
|
2785
|
+
const iter = this.listByServerPagingAll(resourceGroupName, serverName, options);
|
|
2786
|
+
return {
|
|
2787
|
+
next() {
|
|
2788
|
+
return iter.next();
|
|
2789
|
+
},
|
|
2790
|
+
[Symbol.asyncIterator]() {
|
|
2791
|
+
return this;
|
|
2792
|
+
},
|
|
2793
|
+
byPage: () => {
|
|
2794
|
+
return this.listByServerPagingPage(resourceGroupName, serverName, options);
|
|
2795
|
+
}
|
|
2796
|
+
};
|
|
2797
|
+
}
|
|
2798
|
+
listByServerPagingPage(resourceGroupName, serverName, options) {
|
|
2799
|
+
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
2800
|
+
let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
2801
|
+
yield yield tslib.__await(result.value || []);
|
|
2802
|
+
let continuationToken = result.nextLink;
|
|
2803
|
+
while (continuationToken) {
|
|
2804
|
+
result = yield tslib.__await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
|
|
2805
|
+
continuationToken = result.nextLink;
|
|
2806
|
+
yield yield tslib.__await(result.value || []);
|
|
2807
|
+
}
|
|
2808
|
+
});
|
|
2809
|
+
}
|
|
2810
|
+
listByServerPagingAll(resourceGroupName, serverName, options) {
|
|
2811
|
+
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingAll_1() {
|
|
2812
|
+
var e_1, _a;
|
|
2813
|
+
try {
|
|
2814
|
+
for (var _b = tslib.__asyncValues(this.listByServerPagingPage(resourceGroupName, serverName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2815
|
+
const page = _c.value;
|
|
2816
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2817
|
+
}
|
|
2818
|
+
}
|
|
2819
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2820
|
+
finally {
|
|
2821
|
+
try {
|
|
2822
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2823
|
+
}
|
|
2824
|
+
finally { if (e_1) throw e_1.error; }
|
|
2825
|
+
}
|
|
2826
|
+
});
|
|
2827
|
+
}
|
|
2828
|
+
/**
|
|
2829
|
+
* List all the backups for a given server.
|
|
2830
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2831
|
+
* @param serverName The name of the server.
|
|
2832
|
+
* @param backupName The name of the backup.
|
|
2833
|
+
* @param options The options parameters.
|
|
2834
|
+
*/
|
|
2835
|
+
get(resourceGroupName, serverName, backupName, options) {
|
|
2836
|
+
return this.client.sendOperationRequest({ resourceGroupName, serverName, backupName, options }, getOperationSpec$3);
|
|
2837
|
+
}
|
|
2838
|
+
/**
|
|
2839
|
+
* List all the backups for a given server.
|
|
2840
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2841
|
+
* @param serverName The name of the server.
|
|
2842
|
+
* @param options The options parameters.
|
|
2843
|
+
*/
|
|
2844
|
+
_listByServer(resourceGroupName, serverName, options) {
|
|
2845
|
+
return this.client.sendOperationRequest({ resourceGroupName, serverName, options }, listByServerOperationSpec$3);
|
|
2846
|
+
}
|
|
2847
|
+
/**
|
|
2848
|
+
* ListByServerNext
|
|
2849
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2850
|
+
* @param serverName The name of the server.
|
|
2851
|
+
* @param nextLink The nextLink from the previous successful call to the ListByServer method.
|
|
2852
|
+
* @param options The options parameters.
|
|
2853
|
+
*/
|
|
2854
|
+
_listByServerNext(resourceGroupName, serverName, nextLink, options) {
|
|
2855
|
+
return this.client.sendOperationRequest({ resourceGroupName, serverName, nextLink, options }, listByServerNextOperationSpec$3);
|
|
2856
|
+
}
|
|
2857
|
+
}
|
|
2858
|
+
// Operation Specifications
|
|
2859
|
+
const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2860
|
+
const getOperationSpec$3 = {
|
|
2861
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backups/{backupName}",
|
|
2862
|
+
httpMethod: "GET",
|
|
2863
|
+
responses: {
|
|
2864
|
+
200: {
|
|
2865
|
+
bodyMapper: ServerBackup
|
|
2866
|
+
},
|
|
2867
|
+
default: {
|
|
2868
|
+
bodyMapper: CloudError
|
|
2869
|
+
}
|
|
2870
|
+
},
|
|
2871
|
+
queryParameters: [apiVersion],
|
|
2872
|
+
urlParameters: [
|
|
2873
|
+
$host,
|
|
2874
|
+
subscriptionId,
|
|
2875
|
+
resourceGroupName,
|
|
2876
|
+
serverName,
|
|
2877
|
+
backupName
|
|
2878
|
+
],
|
|
2879
|
+
headerParameters: [accept],
|
|
2880
|
+
serializer: serializer$8
|
|
2881
|
+
};
|
|
2882
|
+
const listByServerOperationSpec$3 = {
|
|
2883
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backups",
|
|
2884
|
+
httpMethod: "GET",
|
|
2885
|
+
responses: {
|
|
2886
|
+
200: {
|
|
2887
|
+
bodyMapper: ServerBackupListResult
|
|
2888
|
+
},
|
|
2889
|
+
default: {
|
|
2890
|
+
bodyMapper: CloudError
|
|
2891
|
+
}
|
|
2892
|
+
},
|
|
2893
|
+
queryParameters: [apiVersion],
|
|
2894
|
+
urlParameters: [
|
|
2895
|
+
$host,
|
|
2896
|
+
subscriptionId,
|
|
2897
|
+
resourceGroupName,
|
|
2898
|
+
serverName
|
|
2899
|
+
],
|
|
2900
|
+
headerParameters: [accept],
|
|
2901
|
+
serializer: serializer$8
|
|
2902
|
+
};
|
|
2903
|
+
const listByServerNextOperationSpec$3 = {
|
|
2904
|
+
path: "{nextLink}",
|
|
2905
|
+
httpMethod: "GET",
|
|
2906
|
+
responses: {
|
|
2907
|
+
200: {
|
|
2908
|
+
bodyMapper: ServerBackupListResult
|
|
2909
|
+
},
|
|
2910
|
+
default: {
|
|
2911
|
+
bodyMapper: CloudError
|
|
2912
|
+
}
|
|
2913
|
+
},
|
|
2914
|
+
queryParameters: [apiVersion],
|
|
2915
|
+
urlParameters: [
|
|
2916
|
+
$host,
|
|
2917
|
+
subscriptionId,
|
|
2918
|
+
resourceGroupName,
|
|
2919
|
+
serverName,
|
|
2920
|
+
nextLink
|
|
2921
|
+
],
|
|
2922
|
+
headerParameters: [accept],
|
|
2923
|
+
serializer: serializer$8
|
|
2924
|
+
};
|
|
2925
|
+
|
|
2926
|
+
/*
|
|
2927
|
+
* Copyright (c) Microsoft Corporation.
|
|
2928
|
+
* Licensed under the MIT License.
|
|
2929
|
+
*
|
|
2930
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2931
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2932
|
+
*/
|
|
2933
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2934
|
+
/** Class containing FirewallRules operations. */
|
|
2935
|
+
class FirewallRulesImpl {
|
|
2936
|
+
/**
|
|
2937
|
+
* Initialize a new instance of the class FirewallRules class.
|
|
2938
|
+
* @param client Reference to the service client
|
|
2939
|
+
*/
|
|
2940
|
+
constructor(client) {
|
|
2941
|
+
this.client = client;
|
|
2942
|
+
}
|
|
2943
|
+
/**
|
|
2944
|
+
* List all the firewall rules in a given server.
|
|
2945
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2946
|
+
* @param serverName The name of the server.
|
|
2947
|
+
* @param options The options parameters.
|
|
2948
|
+
*/
|
|
2949
|
+
listByServer(resourceGroupName, serverName, options) {
|
|
2950
|
+
const iter = this.listByServerPagingAll(resourceGroupName, serverName, options);
|
|
2951
|
+
return {
|
|
2952
|
+
next() {
|
|
2953
|
+
return iter.next();
|
|
2954
|
+
},
|
|
2955
|
+
[Symbol.asyncIterator]() {
|
|
2956
|
+
return this;
|
|
2957
|
+
},
|
|
2958
|
+
byPage: () => {
|
|
2959
|
+
return this.listByServerPagingPage(resourceGroupName, serverName, options);
|
|
2960
|
+
}
|
|
2961
|
+
};
|
|
2962
|
+
}
|
|
2963
|
+
listByServerPagingPage(resourceGroupName, serverName, options) {
|
|
2964
|
+
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
2965
|
+
let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
2966
|
+
yield yield tslib.__await(result.value || []);
|
|
2967
|
+
let continuationToken = result.nextLink;
|
|
2968
|
+
while (continuationToken) {
|
|
2969
|
+
result = yield tslib.__await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
|
|
2970
|
+
continuationToken = result.nextLink;
|
|
2971
|
+
yield yield tslib.__await(result.value || []);
|
|
2972
|
+
}
|
|
2973
|
+
});
|
|
2974
|
+
}
|
|
2975
|
+
listByServerPagingAll(resourceGroupName, serverName, options) {
|
|
2976
|
+
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingAll_1() {
|
|
2977
|
+
var e_1, _a;
|
|
2978
|
+
try {
|
|
2979
|
+
for (var _b = tslib.__asyncValues(this.listByServerPagingPage(resourceGroupName, serverName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2980
|
+
const page = _c.value;
|
|
2981
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2985
|
+
finally {
|
|
2986
|
+
try {
|
|
2987
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2988
|
+
}
|
|
2989
|
+
finally { if (e_1) throw e_1.error; }
|
|
2990
|
+
}
|
|
2991
|
+
});
|
|
2992
|
+
}
|
|
2993
|
+
/**
|
|
2994
|
+
* Creates a new firewall rule or updates an existing firewall rule.
|
|
2995
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2996
|
+
* @param serverName The name of the server.
|
|
2997
|
+
* @param firewallRuleName The name of the server firewall rule.
|
|
2998
|
+
* @param parameters The required parameters for creating or updating a firewall rule.
|
|
2999
|
+
* @param options The options parameters.
|
|
3000
|
+
*/
|
|
3001
|
+
beginCreateOrUpdate(resourceGroupName, serverName, firewallRuleName, parameters, options) {
|
|
3002
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3003
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3004
|
+
return this.client.sendOperationRequest(args, spec);
|
|
3005
|
+
});
|
|
3006
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3007
|
+
var _a;
|
|
3008
|
+
let currentRawResponse = undefined;
|
|
3009
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3010
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3011
|
+
currentRawResponse = rawResponse;
|
|
3012
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3013
|
+
};
|
|
3014
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3015
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3016
|
+
return {
|
|
3017
|
+
flatResponse,
|
|
3018
|
+
rawResponse: {
|
|
3019
|
+
statusCode: currentRawResponse.status,
|
|
3020
|
+
body: currentRawResponse.parsedBody,
|
|
3021
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3022
|
+
}
|
|
3023
|
+
};
|
|
3024
|
+
});
|
|
3025
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, firewallRuleName, parameters, options }, createOrUpdateOperationSpec$1);
|
|
3026
|
+
return new coreLro.LroEngine(lro, {
|
|
3027
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3028
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3029
|
+
});
|
|
3030
|
+
});
|
|
3031
|
+
}
|
|
3032
|
+
/**
|
|
3033
|
+
* Creates a new firewall rule or updates an existing firewall rule.
|
|
3034
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3035
|
+
* @param serverName The name of the server.
|
|
3036
|
+
* @param firewallRuleName The name of the server firewall rule.
|
|
3037
|
+
* @param parameters The required parameters for creating or updating a firewall rule.
|
|
3038
|
+
* @param options The options parameters.
|
|
3039
|
+
*/
|
|
3040
|
+
beginCreateOrUpdateAndWait(resourceGroupName, serverName, firewallRuleName, parameters, options) {
|
|
3041
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3042
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, firewallRuleName, parameters, options);
|
|
3043
|
+
return poller.pollUntilDone();
|
|
3044
|
+
});
|
|
3045
|
+
}
|
|
3046
|
+
/**
|
|
3047
|
+
* Deletes a firewall rule.
|
|
3048
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3049
|
+
* @param serverName The name of the server.
|
|
3050
|
+
* @param firewallRuleName The name of the server firewall rule.
|
|
3051
|
+
* @param options The options parameters.
|
|
3052
|
+
*/
|
|
3053
|
+
beginDelete(resourceGroupName, serverName, firewallRuleName, options) {
|
|
3054
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3055
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3056
|
+
return this.client.sendOperationRequest(args, spec);
|
|
3057
|
+
});
|
|
3058
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3059
|
+
var _a;
|
|
3060
|
+
let currentRawResponse = undefined;
|
|
3061
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3062
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3063
|
+
currentRawResponse = rawResponse;
|
|
3064
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3065
|
+
};
|
|
3066
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3067
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3068
|
+
return {
|
|
3069
|
+
flatResponse,
|
|
3070
|
+
rawResponse: {
|
|
3071
|
+
statusCode: currentRawResponse.status,
|
|
3072
|
+
body: currentRawResponse.parsedBody,
|
|
3073
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3074
|
+
}
|
|
3075
|
+
};
|
|
3076
|
+
});
|
|
3077
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, firewallRuleName, options }, deleteOperationSpec$1);
|
|
3078
|
+
return new coreLro.LroEngine(lro, {
|
|
3079
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3080
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3081
|
+
});
|
|
3082
|
+
});
|
|
3083
|
+
}
|
|
3084
|
+
/**
|
|
3085
|
+
* Deletes a firewall rule.
|
|
3086
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3087
|
+
* @param serverName The name of the server.
|
|
3088
|
+
* @param firewallRuleName The name of the server firewall rule.
|
|
3089
|
+
* @param options The options parameters.
|
|
3090
|
+
*/
|
|
3091
|
+
beginDeleteAndWait(resourceGroupName, serverName, firewallRuleName, options) {
|
|
3092
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3093
|
+
const poller = yield this.beginDelete(resourceGroupName, serverName, firewallRuleName, options);
|
|
3094
|
+
return poller.pollUntilDone();
|
|
3095
|
+
});
|
|
3096
|
+
}
|
|
3097
|
+
/**
|
|
3098
|
+
* Gets information about a server firewall rule.
|
|
3099
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3100
|
+
* @param serverName The name of the server.
|
|
3101
|
+
* @param firewallRuleName The name of the server firewall rule.
|
|
3102
|
+
* @param options The options parameters.
|
|
3103
|
+
*/
|
|
3104
|
+
get(resourceGroupName, serverName, firewallRuleName, options) {
|
|
3105
|
+
return this.client.sendOperationRequest({ resourceGroupName, serverName, firewallRuleName, options }, getOperationSpec$2);
|
|
3106
|
+
}
|
|
3107
|
+
/**
|
|
3108
|
+
* List all the firewall rules in a given server.
|
|
3109
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3110
|
+
* @param serverName The name of the server.
|
|
3111
|
+
* @param options The options parameters.
|
|
3112
|
+
*/
|
|
3113
|
+
_listByServer(resourceGroupName, serverName, options) {
|
|
3114
|
+
return this.client.sendOperationRequest({ resourceGroupName, serverName, options }, listByServerOperationSpec$2);
|
|
3115
|
+
}
|
|
3116
|
+
/**
|
|
3117
|
+
* ListByServerNext
|
|
3118
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3119
|
+
* @param serverName The name of the server.
|
|
3120
|
+
* @param nextLink The nextLink from the previous successful call to the ListByServer method.
|
|
3121
|
+
* @param options The options parameters.
|
|
3122
|
+
*/
|
|
3123
|
+
_listByServerNext(resourceGroupName, serverName, nextLink, options) {
|
|
3124
|
+
return this.client.sendOperationRequest({ resourceGroupName, serverName, nextLink, options }, listByServerNextOperationSpec$2);
|
|
3125
|
+
}
|
|
3126
|
+
}
|
|
3127
|
+
// Operation Specifications
|
|
3128
|
+
const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3129
|
+
const createOrUpdateOperationSpec$1 = {
|
|
3130
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}",
|
|
3131
|
+
httpMethod: "PUT",
|
|
3132
|
+
responses: {
|
|
3133
|
+
200: {
|
|
3134
|
+
bodyMapper: FirewallRule
|
|
3135
|
+
},
|
|
3136
|
+
201: {
|
|
3137
|
+
bodyMapper: FirewallRule
|
|
3138
|
+
},
|
|
3139
|
+
202: {
|
|
3140
|
+
bodyMapper: FirewallRule
|
|
3141
|
+
},
|
|
3142
|
+
204: {
|
|
3143
|
+
bodyMapper: FirewallRule
|
|
3144
|
+
},
|
|
3145
|
+
default: {
|
|
3146
|
+
bodyMapper: CloudError
|
|
3147
|
+
}
|
|
3148
|
+
},
|
|
3149
|
+
requestBody: parameters3,
|
|
3150
|
+
queryParameters: [apiVersion],
|
|
3151
|
+
urlParameters: [
|
|
3152
|
+
$host,
|
|
3153
|
+
subscriptionId,
|
|
3154
|
+
resourceGroupName,
|
|
3155
|
+
serverName,
|
|
3156
|
+
firewallRuleName
|
|
3157
|
+
],
|
|
3158
|
+
headerParameters: [contentType, accept],
|
|
3159
|
+
mediaType: "json",
|
|
3160
|
+
serializer: serializer$7
|
|
3161
|
+
};
|
|
3162
|
+
const deleteOperationSpec$1 = {
|
|
3163
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}",
|
|
3164
|
+
httpMethod: "DELETE",
|
|
3165
|
+
responses: {
|
|
3166
|
+
200: {},
|
|
3167
|
+
201: {},
|
|
3168
|
+
202: {},
|
|
3169
|
+
204: {},
|
|
3170
|
+
default: {
|
|
3171
|
+
bodyMapper: CloudError
|
|
3172
|
+
}
|
|
3173
|
+
},
|
|
3174
|
+
queryParameters: [apiVersion],
|
|
3175
|
+
urlParameters: [
|
|
3176
|
+
$host,
|
|
3177
|
+
subscriptionId,
|
|
3178
|
+
resourceGroupName,
|
|
3179
|
+
serverName,
|
|
3180
|
+
firewallRuleName
|
|
3181
|
+
],
|
|
3182
|
+
headerParameters: [accept],
|
|
3183
|
+
serializer: serializer$7
|
|
3184
|
+
};
|
|
3185
|
+
const getOperationSpec$2 = {
|
|
3186
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}",
|
|
3187
|
+
httpMethod: "GET",
|
|
3188
|
+
responses: {
|
|
3189
|
+
200: {
|
|
3190
|
+
bodyMapper: FirewallRule
|
|
3191
|
+
},
|
|
3192
|
+
default: {
|
|
3193
|
+
bodyMapper: CloudError
|
|
3194
|
+
}
|
|
3195
|
+
},
|
|
3196
|
+
queryParameters: [apiVersion],
|
|
3197
|
+
urlParameters: [
|
|
3198
|
+
$host,
|
|
3199
|
+
subscriptionId,
|
|
3200
|
+
resourceGroupName,
|
|
3201
|
+
serverName,
|
|
3202
|
+
firewallRuleName
|
|
3203
|
+
],
|
|
3204
|
+
headerParameters: [accept],
|
|
3205
|
+
serializer: serializer$7
|
|
3206
|
+
};
|
|
3207
|
+
const listByServerOperationSpec$2 = {
|
|
3208
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/firewallRules",
|
|
3209
|
+
httpMethod: "GET",
|
|
3210
|
+
responses: {
|
|
3211
|
+
200: {
|
|
3212
|
+
bodyMapper: FirewallRuleListResult
|
|
3213
|
+
},
|
|
3214
|
+
default: {
|
|
3215
|
+
bodyMapper: CloudError
|
|
3216
|
+
}
|
|
3217
|
+
},
|
|
3218
|
+
queryParameters: [apiVersion],
|
|
3219
|
+
urlParameters: [
|
|
3220
|
+
$host,
|
|
3221
|
+
subscriptionId,
|
|
3222
|
+
resourceGroupName,
|
|
3223
|
+
serverName
|
|
3224
|
+
],
|
|
3225
|
+
headerParameters: [accept],
|
|
3226
|
+
serializer: serializer$7
|
|
3227
|
+
};
|
|
3228
|
+
const listByServerNextOperationSpec$2 = {
|
|
3229
|
+
path: "{nextLink}",
|
|
3230
|
+
httpMethod: "GET",
|
|
3231
|
+
responses: {
|
|
3232
|
+
200: {
|
|
3233
|
+
bodyMapper: FirewallRuleListResult
|
|
3234
|
+
},
|
|
3235
|
+
default: {
|
|
3236
|
+
bodyMapper: CloudError
|
|
3237
|
+
}
|
|
3238
|
+
},
|
|
3239
|
+
queryParameters: [apiVersion],
|
|
3240
|
+
urlParameters: [
|
|
3241
|
+
$host,
|
|
3242
|
+
subscriptionId,
|
|
3243
|
+
resourceGroupName,
|
|
3244
|
+
serverName,
|
|
3245
|
+
nextLink
|
|
3246
|
+
],
|
|
3247
|
+
headerParameters: [accept],
|
|
3248
|
+
serializer: serializer$7
|
|
3249
|
+
};
|
|
3250
|
+
|
|
3251
|
+
/*
|
|
3252
|
+
* Copyright (c) Microsoft Corporation.
|
|
3253
|
+
* Licensed under the MIT License.
|
|
3254
|
+
*
|
|
3255
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3256
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3257
|
+
*/
|
|
3258
|
+
/// <reference lib="esnext.asynciterable" />
|
|
3259
|
+
/** Class containing Databases operations. */
|
|
3260
|
+
class DatabasesImpl {
|
|
3261
|
+
/**
|
|
3262
|
+
* Initialize a new instance of the class Databases class.
|
|
3263
|
+
* @param client Reference to the service client
|
|
3264
|
+
*/
|
|
3265
|
+
constructor(client) {
|
|
3266
|
+
this.client = client;
|
|
3267
|
+
}
|
|
3268
|
+
/**
|
|
3269
|
+
* List all the databases in a given server.
|
|
3270
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3271
|
+
* @param serverName The name of the server.
|
|
3272
|
+
* @param options The options parameters.
|
|
3273
|
+
*/
|
|
3274
|
+
listByServer(resourceGroupName, serverName, options) {
|
|
3275
|
+
const iter = this.listByServerPagingAll(resourceGroupName, serverName, options);
|
|
3276
|
+
return {
|
|
3277
|
+
next() {
|
|
3278
|
+
return iter.next();
|
|
3279
|
+
},
|
|
3280
|
+
[Symbol.asyncIterator]() {
|
|
3281
|
+
return this;
|
|
3282
|
+
},
|
|
3283
|
+
byPage: () => {
|
|
3284
|
+
return this.listByServerPagingPage(resourceGroupName, serverName, options);
|
|
3285
|
+
}
|
|
3286
|
+
};
|
|
3287
|
+
}
|
|
3288
|
+
listByServerPagingPage(resourceGroupName, serverName, options) {
|
|
3289
|
+
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
3290
|
+
let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
3291
|
+
yield yield tslib.__await(result.value || []);
|
|
3292
|
+
let continuationToken = result.nextLink;
|
|
3293
|
+
while (continuationToken) {
|
|
3294
|
+
result = yield tslib.__await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
|
|
3295
|
+
continuationToken = result.nextLink;
|
|
3296
|
+
yield yield tslib.__await(result.value || []);
|
|
3297
|
+
}
|
|
3298
|
+
});
|
|
3299
|
+
}
|
|
3300
|
+
listByServerPagingAll(resourceGroupName, serverName, options) {
|
|
3301
|
+
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingAll_1() {
|
|
3302
|
+
var e_1, _a;
|
|
3303
|
+
try {
|
|
3304
|
+
for (var _b = tslib.__asyncValues(this.listByServerPagingPage(resourceGroupName, serverName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
3305
|
+
const page = _c.value;
|
|
3306
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3307
|
+
}
|
|
3308
|
+
}
|
|
3309
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3310
|
+
finally {
|
|
3311
|
+
try {
|
|
3312
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
3313
|
+
}
|
|
3314
|
+
finally { if (e_1) throw e_1.error; }
|
|
3315
|
+
}
|
|
3316
|
+
});
|
|
3317
|
+
}
|
|
3318
|
+
/**
|
|
3319
|
+
* Creates a new database or updates an existing database.
|
|
3320
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3321
|
+
* @param serverName The name of the server.
|
|
3322
|
+
* @param databaseName The name of the database.
|
|
3323
|
+
* @param parameters The required parameters for creating or updating a database.
|
|
3324
|
+
* @param options The options parameters.
|
|
3325
|
+
*/
|
|
3326
|
+
beginCreateOrUpdate(resourceGroupName, serverName, databaseName, parameters, options) {
|
|
3327
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3328
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3329
|
+
return this.client.sendOperationRequest(args, spec);
|
|
3330
|
+
});
|
|
3331
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3332
|
+
var _a;
|
|
3333
|
+
let currentRawResponse = undefined;
|
|
3334
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3335
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3336
|
+
currentRawResponse = rawResponse;
|
|
3337
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3338
|
+
};
|
|
3339
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3340
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3341
|
+
return {
|
|
3342
|
+
flatResponse,
|
|
3343
|
+
rawResponse: {
|
|
3344
|
+
statusCode: currentRawResponse.status,
|
|
3345
|
+
body: currentRawResponse.parsedBody,
|
|
3346
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3347
|
+
}
|
|
3348
|
+
};
|
|
3349
|
+
});
|
|
3350
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, databaseName, parameters, options }, createOrUpdateOperationSpec);
|
|
3351
|
+
return new coreLro.LroEngine(lro, {
|
|
3352
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3353
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3354
|
+
});
|
|
3355
|
+
});
|
|
3356
|
+
}
|
|
3357
|
+
/**
|
|
3358
|
+
* Creates a new database or updates an existing database.
|
|
3359
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3360
|
+
* @param serverName The name of the server.
|
|
3361
|
+
* @param databaseName The name of the database.
|
|
3362
|
+
* @param parameters The required parameters for creating or updating a database.
|
|
3363
|
+
* @param options The options parameters.
|
|
3364
|
+
*/
|
|
3365
|
+
beginCreateOrUpdateAndWait(resourceGroupName, serverName, databaseName, parameters, options) {
|
|
3366
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3367
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, databaseName, parameters, options);
|
|
3368
|
+
return poller.pollUntilDone();
|
|
3369
|
+
});
|
|
3370
|
+
}
|
|
3371
|
+
/**
|
|
3372
|
+
* Deletes a database.
|
|
3373
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3374
|
+
* @param serverName The name of the server.
|
|
3375
|
+
* @param databaseName The name of the database.
|
|
3376
|
+
* @param options The options parameters.
|
|
3377
|
+
*/
|
|
3378
|
+
beginDelete(resourceGroupName, serverName, databaseName, options) {
|
|
3379
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3380
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3381
|
+
return this.client.sendOperationRequest(args, spec);
|
|
3382
|
+
});
|
|
3383
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3384
|
+
var _a;
|
|
3385
|
+
let currentRawResponse = undefined;
|
|
3386
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3387
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3388
|
+
currentRawResponse = rawResponse;
|
|
3389
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3390
|
+
};
|
|
3391
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3392
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3393
|
+
return {
|
|
3394
|
+
flatResponse,
|
|
3395
|
+
rawResponse: {
|
|
3396
|
+
statusCode: currentRawResponse.status,
|
|
3397
|
+
body: currentRawResponse.parsedBody,
|
|
3398
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3399
|
+
}
|
|
3400
|
+
};
|
|
3401
|
+
});
|
|
3402
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, databaseName, options }, deleteOperationSpec);
|
|
3403
|
+
return new coreLro.LroEngine(lro, {
|
|
3404
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3405
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3406
|
+
});
|
|
3407
|
+
});
|
|
3408
|
+
}
|
|
3409
|
+
/**
|
|
3410
|
+
* Deletes a database.
|
|
3411
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3412
|
+
* @param serverName The name of the server.
|
|
3413
|
+
* @param databaseName The name of the database.
|
|
3414
|
+
* @param options The options parameters.
|
|
3415
|
+
*/
|
|
3416
|
+
beginDeleteAndWait(resourceGroupName, serverName, databaseName, options) {
|
|
3417
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3418
|
+
const poller = yield this.beginDelete(resourceGroupName, serverName, databaseName, options);
|
|
3419
|
+
return poller.pollUntilDone();
|
|
3420
|
+
});
|
|
3421
|
+
}
|
|
3422
|
+
/**
|
|
3423
|
+
* Gets information about a database.
|
|
3424
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3425
|
+
* @param serverName The name of the server.
|
|
3426
|
+
* @param databaseName The name of the database.
|
|
3427
|
+
* @param options The options parameters.
|
|
3428
|
+
*/
|
|
3429
|
+
get(resourceGroupName, serverName, databaseName, options) {
|
|
3430
|
+
return this.client.sendOperationRequest({ resourceGroupName, serverName, databaseName, options }, getOperationSpec$1);
|
|
3431
|
+
}
|
|
3432
|
+
/**
|
|
3433
|
+
* List all the databases in a given server.
|
|
3434
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3435
|
+
* @param serverName The name of the server.
|
|
3436
|
+
* @param options The options parameters.
|
|
3437
|
+
*/
|
|
3438
|
+
_listByServer(resourceGroupName, serverName, options) {
|
|
3439
|
+
return this.client.sendOperationRequest({ resourceGroupName, serverName, options }, listByServerOperationSpec$1);
|
|
3440
|
+
}
|
|
3441
|
+
/**
|
|
3442
|
+
* ListByServerNext
|
|
3443
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3444
|
+
* @param serverName The name of the server.
|
|
3445
|
+
* @param nextLink The nextLink from the previous successful call to the ListByServer method.
|
|
3446
|
+
* @param options The options parameters.
|
|
3447
|
+
*/
|
|
3448
|
+
_listByServerNext(resourceGroupName, serverName, nextLink, options) {
|
|
3449
|
+
return this.client.sendOperationRequest({ resourceGroupName, serverName, nextLink, options }, listByServerNextOperationSpec$1);
|
|
3450
|
+
}
|
|
3451
|
+
}
|
|
3452
|
+
// Operation Specifications
|
|
3453
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3454
|
+
const createOrUpdateOperationSpec = {
|
|
3455
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/databases/{databaseName}",
|
|
3456
|
+
httpMethod: "PUT",
|
|
3457
|
+
responses: {
|
|
3458
|
+
200: {
|
|
3459
|
+
bodyMapper: Database
|
|
3460
|
+
},
|
|
3461
|
+
201: {
|
|
3462
|
+
bodyMapper: Database
|
|
3463
|
+
},
|
|
3464
|
+
202: {
|
|
3465
|
+
bodyMapper: Database
|
|
3466
|
+
},
|
|
3467
|
+
204: {
|
|
3468
|
+
bodyMapper: Database
|
|
3469
|
+
},
|
|
3470
|
+
default: {
|
|
3471
|
+
bodyMapper: CloudError
|
|
3472
|
+
}
|
|
3473
|
+
},
|
|
3474
|
+
requestBody: parameters4,
|
|
3475
|
+
queryParameters: [apiVersion],
|
|
3476
|
+
urlParameters: [
|
|
3477
|
+
$host,
|
|
3478
|
+
subscriptionId,
|
|
3479
|
+
resourceGroupName,
|
|
3480
|
+
serverName,
|
|
3481
|
+
databaseName
|
|
3482
|
+
],
|
|
3483
|
+
headerParameters: [contentType, accept],
|
|
3484
|
+
mediaType: "json",
|
|
3485
|
+
serializer: serializer$6
|
|
3486
|
+
};
|
|
3487
|
+
const deleteOperationSpec = {
|
|
3488
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/databases/{databaseName}",
|
|
3489
|
+
httpMethod: "DELETE",
|
|
3490
|
+
responses: {
|
|
3491
|
+
200: {},
|
|
3492
|
+
201: {},
|
|
3493
|
+
202: {},
|
|
3494
|
+
204: {},
|
|
3495
|
+
default: {
|
|
3496
|
+
bodyMapper: CloudError
|
|
3497
|
+
}
|
|
3498
|
+
},
|
|
3499
|
+
queryParameters: [apiVersion],
|
|
3500
|
+
urlParameters: [
|
|
3501
|
+
$host,
|
|
3502
|
+
subscriptionId,
|
|
3503
|
+
resourceGroupName,
|
|
3504
|
+
serverName,
|
|
3505
|
+
databaseName
|
|
3506
|
+
],
|
|
3507
|
+
headerParameters: [accept],
|
|
3508
|
+
serializer: serializer$6
|
|
3509
|
+
};
|
|
3510
|
+
const getOperationSpec$1 = {
|
|
3511
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/databases/{databaseName}",
|
|
3512
|
+
httpMethod: "GET",
|
|
3513
|
+
responses: {
|
|
3514
|
+
200: {
|
|
3515
|
+
bodyMapper: Database
|
|
3516
|
+
},
|
|
3517
|
+
default: {
|
|
3518
|
+
bodyMapper: CloudError
|
|
3519
|
+
}
|
|
3520
|
+
},
|
|
3521
|
+
queryParameters: [apiVersion],
|
|
3522
|
+
urlParameters: [
|
|
3523
|
+
$host,
|
|
3524
|
+
subscriptionId,
|
|
3525
|
+
resourceGroupName,
|
|
3526
|
+
serverName,
|
|
3527
|
+
databaseName
|
|
3528
|
+
],
|
|
3529
|
+
headerParameters: [accept],
|
|
3530
|
+
serializer: serializer$6
|
|
3531
|
+
};
|
|
3532
|
+
const listByServerOperationSpec$1 = {
|
|
3533
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/databases",
|
|
3534
|
+
httpMethod: "GET",
|
|
3535
|
+
responses: {
|
|
3536
|
+
200: {
|
|
3537
|
+
bodyMapper: DatabaseListResult
|
|
3538
|
+
},
|
|
3539
|
+
default: {
|
|
3540
|
+
bodyMapper: CloudError
|
|
3541
|
+
}
|
|
3542
|
+
},
|
|
3543
|
+
queryParameters: [apiVersion],
|
|
3544
|
+
urlParameters: [
|
|
3545
|
+
$host,
|
|
3546
|
+
subscriptionId,
|
|
3547
|
+
resourceGroupName,
|
|
3548
|
+
serverName
|
|
3549
|
+
],
|
|
3550
|
+
headerParameters: [accept],
|
|
3551
|
+
serializer: serializer$6
|
|
3552
|
+
};
|
|
3553
|
+
const listByServerNextOperationSpec$1 = {
|
|
3554
|
+
path: "{nextLink}",
|
|
3555
|
+
httpMethod: "GET",
|
|
3556
|
+
responses: {
|
|
3557
|
+
200: {
|
|
3558
|
+
bodyMapper: DatabaseListResult
|
|
3559
|
+
},
|
|
3560
|
+
default: {
|
|
3561
|
+
bodyMapper: CloudError
|
|
3562
|
+
}
|
|
3563
|
+
},
|
|
3564
|
+
queryParameters: [apiVersion],
|
|
3565
|
+
urlParameters: [
|
|
3566
|
+
$host,
|
|
3567
|
+
subscriptionId,
|
|
3568
|
+
resourceGroupName,
|
|
3569
|
+
serverName,
|
|
3570
|
+
nextLink
|
|
3571
|
+
],
|
|
3572
|
+
headerParameters: [accept],
|
|
3573
|
+
serializer: serializer$6
|
|
3574
|
+
};
|
|
3575
|
+
|
|
3576
|
+
/*
|
|
3577
|
+
* Copyright (c) Microsoft Corporation.
|
|
3578
|
+
* Licensed under the MIT License.
|
|
3579
|
+
*
|
|
3580
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3581
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3582
|
+
*/
|
|
3583
|
+
/// <reference lib="esnext.asynciterable" />
|
|
3584
|
+
/** Class containing Configurations operations. */
|
|
3585
|
+
class ConfigurationsImpl {
|
|
3586
|
+
/**
|
|
3587
|
+
* Initialize a new instance of the class Configurations class.
|
|
3588
|
+
* @param client Reference to the service client
|
|
3589
|
+
*/
|
|
3590
|
+
constructor(client) {
|
|
3591
|
+
this.client = client;
|
|
3592
|
+
}
|
|
3593
|
+
/**
|
|
3594
|
+
* List all the configurations in a given server.
|
|
3595
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3596
|
+
* @param serverName The name of the server.
|
|
3597
|
+
* @param options The options parameters.
|
|
3598
|
+
*/
|
|
3599
|
+
listByServer(resourceGroupName, serverName, options) {
|
|
3600
|
+
const iter = this.listByServerPagingAll(resourceGroupName, serverName, options);
|
|
3601
|
+
return {
|
|
3602
|
+
next() {
|
|
3603
|
+
return iter.next();
|
|
3604
|
+
},
|
|
3605
|
+
[Symbol.asyncIterator]() {
|
|
3606
|
+
return this;
|
|
3607
|
+
},
|
|
3608
|
+
byPage: () => {
|
|
3609
|
+
return this.listByServerPagingPage(resourceGroupName, serverName, options);
|
|
3610
|
+
}
|
|
3611
|
+
};
|
|
3612
|
+
}
|
|
3613
|
+
listByServerPagingPage(resourceGroupName, serverName, options) {
|
|
3614
|
+
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
3615
|
+
let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
3616
|
+
yield yield tslib.__await(result.value || []);
|
|
3617
|
+
let continuationToken = result.nextLink;
|
|
3618
|
+
while (continuationToken) {
|
|
3619
|
+
result = yield tslib.__await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
|
|
3620
|
+
continuationToken = result.nextLink;
|
|
3621
|
+
yield yield tslib.__await(result.value || []);
|
|
3622
|
+
}
|
|
3623
|
+
});
|
|
3624
|
+
}
|
|
3625
|
+
listByServerPagingAll(resourceGroupName, serverName, options) {
|
|
3626
|
+
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingAll_1() {
|
|
3627
|
+
var e_1, _a;
|
|
3628
|
+
try {
|
|
3629
|
+
for (var _b = tslib.__asyncValues(this.listByServerPagingPage(resourceGroupName, serverName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
3630
|
+
const page = _c.value;
|
|
3631
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3632
|
+
}
|
|
3633
|
+
}
|
|
3634
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3635
|
+
finally {
|
|
3636
|
+
try {
|
|
3637
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
3638
|
+
}
|
|
3639
|
+
finally { if (e_1) throw e_1.error; }
|
|
3640
|
+
}
|
|
3641
|
+
});
|
|
3642
|
+
}
|
|
3643
|
+
/**
|
|
3644
|
+
* Updates a configuration of a server.
|
|
3645
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3646
|
+
* @param serverName The name of the server.
|
|
3647
|
+
* @param configurationName The name of the server configuration.
|
|
3648
|
+
* @param parameters The required parameters for updating a server configuration.
|
|
3649
|
+
* @param options The options parameters.
|
|
3650
|
+
*/
|
|
3651
|
+
beginUpdate(resourceGroupName, serverName, configurationName, parameters, options) {
|
|
3652
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3653
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3654
|
+
return this.client.sendOperationRequest(args, spec);
|
|
3655
|
+
});
|
|
3656
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3657
|
+
var _a;
|
|
3658
|
+
let currentRawResponse = undefined;
|
|
3659
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3660
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3661
|
+
currentRawResponse = rawResponse;
|
|
3662
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3663
|
+
};
|
|
3664
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3665
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3666
|
+
return {
|
|
3667
|
+
flatResponse,
|
|
3668
|
+
rawResponse: {
|
|
3669
|
+
statusCode: currentRawResponse.status,
|
|
3670
|
+
body: currentRawResponse.parsedBody,
|
|
3671
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3672
|
+
}
|
|
3673
|
+
};
|
|
3674
|
+
});
|
|
3675
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, configurationName, parameters, options }, updateOperationSpec);
|
|
3676
|
+
return new coreLro.LroEngine(lro, {
|
|
3677
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3678
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3679
|
+
});
|
|
3680
|
+
});
|
|
3681
|
+
}
|
|
3682
|
+
/**
|
|
3683
|
+
* Updates a configuration of a server.
|
|
3684
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3685
|
+
* @param serverName The name of the server.
|
|
3686
|
+
* @param configurationName The name of the server configuration.
|
|
3687
|
+
* @param parameters The required parameters for updating a server configuration.
|
|
3688
|
+
* @param options The options parameters.
|
|
3689
|
+
*/
|
|
3690
|
+
beginUpdateAndWait(resourceGroupName, serverName, configurationName, parameters, options) {
|
|
3691
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3692
|
+
const poller = yield this.beginUpdate(resourceGroupName, serverName, configurationName, parameters, options);
|
|
3693
|
+
return poller.pollUntilDone();
|
|
3694
|
+
});
|
|
3695
|
+
}
|
|
3696
|
+
/**
|
|
3697
|
+
* Gets information about a configuration of server.
|
|
3698
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3699
|
+
* @param serverName The name of the server.
|
|
3700
|
+
* @param configurationName The name of the server configuration.
|
|
3701
|
+
* @param options The options parameters.
|
|
3702
|
+
*/
|
|
3703
|
+
get(resourceGroupName, serverName, configurationName, options) {
|
|
3704
|
+
return this.client.sendOperationRequest({ resourceGroupName, serverName, configurationName, options }, getOperationSpec);
|
|
3705
|
+
}
|
|
3706
|
+
/**
|
|
3707
|
+
* Update a list of configurations in a given server.
|
|
3708
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3709
|
+
* @param serverName The name of the server.
|
|
3710
|
+
* @param parameters The parameters for updating a list of server configuration.
|
|
3711
|
+
* @param options The options parameters.
|
|
3712
|
+
*/
|
|
3713
|
+
beginBatchUpdate(resourceGroupName, serverName, parameters, options) {
|
|
3714
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3715
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3716
|
+
return this.client.sendOperationRequest(args, spec);
|
|
3717
|
+
});
|
|
3718
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3719
|
+
var _a;
|
|
3720
|
+
let currentRawResponse = undefined;
|
|
3721
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3722
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3723
|
+
currentRawResponse = rawResponse;
|
|
3724
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3725
|
+
};
|
|
3726
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3727
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3728
|
+
return {
|
|
3729
|
+
flatResponse,
|
|
3730
|
+
rawResponse: {
|
|
3731
|
+
statusCode: currentRawResponse.status,
|
|
3732
|
+
body: currentRawResponse.parsedBody,
|
|
3733
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3734
|
+
}
|
|
3735
|
+
};
|
|
3736
|
+
});
|
|
3737
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, parameters, options }, batchUpdateOperationSpec);
|
|
3738
|
+
return new coreLro.LroEngine(lro, {
|
|
3739
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3740
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3741
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
3742
|
+
});
|
|
3743
|
+
});
|
|
3744
|
+
}
|
|
3745
|
+
/**
|
|
3746
|
+
* Update a list of configurations in a given server.
|
|
3747
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3748
|
+
* @param serverName The name of the server.
|
|
3749
|
+
* @param parameters The parameters for updating a list of server configuration.
|
|
3750
|
+
* @param options The options parameters.
|
|
3751
|
+
*/
|
|
3752
|
+
beginBatchUpdateAndWait(resourceGroupName, serverName, parameters, options) {
|
|
3753
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3754
|
+
const poller = yield this.beginBatchUpdate(resourceGroupName, serverName, parameters, options);
|
|
3755
|
+
return poller.pollUntilDone();
|
|
3756
|
+
});
|
|
3757
|
+
}
|
|
3758
|
+
/**
|
|
3759
|
+
* List all the configurations in a given server.
|
|
3760
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3761
|
+
* @param serverName The name of the server.
|
|
3762
|
+
* @param options The options parameters.
|
|
3763
|
+
*/
|
|
3764
|
+
_listByServer(resourceGroupName, serverName, options) {
|
|
3765
|
+
return this.client.sendOperationRequest({ resourceGroupName, serverName, options }, listByServerOperationSpec);
|
|
3766
|
+
}
|
|
3767
|
+
/**
|
|
3768
|
+
* ListByServerNext
|
|
3769
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3770
|
+
* @param serverName The name of the server.
|
|
3771
|
+
* @param nextLink The nextLink from the previous successful call to the ListByServer method.
|
|
3772
|
+
* @param options The options parameters.
|
|
3773
|
+
*/
|
|
3774
|
+
_listByServerNext(resourceGroupName, serverName, nextLink, options) {
|
|
3775
|
+
return this.client.sendOperationRequest({ resourceGroupName, serverName, nextLink, options }, listByServerNextOperationSpec);
|
|
3776
|
+
}
|
|
3777
|
+
}
|
|
3778
|
+
// Operation Specifications
|
|
3779
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3780
|
+
const updateOperationSpec = {
|
|
3781
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations/{configurationName}",
|
|
3782
|
+
httpMethod: "PATCH",
|
|
3783
|
+
responses: {
|
|
3784
|
+
200: {
|
|
3785
|
+
bodyMapper: Configuration
|
|
3786
|
+
},
|
|
3787
|
+
201: {
|
|
3788
|
+
bodyMapper: Configuration
|
|
3789
|
+
},
|
|
3790
|
+
202: {
|
|
3791
|
+
bodyMapper: Configuration
|
|
3792
|
+
},
|
|
3793
|
+
204: {
|
|
3794
|
+
bodyMapper: Configuration
|
|
3795
|
+
},
|
|
3796
|
+
default: {
|
|
3797
|
+
bodyMapper: CloudError
|
|
3798
|
+
}
|
|
3799
|
+
},
|
|
3800
|
+
requestBody: parameters5,
|
|
3801
|
+
queryParameters: [apiVersion],
|
|
3802
|
+
urlParameters: [
|
|
3803
|
+
$host,
|
|
3804
|
+
subscriptionId,
|
|
3805
|
+
resourceGroupName,
|
|
3806
|
+
serverName,
|
|
3807
|
+
configurationName
|
|
3808
|
+
],
|
|
3809
|
+
headerParameters: [contentType, accept],
|
|
3810
|
+
mediaType: "json",
|
|
3811
|
+
serializer: serializer$5
|
|
3812
|
+
};
|
|
3813
|
+
const getOperationSpec = {
|
|
3814
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations/{configurationName}",
|
|
3815
|
+
httpMethod: "GET",
|
|
3816
|
+
responses: {
|
|
3817
|
+
200: {
|
|
3818
|
+
bodyMapper: Configuration
|
|
3819
|
+
},
|
|
3820
|
+
default: {
|
|
3821
|
+
bodyMapper: CloudError
|
|
3822
|
+
}
|
|
3823
|
+
},
|
|
3824
|
+
queryParameters: [apiVersion],
|
|
3825
|
+
urlParameters: [
|
|
3826
|
+
$host,
|
|
3827
|
+
subscriptionId,
|
|
3828
|
+
resourceGroupName,
|
|
3829
|
+
serverName,
|
|
3830
|
+
configurationName
|
|
3831
|
+
],
|
|
3832
|
+
headerParameters: [accept],
|
|
3833
|
+
serializer: serializer$5
|
|
3834
|
+
};
|
|
3835
|
+
const batchUpdateOperationSpec = {
|
|
3836
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/updateConfigurations",
|
|
3837
|
+
httpMethod: "POST",
|
|
3838
|
+
responses: {
|
|
3839
|
+
200: {
|
|
3840
|
+
bodyMapper: ConfigurationListResult
|
|
3841
|
+
},
|
|
3842
|
+
201: {
|
|
3843
|
+
bodyMapper: ConfigurationListResult
|
|
3844
|
+
},
|
|
3845
|
+
202: {
|
|
3846
|
+
bodyMapper: ConfigurationListResult
|
|
3847
|
+
},
|
|
3848
|
+
204: {
|
|
3849
|
+
bodyMapper: ConfigurationListResult
|
|
3850
|
+
},
|
|
3851
|
+
default: {
|
|
3852
|
+
bodyMapper: CloudError
|
|
3853
|
+
}
|
|
3854
|
+
},
|
|
3855
|
+
requestBody: parameters6,
|
|
3856
|
+
queryParameters: [apiVersion],
|
|
3857
|
+
urlParameters: [
|
|
3858
|
+
$host,
|
|
3859
|
+
subscriptionId,
|
|
3860
|
+
resourceGroupName,
|
|
3861
|
+
serverName
|
|
3862
|
+
],
|
|
3863
|
+
headerParameters: [contentType, accept],
|
|
3864
|
+
mediaType: "json",
|
|
3865
|
+
serializer: serializer$5
|
|
3866
|
+
};
|
|
3867
|
+
const listByServerOperationSpec = {
|
|
3868
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations",
|
|
3869
|
+
httpMethod: "GET",
|
|
3870
|
+
responses: {
|
|
3871
|
+
200: {
|
|
3872
|
+
bodyMapper: ConfigurationListResult
|
|
3873
|
+
},
|
|
3874
|
+
default: {
|
|
3875
|
+
bodyMapper: CloudError
|
|
3876
|
+
}
|
|
3877
|
+
},
|
|
3878
|
+
queryParameters: [apiVersion],
|
|
3879
|
+
urlParameters: [
|
|
3880
|
+
$host,
|
|
3881
|
+
subscriptionId,
|
|
3882
|
+
resourceGroupName,
|
|
3883
|
+
serverName
|
|
3884
|
+
],
|
|
3885
|
+
headerParameters: [accept],
|
|
3886
|
+
serializer: serializer$5
|
|
3887
|
+
};
|
|
3888
|
+
const listByServerNextOperationSpec = {
|
|
3889
|
+
path: "{nextLink}",
|
|
3890
|
+
httpMethod: "GET",
|
|
3891
|
+
responses: {
|
|
3892
|
+
200: {
|
|
3893
|
+
bodyMapper: ConfigurationListResult
|
|
3894
|
+
},
|
|
3895
|
+
default: {
|
|
3896
|
+
bodyMapper: CloudError
|
|
3897
|
+
}
|
|
3898
|
+
},
|
|
3899
|
+
queryParameters: [apiVersion],
|
|
3900
|
+
urlParameters: [
|
|
3901
|
+
$host,
|
|
3902
|
+
subscriptionId,
|
|
3903
|
+
resourceGroupName,
|
|
3904
|
+
serverName,
|
|
3905
|
+
nextLink
|
|
3906
|
+
],
|
|
3907
|
+
headerParameters: [accept],
|
|
3908
|
+
serializer: serializer$5
|
|
3909
|
+
};
|
|
3910
|
+
|
|
3911
|
+
/*
|
|
3912
|
+
* Copyright (c) Microsoft Corporation.
|
|
3913
|
+
* Licensed under the MIT License.
|
|
3914
|
+
*
|
|
3915
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3916
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3917
|
+
*/
|
|
3918
|
+
/// <reference lib="esnext.asynciterable" />
|
|
3919
|
+
/** Class containing LocationBasedCapabilities operations. */
|
|
3920
|
+
class LocationBasedCapabilitiesImpl {
|
|
3921
|
+
/**
|
|
3922
|
+
* Initialize a new instance of the class LocationBasedCapabilities class.
|
|
3923
|
+
* @param client Reference to the service client
|
|
3924
|
+
*/
|
|
3925
|
+
constructor(client) {
|
|
3926
|
+
this.client = client;
|
|
3927
|
+
}
|
|
3928
|
+
/**
|
|
3929
|
+
* Get capabilities at specified location in a given subscription.
|
|
3930
|
+
* @param locationName The name of the location.
|
|
3931
|
+
* @param options The options parameters.
|
|
3932
|
+
*/
|
|
3933
|
+
list(locationName, options) {
|
|
3934
|
+
const iter = this.listPagingAll(locationName, options);
|
|
3935
|
+
return {
|
|
3936
|
+
next() {
|
|
3937
|
+
return iter.next();
|
|
3938
|
+
},
|
|
3939
|
+
[Symbol.asyncIterator]() {
|
|
3940
|
+
return this;
|
|
3941
|
+
},
|
|
3942
|
+
byPage: () => {
|
|
3943
|
+
return this.listPagingPage(locationName, options);
|
|
3944
|
+
}
|
|
3945
|
+
};
|
|
3946
|
+
}
|
|
3947
|
+
listPagingPage(locationName, options) {
|
|
3948
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3949
|
+
let result = yield tslib.__await(this._list(locationName, options));
|
|
3950
|
+
yield yield tslib.__await(result.value || []);
|
|
3951
|
+
let continuationToken = result.nextLink;
|
|
3952
|
+
while (continuationToken) {
|
|
3953
|
+
result = yield tslib.__await(this._listNext(locationName, continuationToken, options));
|
|
3954
|
+
continuationToken = result.nextLink;
|
|
3955
|
+
yield yield tslib.__await(result.value || []);
|
|
3956
|
+
}
|
|
3957
|
+
});
|
|
3958
|
+
}
|
|
3959
|
+
listPagingAll(locationName, options) {
|
|
3960
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
3961
|
+
var e_1, _a;
|
|
3962
|
+
try {
|
|
3963
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(locationName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
3964
|
+
const page = _c.value;
|
|
3965
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3966
|
+
}
|
|
3967
|
+
}
|
|
3968
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3969
|
+
finally {
|
|
3970
|
+
try {
|
|
3971
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
3972
|
+
}
|
|
3973
|
+
finally { if (e_1) throw e_1.error; }
|
|
3974
|
+
}
|
|
3975
|
+
});
|
|
3976
|
+
}
|
|
3977
|
+
/**
|
|
3978
|
+
* Get capabilities at specified location in a given subscription.
|
|
3979
|
+
* @param locationName The name of the location.
|
|
3980
|
+
* @param options The options parameters.
|
|
3981
|
+
*/
|
|
3982
|
+
_list(locationName, options) {
|
|
3983
|
+
return this.client.sendOperationRequest({ locationName, options }, listOperationSpec$1);
|
|
3984
|
+
}
|
|
3985
|
+
/**
|
|
3986
|
+
* ListNext
|
|
3987
|
+
* @param locationName The name of the location.
|
|
3988
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
3989
|
+
* @param options The options parameters.
|
|
3990
|
+
*/
|
|
3991
|
+
_listNext(locationName, nextLink, options) {
|
|
3992
|
+
return this.client.sendOperationRequest({ locationName, nextLink, options }, listNextOperationSpec$1);
|
|
3993
|
+
}
|
|
3994
|
+
}
|
|
3995
|
+
// Operation Specifications
|
|
3996
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3997
|
+
const listOperationSpec$1 = {
|
|
3998
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/capabilities",
|
|
3999
|
+
httpMethod: "GET",
|
|
4000
|
+
responses: {
|
|
4001
|
+
200: {
|
|
4002
|
+
bodyMapper: CapabilitiesListResult
|
|
4003
|
+
},
|
|
4004
|
+
default: {
|
|
4005
|
+
bodyMapper: CloudError
|
|
4006
|
+
}
|
|
4007
|
+
},
|
|
4008
|
+
queryParameters: [apiVersion],
|
|
4009
|
+
urlParameters: [
|
|
4010
|
+
$host,
|
|
4011
|
+
subscriptionId,
|
|
4012
|
+
locationName
|
|
4013
|
+
],
|
|
4014
|
+
headerParameters: [accept],
|
|
4015
|
+
serializer: serializer$4
|
|
4016
|
+
};
|
|
4017
|
+
const listNextOperationSpec$1 = {
|
|
4018
|
+
path: "{nextLink}",
|
|
4019
|
+
httpMethod: "GET",
|
|
4020
|
+
responses: {
|
|
4021
|
+
200: {
|
|
4022
|
+
bodyMapper: CapabilitiesListResult
|
|
4023
|
+
},
|
|
4024
|
+
default: {
|
|
4025
|
+
bodyMapper: CloudError
|
|
4026
|
+
}
|
|
4027
|
+
},
|
|
4028
|
+
queryParameters: [apiVersion],
|
|
4029
|
+
urlParameters: [
|
|
4030
|
+
$host,
|
|
4031
|
+
subscriptionId,
|
|
4032
|
+
nextLink,
|
|
4033
|
+
locationName
|
|
4034
|
+
],
|
|
4035
|
+
headerParameters: [accept],
|
|
4036
|
+
serializer: serializer$4
|
|
4037
|
+
};
|
|
4038
|
+
|
|
4039
|
+
/*
|
|
4040
|
+
* Copyright (c) Microsoft Corporation.
|
|
4041
|
+
* Licensed under the MIT License.
|
|
4042
|
+
*
|
|
4043
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4044
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4045
|
+
*/
|
|
4046
|
+
/** Class containing CheckVirtualNetworkSubnetUsage operations. */
|
|
4047
|
+
class CheckVirtualNetworkSubnetUsageImpl {
|
|
4048
|
+
/**
|
|
4049
|
+
* Initialize a new instance of the class CheckVirtualNetworkSubnetUsage class.
|
|
4050
|
+
* @param client Reference to the service client
|
|
4051
|
+
*/
|
|
4052
|
+
constructor(client) {
|
|
4053
|
+
this.client = client;
|
|
4054
|
+
}
|
|
4055
|
+
/**
|
|
4056
|
+
* Get virtual network subnet usage for a given vNet resource id.
|
|
4057
|
+
* @param locationName The name of the location.
|
|
4058
|
+
* @param parameters The required parameters for creating or updating a server.
|
|
4059
|
+
* @param options The options parameters.
|
|
4060
|
+
*/
|
|
4061
|
+
execute(locationName, parameters, options) {
|
|
4062
|
+
return this.client.sendOperationRequest({ locationName, parameters, options }, executeOperationSpec$2);
|
|
4063
|
+
}
|
|
4064
|
+
}
|
|
4065
|
+
// Operation Specifications
|
|
4066
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4067
|
+
const executeOperationSpec$2 = {
|
|
4068
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/checkVirtualNetworkSubnetUsage",
|
|
4069
|
+
httpMethod: "POST",
|
|
4070
|
+
responses: {
|
|
4071
|
+
200: {
|
|
4072
|
+
bodyMapper: VirtualNetworkSubnetUsageResult
|
|
4073
|
+
},
|
|
4074
|
+
default: {
|
|
4075
|
+
bodyMapper: CloudError
|
|
4076
|
+
}
|
|
4077
|
+
},
|
|
4078
|
+
requestBody: parameters7,
|
|
4079
|
+
queryParameters: [apiVersion],
|
|
4080
|
+
urlParameters: [
|
|
4081
|
+
$host,
|
|
4082
|
+
subscriptionId,
|
|
4083
|
+
locationName
|
|
4084
|
+
],
|
|
4085
|
+
headerParameters: [contentType, accept],
|
|
4086
|
+
mediaType: "json",
|
|
4087
|
+
serializer: serializer$3
|
|
4088
|
+
};
|
|
4089
|
+
|
|
4090
|
+
/*
|
|
4091
|
+
* Copyright (c) Microsoft Corporation.
|
|
4092
|
+
* Licensed under the MIT License.
|
|
4093
|
+
*
|
|
4094
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4095
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4096
|
+
*/
|
|
4097
|
+
/** Class containing CheckNameAvailability operations. */
|
|
4098
|
+
class CheckNameAvailabilityImpl {
|
|
4099
|
+
/**
|
|
4100
|
+
* Initialize a new instance of the class CheckNameAvailability class.
|
|
4101
|
+
* @param client Reference to the service client
|
|
4102
|
+
*/
|
|
4103
|
+
constructor(client) {
|
|
4104
|
+
this.client = client;
|
|
4105
|
+
}
|
|
4106
|
+
/**
|
|
4107
|
+
* Check the availability of name for server
|
|
4108
|
+
* @param locationName The name of the location.
|
|
4109
|
+
* @param nameAvailabilityRequest The required parameters for checking if server name is available.
|
|
4110
|
+
* @param options The options parameters.
|
|
4111
|
+
*/
|
|
4112
|
+
execute(locationName, nameAvailabilityRequest, options) {
|
|
4113
|
+
return this.client.sendOperationRequest({ locationName, nameAvailabilityRequest, options }, executeOperationSpec$1);
|
|
4114
|
+
}
|
|
4115
|
+
}
|
|
4116
|
+
// Operation Specifications
|
|
4117
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4118
|
+
const executeOperationSpec$1 = {
|
|
4119
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/checkNameAvailability",
|
|
4120
|
+
httpMethod: "POST",
|
|
4121
|
+
responses: {
|
|
4122
|
+
200: {
|
|
4123
|
+
bodyMapper: NameAvailability
|
|
4124
|
+
},
|
|
4125
|
+
default: {
|
|
4126
|
+
bodyMapper: CloudError
|
|
4127
|
+
}
|
|
4128
|
+
},
|
|
4129
|
+
requestBody: nameAvailabilityRequest,
|
|
4130
|
+
queryParameters: [apiVersion],
|
|
4131
|
+
urlParameters: [
|
|
4132
|
+
$host,
|
|
4133
|
+
subscriptionId,
|
|
4134
|
+
locationName
|
|
4135
|
+
],
|
|
4136
|
+
headerParameters: [contentType, accept],
|
|
4137
|
+
mediaType: "json",
|
|
4138
|
+
serializer: serializer$2
|
|
4139
|
+
};
|
|
4140
|
+
|
|
4141
|
+
/*
|
|
4142
|
+
* Copyright (c) Microsoft Corporation.
|
|
4143
|
+
* Licensed under the MIT License.
|
|
4144
|
+
*
|
|
4145
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4146
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4147
|
+
*/
|
|
4148
|
+
/** Class containing GetPrivateDnsZoneSuffix operations. */
|
|
4149
|
+
class GetPrivateDnsZoneSuffixImpl {
|
|
4150
|
+
/**
|
|
4151
|
+
* Initialize a new instance of the class GetPrivateDnsZoneSuffix class.
|
|
4152
|
+
* @param client Reference to the service client
|
|
4153
|
+
*/
|
|
4154
|
+
constructor(client) {
|
|
4155
|
+
this.client = client;
|
|
4156
|
+
}
|
|
4157
|
+
/**
|
|
4158
|
+
* Get private DNS zone suffix in the cloud.
|
|
4159
|
+
* @param options The options parameters.
|
|
4160
|
+
*/
|
|
4161
|
+
execute(options) {
|
|
4162
|
+
return this.client.sendOperationRequest({ options }, executeOperationSpec);
|
|
4163
|
+
}
|
|
4164
|
+
}
|
|
4165
|
+
// Operation Specifications
|
|
4166
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4167
|
+
const executeOperationSpec = {
|
|
4168
|
+
path: "/providers/Microsoft.DBforMySQL/getPrivateDnsZoneSuffix",
|
|
4169
|
+
httpMethod: "POST",
|
|
4170
|
+
responses: {
|
|
4171
|
+
200: {
|
|
4172
|
+
bodyMapper: GetPrivateDnsZoneSuffixResponse
|
|
4173
|
+
},
|
|
4174
|
+
default: {
|
|
4175
|
+
bodyMapper: CloudError
|
|
4176
|
+
}
|
|
4177
|
+
},
|
|
4178
|
+
queryParameters: [apiVersion],
|
|
4179
|
+
urlParameters: [$host],
|
|
4180
|
+
headerParameters: [accept],
|
|
4181
|
+
serializer: serializer$1
|
|
4182
|
+
};
|
|
4183
|
+
|
|
4184
|
+
/*
|
|
4185
|
+
* Copyright (c) Microsoft Corporation.
|
|
4186
|
+
* Licensed under the MIT License.
|
|
4187
|
+
*
|
|
4188
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4189
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4190
|
+
*/
|
|
4191
|
+
/// <reference lib="esnext.asynciterable" />
|
|
4192
|
+
/** Class containing Operations operations. */
|
|
4193
|
+
class OperationsImpl {
|
|
4194
|
+
/**
|
|
4195
|
+
* Initialize a new instance of the class Operations class.
|
|
4196
|
+
* @param client Reference to the service client
|
|
4197
|
+
*/
|
|
4198
|
+
constructor(client) {
|
|
4199
|
+
this.client = client;
|
|
4200
|
+
}
|
|
4201
|
+
/**
|
|
4202
|
+
* Lists all of the available REST API operations.
|
|
4203
|
+
* @param options The options parameters.
|
|
4204
|
+
*/
|
|
4205
|
+
list(options) {
|
|
4206
|
+
const iter = this.listPagingAll(options);
|
|
4207
|
+
return {
|
|
4208
|
+
next() {
|
|
4209
|
+
return iter.next();
|
|
4210
|
+
},
|
|
4211
|
+
[Symbol.asyncIterator]() {
|
|
4212
|
+
return this;
|
|
4213
|
+
},
|
|
4214
|
+
byPage: () => {
|
|
4215
|
+
return this.listPagingPage(options);
|
|
4216
|
+
}
|
|
4217
|
+
};
|
|
4218
|
+
}
|
|
4219
|
+
listPagingPage(options) {
|
|
4220
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4221
|
+
let result = yield tslib.__await(this._list(options));
|
|
4222
|
+
yield yield tslib.__await(result.value || []);
|
|
4223
|
+
let continuationToken = result.nextLink;
|
|
4224
|
+
while (continuationToken) {
|
|
4225
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
4226
|
+
continuationToken = result.nextLink;
|
|
4227
|
+
yield yield tslib.__await(result.value || []);
|
|
4228
|
+
}
|
|
4229
|
+
});
|
|
4230
|
+
}
|
|
4231
|
+
listPagingAll(options) {
|
|
4232
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
4233
|
+
var e_1, _a;
|
|
4234
|
+
try {
|
|
4235
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
4236
|
+
const page = _c.value;
|
|
4237
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
4238
|
+
}
|
|
4239
|
+
}
|
|
4240
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
4241
|
+
finally {
|
|
4242
|
+
try {
|
|
4243
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
4244
|
+
}
|
|
4245
|
+
finally { if (e_1) throw e_1.error; }
|
|
4246
|
+
}
|
|
4247
|
+
});
|
|
4248
|
+
}
|
|
4249
|
+
/**
|
|
4250
|
+
* Lists all of the available REST API operations.
|
|
4251
|
+
* @param options The options parameters.
|
|
4252
|
+
*/
|
|
4253
|
+
_list(options) {
|
|
4254
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
4255
|
+
}
|
|
4256
|
+
/**
|
|
4257
|
+
* ListNext
|
|
4258
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
4259
|
+
* @param options The options parameters.
|
|
4260
|
+
*/
|
|
4261
|
+
_listNext(nextLink, options) {
|
|
4262
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
4263
|
+
}
|
|
4264
|
+
}
|
|
4265
|
+
// Operation Specifications
|
|
4266
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4267
|
+
const listOperationSpec = {
|
|
4268
|
+
path: "/providers/Microsoft.DBforMySQL/operations",
|
|
4269
|
+
httpMethod: "GET",
|
|
4270
|
+
responses: {
|
|
4271
|
+
200: {
|
|
4272
|
+
bodyMapper: OperationListResult
|
|
4273
|
+
},
|
|
4274
|
+
default: {
|
|
4275
|
+
bodyMapper: CloudError
|
|
4276
|
+
}
|
|
4277
|
+
},
|
|
4278
|
+
queryParameters: [apiVersion],
|
|
4279
|
+
urlParameters: [$host],
|
|
4280
|
+
headerParameters: [accept],
|
|
4281
|
+
serializer
|
|
4282
|
+
};
|
|
4283
|
+
const listNextOperationSpec = {
|
|
4284
|
+
path: "{nextLink}",
|
|
4285
|
+
httpMethod: "GET",
|
|
4286
|
+
responses: {
|
|
4287
|
+
200: {
|
|
4288
|
+
bodyMapper: OperationListResult
|
|
4289
|
+
},
|
|
4290
|
+
default: {
|
|
4291
|
+
bodyMapper: CloudError
|
|
4292
|
+
}
|
|
4293
|
+
},
|
|
4294
|
+
queryParameters: [apiVersion],
|
|
4295
|
+
urlParameters: [$host, nextLink],
|
|
4296
|
+
headerParameters: [accept],
|
|
4297
|
+
serializer
|
|
4298
|
+
};
|
|
4299
|
+
|
|
4300
|
+
/*
|
|
4301
|
+
* Copyright (c) Microsoft Corporation.
|
|
4302
|
+
* Licensed under the MIT License.
|
|
4303
|
+
*
|
|
4304
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4305
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4306
|
+
*/
|
|
4307
|
+
class MySQLManagementFlexibleServerClient extends coreClient__namespace.ServiceClient {
|
|
4308
|
+
/**
|
|
4309
|
+
* Initializes a new instance of the MySQLManagementFlexibleServerClient class.
|
|
4310
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
4311
|
+
* @param subscriptionId The ID of the target subscription.
|
|
4312
|
+
* @param options The parameter options
|
|
4313
|
+
*/
|
|
4314
|
+
constructor(credentials, subscriptionId, options) {
|
|
4315
|
+
if (credentials === undefined) {
|
|
4316
|
+
throw new Error("'credentials' cannot be null");
|
|
4317
|
+
}
|
|
4318
|
+
if (subscriptionId === undefined) {
|
|
4319
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
4320
|
+
}
|
|
4321
|
+
// Initializing default values for options
|
|
4322
|
+
if (!options) {
|
|
4323
|
+
options = {};
|
|
4324
|
+
}
|
|
4325
|
+
const defaults = {
|
|
4326
|
+
requestContentType: "application/json; charset=utf-8",
|
|
4327
|
+
credential: credentials
|
|
4328
|
+
};
|
|
4329
|
+
const packageDetails = `azsdk-js-arm-mysql-flexible/2.0.0`;
|
|
4330
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
4331
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
4332
|
+
: `${packageDetails}`;
|
|
4333
|
+
if (!options.credentialScopes) {
|
|
4334
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
4335
|
+
}
|
|
4336
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
4337
|
+
userAgentPrefix
|
|
4338
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
4339
|
+
super(optionsWithDefaults);
|
|
4340
|
+
// Parameter assignments
|
|
4341
|
+
this.subscriptionId = subscriptionId;
|
|
4342
|
+
// Assigning values to Constant parameters
|
|
4343
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
4344
|
+
this.apiVersion = options.apiVersion || "2021-05-01";
|
|
4345
|
+
this.servers = new ServersImpl(this);
|
|
4346
|
+
this.replicas = new ReplicasImpl(this);
|
|
4347
|
+
this.backups = new BackupsImpl(this);
|
|
4348
|
+
this.firewallRules = new FirewallRulesImpl(this);
|
|
4349
|
+
this.databases = new DatabasesImpl(this);
|
|
4350
|
+
this.configurations = new ConfigurationsImpl(this);
|
|
4351
|
+
this.locationBasedCapabilities = new LocationBasedCapabilitiesImpl(this);
|
|
4352
|
+
this.checkVirtualNetworkSubnetUsage = new CheckVirtualNetworkSubnetUsageImpl(this);
|
|
4353
|
+
this.checkNameAvailability = new CheckNameAvailabilityImpl(this);
|
|
4354
|
+
this.getPrivateDnsZoneSuffix = new GetPrivateDnsZoneSuffixImpl(this);
|
|
4355
|
+
this.operations = new OperationsImpl(this);
|
|
4356
|
+
}
|
|
4357
|
+
}
|
|
4358
|
+
|
|
4359
|
+
exports.MySQLManagementFlexibleServerClient = MySQLManagementFlexibleServerClient;
|
|
4360
|
+
//# sourceMappingURL=index.js.map
|