@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
|
@@ -1,3349 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
(function (global, factory) {
|
|
9
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
|
|
10
|
-
typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
|
|
11
|
-
(global = global || self, factory((global.Azure = global.Azure || {}, global.Azure.ArmPostgresqlFlexible = {}), global.msRestAzure, global.msRest));
|
|
12
|
-
}(this, (function (exports, msRestAzure, msRest) { 'use strict';
|
|
13
|
-
|
|
14
|
-
/*! *****************************************************************************
|
|
15
|
-
Copyright (c) Microsoft Corporation.
|
|
16
|
-
|
|
17
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
18
|
-
purpose with or without fee is hereby granted.
|
|
19
|
-
|
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
21
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
22
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
23
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
24
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
25
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
26
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
27
|
-
***************************************************************************** */
|
|
28
|
-
/* global Reflect, Promise */
|
|
29
|
-
|
|
30
|
-
var extendStatics = function(d, b) {
|
|
31
|
-
extendStatics = Object.setPrototypeOf ||
|
|
32
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
33
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
34
|
-
return extendStatics(d, b);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
function __extends(d, b) {
|
|
38
|
-
extendStatics(d, b);
|
|
39
|
-
function __() { this.constructor = d; }
|
|
40
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
var __assign = function() {
|
|
44
|
-
__assign = Object.assign || function __assign(t) {
|
|
45
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
46
|
-
s = arguments[i];
|
|
47
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
48
|
-
}
|
|
49
|
-
return t;
|
|
50
|
-
};
|
|
51
|
-
return __assign.apply(this, arguments);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
/*
|
|
55
|
-
* Copyright (c) Microsoft Corporation.
|
|
56
|
-
* Licensed under the MIT License.
|
|
57
|
-
*
|
|
58
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
59
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
60
|
-
*/
|
|
61
|
-
|
|
62
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
63
|
-
__proto__: null
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
/*
|
|
67
|
-
* Copyright (c) Microsoft Corporation.
|
|
68
|
-
* Licensed under the MIT License.
|
|
69
|
-
*
|
|
70
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
71
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
72
|
-
*/
|
|
73
|
-
var CloudError = msRestAzure.CloudErrorMapper;
|
|
74
|
-
var BaseResource = msRestAzure.BaseResourceMapper;
|
|
75
|
-
var VirtualNetworkSubnetUsageParameter = {
|
|
76
|
-
serializedName: "VirtualNetworkSubnetUsageParameter",
|
|
77
|
-
type: {
|
|
78
|
-
name: "Composite",
|
|
79
|
-
className: "VirtualNetworkSubnetUsageParameter",
|
|
80
|
-
modelProperties: {
|
|
81
|
-
virtualNetworkArmResourceId: {
|
|
82
|
-
serializedName: "virtualNetworkArmResourceId",
|
|
83
|
-
type: {
|
|
84
|
-
name: "String"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
var DelegatedSubnetUsage = {
|
|
91
|
-
serializedName: "DelegatedSubnetUsage",
|
|
92
|
-
type: {
|
|
93
|
-
name: "Composite",
|
|
94
|
-
className: "DelegatedSubnetUsage",
|
|
95
|
-
modelProperties: {
|
|
96
|
-
subnetName: {
|
|
97
|
-
readOnly: true,
|
|
98
|
-
serializedName: "subnetName",
|
|
99
|
-
type: {
|
|
100
|
-
name: "String"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
usage: {
|
|
104
|
-
readOnly: true,
|
|
105
|
-
serializedName: "usage",
|
|
106
|
-
type: {
|
|
107
|
-
name: "Number"
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
var VirtualNetworkSubnetUsageResult = {
|
|
114
|
-
serializedName: "VirtualNetworkSubnetUsageResult",
|
|
115
|
-
type: {
|
|
116
|
-
name: "Composite",
|
|
117
|
-
className: "VirtualNetworkSubnetUsageResult",
|
|
118
|
-
modelProperties: {
|
|
119
|
-
delegatedSubnetsUsage: {
|
|
120
|
-
readOnly: true,
|
|
121
|
-
serializedName: "delegatedSubnetsUsage",
|
|
122
|
-
type: {
|
|
123
|
-
name: "Sequence",
|
|
124
|
-
element: {
|
|
125
|
-
type: {
|
|
126
|
-
name: "Composite",
|
|
127
|
-
className: "DelegatedSubnetUsage"
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
var StorageMBCapability = {
|
|
136
|
-
serializedName: "StorageMBCapability",
|
|
137
|
-
type: {
|
|
138
|
-
name: "Composite",
|
|
139
|
-
className: "StorageMBCapability",
|
|
140
|
-
modelProperties: {
|
|
141
|
-
name: {
|
|
142
|
-
readOnly: true,
|
|
143
|
-
serializedName: "name",
|
|
144
|
-
type: {
|
|
145
|
-
name: "String"
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
supportedIops: {
|
|
149
|
-
readOnly: true,
|
|
150
|
-
serializedName: "supportedIops",
|
|
151
|
-
type: {
|
|
152
|
-
name: "Number"
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
storageSizeMB: {
|
|
156
|
-
readOnly: true,
|
|
157
|
-
serializedName: "storageSizeMB",
|
|
158
|
-
type: {
|
|
159
|
-
name: "Number"
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
var VcoreCapability = {
|
|
166
|
-
serializedName: "VcoreCapability",
|
|
167
|
-
type: {
|
|
168
|
-
name: "Composite",
|
|
169
|
-
className: "VcoreCapability",
|
|
170
|
-
modelProperties: {
|
|
171
|
-
name: {
|
|
172
|
-
readOnly: true,
|
|
173
|
-
serializedName: "name",
|
|
174
|
-
type: {
|
|
175
|
-
name: "String"
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
vCores: {
|
|
179
|
-
readOnly: true,
|
|
180
|
-
serializedName: "vCores",
|
|
181
|
-
type: {
|
|
182
|
-
name: "Number"
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
supportedIops: {
|
|
186
|
-
readOnly: true,
|
|
187
|
-
serializedName: "supportedIops",
|
|
188
|
-
type: {
|
|
189
|
-
name: "Number"
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
supportedMemoryPerVcoreMB: {
|
|
193
|
-
readOnly: true,
|
|
194
|
-
serializedName: "supportedMemoryPerVcoreMB",
|
|
195
|
-
type: {
|
|
196
|
-
name: "Number"
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
var ServerVersionCapability = {
|
|
203
|
-
serializedName: "ServerVersionCapability",
|
|
204
|
-
type: {
|
|
205
|
-
name: "Composite",
|
|
206
|
-
className: "ServerVersionCapability",
|
|
207
|
-
modelProperties: {
|
|
208
|
-
name: {
|
|
209
|
-
readOnly: true,
|
|
210
|
-
serializedName: "name",
|
|
211
|
-
type: {
|
|
212
|
-
name: "String"
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
supportedVcores: {
|
|
216
|
-
readOnly: true,
|
|
217
|
-
serializedName: "supportedVcores",
|
|
218
|
-
type: {
|
|
219
|
-
name: "Sequence",
|
|
220
|
-
element: {
|
|
221
|
-
type: {
|
|
222
|
-
name: "Composite",
|
|
223
|
-
className: "VcoreCapability"
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
var StorageEditionCapability = {
|
|
232
|
-
serializedName: "StorageEditionCapability",
|
|
233
|
-
type: {
|
|
234
|
-
name: "Composite",
|
|
235
|
-
className: "StorageEditionCapability",
|
|
236
|
-
modelProperties: {
|
|
237
|
-
name: {
|
|
238
|
-
readOnly: true,
|
|
239
|
-
serializedName: "name",
|
|
240
|
-
type: {
|
|
241
|
-
name: "String"
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
supportedStorageMB: {
|
|
245
|
-
readOnly: true,
|
|
246
|
-
serializedName: "supportedStorageMB",
|
|
247
|
-
type: {
|
|
248
|
-
name: "Sequence",
|
|
249
|
-
element: {
|
|
250
|
-
type: {
|
|
251
|
-
name: "Composite",
|
|
252
|
-
className: "StorageMBCapability"
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
var ServerEditionCapability = {
|
|
261
|
-
serializedName: "ServerEditionCapability",
|
|
262
|
-
type: {
|
|
263
|
-
name: "Composite",
|
|
264
|
-
className: "ServerEditionCapability",
|
|
265
|
-
modelProperties: {
|
|
266
|
-
name: {
|
|
267
|
-
readOnly: true,
|
|
268
|
-
serializedName: "name",
|
|
269
|
-
type: {
|
|
270
|
-
name: "String"
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
supportedStorageEditions: {
|
|
274
|
-
readOnly: true,
|
|
275
|
-
serializedName: "supportedStorageEditions",
|
|
276
|
-
type: {
|
|
277
|
-
name: "Sequence",
|
|
278
|
-
element: {
|
|
279
|
-
type: {
|
|
280
|
-
name: "Composite",
|
|
281
|
-
className: "StorageEditionCapability"
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
supportedServerVersions: {
|
|
287
|
-
readOnly: true,
|
|
288
|
-
serializedName: "supportedServerVersions",
|
|
289
|
-
type: {
|
|
290
|
-
name: "Sequence",
|
|
291
|
-
element: {
|
|
292
|
-
type: {
|
|
293
|
-
name: "Composite",
|
|
294
|
-
className: "ServerVersionCapability"
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
|
-
var CapabilityProperties = {
|
|
303
|
-
serializedName: "CapabilityProperties",
|
|
304
|
-
type: {
|
|
305
|
-
name: "Composite",
|
|
306
|
-
className: "CapabilityProperties",
|
|
307
|
-
modelProperties: {
|
|
308
|
-
zone: {
|
|
309
|
-
readOnly: true,
|
|
310
|
-
serializedName: "zone",
|
|
311
|
-
type: {
|
|
312
|
-
name: "String"
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
supportedFlexibleServerEditions: {
|
|
316
|
-
readOnly: true,
|
|
317
|
-
serializedName: "supportedFlexibleServerEditions",
|
|
318
|
-
type: {
|
|
319
|
-
name: "Sequence",
|
|
320
|
-
element: {
|
|
321
|
-
type: {
|
|
322
|
-
name: "Composite",
|
|
323
|
-
className: "ServerEditionCapability"
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
|
-
var StorageProfile = {
|
|
332
|
-
serializedName: "StorageProfile",
|
|
333
|
-
type: {
|
|
334
|
-
name: "Composite",
|
|
335
|
-
className: "StorageProfile",
|
|
336
|
-
modelProperties: {
|
|
337
|
-
backupRetentionDays: {
|
|
338
|
-
serializedName: "backupRetentionDays",
|
|
339
|
-
type: {
|
|
340
|
-
name: "Number"
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
|
-
storageMB: {
|
|
344
|
-
serializedName: "storageMB",
|
|
345
|
-
type: {
|
|
346
|
-
name: "Number"
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
};
|
|
352
|
-
var MaintenanceWindow = {
|
|
353
|
-
serializedName: "MaintenanceWindow",
|
|
354
|
-
type: {
|
|
355
|
-
name: "Composite",
|
|
356
|
-
className: "MaintenanceWindow",
|
|
357
|
-
modelProperties: {
|
|
358
|
-
customWindow: {
|
|
359
|
-
serializedName: "customWindow",
|
|
360
|
-
type: {
|
|
361
|
-
name: "String"
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
startHour: {
|
|
365
|
-
serializedName: "startHour",
|
|
366
|
-
type: {
|
|
367
|
-
name: "Number"
|
|
368
|
-
}
|
|
369
|
-
},
|
|
370
|
-
startMinute: {
|
|
371
|
-
serializedName: "startMinute",
|
|
372
|
-
type: {
|
|
373
|
-
name: "Number"
|
|
374
|
-
}
|
|
375
|
-
},
|
|
376
|
-
dayOfWeek: {
|
|
377
|
-
serializedName: "dayOfWeek",
|
|
378
|
-
type: {
|
|
379
|
-
name: "Number"
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
};
|
|
385
|
-
var ServerPropertiesDelegatedSubnetArguments = {
|
|
386
|
-
serializedName: "ServerProperties_delegatedSubnetArguments",
|
|
387
|
-
type: {
|
|
388
|
-
name: "Composite",
|
|
389
|
-
className: "ServerPropertiesDelegatedSubnetArguments",
|
|
390
|
-
modelProperties: {
|
|
391
|
-
subnetArmResourceId: {
|
|
392
|
-
serializedName: "subnetArmResourceId",
|
|
393
|
-
type: {
|
|
394
|
-
name: "String"
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
};
|
|
400
|
-
var ServerPropertiesPrivateDnsZoneArguments = {
|
|
401
|
-
serializedName: "ServerProperties_privateDnsZoneArguments",
|
|
402
|
-
type: {
|
|
403
|
-
name: "Composite",
|
|
404
|
-
className: "ServerPropertiesPrivateDnsZoneArguments",
|
|
405
|
-
modelProperties: {
|
|
406
|
-
privateDnsZoneArmResourceId: {
|
|
407
|
-
serializedName: "privateDnsZoneArmResourceId",
|
|
408
|
-
type: {
|
|
409
|
-
name: "String"
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
|
-
var Identity = {
|
|
416
|
-
serializedName: "Identity",
|
|
417
|
-
type: {
|
|
418
|
-
name: "Composite",
|
|
419
|
-
className: "Identity",
|
|
420
|
-
modelProperties: {
|
|
421
|
-
principalId: {
|
|
422
|
-
readOnly: true,
|
|
423
|
-
serializedName: "principalId",
|
|
424
|
-
type: {
|
|
425
|
-
name: "String"
|
|
426
|
-
}
|
|
427
|
-
},
|
|
428
|
-
tenantId: {
|
|
429
|
-
readOnly: true,
|
|
430
|
-
serializedName: "tenantId",
|
|
431
|
-
type: {
|
|
432
|
-
name: "String"
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
|
-
type: {
|
|
436
|
-
serializedName: "type",
|
|
437
|
-
type: {
|
|
438
|
-
name: "Enum",
|
|
439
|
-
allowedValues: [
|
|
440
|
-
"SystemAssigned"
|
|
441
|
-
]
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
};
|
|
447
|
-
var Sku = {
|
|
448
|
-
serializedName: "Sku",
|
|
449
|
-
type: {
|
|
450
|
-
name: "Composite",
|
|
451
|
-
className: "Sku",
|
|
452
|
-
modelProperties: {
|
|
453
|
-
name: {
|
|
454
|
-
required: true,
|
|
455
|
-
serializedName: "name",
|
|
456
|
-
type: {
|
|
457
|
-
name: "String"
|
|
458
|
-
}
|
|
459
|
-
},
|
|
460
|
-
tier: {
|
|
461
|
-
required: true,
|
|
462
|
-
serializedName: "tier",
|
|
463
|
-
type: {
|
|
464
|
-
name: "String"
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
};
|
|
470
|
-
var Resource = {
|
|
471
|
-
serializedName: "Resource",
|
|
472
|
-
type: {
|
|
473
|
-
name: "Composite",
|
|
474
|
-
className: "Resource",
|
|
475
|
-
modelProperties: {
|
|
476
|
-
id: {
|
|
477
|
-
readOnly: true,
|
|
478
|
-
serializedName: "id",
|
|
479
|
-
type: {
|
|
480
|
-
name: "String"
|
|
481
|
-
}
|
|
482
|
-
},
|
|
483
|
-
name: {
|
|
484
|
-
readOnly: true,
|
|
485
|
-
serializedName: "name",
|
|
486
|
-
type: {
|
|
487
|
-
name: "String"
|
|
488
|
-
}
|
|
489
|
-
},
|
|
490
|
-
type: {
|
|
491
|
-
readOnly: true,
|
|
492
|
-
serializedName: "type",
|
|
493
|
-
type: {
|
|
494
|
-
name: "String"
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
};
|
|
500
|
-
var TrackedResource = {
|
|
501
|
-
serializedName: "TrackedResource",
|
|
502
|
-
type: {
|
|
503
|
-
name: "Composite",
|
|
504
|
-
className: "TrackedResource",
|
|
505
|
-
modelProperties: __assign(__assign({}, Resource.type.modelProperties), { tags: {
|
|
506
|
-
serializedName: "tags",
|
|
507
|
-
type: {
|
|
508
|
-
name: "Dictionary",
|
|
509
|
-
value: {
|
|
510
|
-
type: {
|
|
511
|
-
name: "String"
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
}, location: {
|
|
516
|
-
required: true,
|
|
517
|
-
serializedName: "location",
|
|
518
|
-
type: {
|
|
519
|
-
name: "String"
|
|
520
|
-
}
|
|
521
|
-
} })
|
|
522
|
-
}
|
|
523
|
-
};
|
|
524
|
-
var Server = {
|
|
525
|
-
serializedName: "Server",
|
|
526
|
-
type: {
|
|
527
|
-
name: "Composite",
|
|
528
|
-
className: "Server",
|
|
529
|
-
modelProperties: __assign(__assign({}, TrackedResource.type.modelProperties), { identity: {
|
|
530
|
-
serializedName: "identity",
|
|
531
|
-
type: {
|
|
532
|
-
name: "Composite",
|
|
533
|
-
className: "Identity"
|
|
534
|
-
}
|
|
535
|
-
}, sku: {
|
|
536
|
-
serializedName: "sku",
|
|
537
|
-
type: {
|
|
538
|
-
name: "Composite",
|
|
539
|
-
className: "Sku"
|
|
540
|
-
}
|
|
541
|
-
}, administratorLogin: {
|
|
542
|
-
serializedName: "properties.administratorLogin",
|
|
543
|
-
type: {
|
|
544
|
-
name: "String"
|
|
545
|
-
}
|
|
546
|
-
}, administratorLoginPassword: {
|
|
547
|
-
serializedName: "properties.administratorLoginPassword",
|
|
548
|
-
type: {
|
|
549
|
-
name: "String"
|
|
550
|
-
}
|
|
551
|
-
}, version: {
|
|
552
|
-
serializedName: "properties.version",
|
|
553
|
-
type: {
|
|
554
|
-
name: "String"
|
|
555
|
-
}
|
|
556
|
-
}, state: {
|
|
557
|
-
readOnly: true,
|
|
558
|
-
serializedName: "properties.state",
|
|
559
|
-
type: {
|
|
560
|
-
name: "String"
|
|
561
|
-
}
|
|
562
|
-
}, haState: {
|
|
563
|
-
readOnly: true,
|
|
564
|
-
serializedName: "properties.haState",
|
|
565
|
-
type: {
|
|
566
|
-
name: "String"
|
|
567
|
-
}
|
|
568
|
-
}, fullyQualifiedDomainName: {
|
|
569
|
-
readOnly: true,
|
|
570
|
-
serializedName: "properties.fullyQualifiedDomainName",
|
|
571
|
-
type: {
|
|
572
|
-
name: "String"
|
|
573
|
-
}
|
|
574
|
-
}, displayName: {
|
|
575
|
-
serializedName: "properties.displayName",
|
|
576
|
-
type: {
|
|
577
|
-
name: "String"
|
|
578
|
-
}
|
|
579
|
-
}, storageProfile: {
|
|
580
|
-
serializedName: "properties.storageProfile",
|
|
581
|
-
type: {
|
|
582
|
-
name: "Composite",
|
|
583
|
-
className: "StorageProfile"
|
|
584
|
-
}
|
|
585
|
-
}, publicNetworkAccess: {
|
|
586
|
-
readOnly: true,
|
|
587
|
-
serializedName: "properties.publicNetworkAccess",
|
|
588
|
-
type: {
|
|
589
|
-
name: "String"
|
|
590
|
-
}
|
|
591
|
-
}, maintenanceWindow: {
|
|
592
|
-
serializedName: "properties.maintenanceWindow",
|
|
593
|
-
type: {
|
|
594
|
-
name: "Composite",
|
|
595
|
-
className: "MaintenanceWindow"
|
|
596
|
-
}
|
|
597
|
-
}, haEnabled: {
|
|
598
|
-
serializedName: "properties.haEnabled",
|
|
599
|
-
type: {
|
|
600
|
-
name: "Enum",
|
|
601
|
-
allowedValues: [
|
|
602
|
-
"Enabled",
|
|
603
|
-
"Disabled"
|
|
604
|
-
]
|
|
605
|
-
}
|
|
606
|
-
}, sourceServerName: {
|
|
607
|
-
serializedName: "properties.sourceServerName",
|
|
608
|
-
type: {
|
|
609
|
-
name: "String"
|
|
610
|
-
}
|
|
611
|
-
}, sourceSubscriptionId: {
|
|
612
|
-
serializedName: "properties.sourceSubscriptionId",
|
|
613
|
-
type: {
|
|
614
|
-
name: "String"
|
|
615
|
-
}
|
|
616
|
-
}, sourceResourceGroupName: {
|
|
617
|
-
serializedName: "properties.sourceResourceGroupName",
|
|
618
|
-
type: {
|
|
619
|
-
name: "String"
|
|
620
|
-
}
|
|
621
|
-
}, pointInTimeUTC: {
|
|
622
|
-
serializedName: "properties.pointInTimeUTC",
|
|
623
|
-
type: {
|
|
624
|
-
name: "DateTime"
|
|
625
|
-
}
|
|
626
|
-
}, availabilityZone: {
|
|
627
|
-
serializedName: "properties.availabilityZone",
|
|
628
|
-
type: {
|
|
629
|
-
name: "String"
|
|
630
|
-
}
|
|
631
|
-
}, standbyAvailabilityZone: {
|
|
632
|
-
readOnly: true,
|
|
633
|
-
serializedName: "properties.standbyAvailabilityZone",
|
|
634
|
-
type: {
|
|
635
|
-
name: "String"
|
|
636
|
-
}
|
|
637
|
-
}, byokEnforcement: {
|
|
638
|
-
readOnly: true,
|
|
639
|
-
serializedName: "properties.byokEnforcement",
|
|
640
|
-
type: {
|
|
641
|
-
name: "String"
|
|
642
|
-
}
|
|
643
|
-
}, delegatedSubnetArguments: {
|
|
644
|
-
serializedName: "properties.delegatedSubnetArguments",
|
|
645
|
-
type: {
|
|
646
|
-
name: "Composite",
|
|
647
|
-
className: "ServerPropertiesDelegatedSubnetArguments"
|
|
648
|
-
}
|
|
649
|
-
}, privateDnsZoneArguments: {
|
|
650
|
-
serializedName: "properties.privateDnsZoneArguments",
|
|
651
|
-
type: {
|
|
652
|
-
name: "Composite",
|
|
653
|
-
className: "ServerPropertiesPrivateDnsZoneArguments"
|
|
654
|
-
}
|
|
655
|
-
}, createMode: {
|
|
656
|
-
serializedName: "properties.createMode",
|
|
657
|
-
type: {
|
|
658
|
-
name: "String"
|
|
659
|
-
}
|
|
660
|
-
}, serverTags: {
|
|
661
|
-
serializedName: "properties.tags",
|
|
662
|
-
type: {
|
|
663
|
-
name: "Dictionary",
|
|
664
|
-
value: {
|
|
665
|
-
type: {
|
|
666
|
-
name: "String"
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
} })
|
|
671
|
-
}
|
|
672
|
-
};
|
|
673
|
-
var ServerForUpdate = {
|
|
674
|
-
serializedName: "ServerForUpdate",
|
|
675
|
-
type: {
|
|
676
|
-
name: "Composite",
|
|
677
|
-
className: "ServerForUpdate",
|
|
678
|
-
modelProperties: {
|
|
679
|
-
location: {
|
|
680
|
-
serializedName: "location",
|
|
681
|
-
type: {
|
|
682
|
-
name: "String"
|
|
683
|
-
}
|
|
684
|
-
},
|
|
685
|
-
sku: {
|
|
686
|
-
serializedName: "sku",
|
|
687
|
-
type: {
|
|
688
|
-
name: "Composite",
|
|
689
|
-
className: "Sku"
|
|
690
|
-
}
|
|
691
|
-
},
|
|
692
|
-
administratorLoginPassword: {
|
|
693
|
-
serializedName: "properties.administratorLoginPassword",
|
|
694
|
-
type: {
|
|
695
|
-
name: "String"
|
|
696
|
-
}
|
|
697
|
-
},
|
|
698
|
-
storageProfile: {
|
|
699
|
-
serializedName: "properties.storageProfile",
|
|
700
|
-
type: {
|
|
701
|
-
name: "Composite",
|
|
702
|
-
className: "StorageProfile"
|
|
703
|
-
}
|
|
704
|
-
},
|
|
705
|
-
haEnabled: {
|
|
706
|
-
serializedName: "properties.haEnabled",
|
|
707
|
-
type: {
|
|
708
|
-
name: "Enum",
|
|
709
|
-
allowedValues: [
|
|
710
|
-
"Enabled",
|
|
711
|
-
"Disabled"
|
|
712
|
-
]
|
|
713
|
-
}
|
|
714
|
-
},
|
|
715
|
-
maintenanceWindow: {
|
|
716
|
-
serializedName: "properties.maintenanceWindow",
|
|
717
|
-
type: {
|
|
718
|
-
name: "Composite",
|
|
719
|
-
className: "MaintenanceWindow"
|
|
720
|
-
}
|
|
721
|
-
},
|
|
722
|
-
tags: {
|
|
723
|
-
serializedName: "tags",
|
|
724
|
-
type: {
|
|
725
|
-
name: "Dictionary",
|
|
726
|
-
value: {
|
|
727
|
-
type: {
|
|
728
|
-
name: "String"
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
};
|
|
736
|
-
var ProxyResource = {
|
|
737
|
-
serializedName: "ProxyResource",
|
|
738
|
-
type: {
|
|
739
|
-
name: "Composite",
|
|
740
|
-
className: "ProxyResource",
|
|
741
|
-
modelProperties: __assign({}, Resource.type.modelProperties)
|
|
742
|
-
}
|
|
743
|
-
};
|
|
744
|
-
var FirewallRule = {
|
|
745
|
-
serializedName: "FirewallRule",
|
|
746
|
-
type: {
|
|
747
|
-
name: "Composite",
|
|
748
|
-
className: "FirewallRule",
|
|
749
|
-
modelProperties: __assign(__assign({}, ProxyResource.type.modelProperties), { startIpAddress: {
|
|
750
|
-
required: true,
|
|
751
|
-
serializedName: "properties.startIpAddress",
|
|
752
|
-
constraints: {
|
|
753
|
-
Pattern: /^(([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])$/
|
|
754
|
-
},
|
|
755
|
-
type: {
|
|
756
|
-
name: "String"
|
|
757
|
-
}
|
|
758
|
-
}, endIpAddress: {
|
|
759
|
-
required: true,
|
|
760
|
-
serializedName: "properties.endIpAddress",
|
|
761
|
-
constraints: {
|
|
762
|
-
Pattern: /^(([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])$/
|
|
763
|
-
},
|
|
764
|
-
type: {
|
|
765
|
-
name: "String"
|
|
766
|
-
}
|
|
767
|
-
} })
|
|
768
|
-
}
|
|
769
|
-
};
|
|
770
|
-
var Configuration = {
|
|
771
|
-
serializedName: "Configuration",
|
|
772
|
-
type: {
|
|
773
|
-
name: "Composite",
|
|
774
|
-
className: "Configuration",
|
|
775
|
-
modelProperties: __assign(__assign({}, ProxyResource.type.modelProperties), { value: {
|
|
776
|
-
serializedName: "properties.value",
|
|
777
|
-
type: {
|
|
778
|
-
name: "String"
|
|
779
|
-
}
|
|
780
|
-
}, description: {
|
|
781
|
-
readOnly: true,
|
|
782
|
-
serializedName: "properties.description",
|
|
783
|
-
type: {
|
|
784
|
-
name: "String"
|
|
785
|
-
}
|
|
786
|
-
}, defaultValue: {
|
|
787
|
-
readOnly: true,
|
|
788
|
-
serializedName: "properties.defaultValue",
|
|
789
|
-
type: {
|
|
790
|
-
name: "String"
|
|
791
|
-
}
|
|
792
|
-
}, dataType: {
|
|
793
|
-
readOnly: true,
|
|
794
|
-
serializedName: "properties.dataType",
|
|
795
|
-
type: {
|
|
796
|
-
name: "String"
|
|
797
|
-
}
|
|
798
|
-
}, allowedValues: {
|
|
799
|
-
readOnly: true,
|
|
800
|
-
serializedName: "properties.allowedValues",
|
|
801
|
-
type: {
|
|
802
|
-
name: "String"
|
|
803
|
-
}
|
|
804
|
-
}, source: {
|
|
805
|
-
serializedName: "properties.source",
|
|
806
|
-
type: {
|
|
807
|
-
name: "String"
|
|
808
|
-
}
|
|
809
|
-
} })
|
|
810
|
-
}
|
|
811
|
-
};
|
|
812
|
-
var OperationDisplay = {
|
|
813
|
-
serializedName: "OperationDisplay",
|
|
814
|
-
type: {
|
|
815
|
-
name: "Composite",
|
|
816
|
-
className: "OperationDisplay",
|
|
817
|
-
modelProperties: {
|
|
818
|
-
provider: {
|
|
819
|
-
readOnly: true,
|
|
820
|
-
serializedName: "provider",
|
|
821
|
-
type: {
|
|
822
|
-
name: "String"
|
|
823
|
-
}
|
|
824
|
-
},
|
|
825
|
-
resource: {
|
|
826
|
-
readOnly: true,
|
|
827
|
-
serializedName: "resource",
|
|
828
|
-
type: {
|
|
829
|
-
name: "String"
|
|
830
|
-
}
|
|
831
|
-
},
|
|
832
|
-
operation: {
|
|
833
|
-
readOnly: true,
|
|
834
|
-
serializedName: "operation",
|
|
835
|
-
type: {
|
|
836
|
-
name: "String"
|
|
837
|
-
}
|
|
838
|
-
},
|
|
839
|
-
description: {
|
|
840
|
-
readOnly: true,
|
|
841
|
-
serializedName: "description",
|
|
842
|
-
type: {
|
|
843
|
-
name: "String"
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
};
|
|
849
|
-
var Operation = {
|
|
850
|
-
serializedName: "Operation",
|
|
851
|
-
type: {
|
|
852
|
-
name: "Composite",
|
|
853
|
-
className: "Operation",
|
|
854
|
-
modelProperties: {
|
|
855
|
-
name: {
|
|
856
|
-
readOnly: true,
|
|
857
|
-
serializedName: "name",
|
|
858
|
-
type: {
|
|
859
|
-
name: "String"
|
|
860
|
-
}
|
|
861
|
-
},
|
|
862
|
-
display: {
|
|
863
|
-
readOnly: true,
|
|
864
|
-
serializedName: "display",
|
|
865
|
-
type: {
|
|
866
|
-
name: "Composite",
|
|
867
|
-
className: "OperationDisplay"
|
|
868
|
-
}
|
|
869
|
-
},
|
|
870
|
-
isDataAction: {
|
|
871
|
-
serializedName: "isDataAction",
|
|
872
|
-
type: {
|
|
873
|
-
name: "Boolean"
|
|
874
|
-
}
|
|
875
|
-
},
|
|
876
|
-
origin: {
|
|
877
|
-
readOnly: true,
|
|
878
|
-
serializedName: "origin",
|
|
879
|
-
type: {
|
|
880
|
-
name: "String"
|
|
881
|
-
}
|
|
882
|
-
},
|
|
883
|
-
properties: {
|
|
884
|
-
readOnly: true,
|
|
885
|
-
serializedName: "properties",
|
|
886
|
-
type: {
|
|
887
|
-
name: "Dictionary",
|
|
888
|
-
value: {
|
|
889
|
-
type: {
|
|
890
|
-
name: "Object"
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
};
|
|
898
|
-
var OperationListResult = {
|
|
899
|
-
serializedName: "OperationListResult",
|
|
900
|
-
type: {
|
|
901
|
-
name: "Composite",
|
|
902
|
-
className: "OperationListResult",
|
|
903
|
-
modelProperties: {
|
|
904
|
-
value: {
|
|
905
|
-
serializedName: "value",
|
|
906
|
-
type: {
|
|
907
|
-
name: "Sequence",
|
|
908
|
-
element: {
|
|
909
|
-
type: {
|
|
910
|
-
name: "Composite",
|
|
911
|
-
className: "Operation"
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
|
-
},
|
|
916
|
-
nextLink: {
|
|
917
|
-
serializedName: "nextLink",
|
|
918
|
-
type: {
|
|
919
|
-
name: "String"
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
};
|
|
925
|
-
var NameAvailabilityRequest = {
|
|
926
|
-
serializedName: "NameAvailabilityRequest",
|
|
927
|
-
type: {
|
|
928
|
-
name: "Composite",
|
|
929
|
-
className: "NameAvailabilityRequest",
|
|
930
|
-
modelProperties: {
|
|
931
|
-
name: {
|
|
932
|
-
required: true,
|
|
933
|
-
serializedName: "name",
|
|
934
|
-
type: {
|
|
935
|
-
name: "String"
|
|
936
|
-
}
|
|
937
|
-
},
|
|
938
|
-
type: {
|
|
939
|
-
serializedName: "type",
|
|
940
|
-
type: {
|
|
941
|
-
name: "String"
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
};
|
|
947
|
-
var NameAvailability = {
|
|
948
|
-
serializedName: "NameAvailability",
|
|
949
|
-
type: {
|
|
950
|
-
name: "Composite",
|
|
951
|
-
className: "NameAvailability",
|
|
952
|
-
modelProperties: {
|
|
953
|
-
message: {
|
|
954
|
-
serializedName: "message",
|
|
955
|
-
type: {
|
|
956
|
-
name: "String"
|
|
957
|
-
}
|
|
958
|
-
},
|
|
959
|
-
nameAvailable: {
|
|
960
|
-
serializedName: "nameAvailable",
|
|
961
|
-
type: {
|
|
962
|
-
name: "Boolean"
|
|
963
|
-
}
|
|
964
|
-
},
|
|
965
|
-
name: {
|
|
966
|
-
serializedName: "name",
|
|
967
|
-
type: {
|
|
968
|
-
name: "String"
|
|
969
|
-
}
|
|
970
|
-
},
|
|
971
|
-
type: {
|
|
972
|
-
serializedName: "type",
|
|
973
|
-
type: {
|
|
974
|
-
name: "String"
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
};
|
|
980
|
-
var ErrorAdditionalInfo = {
|
|
981
|
-
serializedName: "ErrorAdditionalInfo",
|
|
982
|
-
type: {
|
|
983
|
-
name: "Composite",
|
|
984
|
-
className: "ErrorAdditionalInfo",
|
|
985
|
-
modelProperties: {
|
|
986
|
-
type: {
|
|
987
|
-
readOnly: true,
|
|
988
|
-
serializedName: "type",
|
|
989
|
-
type: {
|
|
990
|
-
name: "String"
|
|
991
|
-
}
|
|
992
|
-
},
|
|
993
|
-
info: {
|
|
994
|
-
readOnly: true,
|
|
995
|
-
serializedName: "info",
|
|
996
|
-
type: {
|
|
997
|
-
name: "Object"
|
|
998
|
-
}
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
};
|
|
1003
|
-
var ErrorResponse = {
|
|
1004
|
-
serializedName: "ErrorResponse",
|
|
1005
|
-
type: {
|
|
1006
|
-
name: "Composite",
|
|
1007
|
-
className: "ErrorResponse",
|
|
1008
|
-
modelProperties: {
|
|
1009
|
-
code: {
|
|
1010
|
-
readOnly: true,
|
|
1011
|
-
serializedName: "code",
|
|
1012
|
-
type: {
|
|
1013
|
-
name: "String"
|
|
1014
|
-
}
|
|
1015
|
-
},
|
|
1016
|
-
message: {
|
|
1017
|
-
readOnly: true,
|
|
1018
|
-
serializedName: "message",
|
|
1019
|
-
type: {
|
|
1020
|
-
name: "String"
|
|
1021
|
-
}
|
|
1022
|
-
},
|
|
1023
|
-
target: {
|
|
1024
|
-
readOnly: true,
|
|
1025
|
-
serializedName: "target",
|
|
1026
|
-
type: {
|
|
1027
|
-
name: "String"
|
|
1028
|
-
}
|
|
1029
|
-
},
|
|
1030
|
-
details: {
|
|
1031
|
-
readOnly: true,
|
|
1032
|
-
serializedName: "details",
|
|
1033
|
-
type: {
|
|
1034
|
-
name: "Sequence",
|
|
1035
|
-
element: {
|
|
1036
|
-
type: {
|
|
1037
|
-
name: "Composite",
|
|
1038
|
-
className: "ErrorResponse"
|
|
1039
|
-
}
|
|
1040
|
-
}
|
|
1041
|
-
}
|
|
1042
|
-
},
|
|
1043
|
-
additionalInfo: {
|
|
1044
|
-
readOnly: true,
|
|
1045
|
-
serializedName: "additionalInfo",
|
|
1046
|
-
type: {
|
|
1047
|
-
name: "Sequence",
|
|
1048
|
-
element: {
|
|
1049
|
-
type: {
|
|
1050
|
-
name: "Composite",
|
|
1051
|
-
className: "ErrorAdditionalInfo"
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
};
|
|
1059
|
-
var AzureEntityResource = {
|
|
1060
|
-
serializedName: "AzureEntityResource",
|
|
1061
|
-
type: {
|
|
1062
|
-
name: "Composite",
|
|
1063
|
-
className: "AzureEntityResource",
|
|
1064
|
-
modelProperties: __assign(__assign({}, Resource.type.modelProperties), { etag: {
|
|
1065
|
-
readOnly: true,
|
|
1066
|
-
serializedName: "etag",
|
|
1067
|
-
type: {
|
|
1068
|
-
name: "String"
|
|
1069
|
-
}
|
|
1070
|
-
} })
|
|
1071
|
-
}
|
|
1072
|
-
};
|
|
1073
|
-
var ResourceModelWithAllowedPropertySetIdentity = {
|
|
1074
|
-
serializedName: "ResourceModelWithAllowedPropertySet_identity",
|
|
1075
|
-
type: {
|
|
1076
|
-
name: "Composite",
|
|
1077
|
-
className: "ResourceModelWithAllowedPropertySetIdentity",
|
|
1078
|
-
modelProperties: __assign({}, Identity.type.modelProperties)
|
|
1079
|
-
}
|
|
1080
|
-
};
|
|
1081
|
-
var ResourceModelWithAllowedPropertySetSku = {
|
|
1082
|
-
serializedName: "ResourceModelWithAllowedPropertySet_sku",
|
|
1083
|
-
type: {
|
|
1084
|
-
name: "Composite",
|
|
1085
|
-
className: "ResourceModelWithAllowedPropertySetSku",
|
|
1086
|
-
modelProperties: __assign({}, Sku.type.modelProperties)
|
|
1087
|
-
}
|
|
1088
|
-
};
|
|
1089
|
-
var Plan = {
|
|
1090
|
-
serializedName: "Plan",
|
|
1091
|
-
type: {
|
|
1092
|
-
name: "Composite",
|
|
1093
|
-
className: "Plan",
|
|
1094
|
-
modelProperties: {
|
|
1095
|
-
name: {
|
|
1096
|
-
required: true,
|
|
1097
|
-
serializedName: "name",
|
|
1098
|
-
type: {
|
|
1099
|
-
name: "String"
|
|
1100
|
-
}
|
|
1101
|
-
},
|
|
1102
|
-
publisher: {
|
|
1103
|
-
required: true,
|
|
1104
|
-
serializedName: "publisher",
|
|
1105
|
-
type: {
|
|
1106
|
-
name: "String"
|
|
1107
|
-
}
|
|
1108
|
-
},
|
|
1109
|
-
product: {
|
|
1110
|
-
required: true,
|
|
1111
|
-
serializedName: "product",
|
|
1112
|
-
type: {
|
|
1113
|
-
name: "String"
|
|
1114
|
-
}
|
|
1115
|
-
},
|
|
1116
|
-
promotionCode: {
|
|
1117
|
-
serializedName: "promotionCode",
|
|
1118
|
-
type: {
|
|
1119
|
-
name: "String"
|
|
1120
|
-
}
|
|
1121
|
-
},
|
|
1122
|
-
version: {
|
|
1123
|
-
serializedName: "version",
|
|
1124
|
-
type: {
|
|
1125
|
-
name: "String"
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
};
|
|
1131
|
-
var ResourceModelWithAllowedPropertySetPlan = {
|
|
1132
|
-
serializedName: "ResourceModelWithAllowedPropertySet_plan",
|
|
1133
|
-
type: {
|
|
1134
|
-
name: "Composite",
|
|
1135
|
-
className: "ResourceModelWithAllowedPropertySetPlan",
|
|
1136
|
-
modelProperties: __assign({}, Plan.type.modelProperties)
|
|
1137
|
-
}
|
|
1138
|
-
};
|
|
1139
|
-
var ResourceModelWithAllowedPropertySet = {
|
|
1140
|
-
serializedName: "ResourceModelWithAllowedPropertySet",
|
|
1141
|
-
type: {
|
|
1142
|
-
name: "Composite",
|
|
1143
|
-
className: "ResourceModelWithAllowedPropertySet",
|
|
1144
|
-
modelProperties: {
|
|
1145
|
-
id: {
|
|
1146
|
-
readOnly: true,
|
|
1147
|
-
serializedName: "id",
|
|
1148
|
-
type: {
|
|
1149
|
-
name: "String"
|
|
1150
|
-
}
|
|
1151
|
-
},
|
|
1152
|
-
name: {
|
|
1153
|
-
readOnly: true,
|
|
1154
|
-
serializedName: "name",
|
|
1155
|
-
type: {
|
|
1156
|
-
name: "String"
|
|
1157
|
-
}
|
|
1158
|
-
},
|
|
1159
|
-
type: {
|
|
1160
|
-
readOnly: true,
|
|
1161
|
-
serializedName: "type",
|
|
1162
|
-
type: {
|
|
1163
|
-
name: "String"
|
|
1164
|
-
}
|
|
1165
|
-
},
|
|
1166
|
-
location: {
|
|
1167
|
-
serializedName: "location",
|
|
1168
|
-
type: {
|
|
1169
|
-
name: "String"
|
|
1170
|
-
}
|
|
1171
|
-
},
|
|
1172
|
-
managedBy: {
|
|
1173
|
-
serializedName: "managedBy",
|
|
1174
|
-
type: {
|
|
1175
|
-
name: "String"
|
|
1176
|
-
}
|
|
1177
|
-
},
|
|
1178
|
-
kind: {
|
|
1179
|
-
serializedName: "kind",
|
|
1180
|
-
constraints: {
|
|
1181
|
-
Pattern: /^[-\w\._,\(\)]+$/
|
|
1182
|
-
},
|
|
1183
|
-
type: {
|
|
1184
|
-
name: "String"
|
|
1185
|
-
}
|
|
1186
|
-
},
|
|
1187
|
-
etag: {
|
|
1188
|
-
readOnly: true,
|
|
1189
|
-
serializedName: "etag",
|
|
1190
|
-
type: {
|
|
1191
|
-
name: "String"
|
|
1192
|
-
}
|
|
1193
|
-
},
|
|
1194
|
-
tags: {
|
|
1195
|
-
serializedName: "tags",
|
|
1196
|
-
type: {
|
|
1197
|
-
name: "Dictionary",
|
|
1198
|
-
value: {
|
|
1199
|
-
type: {
|
|
1200
|
-
name: "String"
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
},
|
|
1205
|
-
identity: {
|
|
1206
|
-
serializedName: "identity",
|
|
1207
|
-
type: {
|
|
1208
|
-
name: "Composite",
|
|
1209
|
-
className: "ResourceModelWithAllowedPropertySetIdentity"
|
|
1210
|
-
}
|
|
1211
|
-
},
|
|
1212
|
-
sku: {
|
|
1213
|
-
serializedName: "sku",
|
|
1214
|
-
type: {
|
|
1215
|
-
name: "Composite",
|
|
1216
|
-
className: "ResourceModelWithAllowedPropertySetSku"
|
|
1217
|
-
}
|
|
1218
|
-
},
|
|
1219
|
-
plan: {
|
|
1220
|
-
serializedName: "plan",
|
|
1221
|
-
type: {
|
|
1222
|
-
name: "Composite",
|
|
1223
|
-
className: "ResourceModelWithAllowedPropertySetPlan"
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
};
|
|
1229
|
-
var Database = {
|
|
1230
|
-
serializedName: "Database",
|
|
1231
|
-
type: {
|
|
1232
|
-
name: "Composite",
|
|
1233
|
-
className: "Database",
|
|
1234
|
-
modelProperties: __assign(__assign({}, ProxyResource.type.modelProperties), { charset: {
|
|
1235
|
-
serializedName: "properties.charset",
|
|
1236
|
-
type: {
|
|
1237
|
-
name: "String"
|
|
1238
|
-
}
|
|
1239
|
-
}, collation: {
|
|
1240
|
-
serializedName: "properties.collation",
|
|
1241
|
-
type: {
|
|
1242
|
-
name: "String"
|
|
1243
|
-
}
|
|
1244
|
-
} })
|
|
1245
|
-
}
|
|
1246
|
-
};
|
|
1247
|
-
var ServerListResult = {
|
|
1248
|
-
serializedName: "ServerListResult",
|
|
1249
|
-
type: {
|
|
1250
|
-
name: "Composite",
|
|
1251
|
-
className: "ServerListResult",
|
|
1252
|
-
modelProperties: {
|
|
1253
|
-
value: {
|
|
1254
|
-
serializedName: "",
|
|
1255
|
-
type: {
|
|
1256
|
-
name: "Sequence",
|
|
1257
|
-
element: {
|
|
1258
|
-
type: {
|
|
1259
|
-
name: "Composite",
|
|
1260
|
-
className: "Server"
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
}
|
|
1264
|
-
},
|
|
1265
|
-
nextLink: {
|
|
1266
|
-
serializedName: "nextLink",
|
|
1267
|
-
type: {
|
|
1268
|
-
name: "String"
|
|
1269
|
-
}
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
};
|
|
1274
|
-
var FirewallRuleListResult = {
|
|
1275
|
-
serializedName: "FirewallRuleListResult",
|
|
1276
|
-
type: {
|
|
1277
|
-
name: "Composite",
|
|
1278
|
-
className: "FirewallRuleListResult",
|
|
1279
|
-
modelProperties: {
|
|
1280
|
-
value: {
|
|
1281
|
-
serializedName: "",
|
|
1282
|
-
type: {
|
|
1283
|
-
name: "Sequence",
|
|
1284
|
-
element: {
|
|
1285
|
-
type: {
|
|
1286
|
-
name: "Composite",
|
|
1287
|
-
className: "FirewallRule"
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
},
|
|
1292
|
-
nextLink: {
|
|
1293
|
-
serializedName: "nextLink",
|
|
1294
|
-
type: {
|
|
1295
|
-
name: "String"
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
};
|
|
1301
|
-
var ConfigurationListResult = {
|
|
1302
|
-
serializedName: "ConfigurationListResult",
|
|
1303
|
-
type: {
|
|
1304
|
-
name: "Composite",
|
|
1305
|
-
className: "ConfigurationListResult",
|
|
1306
|
-
modelProperties: {
|
|
1307
|
-
value: {
|
|
1308
|
-
serializedName: "",
|
|
1309
|
-
type: {
|
|
1310
|
-
name: "Sequence",
|
|
1311
|
-
element: {
|
|
1312
|
-
type: {
|
|
1313
|
-
name: "Composite",
|
|
1314
|
-
className: "Configuration"
|
|
1315
|
-
}
|
|
1316
|
-
}
|
|
1317
|
-
}
|
|
1318
|
-
},
|
|
1319
|
-
nextLink: {
|
|
1320
|
-
serializedName: "nextLink",
|
|
1321
|
-
type: {
|
|
1322
|
-
name: "String"
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
}
|
|
1327
|
-
};
|
|
1328
|
-
var CapabilitiesListResult = {
|
|
1329
|
-
serializedName: "CapabilitiesListResult",
|
|
1330
|
-
type: {
|
|
1331
|
-
name: "Composite",
|
|
1332
|
-
className: "CapabilitiesListResult",
|
|
1333
|
-
modelProperties: {
|
|
1334
|
-
value: {
|
|
1335
|
-
readOnly: true,
|
|
1336
|
-
serializedName: "",
|
|
1337
|
-
type: {
|
|
1338
|
-
name: "Sequence",
|
|
1339
|
-
element: {
|
|
1340
|
-
type: {
|
|
1341
|
-
name: "Composite",
|
|
1342
|
-
className: "CapabilityProperties"
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
}
|
|
1346
|
-
},
|
|
1347
|
-
nextLink: {
|
|
1348
|
-
readOnly: true,
|
|
1349
|
-
serializedName: "nextLink",
|
|
1350
|
-
type: {
|
|
1351
|
-
name: "String"
|
|
1352
|
-
}
|
|
1353
|
-
}
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
};
|
|
1357
|
-
var DatabaseListResult = {
|
|
1358
|
-
serializedName: "DatabaseListResult",
|
|
1359
|
-
type: {
|
|
1360
|
-
name: "Composite",
|
|
1361
|
-
className: "DatabaseListResult",
|
|
1362
|
-
modelProperties: {
|
|
1363
|
-
value: {
|
|
1364
|
-
serializedName: "",
|
|
1365
|
-
type: {
|
|
1366
|
-
name: "Sequence",
|
|
1367
|
-
element: {
|
|
1368
|
-
type: {
|
|
1369
|
-
name: "Composite",
|
|
1370
|
-
className: "Database"
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
},
|
|
1375
|
-
nextLink: {
|
|
1376
|
-
serializedName: "nextLink",
|
|
1377
|
-
type: {
|
|
1378
|
-
name: "String"
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
}
|
|
1383
|
-
};
|
|
1384
|
-
|
|
1385
|
-
var mappers = /*#__PURE__*/Object.freeze({
|
|
1386
|
-
__proto__: null,
|
|
1387
|
-
CloudError: CloudError,
|
|
1388
|
-
BaseResource: BaseResource,
|
|
1389
|
-
VirtualNetworkSubnetUsageParameter: VirtualNetworkSubnetUsageParameter,
|
|
1390
|
-
DelegatedSubnetUsage: DelegatedSubnetUsage,
|
|
1391
|
-
VirtualNetworkSubnetUsageResult: VirtualNetworkSubnetUsageResult,
|
|
1392
|
-
StorageMBCapability: StorageMBCapability,
|
|
1393
|
-
VcoreCapability: VcoreCapability,
|
|
1394
|
-
ServerVersionCapability: ServerVersionCapability,
|
|
1395
|
-
StorageEditionCapability: StorageEditionCapability,
|
|
1396
|
-
ServerEditionCapability: ServerEditionCapability,
|
|
1397
|
-
CapabilityProperties: CapabilityProperties,
|
|
1398
|
-
StorageProfile: StorageProfile,
|
|
1399
|
-
MaintenanceWindow: MaintenanceWindow,
|
|
1400
|
-
ServerPropertiesDelegatedSubnetArguments: ServerPropertiesDelegatedSubnetArguments,
|
|
1401
|
-
ServerPropertiesPrivateDnsZoneArguments: ServerPropertiesPrivateDnsZoneArguments,
|
|
1402
|
-
Identity: Identity,
|
|
1403
|
-
Sku: Sku,
|
|
1404
|
-
Resource: Resource,
|
|
1405
|
-
TrackedResource: TrackedResource,
|
|
1406
|
-
Server: Server,
|
|
1407
|
-
ServerForUpdate: ServerForUpdate,
|
|
1408
|
-
ProxyResource: ProxyResource,
|
|
1409
|
-
FirewallRule: FirewallRule,
|
|
1410
|
-
Configuration: Configuration,
|
|
1411
|
-
OperationDisplay: OperationDisplay,
|
|
1412
|
-
Operation: Operation,
|
|
1413
|
-
OperationListResult: OperationListResult,
|
|
1414
|
-
NameAvailabilityRequest: NameAvailabilityRequest,
|
|
1415
|
-
NameAvailability: NameAvailability,
|
|
1416
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1417
|
-
ErrorResponse: ErrorResponse,
|
|
1418
|
-
AzureEntityResource: AzureEntityResource,
|
|
1419
|
-
ResourceModelWithAllowedPropertySetIdentity: ResourceModelWithAllowedPropertySetIdentity,
|
|
1420
|
-
ResourceModelWithAllowedPropertySetSku: ResourceModelWithAllowedPropertySetSku,
|
|
1421
|
-
Plan: Plan,
|
|
1422
|
-
ResourceModelWithAllowedPropertySetPlan: ResourceModelWithAllowedPropertySetPlan,
|
|
1423
|
-
ResourceModelWithAllowedPropertySet: ResourceModelWithAllowedPropertySet,
|
|
1424
|
-
Database: Database,
|
|
1425
|
-
ServerListResult: ServerListResult,
|
|
1426
|
-
FirewallRuleListResult: FirewallRuleListResult,
|
|
1427
|
-
ConfigurationListResult: ConfigurationListResult,
|
|
1428
|
-
CapabilitiesListResult: CapabilitiesListResult,
|
|
1429
|
-
DatabaseListResult: DatabaseListResult
|
|
1430
|
-
});
|
|
1431
|
-
|
|
1432
|
-
/*
|
|
1433
|
-
* Copyright (c) Microsoft Corporation.
|
|
1434
|
-
* Licensed under the MIT License.
|
|
1435
|
-
*
|
|
1436
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1437
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1438
|
-
*/
|
|
1439
|
-
|
|
1440
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1441
|
-
__proto__: null,
|
|
1442
|
-
AzureEntityResource: AzureEntityResource,
|
|
1443
|
-
BaseResource: BaseResource,
|
|
1444
|
-
CloudError: CloudError,
|
|
1445
|
-
Configuration: Configuration,
|
|
1446
|
-
Database: Database,
|
|
1447
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1448
|
-
ErrorResponse: ErrorResponse,
|
|
1449
|
-
FirewallRule: FirewallRule,
|
|
1450
|
-
Identity: Identity,
|
|
1451
|
-
MaintenanceWindow: MaintenanceWindow,
|
|
1452
|
-
Plan: Plan,
|
|
1453
|
-
ProxyResource: ProxyResource,
|
|
1454
|
-
Resource: Resource,
|
|
1455
|
-
ResourceModelWithAllowedPropertySet: ResourceModelWithAllowedPropertySet,
|
|
1456
|
-
ResourceModelWithAllowedPropertySetIdentity: ResourceModelWithAllowedPropertySetIdentity,
|
|
1457
|
-
ResourceModelWithAllowedPropertySetPlan: ResourceModelWithAllowedPropertySetPlan,
|
|
1458
|
-
ResourceModelWithAllowedPropertySetSku: ResourceModelWithAllowedPropertySetSku,
|
|
1459
|
-
Server: Server,
|
|
1460
|
-
ServerForUpdate: ServerForUpdate,
|
|
1461
|
-
ServerListResult: ServerListResult,
|
|
1462
|
-
ServerPropertiesDelegatedSubnetArguments: ServerPropertiesDelegatedSubnetArguments,
|
|
1463
|
-
ServerPropertiesPrivateDnsZoneArguments: ServerPropertiesPrivateDnsZoneArguments,
|
|
1464
|
-
Sku: Sku,
|
|
1465
|
-
StorageProfile: StorageProfile,
|
|
1466
|
-
TrackedResource: TrackedResource
|
|
1467
|
-
});
|
|
1468
|
-
|
|
1469
|
-
/*
|
|
1470
|
-
* Copyright (c) Microsoft Corporation.
|
|
1471
|
-
* Licensed under the MIT License.
|
|
1472
|
-
*
|
|
1473
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1474
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1475
|
-
* regenerated.
|
|
1476
|
-
*/
|
|
1477
|
-
var acceptLanguage = {
|
|
1478
|
-
parameterPath: "acceptLanguage",
|
|
1479
|
-
mapper: {
|
|
1480
|
-
serializedName: "accept-language",
|
|
1481
|
-
defaultValue: 'en-US',
|
|
1482
|
-
type: {
|
|
1483
|
-
name: "String"
|
|
1484
|
-
}
|
|
1485
|
-
}
|
|
1486
|
-
};
|
|
1487
|
-
var apiVersion0 = {
|
|
1488
|
-
parameterPath: "apiVersion",
|
|
1489
|
-
mapper: {
|
|
1490
|
-
required: true,
|
|
1491
|
-
isConstant: true,
|
|
1492
|
-
serializedName: "api-version",
|
|
1493
|
-
defaultValue: '2020-02-14-preview',
|
|
1494
|
-
constraints: {
|
|
1495
|
-
MinLength: 1
|
|
1496
|
-
},
|
|
1497
|
-
type: {
|
|
1498
|
-
name: "String"
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
};
|
|
1502
|
-
var apiVersion1 = {
|
|
1503
|
-
parameterPath: "apiVersion",
|
|
1504
|
-
mapper: {
|
|
1505
|
-
required: true,
|
|
1506
|
-
isConstant: true,
|
|
1507
|
-
serializedName: "api-version",
|
|
1508
|
-
defaultValue: '2020-11-05-preview',
|
|
1509
|
-
constraints: {
|
|
1510
|
-
MinLength: 1
|
|
1511
|
-
},
|
|
1512
|
-
type: {
|
|
1513
|
-
name: "String"
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
1516
|
-
};
|
|
1517
|
-
var apiVersion2 = {
|
|
1518
|
-
parameterPath: "apiVersion",
|
|
1519
|
-
mapper: {
|
|
1520
|
-
required: true,
|
|
1521
|
-
isConstant: true,
|
|
1522
|
-
serializedName: "api-version",
|
|
1523
|
-
defaultValue: '2021-03-31-privatepreview',
|
|
1524
|
-
constraints: {
|
|
1525
|
-
MinLength: 1
|
|
1526
|
-
},
|
|
1527
|
-
type: {
|
|
1528
|
-
name: "String"
|
|
1529
|
-
}
|
|
1530
|
-
}
|
|
1531
|
-
};
|
|
1532
|
-
var configurationName = {
|
|
1533
|
-
parameterPath: "configurationName",
|
|
1534
|
-
mapper: {
|
|
1535
|
-
required: true,
|
|
1536
|
-
serializedName: "configurationName",
|
|
1537
|
-
type: {
|
|
1538
|
-
name: "String"
|
|
1539
|
-
}
|
|
1540
|
-
}
|
|
1541
|
-
};
|
|
1542
|
-
var databaseName = {
|
|
1543
|
-
parameterPath: "databaseName",
|
|
1544
|
-
mapper: {
|
|
1545
|
-
required: true,
|
|
1546
|
-
serializedName: "databaseName",
|
|
1547
|
-
type: {
|
|
1548
|
-
name: "String"
|
|
1549
|
-
}
|
|
1550
|
-
}
|
|
1551
|
-
};
|
|
1552
|
-
var firewallRuleName = {
|
|
1553
|
-
parameterPath: "firewallRuleName",
|
|
1554
|
-
mapper: {
|
|
1555
|
-
required: true,
|
|
1556
|
-
serializedName: "firewallRuleName",
|
|
1557
|
-
type: {
|
|
1558
|
-
name: "String"
|
|
1559
|
-
}
|
|
1560
|
-
}
|
|
1561
|
-
};
|
|
1562
|
-
var locationName = {
|
|
1563
|
-
parameterPath: "locationName",
|
|
1564
|
-
mapper: {
|
|
1565
|
-
required: true,
|
|
1566
|
-
serializedName: "locationName",
|
|
1567
|
-
type: {
|
|
1568
|
-
name: "String"
|
|
1569
|
-
}
|
|
1570
|
-
}
|
|
1571
|
-
};
|
|
1572
|
-
var nextPageLink = {
|
|
1573
|
-
parameterPath: "nextPageLink",
|
|
1574
|
-
mapper: {
|
|
1575
|
-
required: true,
|
|
1576
|
-
serializedName: "nextLink",
|
|
1577
|
-
type: {
|
|
1578
|
-
name: "String"
|
|
1579
|
-
}
|
|
1580
|
-
},
|
|
1581
|
-
skipEncoding: true
|
|
1582
|
-
};
|
|
1583
|
-
var resourceGroupName = {
|
|
1584
|
-
parameterPath: "resourceGroupName",
|
|
1585
|
-
mapper: {
|
|
1586
|
-
required: true,
|
|
1587
|
-
serializedName: "resourceGroupName",
|
|
1588
|
-
constraints: {
|
|
1589
|
-
MaxLength: 90,
|
|
1590
|
-
MinLength: 1
|
|
1591
|
-
},
|
|
1592
|
-
type: {
|
|
1593
|
-
name: "String"
|
|
1594
|
-
}
|
|
1595
|
-
}
|
|
1596
|
-
};
|
|
1597
|
-
var serverName = {
|
|
1598
|
-
parameterPath: "serverName",
|
|
1599
|
-
mapper: {
|
|
1600
|
-
required: true,
|
|
1601
|
-
serializedName: "serverName",
|
|
1602
|
-
type: {
|
|
1603
|
-
name: "String"
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
};
|
|
1607
|
-
var subscriptionId = {
|
|
1608
|
-
parameterPath: "subscriptionId",
|
|
1609
|
-
mapper: {
|
|
1610
|
-
required: true,
|
|
1611
|
-
serializedName: "subscriptionId",
|
|
1612
|
-
constraints: {
|
|
1613
|
-
MinLength: 1
|
|
1614
|
-
},
|
|
1615
|
-
type: {
|
|
1616
|
-
name: "String"
|
|
1617
|
-
}
|
|
1618
|
-
}
|
|
1619
|
-
};
|
|
1620
|
-
|
|
1621
|
-
/*
|
|
1622
|
-
* Copyright (c) Microsoft Corporation.
|
|
1623
|
-
* Licensed under the MIT License.
|
|
1624
|
-
*
|
|
1625
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1626
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
1627
|
-
* regenerated.
|
|
1628
|
-
*/
|
|
1629
|
-
/** Class representing a Servers. */
|
|
1630
|
-
var Servers = /** @class */ (function () {
|
|
1631
|
-
/**
|
|
1632
|
-
* Create a Servers.
|
|
1633
|
-
* @param {PostgreSQLManagementClientContext} client Reference to the service client.
|
|
1634
|
-
*/
|
|
1635
|
-
function Servers(client) {
|
|
1636
|
-
this.client = client;
|
|
1637
|
-
}
|
|
1638
|
-
/**
|
|
1639
|
-
* Creates a new server.
|
|
1640
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1641
|
-
* @param serverName The name of the server.
|
|
1642
|
-
* @param parameters The required parameters for creating or updating a server.
|
|
1643
|
-
* @param [options] The optional parameters
|
|
1644
|
-
* @returns Promise<Models.ServersCreateResponse>
|
|
1645
|
-
*/
|
|
1646
|
-
Servers.prototype.create = function (resourceGroupName, serverName, parameters, options) {
|
|
1647
|
-
return this.beginCreate(resourceGroupName, serverName, parameters, options)
|
|
1648
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
1649
|
-
};
|
|
1650
|
-
/**
|
|
1651
|
-
* Updates an existing server. The request body can contain one to many of the properties present
|
|
1652
|
-
* in the normal server definition.
|
|
1653
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1654
|
-
* @param serverName The name of the server.
|
|
1655
|
-
* @param parameters The required parameters for updating a server.
|
|
1656
|
-
* @param [options] The optional parameters
|
|
1657
|
-
* @returns Promise<Models.ServersUpdateResponse>
|
|
1658
|
-
*/
|
|
1659
|
-
Servers.prototype.update = function (resourceGroupName, serverName, parameters, options) {
|
|
1660
|
-
return this.beginUpdate(resourceGroupName, serverName, parameters, options)
|
|
1661
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
1662
|
-
};
|
|
1663
|
-
/**
|
|
1664
|
-
* Deletes a server.
|
|
1665
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1666
|
-
* @param serverName The name of the server.
|
|
1667
|
-
* @param [options] The optional parameters
|
|
1668
|
-
* @returns Promise<msRest.RestResponse>
|
|
1669
|
-
*/
|
|
1670
|
-
Servers.prototype.deleteMethod = function (resourceGroupName, serverName, options) {
|
|
1671
|
-
return this.beginDeleteMethod(resourceGroupName, serverName, options)
|
|
1672
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
1673
|
-
};
|
|
1674
|
-
Servers.prototype.get = function (resourceGroupName, serverName, options, callback) {
|
|
1675
|
-
return this.client.sendOperationRequest({
|
|
1676
|
-
resourceGroupName: resourceGroupName,
|
|
1677
|
-
serverName: serverName,
|
|
1678
|
-
options: options
|
|
1679
|
-
}, getOperationSpec, callback);
|
|
1680
|
-
};
|
|
1681
|
-
Servers.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {
|
|
1682
|
-
return this.client.sendOperationRequest({
|
|
1683
|
-
resourceGroupName: resourceGroupName,
|
|
1684
|
-
options: options
|
|
1685
|
-
}, listByResourceGroupOperationSpec, callback);
|
|
1686
|
-
};
|
|
1687
|
-
Servers.prototype.list = function (options, callback) {
|
|
1688
|
-
return this.client.sendOperationRequest({
|
|
1689
|
-
options: options
|
|
1690
|
-
}, listOperationSpec, callback);
|
|
1691
|
-
};
|
|
1692
|
-
/**
|
|
1693
|
-
* Restarts a server.
|
|
1694
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1695
|
-
* @param serverName The name of the server.
|
|
1696
|
-
* @param [options] The optional parameters
|
|
1697
|
-
* @returns Promise<msRest.RestResponse>
|
|
1698
|
-
*/
|
|
1699
|
-
Servers.prototype.restart = function (resourceGroupName, serverName, options) {
|
|
1700
|
-
return this.beginRestart(resourceGroupName, serverName, options)
|
|
1701
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
1702
|
-
};
|
|
1703
|
-
/**
|
|
1704
|
-
* Starts a server.
|
|
1705
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1706
|
-
* @param serverName The name of the server.
|
|
1707
|
-
* @param [options] The optional parameters
|
|
1708
|
-
* @returns Promise<msRest.RestResponse>
|
|
1709
|
-
*/
|
|
1710
|
-
Servers.prototype.start = function (resourceGroupName, serverName, options) {
|
|
1711
|
-
return this.beginStart(resourceGroupName, serverName, options)
|
|
1712
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
1713
|
-
};
|
|
1714
|
-
/**
|
|
1715
|
-
* Stops a server.
|
|
1716
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1717
|
-
* @param serverName The name of the server.
|
|
1718
|
-
* @param [options] The optional parameters
|
|
1719
|
-
* @returns Promise<msRest.RestResponse>
|
|
1720
|
-
*/
|
|
1721
|
-
Servers.prototype.stop = function (resourceGroupName, serverName, options) {
|
|
1722
|
-
return this.beginStop(resourceGroupName, serverName, options)
|
|
1723
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
1724
|
-
};
|
|
1725
|
-
/**
|
|
1726
|
-
* Creates a new server.
|
|
1727
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1728
|
-
* @param serverName The name of the server.
|
|
1729
|
-
* @param parameters The required parameters for creating or updating a server.
|
|
1730
|
-
* @param [options] The optional parameters
|
|
1731
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1732
|
-
*/
|
|
1733
|
-
Servers.prototype.beginCreate = function (resourceGroupName, serverName, parameters, options) {
|
|
1734
|
-
return this.client.sendLRORequest({
|
|
1735
|
-
resourceGroupName: resourceGroupName,
|
|
1736
|
-
serverName: serverName,
|
|
1737
|
-
parameters: parameters,
|
|
1738
|
-
options: options
|
|
1739
|
-
}, beginCreateOperationSpec, options);
|
|
1740
|
-
};
|
|
1741
|
-
/**
|
|
1742
|
-
* Updates an existing server. The request body can contain one to many of the properties present
|
|
1743
|
-
* in the normal server definition.
|
|
1744
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1745
|
-
* @param serverName The name of the server.
|
|
1746
|
-
* @param parameters The required parameters for updating a server.
|
|
1747
|
-
* @param [options] The optional parameters
|
|
1748
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1749
|
-
*/
|
|
1750
|
-
Servers.prototype.beginUpdate = function (resourceGroupName, serverName, parameters, options) {
|
|
1751
|
-
return this.client.sendLRORequest({
|
|
1752
|
-
resourceGroupName: resourceGroupName,
|
|
1753
|
-
serverName: serverName,
|
|
1754
|
-
parameters: parameters,
|
|
1755
|
-
options: options
|
|
1756
|
-
}, beginUpdateOperationSpec, options);
|
|
1757
|
-
};
|
|
1758
|
-
/**
|
|
1759
|
-
* Deletes a server.
|
|
1760
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1761
|
-
* @param serverName The name of the server.
|
|
1762
|
-
* @param [options] The optional parameters
|
|
1763
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1764
|
-
*/
|
|
1765
|
-
Servers.prototype.beginDeleteMethod = function (resourceGroupName, serverName, options) {
|
|
1766
|
-
return this.client.sendLRORequest({
|
|
1767
|
-
resourceGroupName: resourceGroupName,
|
|
1768
|
-
serverName: serverName,
|
|
1769
|
-
options: options
|
|
1770
|
-
}, beginDeleteMethodOperationSpec, options);
|
|
1771
|
-
};
|
|
1772
|
-
/**
|
|
1773
|
-
* Restarts a server.
|
|
1774
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1775
|
-
* @param serverName The name of the server.
|
|
1776
|
-
* @param [options] The optional parameters
|
|
1777
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1778
|
-
*/
|
|
1779
|
-
Servers.prototype.beginRestart = function (resourceGroupName, serverName, options) {
|
|
1780
|
-
return this.client.sendLRORequest({
|
|
1781
|
-
resourceGroupName: resourceGroupName,
|
|
1782
|
-
serverName: serverName,
|
|
1783
|
-
options: options
|
|
1784
|
-
}, beginRestartOperationSpec, options);
|
|
1785
|
-
};
|
|
1786
|
-
/**
|
|
1787
|
-
* Starts a server.
|
|
1788
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1789
|
-
* @param serverName The name of the server.
|
|
1790
|
-
* @param [options] The optional parameters
|
|
1791
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1792
|
-
*/
|
|
1793
|
-
Servers.prototype.beginStart = function (resourceGroupName, serverName, options) {
|
|
1794
|
-
return this.client.sendLRORequest({
|
|
1795
|
-
resourceGroupName: resourceGroupName,
|
|
1796
|
-
serverName: serverName,
|
|
1797
|
-
options: options
|
|
1798
|
-
}, beginStartOperationSpec, options);
|
|
1799
|
-
};
|
|
1800
|
-
/**
|
|
1801
|
-
* Stops a server.
|
|
1802
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1803
|
-
* @param serverName The name of the server.
|
|
1804
|
-
* @param [options] The optional parameters
|
|
1805
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1806
|
-
*/
|
|
1807
|
-
Servers.prototype.beginStop = function (resourceGroupName, serverName, options) {
|
|
1808
|
-
return this.client.sendLRORequest({
|
|
1809
|
-
resourceGroupName: resourceGroupName,
|
|
1810
|
-
serverName: serverName,
|
|
1811
|
-
options: options
|
|
1812
|
-
}, beginStopOperationSpec, options);
|
|
1813
|
-
};
|
|
1814
|
-
Servers.prototype.listByResourceGroupNext = function (nextPageLink, options, callback) {
|
|
1815
|
-
return this.client.sendOperationRequest({
|
|
1816
|
-
nextPageLink: nextPageLink,
|
|
1817
|
-
options: options
|
|
1818
|
-
}, listByResourceGroupNextOperationSpec, callback);
|
|
1819
|
-
};
|
|
1820
|
-
Servers.prototype.listNext = function (nextPageLink, options, callback) {
|
|
1821
|
-
return this.client.sendOperationRequest({
|
|
1822
|
-
nextPageLink: nextPageLink,
|
|
1823
|
-
options: options
|
|
1824
|
-
}, listNextOperationSpec, callback);
|
|
1825
|
-
};
|
|
1826
|
-
return Servers;
|
|
1827
|
-
}());
|
|
1828
|
-
// Operation Specifications
|
|
1829
|
-
var serializer = new msRest.Serializer(Mappers);
|
|
1830
|
-
var getOperationSpec = {
|
|
1831
|
-
httpMethod: "GET",
|
|
1832
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}",
|
|
1833
|
-
urlParameters: [
|
|
1834
|
-
subscriptionId,
|
|
1835
|
-
resourceGroupName,
|
|
1836
|
-
serverName
|
|
1837
|
-
],
|
|
1838
|
-
queryParameters: [
|
|
1839
|
-
apiVersion0
|
|
1840
|
-
],
|
|
1841
|
-
headerParameters: [
|
|
1842
|
-
acceptLanguage
|
|
1843
|
-
],
|
|
1844
|
-
responses: {
|
|
1845
|
-
200: {
|
|
1846
|
-
bodyMapper: Server
|
|
1847
|
-
},
|
|
1848
|
-
default: {
|
|
1849
|
-
bodyMapper: CloudError
|
|
1850
|
-
}
|
|
1851
|
-
},
|
|
1852
|
-
serializer: serializer
|
|
1853
|
-
};
|
|
1854
|
-
var listByResourceGroupOperationSpec = {
|
|
1855
|
-
httpMethod: "GET",
|
|
1856
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers",
|
|
1857
|
-
urlParameters: [
|
|
1858
|
-
subscriptionId,
|
|
1859
|
-
resourceGroupName
|
|
1860
|
-
],
|
|
1861
|
-
queryParameters: [
|
|
1862
|
-
apiVersion0
|
|
1863
|
-
],
|
|
1864
|
-
headerParameters: [
|
|
1865
|
-
acceptLanguage
|
|
1866
|
-
],
|
|
1867
|
-
responses: {
|
|
1868
|
-
200: {
|
|
1869
|
-
bodyMapper: ServerListResult
|
|
1870
|
-
},
|
|
1871
|
-
default: {
|
|
1872
|
-
bodyMapper: CloudError
|
|
1873
|
-
}
|
|
1874
|
-
},
|
|
1875
|
-
serializer: serializer
|
|
1876
|
-
};
|
|
1877
|
-
var listOperationSpec = {
|
|
1878
|
-
httpMethod: "GET",
|
|
1879
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/flexibleServers",
|
|
1880
|
-
urlParameters: [
|
|
1881
|
-
subscriptionId
|
|
1882
|
-
],
|
|
1883
|
-
queryParameters: [
|
|
1884
|
-
apiVersion0
|
|
1885
|
-
],
|
|
1886
|
-
headerParameters: [
|
|
1887
|
-
acceptLanguage
|
|
1888
|
-
],
|
|
1889
|
-
responses: {
|
|
1890
|
-
200: {
|
|
1891
|
-
bodyMapper: ServerListResult
|
|
1892
|
-
},
|
|
1893
|
-
default: {
|
|
1894
|
-
bodyMapper: CloudError
|
|
1895
|
-
}
|
|
1896
|
-
},
|
|
1897
|
-
serializer: serializer
|
|
1898
|
-
};
|
|
1899
|
-
var beginCreateOperationSpec = {
|
|
1900
|
-
httpMethod: "PUT",
|
|
1901
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}",
|
|
1902
|
-
urlParameters: [
|
|
1903
|
-
subscriptionId,
|
|
1904
|
-
resourceGroupName,
|
|
1905
|
-
serverName
|
|
1906
|
-
],
|
|
1907
|
-
queryParameters: [
|
|
1908
|
-
apiVersion0
|
|
1909
|
-
],
|
|
1910
|
-
headerParameters: [
|
|
1911
|
-
acceptLanguage
|
|
1912
|
-
],
|
|
1913
|
-
requestBody: {
|
|
1914
|
-
parameterPath: "parameters",
|
|
1915
|
-
mapper: __assign(__assign({}, Server), { required: true })
|
|
1916
|
-
},
|
|
1917
|
-
responses: {
|
|
1918
|
-
200: {
|
|
1919
|
-
bodyMapper: Server
|
|
1920
|
-
},
|
|
1921
|
-
201: {
|
|
1922
|
-
bodyMapper: Server
|
|
1923
|
-
},
|
|
1924
|
-
202: {},
|
|
1925
|
-
default: {
|
|
1926
|
-
bodyMapper: CloudError
|
|
1927
|
-
}
|
|
1928
|
-
},
|
|
1929
|
-
serializer: serializer
|
|
1930
|
-
};
|
|
1931
|
-
var beginUpdateOperationSpec = {
|
|
1932
|
-
httpMethod: "PATCH",
|
|
1933
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}",
|
|
1934
|
-
urlParameters: [
|
|
1935
|
-
subscriptionId,
|
|
1936
|
-
resourceGroupName,
|
|
1937
|
-
serverName
|
|
1938
|
-
],
|
|
1939
|
-
queryParameters: [
|
|
1940
|
-
apiVersion0
|
|
1941
|
-
],
|
|
1942
|
-
headerParameters: [
|
|
1943
|
-
acceptLanguage
|
|
1944
|
-
],
|
|
1945
|
-
requestBody: {
|
|
1946
|
-
parameterPath: "parameters",
|
|
1947
|
-
mapper: __assign(__assign({}, ServerForUpdate), { required: true })
|
|
1948
|
-
},
|
|
1949
|
-
responses: {
|
|
1950
|
-
200: {
|
|
1951
|
-
bodyMapper: Server
|
|
1952
|
-
},
|
|
1953
|
-
202: {},
|
|
1954
|
-
default: {
|
|
1955
|
-
bodyMapper: CloudError
|
|
1956
|
-
}
|
|
1957
|
-
},
|
|
1958
|
-
serializer: serializer
|
|
1959
|
-
};
|
|
1960
|
-
var beginDeleteMethodOperationSpec = {
|
|
1961
|
-
httpMethod: "DELETE",
|
|
1962
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}",
|
|
1963
|
-
urlParameters: [
|
|
1964
|
-
subscriptionId,
|
|
1965
|
-
resourceGroupName,
|
|
1966
|
-
serverName
|
|
1967
|
-
],
|
|
1968
|
-
queryParameters: [
|
|
1969
|
-
apiVersion0
|
|
1970
|
-
],
|
|
1971
|
-
headerParameters: [
|
|
1972
|
-
acceptLanguage
|
|
1973
|
-
],
|
|
1974
|
-
responses: {
|
|
1975
|
-
200: {},
|
|
1976
|
-
202: {},
|
|
1977
|
-
204: {},
|
|
1978
|
-
default: {
|
|
1979
|
-
bodyMapper: CloudError
|
|
1980
|
-
}
|
|
1981
|
-
},
|
|
1982
|
-
serializer: serializer
|
|
1983
|
-
};
|
|
1984
|
-
var beginRestartOperationSpec = {
|
|
1985
|
-
httpMethod: "POST",
|
|
1986
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/restart",
|
|
1987
|
-
urlParameters: [
|
|
1988
|
-
subscriptionId,
|
|
1989
|
-
resourceGroupName,
|
|
1990
|
-
serverName
|
|
1991
|
-
],
|
|
1992
|
-
queryParameters: [
|
|
1993
|
-
apiVersion0
|
|
1994
|
-
],
|
|
1995
|
-
headerParameters: [
|
|
1996
|
-
acceptLanguage
|
|
1997
|
-
],
|
|
1998
|
-
responses: {
|
|
1999
|
-
200: {},
|
|
2000
|
-
202: {},
|
|
2001
|
-
default: {
|
|
2002
|
-
bodyMapper: CloudError
|
|
2003
|
-
}
|
|
2004
|
-
},
|
|
2005
|
-
serializer: serializer
|
|
2006
|
-
};
|
|
2007
|
-
var beginStartOperationSpec = {
|
|
2008
|
-
httpMethod: "POST",
|
|
2009
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/start",
|
|
2010
|
-
urlParameters: [
|
|
2011
|
-
subscriptionId,
|
|
2012
|
-
resourceGroupName,
|
|
2013
|
-
serverName
|
|
2014
|
-
],
|
|
2015
|
-
queryParameters: [
|
|
2016
|
-
apiVersion0
|
|
2017
|
-
],
|
|
2018
|
-
headerParameters: [
|
|
2019
|
-
acceptLanguage
|
|
2020
|
-
],
|
|
2021
|
-
responses: {
|
|
2022
|
-
200: {},
|
|
2023
|
-
202: {},
|
|
2024
|
-
default: {
|
|
2025
|
-
bodyMapper: CloudError
|
|
2026
|
-
}
|
|
2027
|
-
},
|
|
2028
|
-
serializer: serializer
|
|
2029
|
-
};
|
|
2030
|
-
var beginStopOperationSpec = {
|
|
2031
|
-
httpMethod: "POST",
|
|
2032
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/stop",
|
|
2033
|
-
urlParameters: [
|
|
2034
|
-
subscriptionId,
|
|
2035
|
-
resourceGroupName,
|
|
2036
|
-
serverName
|
|
2037
|
-
],
|
|
2038
|
-
queryParameters: [
|
|
2039
|
-
apiVersion0
|
|
2040
|
-
],
|
|
2041
|
-
headerParameters: [
|
|
2042
|
-
acceptLanguage
|
|
2043
|
-
],
|
|
2044
|
-
responses: {
|
|
2045
|
-
200: {},
|
|
2046
|
-
202: {},
|
|
2047
|
-
default: {
|
|
2048
|
-
bodyMapper: CloudError
|
|
2049
|
-
}
|
|
2050
|
-
},
|
|
2051
|
-
serializer: serializer
|
|
2052
|
-
};
|
|
2053
|
-
var listByResourceGroupNextOperationSpec = {
|
|
2054
|
-
httpMethod: "GET",
|
|
2055
|
-
baseUrl: "https://management.azure.com",
|
|
2056
|
-
path: "{nextLink}",
|
|
2057
|
-
urlParameters: [
|
|
2058
|
-
nextPageLink
|
|
2059
|
-
],
|
|
2060
|
-
queryParameters: [
|
|
2061
|
-
apiVersion0
|
|
2062
|
-
],
|
|
2063
|
-
headerParameters: [
|
|
2064
|
-
acceptLanguage
|
|
2065
|
-
],
|
|
2066
|
-
responses: {
|
|
2067
|
-
200: {
|
|
2068
|
-
bodyMapper: ServerListResult
|
|
2069
|
-
},
|
|
2070
|
-
default: {
|
|
2071
|
-
bodyMapper: CloudError
|
|
2072
|
-
}
|
|
2073
|
-
},
|
|
2074
|
-
serializer: serializer
|
|
2075
|
-
};
|
|
2076
|
-
var listNextOperationSpec = {
|
|
2077
|
-
httpMethod: "GET",
|
|
2078
|
-
baseUrl: "https://management.azure.com",
|
|
2079
|
-
path: "{nextLink}",
|
|
2080
|
-
urlParameters: [
|
|
2081
|
-
nextPageLink
|
|
2082
|
-
],
|
|
2083
|
-
queryParameters: [
|
|
2084
|
-
apiVersion0
|
|
2085
|
-
],
|
|
2086
|
-
headerParameters: [
|
|
2087
|
-
acceptLanguage
|
|
2088
|
-
],
|
|
2089
|
-
responses: {
|
|
2090
|
-
200: {
|
|
2091
|
-
bodyMapper: ServerListResult
|
|
2092
|
-
},
|
|
2093
|
-
default: {
|
|
2094
|
-
bodyMapper: CloudError
|
|
2095
|
-
}
|
|
2096
|
-
},
|
|
2097
|
-
serializer: serializer
|
|
2098
|
-
};
|
|
2099
|
-
|
|
2100
|
-
/*
|
|
2101
|
-
* Copyright (c) Microsoft Corporation.
|
|
2102
|
-
* Licensed under the MIT License.
|
|
2103
|
-
*
|
|
2104
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2105
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2106
|
-
*/
|
|
2107
|
-
|
|
2108
|
-
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
2109
|
-
__proto__: null,
|
|
2110
|
-
AzureEntityResource: AzureEntityResource,
|
|
2111
|
-
BaseResource: BaseResource,
|
|
2112
|
-
CloudError: CloudError,
|
|
2113
|
-
Configuration: Configuration,
|
|
2114
|
-
Database: Database,
|
|
2115
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
2116
|
-
ErrorResponse: ErrorResponse,
|
|
2117
|
-
FirewallRule: FirewallRule,
|
|
2118
|
-
FirewallRuleListResult: FirewallRuleListResult,
|
|
2119
|
-
Identity: Identity,
|
|
2120
|
-
MaintenanceWindow: MaintenanceWindow,
|
|
2121
|
-
Plan: Plan,
|
|
2122
|
-
ProxyResource: ProxyResource,
|
|
2123
|
-
Resource: Resource,
|
|
2124
|
-
ResourceModelWithAllowedPropertySet: ResourceModelWithAllowedPropertySet,
|
|
2125
|
-
ResourceModelWithAllowedPropertySetIdentity: ResourceModelWithAllowedPropertySetIdentity,
|
|
2126
|
-
ResourceModelWithAllowedPropertySetPlan: ResourceModelWithAllowedPropertySetPlan,
|
|
2127
|
-
ResourceModelWithAllowedPropertySetSku: ResourceModelWithAllowedPropertySetSku,
|
|
2128
|
-
Server: Server,
|
|
2129
|
-
ServerPropertiesDelegatedSubnetArguments: ServerPropertiesDelegatedSubnetArguments,
|
|
2130
|
-
ServerPropertiesPrivateDnsZoneArguments: ServerPropertiesPrivateDnsZoneArguments,
|
|
2131
|
-
Sku: Sku,
|
|
2132
|
-
StorageProfile: StorageProfile,
|
|
2133
|
-
TrackedResource: TrackedResource
|
|
2134
|
-
});
|
|
2135
|
-
|
|
2136
|
-
/*
|
|
2137
|
-
* Copyright (c) Microsoft Corporation.
|
|
2138
|
-
* Licensed under the MIT License.
|
|
2139
|
-
*
|
|
2140
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2141
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
2142
|
-
* regenerated.
|
|
2143
|
-
*/
|
|
2144
|
-
/** Class representing a FirewallRules. */
|
|
2145
|
-
var FirewallRules = /** @class */ (function () {
|
|
2146
|
-
/**
|
|
2147
|
-
* Create a FirewallRules.
|
|
2148
|
-
* @param {PostgreSQLManagementClientContext} client Reference to the service client.
|
|
2149
|
-
*/
|
|
2150
|
-
function FirewallRules(client) {
|
|
2151
|
-
this.client = client;
|
|
2152
|
-
}
|
|
2153
|
-
/**
|
|
2154
|
-
* Creates a new firewall rule or updates an existing firewall rule.
|
|
2155
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2156
|
-
* @param serverName The name of the server.
|
|
2157
|
-
* @param firewallRuleName The name of the server firewall rule.
|
|
2158
|
-
* @param parameters The required parameters for creating or updating a firewall rule.
|
|
2159
|
-
* @param [options] The optional parameters
|
|
2160
|
-
* @returns Promise<Models.FirewallRulesCreateOrUpdateResponse>
|
|
2161
|
-
*/
|
|
2162
|
-
FirewallRules.prototype.createOrUpdate = function (resourceGroupName, serverName, firewallRuleName, parameters, options) {
|
|
2163
|
-
return this.beginCreateOrUpdate(resourceGroupName, serverName, firewallRuleName, parameters, options)
|
|
2164
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
2165
|
-
};
|
|
2166
|
-
/**
|
|
2167
|
-
* Deletes a PostgreSQL server firewall rule.
|
|
2168
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2169
|
-
* @param serverName The name of the server.
|
|
2170
|
-
* @param firewallRuleName The name of the server firewall rule.
|
|
2171
|
-
* @param [options] The optional parameters
|
|
2172
|
-
* @returns Promise<msRest.RestResponse>
|
|
2173
|
-
*/
|
|
2174
|
-
FirewallRules.prototype.deleteMethod = function (resourceGroupName, serverName, firewallRuleName, options) {
|
|
2175
|
-
return this.beginDeleteMethod(resourceGroupName, serverName, firewallRuleName, options)
|
|
2176
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
2177
|
-
};
|
|
2178
|
-
FirewallRules.prototype.get = function (resourceGroupName, serverName, firewallRuleName, options, callback) {
|
|
2179
|
-
return this.client.sendOperationRequest({
|
|
2180
|
-
resourceGroupName: resourceGroupName,
|
|
2181
|
-
serverName: serverName,
|
|
2182
|
-
firewallRuleName: firewallRuleName,
|
|
2183
|
-
options: options
|
|
2184
|
-
}, getOperationSpec$1, callback);
|
|
2185
|
-
};
|
|
2186
|
-
FirewallRules.prototype.listByServer = function (resourceGroupName, serverName, options, callback) {
|
|
2187
|
-
return this.client.sendOperationRequest({
|
|
2188
|
-
resourceGroupName: resourceGroupName,
|
|
2189
|
-
serverName: serverName,
|
|
2190
|
-
options: options
|
|
2191
|
-
}, listByServerOperationSpec, callback);
|
|
2192
|
-
};
|
|
2193
|
-
/**
|
|
2194
|
-
* Creates a new firewall rule or updates an existing firewall rule.
|
|
2195
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2196
|
-
* @param serverName The name of the server.
|
|
2197
|
-
* @param firewallRuleName The name of the server firewall rule.
|
|
2198
|
-
* @param parameters The required parameters for creating or updating a firewall rule.
|
|
2199
|
-
* @param [options] The optional parameters
|
|
2200
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
2201
|
-
*/
|
|
2202
|
-
FirewallRules.prototype.beginCreateOrUpdate = function (resourceGroupName, serverName, firewallRuleName, parameters, options) {
|
|
2203
|
-
return this.client.sendLRORequest({
|
|
2204
|
-
resourceGroupName: resourceGroupName,
|
|
2205
|
-
serverName: serverName,
|
|
2206
|
-
firewallRuleName: firewallRuleName,
|
|
2207
|
-
parameters: parameters,
|
|
2208
|
-
options: options
|
|
2209
|
-
}, beginCreateOrUpdateOperationSpec, options);
|
|
2210
|
-
};
|
|
2211
|
-
/**
|
|
2212
|
-
* Deletes a PostgreSQL server firewall rule.
|
|
2213
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2214
|
-
* @param serverName The name of the server.
|
|
2215
|
-
* @param firewallRuleName The name of the server firewall rule.
|
|
2216
|
-
* @param [options] The optional parameters
|
|
2217
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
2218
|
-
*/
|
|
2219
|
-
FirewallRules.prototype.beginDeleteMethod = function (resourceGroupName, serverName, firewallRuleName, options) {
|
|
2220
|
-
return this.client.sendLRORequest({
|
|
2221
|
-
resourceGroupName: resourceGroupName,
|
|
2222
|
-
serverName: serverName,
|
|
2223
|
-
firewallRuleName: firewallRuleName,
|
|
2224
|
-
options: options
|
|
2225
|
-
}, beginDeleteMethodOperationSpec$1, options);
|
|
2226
|
-
};
|
|
2227
|
-
FirewallRules.prototype.listByServerNext = function (nextPageLink, options, callback) {
|
|
2228
|
-
return this.client.sendOperationRequest({
|
|
2229
|
-
nextPageLink: nextPageLink,
|
|
2230
|
-
options: options
|
|
2231
|
-
}, listByServerNextOperationSpec, callback);
|
|
2232
|
-
};
|
|
2233
|
-
return FirewallRules;
|
|
2234
|
-
}());
|
|
2235
|
-
// Operation Specifications
|
|
2236
|
-
var serializer$1 = new msRest.Serializer(Mappers$1);
|
|
2237
|
-
var getOperationSpec$1 = {
|
|
2238
|
-
httpMethod: "GET",
|
|
2239
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}",
|
|
2240
|
-
urlParameters: [
|
|
2241
|
-
subscriptionId,
|
|
2242
|
-
resourceGroupName,
|
|
2243
|
-
serverName,
|
|
2244
|
-
firewallRuleName
|
|
2245
|
-
],
|
|
2246
|
-
queryParameters: [
|
|
2247
|
-
apiVersion0
|
|
2248
|
-
],
|
|
2249
|
-
headerParameters: [
|
|
2250
|
-
acceptLanguage
|
|
2251
|
-
],
|
|
2252
|
-
responses: {
|
|
2253
|
-
200: {
|
|
2254
|
-
bodyMapper: FirewallRule
|
|
2255
|
-
},
|
|
2256
|
-
default: {
|
|
2257
|
-
bodyMapper: CloudError
|
|
2258
|
-
}
|
|
2259
|
-
},
|
|
2260
|
-
serializer: serializer$1
|
|
2261
|
-
};
|
|
2262
|
-
var listByServerOperationSpec = {
|
|
2263
|
-
httpMethod: "GET",
|
|
2264
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules",
|
|
2265
|
-
urlParameters: [
|
|
2266
|
-
subscriptionId,
|
|
2267
|
-
resourceGroupName,
|
|
2268
|
-
serverName
|
|
2269
|
-
],
|
|
2270
|
-
queryParameters: [
|
|
2271
|
-
apiVersion0
|
|
2272
|
-
],
|
|
2273
|
-
headerParameters: [
|
|
2274
|
-
acceptLanguage
|
|
2275
|
-
],
|
|
2276
|
-
responses: {
|
|
2277
|
-
200: {
|
|
2278
|
-
bodyMapper: FirewallRuleListResult
|
|
2279
|
-
},
|
|
2280
|
-
default: {
|
|
2281
|
-
bodyMapper: CloudError
|
|
2282
|
-
}
|
|
2283
|
-
},
|
|
2284
|
-
serializer: serializer$1
|
|
2285
|
-
};
|
|
2286
|
-
var beginCreateOrUpdateOperationSpec = {
|
|
2287
|
-
httpMethod: "PUT",
|
|
2288
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}",
|
|
2289
|
-
urlParameters: [
|
|
2290
|
-
subscriptionId,
|
|
2291
|
-
resourceGroupName,
|
|
2292
|
-
serverName,
|
|
2293
|
-
firewallRuleName
|
|
2294
|
-
],
|
|
2295
|
-
queryParameters: [
|
|
2296
|
-
apiVersion0
|
|
2297
|
-
],
|
|
2298
|
-
headerParameters: [
|
|
2299
|
-
acceptLanguage
|
|
2300
|
-
],
|
|
2301
|
-
requestBody: {
|
|
2302
|
-
parameterPath: "parameters",
|
|
2303
|
-
mapper: __assign(__assign({}, FirewallRule), { required: true })
|
|
2304
|
-
},
|
|
2305
|
-
responses: {
|
|
2306
|
-
200: {
|
|
2307
|
-
bodyMapper: FirewallRule
|
|
2308
|
-
},
|
|
2309
|
-
201: {
|
|
2310
|
-
bodyMapper: FirewallRule
|
|
2311
|
-
},
|
|
2312
|
-
202: {},
|
|
2313
|
-
default: {
|
|
2314
|
-
bodyMapper: CloudError
|
|
2315
|
-
}
|
|
2316
|
-
},
|
|
2317
|
-
serializer: serializer$1
|
|
2318
|
-
};
|
|
2319
|
-
var beginDeleteMethodOperationSpec$1 = {
|
|
2320
|
-
httpMethod: "DELETE",
|
|
2321
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}",
|
|
2322
|
-
urlParameters: [
|
|
2323
|
-
subscriptionId,
|
|
2324
|
-
resourceGroupName,
|
|
2325
|
-
serverName,
|
|
2326
|
-
firewallRuleName
|
|
2327
|
-
],
|
|
2328
|
-
queryParameters: [
|
|
2329
|
-
apiVersion0
|
|
2330
|
-
],
|
|
2331
|
-
headerParameters: [
|
|
2332
|
-
acceptLanguage
|
|
2333
|
-
],
|
|
2334
|
-
responses: {
|
|
2335
|
-
200: {},
|
|
2336
|
-
202: {},
|
|
2337
|
-
204: {},
|
|
2338
|
-
default: {
|
|
2339
|
-
bodyMapper: CloudError
|
|
2340
|
-
}
|
|
2341
|
-
},
|
|
2342
|
-
serializer: serializer$1
|
|
2343
|
-
};
|
|
2344
|
-
var listByServerNextOperationSpec = {
|
|
2345
|
-
httpMethod: "GET",
|
|
2346
|
-
baseUrl: "https://management.azure.com",
|
|
2347
|
-
path: "{nextLink}",
|
|
2348
|
-
urlParameters: [
|
|
2349
|
-
nextPageLink
|
|
2350
|
-
],
|
|
2351
|
-
queryParameters: [
|
|
2352
|
-
apiVersion0
|
|
2353
|
-
],
|
|
2354
|
-
headerParameters: [
|
|
2355
|
-
acceptLanguage
|
|
2356
|
-
],
|
|
2357
|
-
responses: {
|
|
2358
|
-
200: {
|
|
2359
|
-
bodyMapper: FirewallRuleListResult
|
|
2360
|
-
},
|
|
2361
|
-
default: {
|
|
2362
|
-
bodyMapper: CloudError
|
|
2363
|
-
}
|
|
2364
|
-
},
|
|
2365
|
-
serializer: serializer$1
|
|
2366
|
-
};
|
|
2367
|
-
|
|
2368
|
-
/*
|
|
2369
|
-
* Copyright (c) Microsoft Corporation.
|
|
2370
|
-
* Licensed under the MIT License.
|
|
2371
|
-
*
|
|
2372
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2373
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2374
|
-
*/
|
|
2375
|
-
|
|
2376
|
-
var Mappers$2 = /*#__PURE__*/Object.freeze({
|
|
2377
|
-
__proto__: null,
|
|
2378
|
-
AzureEntityResource: AzureEntityResource,
|
|
2379
|
-
BaseResource: BaseResource,
|
|
2380
|
-
CloudError: CloudError,
|
|
2381
|
-
Configuration: Configuration,
|
|
2382
|
-
ConfigurationListResult: ConfigurationListResult,
|
|
2383
|
-
Database: Database,
|
|
2384
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
2385
|
-
ErrorResponse: ErrorResponse,
|
|
2386
|
-
FirewallRule: FirewallRule,
|
|
2387
|
-
Identity: Identity,
|
|
2388
|
-
MaintenanceWindow: MaintenanceWindow,
|
|
2389
|
-
Plan: Plan,
|
|
2390
|
-
ProxyResource: ProxyResource,
|
|
2391
|
-
Resource: Resource,
|
|
2392
|
-
ResourceModelWithAllowedPropertySet: ResourceModelWithAllowedPropertySet,
|
|
2393
|
-
ResourceModelWithAllowedPropertySetIdentity: ResourceModelWithAllowedPropertySetIdentity,
|
|
2394
|
-
ResourceModelWithAllowedPropertySetPlan: ResourceModelWithAllowedPropertySetPlan,
|
|
2395
|
-
ResourceModelWithAllowedPropertySetSku: ResourceModelWithAllowedPropertySetSku,
|
|
2396
|
-
Server: Server,
|
|
2397
|
-
ServerPropertiesDelegatedSubnetArguments: ServerPropertiesDelegatedSubnetArguments,
|
|
2398
|
-
ServerPropertiesPrivateDnsZoneArguments: ServerPropertiesPrivateDnsZoneArguments,
|
|
2399
|
-
Sku: Sku,
|
|
2400
|
-
StorageProfile: StorageProfile,
|
|
2401
|
-
TrackedResource: TrackedResource
|
|
2402
|
-
});
|
|
2403
|
-
|
|
2404
|
-
/*
|
|
2405
|
-
* Copyright (c) Microsoft Corporation.
|
|
2406
|
-
* Licensed under the MIT License.
|
|
2407
|
-
*
|
|
2408
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2409
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
2410
|
-
* regenerated.
|
|
2411
|
-
*/
|
|
2412
|
-
/** Class representing a Configurations. */
|
|
2413
|
-
var Configurations = /** @class */ (function () {
|
|
2414
|
-
/**
|
|
2415
|
-
* Create a Configurations.
|
|
2416
|
-
* @param {PostgreSQLManagementClientContext} client Reference to the service client.
|
|
2417
|
-
*/
|
|
2418
|
-
function Configurations(client) {
|
|
2419
|
-
this.client = client;
|
|
2420
|
-
}
|
|
2421
|
-
Configurations.prototype.listByServer = function (resourceGroupName, serverName, options, callback) {
|
|
2422
|
-
return this.client.sendOperationRequest({
|
|
2423
|
-
resourceGroupName: resourceGroupName,
|
|
2424
|
-
serverName: serverName,
|
|
2425
|
-
options: options
|
|
2426
|
-
}, listByServerOperationSpec$1, callback);
|
|
2427
|
-
};
|
|
2428
|
-
Configurations.prototype.get = function (resourceGroupName, serverName, configurationName, options, callback) {
|
|
2429
|
-
return this.client.sendOperationRequest({
|
|
2430
|
-
resourceGroupName: resourceGroupName,
|
|
2431
|
-
serverName: serverName,
|
|
2432
|
-
configurationName: configurationName,
|
|
2433
|
-
options: options
|
|
2434
|
-
}, getOperationSpec$2, callback);
|
|
2435
|
-
};
|
|
2436
|
-
/**
|
|
2437
|
-
* Updates a configuration of a server.
|
|
2438
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2439
|
-
* @param serverName The name of the server.
|
|
2440
|
-
* @param configurationName The name of the server configuration.
|
|
2441
|
-
* @param parameters The required parameters for updating a server configuration.
|
|
2442
|
-
* @param [options] The optional parameters
|
|
2443
|
-
* @returns Promise<Models.ConfigurationsUpdateResponse>
|
|
2444
|
-
*/
|
|
2445
|
-
Configurations.prototype.update = function (resourceGroupName, serverName, configurationName, parameters, options) {
|
|
2446
|
-
return this.beginUpdate(resourceGroupName, serverName, configurationName, parameters, options)
|
|
2447
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
2448
|
-
};
|
|
2449
|
-
/**
|
|
2450
|
-
* Updates a configuration of a server.
|
|
2451
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2452
|
-
* @param serverName The name of the server.
|
|
2453
|
-
* @param configurationName The name of the server configuration.
|
|
2454
|
-
* @param parameters The required parameters for updating a server configuration.
|
|
2455
|
-
* @param [options] The optional parameters
|
|
2456
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
2457
|
-
*/
|
|
2458
|
-
Configurations.prototype.beginUpdate = function (resourceGroupName, serverName, configurationName, parameters, options) {
|
|
2459
|
-
return this.client.sendLRORequest({
|
|
2460
|
-
resourceGroupName: resourceGroupName,
|
|
2461
|
-
serverName: serverName,
|
|
2462
|
-
configurationName: configurationName,
|
|
2463
|
-
parameters: parameters,
|
|
2464
|
-
options: options
|
|
2465
|
-
}, beginUpdateOperationSpec$1, options);
|
|
2466
|
-
};
|
|
2467
|
-
Configurations.prototype.listByServerNext = function (nextPageLink, options, callback) {
|
|
2468
|
-
return this.client.sendOperationRequest({
|
|
2469
|
-
nextPageLink: nextPageLink,
|
|
2470
|
-
options: options
|
|
2471
|
-
}, listByServerNextOperationSpec$1, callback);
|
|
2472
|
-
};
|
|
2473
|
-
return Configurations;
|
|
2474
|
-
}());
|
|
2475
|
-
// Operation Specifications
|
|
2476
|
-
var serializer$2 = new msRest.Serializer(Mappers$2);
|
|
2477
|
-
var listByServerOperationSpec$1 = {
|
|
2478
|
-
httpMethod: "GET",
|
|
2479
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations",
|
|
2480
|
-
urlParameters: [
|
|
2481
|
-
subscriptionId,
|
|
2482
|
-
resourceGroupName,
|
|
2483
|
-
serverName
|
|
2484
|
-
],
|
|
2485
|
-
queryParameters: [
|
|
2486
|
-
apiVersion0
|
|
2487
|
-
],
|
|
2488
|
-
headerParameters: [
|
|
2489
|
-
acceptLanguage
|
|
2490
|
-
],
|
|
2491
|
-
responses: {
|
|
2492
|
-
200: {
|
|
2493
|
-
bodyMapper: ConfigurationListResult
|
|
2494
|
-
},
|
|
2495
|
-
default: {
|
|
2496
|
-
bodyMapper: CloudError
|
|
2497
|
-
}
|
|
2498
|
-
},
|
|
2499
|
-
serializer: serializer$2
|
|
2500
|
-
};
|
|
2501
|
-
var getOperationSpec$2 = {
|
|
2502
|
-
httpMethod: "GET",
|
|
2503
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}",
|
|
2504
|
-
urlParameters: [
|
|
2505
|
-
subscriptionId,
|
|
2506
|
-
resourceGroupName,
|
|
2507
|
-
serverName,
|
|
2508
|
-
configurationName
|
|
2509
|
-
],
|
|
2510
|
-
queryParameters: [
|
|
2511
|
-
apiVersion0
|
|
2512
|
-
],
|
|
2513
|
-
headerParameters: [
|
|
2514
|
-
acceptLanguage
|
|
2515
|
-
],
|
|
2516
|
-
responses: {
|
|
2517
|
-
200: {
|
|
2518
|
-
bodyMapper: Configuration
|
|
2519
|
-
},
|
|
2520
|
-
default: {
|
|
2521
|
-
bodyMapper: CloudError
|
|
2522
|
-
}
|
|
2523
|
-
},
|
|
2524
|
-
serializer: serializer$2
|
|
2525
|
-
};
|
|
2526
|
-
var beginUpdateOperationSpec$1 = {
|
|
2527
|
-
httpMethod: "PATCH",
|
|
2528
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}",
|
|
2529
|
-
urlParameters: [
|
|
2530
|
-
subscriptionId,
|
|
2531
|
-
resourceGroupName,
|
|
2532
|
-
serverName,
|
|
2533
|
-
configurationName
|
|
2534
|
-
],
|
|
2535
|
-
queryParameters: [
|
|
2536
|
-
apiVersion0
|
|
2537
|
-
],
|
|
2538
|
-
headerParameters: [
|
|
2539
|
-
acceptLanguage
|
|
2540
|
-
],
|
|
2541
|
-
requestBody: {
|
|
2542
|
-
parameterPath: "parameters",
|
|
2543
|
-
mapper: __assign(__assign({}, Configuration), { required: true })
|
|
2544
|
-
},
|
|
2545
|
-
responses: {
|
|
2546
|
-
200: {
|
|
2547
|
-
bodyMapper: Configuration
|
|
2548
|
-
},
|
|
2549
|
-
202: {},
|
|
2550
|
-
default: {
|
|
2551
|
-
bodyMapper: CloudError
|
|
2552
|
-
}
|
|
2553
|
-
},
|
|
2554
|
-
serializer: serializer$2
|
|
2555
|
-
};
|
|
2556
|
-
var listByServerNextOperationSpec$1 = {
|
|
2557
|
-
httpMethod: "GET",
|
|
2558
|
-
baseUrl: "https://management.azure.com",
|
|
2559
|
-
path: "{nextLink}",
|
|
2560
|
-
urlParameters: [
|
|
2561
|
-
nextPageLink
|
|
2562
|
-
],
|
|
2563
|
-
queryParameters: [
|
|
2564
|
-
apiVersion0
|
|
2565
|
-
],
|
|
2566
|
-
headerParameters: [
|
|
2567
|
-
acceptLanguage
|
|
2568
|
-
],
|
|
2569
|
-
responses: {
|
|
2570
|
-
200: {
|
|
2571
|
-
bodyMapper: ConfigurationListResult
|
|
2572
|
-
},
|
|
2573
|
-
default: {
|
|
2574
|
-
bodyMapper: CloudError
|
|
2575
|
-
}
|
|
2576
|
-
},
|
|
2577
|
-
serializer: serializer$2
|
|
2578
|
-
};
|
|
2579
|
-
|
|
2580
|
-
/*
|
|
2581
|
-
* Copyright (c) Microsoft Corporation.
|
|
2582
|
-
* Licensed under the MIT License.
|
|
2583
|
-
*
|
|
2584
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2585
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2586
|
-
*/
|
|
2587
|
-
|
|
2588
|
-
var Mappers$3 = /*#__PURE__*/Object.freeze({
|
|
2589
|
-
__proto__: null,
|
|
2590
|
-
CloudError: CloudError,
|
|
2591
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
2592
|
-
ErrorResponse: ErrorResponse,
|
|
2593
|
-
NameAvailability: NameAvailability,
|
|
2594
|
-
NameAvailabilityRequest: NameAvailabilityRequest
|
|
2595
|
-
});
|
|
2596
|
-
|
|
2597
|
-
/*
|
|
2598
|
-
* Copyright (c) Microsoft Corporation.
|
|
2599
|
-
* Licensed under the MIT License.
|
|
2600
|
-
*
|
|
2601
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2602
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
2603
|
-
* regenerated.
|
|
2604
|
-
*/
|
|
2605
|
-
/** Class representing a CheckNameAvailability. */
|
|
2606
|
-
var CheckNameAvailability = /** @class */ (function () {
|
|
2607
|
-
/**
|
|
2608
|
-
* Create a CheckNameAvailability.
|
|
2609
|
-
* @param {PostgreSQLManagementClientContext} client Reference to the service client.
|
|
2610
|
-
*/
|
|
2611
|
-
function CheckNameAvailability(client) {
|
|
2612
|
-
this.client = client;
|
|
2613
|
-
}
|
|
2614
|
-
CheckNameAvailability.prototype.execute = function (nameAvailabilityRequest, options, callback) {
|
|
2615
|
-
return this.client.sendOperationRequest({
|
|
2616
|
-
nameAvailabilityRequest: nameAvailabilityRequest,
|
|
2617
|
-
options: options
|
|
2618
|
-
}, executeOperationSpec, callback);
|
|
2619
|
-
};
|
|
2620
|
-
return CheckNameAvailability;
|
|
2621
|
-
}());
|
|
2622
|
-
// Operation Specifications
|
|
2623
|
-
var serializer$3 = new msRest.Serializer(Mappers$3);
|
|
2624
|
-
var executeOperationSpec = {
|
|
2625
|
-
httpMethod: "POST",
|
|
2626
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/checkNameAvailability",
|
|
2627
|
-
urlParameters: [
|
|
2628
|
-
subscriptionId
|
|
2629
|
-
],
|
|
2630
|
-
queryParameters: [
|
|
2631
|
-
apiVersion0
|
|
2632
|
-
],
|
|
2633
|
-
headerParameters: [
|
|
2634
|
-
acceptLanguage
|
|
2635
|
-
],
|
|
2636
|
-
requestBody: {
|
|
2637
|
-
parameterPath: "nameAvailabilityRequest",
|
|
2638
|
-
mapper: __assign(__assign({}, NameAvailabilityRequest), { required: true })
|
|
2639
|
-
},
|
|
2640
|
-
responses: {
|
|
2641
|
-
200: {
|
|
2642
|
-
bodyMapper: NameAvailability
|
|
2643
|
-
},
|
|
2644
|
-
default: {
|
|
2645
|
-
bodyMapper: CloudError
|
|
2646
|
-
}
|
|
2647
|
-
},
|
|
2648
|
-
serializer: serializer$3
|
|
2649
|
-
};
|
|
2650
|
-
|
|
2651
|
-
/*
|
|
2652
|
-
* Copyright (c) Microsoft Corporation.
|
|
2653
|
-
* Licensed under the MIT License.
|
|
2654
|
-
*
|
|
2655
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2656
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2657
|
-
*/
|
|
2658
|
-
|
|
2659
|
-
var Mappers$4 = /*#__PURE__*/Object.freeze({
|
|
2660
|
-
__proto__: null,
|
|
2661
|
-
CapabilitiesListResult: CapabilitiesListResult,
|
|
2662
|
-
CapabilityProperties: CapabilityProperties,
|
|
2663
|
-
CloudError: CloudError,
|
|
2664
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
2665
|
-
ErrorResponse: ErrorResponse,
|
|
2666
|
-
ServerEditionCapability: ServerEditionCapability,
|
|
2667
|
-
ServerVersionCapability: ServerVersionCapability,
|
|
2668
|
-
StorageEditionCapability: StorageEditionCapability,
|
|
2669
|
-
StorageMBCapability: StorageMBCapability,
|
|
2670
|
-
VcoreCapability: VcoreCapability
|
|
2671
|
-
});
|
|
2672
|
-
|
|
2673
|
-
/*
|
|
2674
|
-
* Copyright (c) Microsoft Corporation.
|
|
2675
|
-
* Licensed under the MIT License.
|
|
2676
|
-
*
|
|
2677
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2678
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
2679
|
-
* regenerated.
|
|
2680
|
-
*/
|
|
2681
|
-
/** Class representing a LocationBasedCapabilities. */
|
|
2682
|
-
var LocationBasedCapabilities = /** @class */ (function () {
|
|
2683
|
-
/**
|
|
2684
|
-
* Create a LocationBasedCapabilities.
|
|
2685
|
-
* @param {PostgreSQLManagementClientContext} client Reference to the service client.
|
|
2686
|
-
*/
|
|
2687
|
-
function LocationBasedCapabilities(client) {
|
|
2688
|
-
this.client = client;
|
|
2689
|
-
}
|
|
2690
|
-
LocationBasedCapabilities.prototype.execute = function (locationName, options, callback) {
|
|
2691
|
-
return this.client.sendOperationRequest({
|
|
2692
|
-
locationName: locationName,
|
|
2693
|
-
options: options
|
|
2694
|
-
}, executeOperationSpec$1, callback);
|
|
2695
|
-
};
|
|
2696
|
-
LocationBasedCapabilities.prototype.executeNext = function (nextPageLink, options, callback) {
|
|
2697
|
-
return this.client.sendOperationRequest({
|
|
2698
|
-
nextPageLink: nextPageLink,
|
|
2699
|
-
options: options
|
|
2700
|
-
}, executeNextOperationSpec, callback);
|
|
2701
|
-
};
|
|
2702
|
-
return LocationBasedCapabilities;
|
|
2703
|
-
}());
|
|
2704
|
-
// Operation Specifications
|
|
2705
|
-
var serializer$4 = new msRest.Serializer(Mappers$4);
|
|
2706
|
-
var executeOperationSpec$1 = {
|
|
2707
|
-
httpMethod: "GET",
|
|
2708
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/locations/{locationName}/capabilities",
|
|
2709
|
-
urlParameters: [
|
|
2710
|
-
subscriptionId,
|
|
2711
|
-
locationName
|
|
2712
|
-
],
|
|
2713
|
-
queryParameters: [
|
|
2714
|
-
apiVersion0
|
|
2715
|
-
],
|
|
2716
|
-
headerParameters: [
|
|
2717
|
-
acceptLanguage
|
|
2718
|
-
],
|
|
2719
|
-
responses: {
|
|
2720
|
-
200: {
|
|
2721
|
-
bodyMapper: CapabilitiesListResult
|
|
2722
|
-
},
|
|
2723
|
-
default: {
|
|
2724
|
-
bodyMapper: CloudError
|
|
2725
|
-
}
|
|
2726
|
-
},
|
|
2727
|
-
serializer: serializer$4
|
|
2728
|
-
};
|
|
2729
|
-
var executeNextOperationSpec = {
|
|
2730
|
-
httpMethod: "GET",
|
|
2731
|
-
baseUrl: "https://management.azure.com",
|
|
2732
|
-
path: "{nextLink}",
|
|
2733
|
-
urlParameters: [
|
|
2734
|
-
nextPageLink
|
|
2735
|
-
],
|
|
2736
|
-
queryParameters: [
|
|
2737
|
-
apiVersion0
|
|
2738
|
-
],
|
|
2739
|
-
headerParameters: [
|
|
2740
|
-
acceptLanguage
|
|
2741
|
-
],
|
|
2742
|
-
responses: {
|
|
2743
|
-
200: {
|
|
2744
|
-
bodyMapper: CapabilitiesListResult
|
|
2745
|
-
},
|
|
2746
|
-
default: {
|
|
2747
|
-
bodyMapper: CloudError
|
|
2748
|
-
}
|
|
2749
|
-
},
|
|
2750
|
-
serializer: serializer$4
|
|
2751
|
-
};
|
|
2752
|
-
|
|
2753
|
-
/*
|
|
2754
|
-
* Copyright (c) Microsoft Corporation.
|
|
2755
|
-
* Licensed under the MIT License.
|
|
2756
|
-
*
|
|
2757
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2758
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2759
|
-
*/
|
|
2760
|
-
|
|
2761
|
-
var Mappers$5 = /*#__PURE__*/Object.freeze({
|
|
2762
|
-
__proto__: null,
|
|
2763
|
-
CloudError: CloudError,
|
|
2764
|
-
DelegatedSubnetUsage: DelegatedSubnetUsage,
|
|
2765
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
2766
|
-
ErrorResponse: ErrorResponse,
|
|
2767
|
-
VirtualNetworkSubnetUsageParameter: VirtualNetworkSubnetUsageParameter,
|
|
2768
|
-
VirtualNetworkSubnetUsageResult: VirtualNetworkSubnetUsageResult
|
|
2769
|
-
});
|
|
2770
|
-
|
|
2771
|
-
/*
|
|
2772
|
-
* Copyright (c) Microsoft Corporation.
|
|
2773
|
-
* Licensed under the MIT License.
|
|
2774
|
-
*
|
|
2775
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2776
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
2777
|
-
* regenerated.
|
|
2778
|
-
*/
|
|
2779
|
-
/** Class representing a VirtualNetworkSubnetUsage. */
|
|
2780
|
-
var VirtualNetworkSubnetUsage = /** @class */ (function () {
|
|
2781
|
-
/**
|
|
2782
|
-
* Create a VirtualNetworkSubnetUsage.
|
|
2783
|
-
* @param {PostgreSQLManagementClientContext} client Reference to the service client.
|
|
2784
|
-
*/
|
|
2785
|
-
function VirtualNetworkSubnetUsage(client) {
|
|
2786
|
-
this.client = client;
|
|
2787
|
-
}
|
|
2788
|
-
VirtualNetworkSubnetUsage.prototype.execute = function (locationName, parameters, options, callback) {
|
|
2789
|
-
return this.client.sendOperationRequest({
|
|
2790
|
-
locationName: locationName,
|
|
2791
|
-
parameters: parameters,
|
|
2792
|
-
options: options
|
|
2793
|
-
}, executeOperationSpec$2, callback);
|
|
2794
|
-
};
|
|
2795
|
-
return VirtualNetworkSubnetUsage;
|
|
2796
|
-
}());
|
|
2797
|
-
// Operation Specifications
|
|
2798
|
-
var serializer$5 = new msRest.Serializer(Mappers$5);
|
|
2799
|
-
var executeOperationSpec$2 = {
|
|
2800
|
-
httpMethod: "POST",
|
|
2801
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/locations/{locationName}/checkVirtualNetworkSubnetUsage",
|
|
2802
|
-
urlParameters: [
|
|
2803
|
-
subscriptionId,
|
|
2804
|
-
locationName
|
|
2805
|
-
],
|
|
2806
|
-
queryParameters: [
|
|
2807
|
-
apiVersion0
|
|
2808
|
-
],
|
|
2809
|
-
headerParameters: [
|
|
2810
|
-
acceptLanguage
|
|
2811
|
-
],
|
|
2812
|
-
requestBody: {
|
|
2813
|
-
parameterPath: "parameters",
|
|
2814
|
-
mapper: __assign(__assign({}, VirtualNetworkSubnetUsageParameter), { required: true })
|
|
2815
|
-
},
|
|
2816
|
-
responses: {
|
|
2817
|
-
200: {
|
|
2818
|
-
bodyMapper: VirtualNetworkSubnetUsageResult
|
|
2819
|
-
},
|
|
2820
|
-
default: {
|
|
2821
|
-
bodyMapper: CloudError
|
|
2822
|
-
}
|
|
2823
|
-
},
|
|
2824
|
-
serializer: serializer$5
|
|
2825
|
-
};
|
|
2826
|
-
|
|
2827
|
-
/*
|
|
2828
|
-
* Copyright (c) Microsoft Corporation.
|
|
2829
|
-
* Licensed under the MIT License.
|
|
2830
|
-
*
|
|
2831
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2832
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2833
|
-
*/
|
|
2834
|
-
|
|
2835
|
-
var Mappers$6 = /*#__PURE__*/Object.freeze({
|
|
2836
|
-
__proto__: null,
|
|
2837
|
-
CloudError: CloudError,
|
|
2838
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
2839
|
-
ErrorResponse: ErrorResponse,
|
|
2840
|
-
Operation: Operation,
|
|
2841
|
-
OperationDisplay: OperationDisplay,
|
|
2842
|
-
OperationListResult: OperationListResult
|
|
2843
|
-
});
|
|
2844
|
-
|
|
2845
|
-
/*
|
|
2846
|
-
* Copyright (c) Microsoft Corporation.
|
|
2847
|
-
* Licensed under the MIT License.
|
|
2848
|
-
*
|
|
2849
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2850
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
2851
|
-
* regenerated.
|
|
2852
|
-
*/
|
|
2853
|
-
/** Class representing a Operations. */
|
|
2854
|
-
var Operations = /** @class */ (function () {
|
|
2855
|
-
/**
|
|
2856
|
-
* Create a Operations.
|
|
2857
|
-
* @param {PostgreSQLManagementClientContext} client Reference to the service client.
|
|
2858
|
-
*/
|
|
2859
|
-
function Operations(client) {
|
|
2860
|
-
this.client = client;
|
|
2861
|
-
}
|
|
2862
|
-
Operations.prototype.list = function (options, callback) {
|
|
2863
|
-
return this.client.sendOperationRequest({
|
|
2864
|
-
options: options
|
|
2865
|
-
}, listOperationSpec$1, callback);
|
|
2866
|
-
};
|
|
2867
|
-
return Operations;
|
|
2868
|
-
}());
|
|
2869
|
-
// Operation Specifications
|
|
2870
|
-
var serializer$6 = new msRest.Serializer(Mappers$6);
|
|
2871
|
-
var listOperationSpec$1 = {
|
|
2872
|
-
httpMethod: "GET",
|
|
2873
|
-
path: "providers/Microsoft.DBForPostgreSql/operations",
|
|
2874
|
-
queryParameters: [
|
|
2875
|
-
apiVersion0
|
|
2876
|
-
],
|
|
2877
|
-
headerParameters: [
|
|
2878
|
-
acceptLanguage
|
|
2879
|
-
],
|
|
2880
|
-
responses: {
|
|
2881
|
-
200: {
|
|
2882
|
-
bodyMapper: OperationListResult
|
|
2883
|
-
},
|
|
2884
|
-
default: {
|
|
2885
|
-
bodyMapper: CloudError
|
|
2886
|
-
}
|
|
2887
|
-
},
|
|
2888
|
-
serializer: serializer$6
|
|
2889
|
-
};
|
|
2890
|
-
|
|
2891
|
-
/*
|
|
2892
|
-
* Copyright (c) Microsoft Corporation.
|
|
2893
|
-
* Licensed under the MIT License.
|
|
2894
|
-
*
|
|
2895
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2896
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2897
|
-
*/
|
|
2898
|
-
|
|
2899
|
-
var Mappers$7 = /*#__PURE__*/Object.freeze({
|
|
2900
|
-
__proto__: null,
|
|
2901
|
-
AzureEntityResource: AzureEntityResource,
|
|
2902
|
-
BaseResource: BaseResource,
|
|
2903
|
-
CloudError: CloudError,
|
|
2904
|
-
Configuration: Configuration,
|
|
2905
|
-
Database: Database,
|
|
2906
|
-
DatabaseListResult: DatabaseListResult,
|
|
2907
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
2908
|
-
ErrorResponse: ErrorResponse,
|
|
2909
|
-
FirewallRule: FirewallRule,
|
|
2910
|
-
Identity: Identity,
|
|
2911
|
-
MaintenanceWindow: MaintenanceWindow,
|
|
2912
|
-
Plan: Plan,
|
|
2913
|
-
ProxyResource: ProxyResource,
|
|
2914
|
-
Resource: Resource,
|
|
2915
|
-
ResourceModelWithAllowedPropertySet: ResourceModelWithAllowedPropertySet,
|
|
2916
|
-
ResourceModelWithAllowedPropertySetIdentity: ResourceModelWithAllowedPropertySetIdentity,
|
|
2917
|
-
ResourceModelWithAllowedPropertySetPlan: ResourceModelWithAllowedPropertySetPlan,
|
|
2918
|
-
ResourceModelWithAllowedPropertySetSku: ResourceModelWithAllowedPropertySetSku,
|
|
2919
|
-
Server: Server,
|
|
2920
|
-
ServerPropertiesDelegatedSubnetArguments: ServerPropertiesDelegatedSubnetArguments,
|
|
2921
|
-
ServerPropertiesPrivateDnsZoneArguments: ServerPropertiesPrivateDnsZoneArguments,
|
|
2922
|
-
Sku: Sku,
|
|
2923
|
-
StorageProfile: StorageProfile,
|
|
2924
|
-
TrackedResource: TrackedResource
|
|
2925
|
-
});
|
|
2926
|
-
|
|
2927
|
-
/*
|
|
2928
|
-
* Copyright (c) Microsoft Corporation.
|
|
2929
|
-
* Licensed under the MIT License.
|
|
2930
|
-
*
|
|
2931
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2932
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
2933
|
-
* regenerated.
|
|
2934
|
-
*/
|
|
2935
|
-
/** Class representing a Databases. */
|
|
2936
|
-
var Databases = /** @class */ (function () {
|
|
2937
|
-
/**
|
|
2938
|
-
* Create a Databases.
|
|
2939
|
-
* @param {PostgreSQLManagementClientContext} client Reference to the service client.
|
|
2940
|
-
*/
|
|
2941
|
-
function Databases(client) {
|
|
2942
|
-
this.client = client;
|
|
2943
|
-
}
|
|
2944
|
-
/**
|
|
2945
|
-
* Creates a new database or updates an existing database.
|
|
2946
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2947
|
-
* @param serverName The name of the server.
|
|
2948
|
-
* @param databaseName The name of the database.
|
|
2949
|
-
* @param parameters The required parameters for creating or updating a database.
|
|
2950
|
-
* @param [options] The optional parameters
|
|
2951
|
-
* @returns Promise<Models.DatabasesCreateResponse>
|
|
2952
|
-
*/
|
|
2953
|
-
Databases.prototype.create = function (resourceGroupName, serverName, databaseName, parameters, options) {
|
|
2954
|
-
return this.beginCreate(resourceGroupName, serverName, databaseName, parameters, options)
|
|
2955
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
2956
|
-
};
|
|
2957
|
-
/**
|
|
2958
|
-
* Deletes a database.
|
|
2959
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2960
|
-
* @param serverName The name of the server.
|
|
2961
|
-
* @param databaseName The name of the database.
|
|
2962
|
-
* @param [options] The optional parameters
|
|
2963
|
-
* @returns Promise<msRest.RestResponse>
|
|
2964
|
-
*/
|
|
2965
|
-
Databases.prototype.deleteMethod = function (resourceGroupName, serverName, databaseName, options) {
|
|
2966
|
-
return this.beginDeleteMethod(resourceGroupName, serverName, databaseName, options)
|
|
2967
|
-
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
|
|
2968
|
-
};
|
|
2969
|
-
Databases.prototype.get = function (resourceGroupName, serverName, databaseName, options, callback) {
|
|
2970
|
-
return this.client.sendOperationRequest({
|
|
2971
|
-
resourceGroupName: resourceGroupName,
|
|
2972
|
-
serverName: serverName,
|
|
2973
|
-
databaseName: databaseName,
|
|
2974
|
-
options: options
|
|
2975
|
-
}, getOperationSpec$3, callback);
|
|
2976
|
-
};
|
|
2977
|
-
Databases.prototype.listByServer = function (resourceGroupName, serverName, options, callback) {
|
|
2978
|
-
return this.client.sendOperationRequest({
|
|
2979
|
-
resourceGroupName: resourceGroupName,
|
|
2980
|
-
serverName: serverName,
|
|
2981
|
-
options: options
|
|
2982
|
-
}, listByServerOperationSpec$2, callback);
|
|
2983
|
-
};
|
|
2984
|
-
/**
|
|
2985
|
-
* Creates a new database or updates an existing database.
|
|
2986
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2987
|
-
* @param serverName The name of the server.
|
|
2988
|
-
* @param databaseName The name of the database.
|
|
2989
|
-
* @param parameters The required parameters for creating or updating a database.
|
|
2990
|
-
* @param [options] The optional parameters
|
|
2991
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
2992
|
-
*/
|
|
2993
|
-
Databases.prototype.beginCreate = function (resourceGroupName, serverName, databaseName, parameters, options) {
|
|
2994
|
-
return this.client.sendLRORequest({
|
|
2995
|
-
resourceGroupName: resourceGroupName,
|
|
2996
|
-
serverName: serverName,
|
|
2997
|
-
databaseName: databaseName,
|
|
2998
|
-
parameters: parameters,
|
|
2999
|
-
options: options
|
|
3000
|
-
}, beginCreateOperationSpec$1, options);
|
|
3001
|
-
};
|
|
3002
|
-
/**
|
|
3003
|
-
* Deletes a database.
|
|
3004
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3005
|
-
* @param serverName The name of the server.
|
|
3006
|
-
* @param databaseName The name of the database.
|
|
3007
|
-
* @param [options] The optional parameters
|
|
3008
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
3009
|
-
*/
|
|
3010
|
-
Databases.prototype.beginDeleteMethod = function (resourceGroupName, serverName, databaseName, options) {
|
|
3011
|
-
return this.client.sendLRORequest({
|
|
3012
|
-
resourceGroupName: resourceGroupName,
|
|
3013
|
-
serverName: serverName,
|
|
3014
|
-
databaseName: databaseName,
|
|
3015
|
-
options: options
|
|
3016
|
-
}, beginDeleteMethodOperationSpec$2, options);
|
|
3017
|
-
};
|
|
3018
|
-
Databases.prototype.listByServerNext = function (nextPageLink, options, callback) {
|
|
3019
|
-
return this.client.sendOperationRequest({
|
|
3020
|
-
nextPageLink: nextPageLink,
|
|
3021
|
-
options: options
|
|
3022
|
-
}, listByServerNextOperationSpec$2, callback);
|
|
3023
|
-
};
|
|
3024
|
-
return Databases;
|
|
3025
|
-
}());
|
|
3026
|
-
// Operation Specifications
|
|
3027
|
-
var serializer$7 = new msRest.Serializer(Mappers$7);
|
|
3028
|
-
var getOperationSpec$3 = {
|
|
3029
|
-
httpMethod: "GET",
|
|
3030
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}",
|
|
3031
|
-
urlParameters: [
|
|
3032
|
-
subscriptionId,
|
|
3033
|
-
resourceGroupName,
|
|
3034
|
-
serverName,
|
|
3035
|
-
databaseName
|
|
3036
|
-
],
|
|
3037
|
-
queryParameters: [
|
|
3038
|
-
apiVersion1
|
|
3039
|
-
],
|
|
3040
|
-
headerParameters: [
|
|
3041
|
-
acceptLanguage
|
|
3042
|
-
],
|
|
3043
|
-
responses: {
|
|
3044
|
-
200: {
|
|
3045
|
-
bodyMapper: Database
|
|
3046
|
-
},
|
|
3047
|
-
default: {
|
|
3048
|
-
bodyMapper: CloudError
|
|
3049
|
-
}
|
|
3050
|
-
},
|
|
3051
|
-
serializer: serializer$7
|
|
3052
|
-
};
|
|
3053
|
-
var listByServerOperationSpec$2 = {
|
|
3054
|
-
httpMethod: "GET",
|
|
3055
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases",
|
|
3056
|
-
urlParameters: [
|
|
3057
|
-
subscriptionId,
|
|
3058
|
-
resourceGroupName,
|
|
3059
|
-
serverName
|
|
3060
|
-
],
|
|
3061
|
-
queryParameters: [
|
|
3062
|
-
apiVersion1
|
|
3063
|
-
],
|
|
3064
|
-
headerParameters: [
|
|
3065
|
-
acceptLanguage
|
|
3066
|
-
],
|
|
3067
|
-
responses: {
|
|
3068
|
-
200: {
|
|
3069
|
-
bodyMapper: DatabaseListResult
|
|
3070
|
-
},
|
|
3071
|
-
default: {
|
|
3072
|
-
bodyMapper: CloudError
|
|
3073
|
-
}
|
|
3074
|
-
},
|
|
3075
|
-
serializer: serializer$7
|
|
3076
|
-
};
|
|
3077
|
-
var beginCreateOperationSpec$1 = {
|
|
3078
|
-
httpMethod: "PUT",
|
|
3079
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}",
|
|
3080
|
-
urlParameters: [
|
|
3081
|
-
subscriptionId,
|
|
3082
|
-
resourceGroupName,
|
|
3083
|
-
serverName,
|
|
3084
|
-
databaseName
|
|
3085
|
-
],
|
|
3086
|
-
queryParameters: [
|
|
3087
|
-
apiVersion1
|
|
3088
|
-
],
|
|
3089
|
-
headerParameters: [
|
|
3090
|
-
acceptLanguage
|
|
3091
|
-
],
|
|
3092
|
-
requestBody: {
|
|
3093
|
-
parameterPath: "parameters",
|
|
3094
|
-
mapper: __assign(__assign({}, Database), { required: true })
|
|
3095
|
-
},
|
|
3096
|
-
responses: {
|
|
3097
|
-
200: {
|
|
3098
|
-
bodyMapper: Database
|
|
3099
|
-
},
|
|
3100
|
-
201: {
|
|
3101
|
-
bodyMapper: Database
|
|
3102
|
-
},
|
|
3103
|
-
202: {},
|
|
3104
|
-
default: {
|
|
3105
|
-
bodyMapper: CloudError
|
|
3106
|
-
}
|
|
3107
|
-
},
|
|
3108
|
-
serializer: serializer$7
|
|
3109
|
-
};
|
|
3110
|
-
var beginDeleteMethodOperationSpec$2 = {
|
|
3111
|
-
httpMethod: "DELETE",
|
|
3112
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}",
|
|
3113
|
-
urlParameters: [
|
|
3114
|
-
subscriptionId,
|
|
3115
|
-
resourceGroupName,
|
|
3116
|
-
serverName,
|
|
3117
|
-
databaseName
|
|
3118
|
-
],
|
|
3119
|
-
queryParameters: [
|
|
3120
|
-
apiVersion1
|
|
3121
|
-
],
|
|
3122
|
-
headerParameters: [
|
|
3123
|
-
acceptLanguage
|
|
3124
|
-
],
|
|
3125
|
-
responses: {
|
|
3126
|
-
200: {},
|
|
3127
|
-
202: {},
|
|
3128
|
-
204: {},
|
|
3129
|
-
default: {
|
|
3130
|
-
bodyMapper: CloudError
|
|
3131
|
-
}
|
|
3132
|
-
},
|
|
3133
|
-
serializer: serializer$7
|
|
3134
|
-
};
|
|
3135
|
-
var listByServerNextOperationSpec$2 = {
|
|
3136
|
-
httpMethod: "GET",
|
|
3137
|
-
baseUrl: "https://management.azure.com",
|
|
3138
|
-
path: "{nextLink}",
|
|
3139
|
-
urlParameters: [
|
|
3140
|
-
nextPageLink
|
|
3141
|
-
],
|
|
3142
|
-
queryParameters: [
|
|
3143
|
-
apiVersion1
|
|
3144
|
-
],
|
|
3145
|
-
headerParameters: [
|
|
3146
|
-
acceptLanguage
|
|
3147
|
-
],
|
|
3148
|
-
responses: {
|
|
3149
|
-
200: {
|
|
3150
|
-
bodyMapper: DatabaseListResult
|
|
3151
|
-
},
|
|
3152
|
-
default: {
|
|
3153
|
-
bodyMapper: CloudError
|
|
3154
|
-
}
|
|
3155
|
-
},
|
|
3156
|
-
serializer: serializer$7
|
|
3157
|
-
};
|
|
3158
|
-
|
|
3159
|
-
/*
|
|
3160
|
-
* Copyright (c) Microsoft Corporation.
|
|
3161
|
-
* Licensed under the MIT License.
|
|
3162
|
-
*
|
|
3163
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3164
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3165
|
-
*/
|
|
3166
|
-
|
|
3167
|
-
var Mappers$8 = /*#__PURE__*/Object.freeze({
|
|
3168
|
-
__proto__: null,
|
|
3169
|
-
CloudError: CloudError,
|
|
3170
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
3171
|
-
ErrorResponse: ErrorResponse
|
|
3172
|
-
});
|
|
3173
|
-
|
|
3174
|
-
/*
|
|
3175
|
-
* Copyright (c) Microsoft Corporation.
|
|
3176
|
-
* Licensed under the MIT License.
|
|
3177
|
-
*
|
|
3178
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3179
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
3180
|
-
* regenerated.
|
|
3181
|
-
*/
|
|
3182
|
-
/** Class representing a GetPrivateDnsZoneSuffix. */
|
|
3183
|
-
var GetPrivateDnsZoneSuffix = /** @class */ (function () {
|
|
3184
|
-
/**
|
|
3185
|
-
* Create a GetPrivateDnsZoneSuffix.
|
|
3186
|
-
* @param {PostgreSQLManagementClientContext} client Reference to the service client.
|
|
3187
|
-
*/
|
|
3188
|
-
function GetPrivateDnsZoneSuffix(client) {
|
|
3189
|
-
this.client = client;
|
|
3190
|
-
}
|
|
3191
|
-
GetPrivateDnsZoneSuffix.prototype.execute = function (body, options, callback) {
|
|
3192
|
-
return this.client.sendOperationRequest({
|
|
3193
|
-
body: body,
|
|
3194
|
-
options: options
|
|
3195
|
-
}, executeOperationSpec$3, callback);
|
|
3196
|
-
};
|
|
3197
|
-
return GetPrivateDnsZoneSuffix;
|
|
3198
|
-
}());
|
|
3199
|
-
// Operation Specifications
|
|
3200
|
-
var serializer$8 = new msRest.Serializer(Mappers$8);
|
|
3201
|
-
var executeOperationSpec$3 = {
|
|
3202
|
-
httpMethod: "POST",
|
|
3203
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/getPrivateDnsZoneSuffix",
|
|
3204
|
-
urlParameters: [
|
|
3205
|
-
subscriptionId
|
|
3206
|
-
],
|
|
3207
|
-
queryParameters: [
|
|
3208
|
-
apiVersion2
|
|
3209
|
-
],
|
|
3210
|
-
headerParameters: [
|
|
3211
|
-
acceptLanguage
|
|
3212
|
-
],
|
|
3213
|
-
requestBody: {
|
|
3214
|
-
parameterPath: "body",
|
|
3215
|
-
mapper: {
|
|
3216
|
-
required: true,
|
|
3217
|
-
serializedName: "body",
|
|
3218
|
-
type: {
|
|
3219
|
-
name: "String"
|
|
3220
|
-
}
|
|
3221
|
-
}
|
|
3222
|
-
},
|
|
3223
|
-
responses: {
|
|
3224
|
-
200: {
|
|
3225
|
-
bodyMapper: {
|
|
3226
|
-
serializedName: "parsedResponse",
|
|
3227
|
-
type: {
|
|
3228
|
-
name: "String"
|
|
3229
|
-
}
|
|
3230
|
-
}
|
|
3231
|
-
},
|
|
3232
|
-
default: {
|
|
3233
|
-
bodyMapper: CloudError
|
|
3234
|
-
}
|
|
3235
|
-
},
|
|
3236
|
-
serializer: serializer$8
|
|
3237
|
-
};
|
|
3238
|
-
|
|
3239
|
-
/*
|
|
3240
|
-
* Copyright (c) Microsoft Corporation.
|
|
3241
|
-
* Licensed under the MIT License.
|
|
3242
|
-
*
|
|
3243
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3244
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
3245
|
-
* regenerated.
|
|
3246
|
-
*/
|
|
3247
|
-
var packageName = "@azure/arm-postgresql-flexible";
|
|
3248
|
-
var packageVersion = "2.0.0";
|
|
3249
|
-
var PostgreSQLManagementClientContext = /** @class */ (function (_super) {
|
|
3250
|
-
__extends(PostgreSQLManagementClientContext, _super);
|
|
3251
|
-
/**
|
|
3252
|
-
* Initializes a new instance of the PostgreSQLManagementClient class.
|
|
3253
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
3254
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
3255
|
-
* more information about these credentials, see
|
|
3256
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
3257
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
3258
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
3259
|
-
* @param subscriptionId The ID of the target subscription.
|
|
3260
|
-
* @param [options] The parameter options
|
|
3261
|
-
*/
|
|
3262
|
-
function PostgreSQLManagementClientContext(credentials, subscriptionId, options) {
|
|
3263
|
-
var _this = this;
|
|
3264
|
-
if (credentials == undefined) {
|
|
3265
|
-
throw new Error('\'credentials\' cannot be null.');
|
|
3266
|
-
}
|
|
3267
|
-
if (subscriptionId == undefined) {
|
|
3268
|
-
throw new Error('\'subscriptionId\' cannot be null.');
|
|
3269
|
-
}
|
|
3270
|
-
if (!options) {
|
|
3271
|
-
options = {};
|
|
3272
|
-
}
|
|
3273
|
-
if (!options.userAgent) {
|
|
3274
|
-
var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
|
3275
|
-
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
|
3276
|
-
}
|
|
3277
|
-
_this = _super.call(this, credentials, options) || this;
|
|
3278
|
-
_this.acceptLanguage = 'en-US';
|
|
3279
|
-
_this.longRunningOperationRetryTimeout = 30;
|
|
3280
|
-
_this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
|
|
3281
|
-
_this.requestContentType = "application/json; charset=utf-8";
|
|
3282
|
-
_this.credentials = credentials;
|
|
3283
|
-
_this.subscriptionId = subscriptionId;
|
|
3284
|
-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
|
3285
|
-
_this.acceptLanguage = options.acceptLanguage;
|
|
3286
|
-
}
|
|
3287
|
-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
|
3288
|
-
_this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
|
3289
|
-
}
|
|
3290
|
-
return _this;
|
|
3291
|
-
}
|
|
3292
|
-
return PostgreSQLManagementClientContext;
|
|
3293
|
-
}(msRestAzure.AzureServiceClient));
|
|
3294
|
-
|
|
3295
|
-
/*
|
|
3296
|
-
* Copyright (c) Microsoft Corporation.
|
|
3297
|
-
* Licensed under the MIT License.
|
|
3298
|
-
*
|
|
3299
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3300
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
3301
|
-
* regenerated.
|
|
3302
|
-
*/
|
|
3303
|
-
var PostgreSQLManagementClient = /** @class */ (function (_super) {
|
|
3304
|
-
__extends(PostgreSQLManagementClient, _super);
|
|
3305
|
-
/**
|
|
3306
|
-
* Initializes a new instance of the PostgreSQLManagementClient class.
|
|
3307
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
3308
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
3309
|
-
* more information about these credentials, see
|
|
3310
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
3311
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
3312
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
3313
|
-
* @param subscriptionId The ID of the target subscription.
|
|
3314
|
-
* @param [options] The parameter options
|
|
3315
|
-
*/
|
|
3316
|
-
function PostgreSQLManagementClient(credentials, subscriptionId, options) {
|
|
3317
|
-
var _this = _super.call(this, credentials, subscriptionId, options) || this;
|
|
3318
|
-
_this.servers = new Servers(_this);
|
|
3319
|
-
_this.firewallRules = new FirewallRules(_this);
|
|
3320
|
-
_this.configurations = new Configurations(_this);
|
|
3321
|
-
_this.checkNameAvailability = new CheckNameAvailability(_this);
|
|
3322
|
-
_this.locationBasedCapabilities = new LocationBasedCapabilities(_this);
|
|
3323
|
-
_this.virtualNetworkSubnetUsage = new VirtualNetworkSubnetUsage(_this);
|
|
3324
|
-
_this.operations = new Operations(_this);
|
|
3325
|
-
_this.databases = new Databases(_this);
|
|
3326
|
-
_this.getPrivateDnsZoneSuffix = new GetPrivateDnsZoneSuffix(_this);
|
|
3327
|
-
return _this;
|
|
3328
|
-
}
|
|
3329
|
-
return PostgreSQLManagementClient;
|
|
3330
|
-
}(PostgreSQLManagementClientContext));
|
|
3331
|
-
|
|
3332
|
-
exports.CheckNameAvailability = CheckNameAvailability;
|
|
3333
|
-
exports.Configurations = Configurations;
|
|
3334
|
-
exports.Databases = Databases;
|
|
3335
|
-
exports.FirewallRules = FirewallRules;
|
|
3336
|
-
exports.GetPrivateDnsZoneSuffix = GetPrivateDnsZoneSuffix;
|
|
3337
|
-
exports.LocationBasedCapabilities = LocationBasedCapabilities;
|
|
3338
|
-
exports.Operations = Operations;
|
|
3339
|
-
exports.PostgreSQLManagementClient = PostgreSQLManagementClient;
|
|
3340
|
-
exports.PostgreSQLManagementClientContext = PostgreSQLManagementClientContext;
|
|
3341
|
-
exports.PostgreSQLManagementMappers = mappers;
|
|
3342
|
-
exports.PostgreSQLManagementModels = index;
|
|
3343
|
-
exports.Servers = Servers;
|
|
3344
|
-
exports.VirtualNetworkSubnetUsage = VirtualNetworkSubnetUsage;
|
|
3345
|
-
|
|
3346
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3347
|
-
|
|
3348
|
-
})));
|
|
3349
|
-
//# sourceMappingURL=arm-postgresql-flexible.js.map
|