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