@azure/arm-postgresql-flexible 7.1.1-alpha.20230502.1 → 8.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/CHANGELOG.md +141 -8
  2. package/README.md +1 -1
  3. package/dist/index.js +4729 -2620
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/administratorsCreateSample.js +1 -1
  8. package/dist-esm/samples-dev/administratorsDeleteSample.js +1 -1
  9. package/dist-esm/samples-dev/administratorsGetSample.js +1 -1
  10. package/dist-esm/samples-dev/administratorsListByServerSample.js +1 -1
  11. package/dist-esm/samples-dev/backupsGetSample.js +1 -1
  12. package/dist-esm/samples-dev/backupsListByServerSample.js +1 -1
  13. package/dist-esm/samples-dev/checkMigrationNameAvailabilitySample.d.ts +2 -0
  14. package/dist-esm/samples-dev/checkMigrationNameAvailabilitySample.d.ts.map +1 -0
  15. package/dist-esm/samples-dev/checkMigrationNameAvailabilitySample.js +43 -0
  16. package/dist-esm/samples-dev/checkMigrationNameAvailabilitySample.js.map +1 -0
  17. package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js +1 -1
  18. package/dist-esm/samples-dev/checkNameAvailabilityWithLocationExecuteSample.js +1 -1
  19. package/dist-esm/samples-dev/configurationsGetSample.js +1 -1
  20. package/dist-esm/samples-dev/configurationsListByServerSample.js +1 -1
  21. package/dist-esm/samples-dev/configurationsPutSample.js +1 -1
  22. package/dist-esm/samples-dev/configurationsUpdateSample.js +1 -1
  23. package/dist-esm/samples-dev/databasesCreateSample.js +1 -1
  24. package/dist-esm/samples-dev/databasesDeleteSample.js +1 -1
  25. package/dist-esm/samples-dev/databasesGetSample.js +1 -1
  26. package/dist-esm/samples-dev/databasesListByServerSample.js +1 -1
  27. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +1 -1
  28. package/dist-esm/samples-dev/firewallRulesDeleteSample.js +1 -1
  29. package/dist-esm/samples-dev/firewallRulesGetSample.js +1 -1
  30. package/dist-esm/samples-dev/firewallRulesListByServerSample.js +1 -1
  31. package/dist-esm/samples-dev/flexibleServerStartLtrBackupSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/flexibleServerStartLtrBackupSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/flexibleServerStartLtrBackupSample.js +43 -0
  34. package/dist-esm/samples-dev/flexibleServerStartLtrBackupSample.js.map +1 -0
  35. package/dist-esm/samples-dev/flexibleServerTriggerLtrPreBackupSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/flexibleServerTriggerLtrPreBackupSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/flexibleServerTriggerLtrPreBackupSample.js +42 -0
  38. package/dist-esm/samples-dev/flexibleServerTriggerLtrPreBackupSample.js.map +1 -0
  39. package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js +1 -1
  40. package/dist-esm/samples-dev/locationBasedCapabilitiesExecuteSample.js +1 -1
  41. package/dist-esm/samples-dev/logFilesListByServerSample.d.ts +2 -0
  42. package/dist-esm/samples-dev/logFilesListByServerSample.d.ts.map +1 -0
  43. package/dist-esm/samples-dev/logFilesListByServerSample.js +60 -0
  44. package/dist-esm/samples-dev/logFilesListByServerSample.js.map +1 -0
  45. package/dist-esm/samples-dev/ltrBackupOperationsGetSample.d.ts +2 -0
  46. package/dist-esm/samples-dev/ltrBackupOperationsGetSample.d.ts.map +1 -0
  47. package/dist-esm/samples-dev/ltrBackupOperationsGetSample.js +40 -0
  48. package/dist-esm/samples-dev/ltrBackupOperationsGetSample.js.map +1 -0
  49. package/dist-esm/samples-dev/ltrBackupOperationsListByServerSample.d.ts +2 -0
  50. package/dist-esm/samples-dev/ltrBackupOperationsListByServerSample.d.ts.map +1 -0
  51. package/dist-esm/samples-dev/ltrBackupOperationsListByServerSample.js +60 -0
  52. package/dist-esm/samples-dev/ltrBackupOperationsListByServerSample.js.map +1 -0
  53. package/dist-esm/samples-dev/migrationsCreateSample.d.ts +2 -0
  54. package/dist-esm/samples-dev/migrationsCreateSample.d.ts.map +1 -0
  55. package/dist-esm/samples-dev/migrationsCreateSample.js +45 -0
  56. package/dist-esm/samples-dev/migrationsCreateSample.js.map +1 -0
  57. package/dist-esm/samples-dev/migrationsDeleteSample.d.ts +2 -0
  58. package/dist-esm/samples-dev/migrationsDeleteSample.d.ts.map +1 -0
  59. package/dist-esm/samples-dev/migrationsDeleteSample.js +40 -0
  60. package/dist-esm/samples-dev/migrationsDeleteSample.js.map +1 -0
  61. package/dist-esm/samples-dev/migrationsGetSample.d.ts +2 -0
  62. package/dist-esm/samples-dev/migrationsGetSample.d.ts.map +1 -0
  63. package/dist-esm/samples-dev/migrationsGetSample.js +40 -0
  64. package/dist-esm/samples-dev/migrationsGetSample.js.map +1 -0
  65. package/dist-esm/samples-dev/migrationsListByTargetServerSample.d.ts +2 -0
  66. package/dist-esm/samples-dev/migrationsListByTargetServerSample.d.ts.map +1 -0
  67. package/dist-esm/samples-dev/migrationsListByTargetServerSample.js +64 -0
  68. package/dist-esm/samples-dev/migrationsListByTargetServerSample.js.map +1 -0
  69. package/dist-esm/samples-dev/migrationsUpdateSample.d.ts +2 -0
  70. package/dist-esm/samples-dev/migrationsUpdateSample.d.ts.map +1 -0
  71. package/dist-esm/samples-dev/migrationsUpdateSample.js +43 -0
  72. package/dist-esm/samples-dev/migrationsUpdateSample.js.map +1 -0
  73. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  74. package/dist-esm/samples-dev/replicasListByServerSample.js +1 -1
  75. package/dist-esm/samples-dev/serverCapabilitiesListSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/serverCapabilitiesListSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/serverCapabilitiesListSample.js +60 -0
  78. package/dist-esm/samples-dev/serverCapabilitiesListSample.js.map +1 -0
  79. package/dist-esm/samples-dev/serversCreateSample.js +63 -9
  80. package/dist-esm/samples-dev/serversCreateSample.js.map +1 -1
  81. package/dist-esm/samples-dev/serversDeleteSample.js +1 -1
  82. package/dist-esm/samples-dev/serversGetSample.js +2 -2
  83. package/dist-esm/samples-dev/serversListByResourceGroupSample.js +1 -1
  84. package/dist-esm/samples-dev/serversListSample.js +1 -1
  85. package/dist-esm/samples-dev/serversRestartSample.js +2 -2
  86. package/dist-esm/samples-dev/serversStartSample.js +1 -1
  87. package/dist-esm/samples-dev/serversStopSample.js +1 -1
  88. package/dist-esm/samples-dev/serversUpdateSample.js +11 -9
  89. package/dist-esm/samples-dev/serversUpdateSample.js.map +1 -1
  90. package/dist-esm/samples-dev/virtualNetworkSubnetUsageExecuteSample.js +1 -1
  91. package/dist-esm/src/models/index.d.ts +1105 -252
  92. package/dist-esm/src/models/index.d.ts.map +1 -1
  93. package/dist-esm/src/models/index.js +240 -2
  94. package/dist-esm/src/models/index.js.map +1 -1
  95. package/dist-esm/src/models/mappers.d.ts +34 -10
  96. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  97. package/dist-esm/src/models/mappers.js +1388 -641
  98. package/dist-esm/src/models/mappers.js.map +1 -1
  99. package/dist-esm/src/models/parameters.d.ts +11 -0
  100. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  101. package/dist-esm/src/models/parameters.js +96 -2
  102. package/dist-esm/src/models/parameters.js.map +1 -1
  103. package/dist-esm/src/operations/flexibleServer.d.ts +39 -0
  104. package/dist-esm/src/operations/flexibleServer.d.ts.map +1 -0
  105. package/dist-esm/src/operations/flexibleServer.js +157 -0
  106. package/dist-esm/src/operations/flexibleServer.js.map +1 -0
  107. package/dist-esm/src/operations/index.d.ts +5 -0
  108. package/dist-esm/src/operations/index.d.ts.map +1 -1
  109. package/dist-esm/src/operations/index.js +5 -0
  110. package/dist-esm/src/operations/index.js.map +1 -1
  111. package/dist-esm/src/operations/locationBasedCapabilities.d.ts +2 -2
  112. package/dist-esm/src/operations/locationBasedCapabilities.d.ts.map +1 -1
  113. package/dist-esm/src/operations/logFiles.d.ts +38 -0
  114. package/dist-esm/src/operations/logFiles.d.ts.map +1 -0
  115. package/dist-esm/src/operations/logFiles.js +155 -0
  116. package/dist-esm/src/operations/logFiles.js.map +1 -0
  117. package/dist-esm/src/operations/ltrBackupOperations.d.ts +46 -0
  118. package/dist-esm/src/operations/ltrBackupOperations.d.ts.map +1 -0
  119. package/dist-esm/src/operations/ltrBackupOperations.js +187 -0
  120. package/dist-esm/src/operations/ltrBackupOperations.js.map +1 -0
  121. package/dist-esm/src/operations/migrations.d.ts +80 -0
  122. package/dist-esm/src/operations/migrations.d.ts.map +1 -0
  123. package/dist-esm/src/operations/migrations.js +331 -0
  124. package/dist-esm/src/operations/migrations.js.map +1 -0
  125. package/dist-esm/src/operations/serverCapabilities.d.ts +38 -0
  126. package/dist-esm/src/operations/serverCapabilities.d.ts.map +1 -0
  127. package/dist-esm/src/operations/serverCapabilities.js +155 -0
  128. package/dist-esm/src/operations/serverCapabilities.js.map +1 -0
  129. package/dist-esm/src/operations/virtualNetworkSubnetUsage.js +1 -1
  130. package/dist-esm/src/operations/virtualNetworkSubnetUsage.js.map +1 -1
  131. package/dist-esm/src/operationsInterfaces/flexibleServer.d.ts +31 -0
  132. package/dist-esm/src/operationsInterfaces/flexibleServer.d.ts.map +1 -0
  133. package/dist-esm/src/operationsInterfaces/flexibleServer.js +9 -0
  134. package/dist-esm/src/operationsInterfaces/flexibleServer.js.map +1 -0
  135. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  136. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  137. package/dist-esm/src/operationsInterfaces/index.js +5 -0
  138. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  139. package/dist-esm/src/operationsInterfaces/locationBasedCapabilities.d.ts +2 -2
  140. package/dist-esm/src/operationsInterfaces/locationBasedCapabilities.d.ts.map +1 -1
  141. package/dist-esm/src/operationsInterfaces/logFiles.d.ts +13 -0
  142. package/dist-esm/src/operationsInterfaces/logFiles.d.ts.map +1 -0
  143. package/dist-esm/src/operationsInterfaces/logFiles.js +9 -0
  144. package/dist-esm/src/operationsInterfaces/logFiles.js.map +1 -0
  145. package/dist-esm/src/operationsInterfaces/ltrBackupOperations.d.ts +21 -0
  146. package/dist-esm/src/operationsInterfaces/ltrBackupOperations.d.ts.map +1 -0
  147. package/dist-esm/src/operationsInterfaces/ltrBackupOperations.js +9 -0
  148. package/dist-esm/src/operationsInterfaces/ltrBackupOperations.js.map +1 -0
  149. package/dist-esm/src/operationsInterfaces/migrations.d.ts +53 -0
  150. package/dist-esm/src/operationsInterfaces/migrations.d.ts.map +1 -0
  151. package/dist-esm/src/operationsInterfaces/migrations.js +9 -0
  152. package/dist-esm/src/operationsInterfaces/migrations.js.map +1 -0
  153. package/dist-esm/src/operationsInterfaces/serverCapabilities.d.ts +13 -0
  154. package/dist-esm/src/operationsInterfaces/serverCapabilities.d.ts.map +1 -0
  155. package/dist-esm/src/operationsInterfaces/serverCapabilities.js +9 -0
  156. package/dist-esm/src/operationsInterfaces/serverCapabilities.js.map +1 -0
  157. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.d.ts +16 -2
  158. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.d.ts.map +1 -1
  159. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.js +52 -3
  160. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.js.map +1 -1
  161. package/package.json +4 -4
  162. package/review/arm-postgresql-flexible.api.md +642 -58
  163. package/src/models/index.ts +1244 -289
  164. package/src/models/mappers.ts +1588 -718
  165. package/src/models/parameters.ts +114 -2
  166. package/src/operations/flexibleServer.ts +223 -0
  167. package/src/operations/index.ts +5 -0
  168. package/src/operations/locationBasedCapabilities.ts +4 -4
  169. package/src/operations/logFiles.ts +198 -0
  170. package/src/operations/ltrBackupOperations.ts +242 -0
  171. package/src/operations/migrations.ts +442 -0
  172. package/src/operations/serverCapabilities.ts +194 -0
  173. package/src/operations/virtualNetworkSubnetUsage.ts +1 -1
  174. package/src/operationsInterfaces/flexibleServer.ts +66 -0
  175. package/src/operationsInterfaces/index.ts +5 -0
  176. package/src/operationsInterfaces/locationBasedCapabilities.ts +2 -2
  177. package/src/operationsInterfaces/logFiles.ts +26 -0
  178. package/src/operationsInterfaces/ltrBackupOperations.ts +44 -0
  179. package/src/operationsInterfaces/migrations.ts +104 -0
  180. package/src/operationsInterfaces/serverCapabilities.ts +29 -0
  181. package/src/postgreSQLManagementFlexibleServerClient.ts +86 -5
  182. package/types/arm-postgresql-flexible.d.ts +1273 -183
  183. package/types/tsdoc-metadata.json +1 -1
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Check the availability of name for resource
17
17
  *
18
18
  * @summary Check the availability of name for resource
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/CheckNameAvailabilityLocationBased.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/CheckNameAvailabilityLocationBased.json
20
20
  */
21
21
  function nameAvailability() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets information about a configuration of server.
17
17
  *
18
18
  * @summary Gets information about a configuration of server.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ConfigurationGet.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/ConfigurationGet.json
20
20
  */
21
21
  function configurationGet() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to List all the configurations in a given server.
17
17
  *
18
18
  * @summary List all the configurations in a given server.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ConfigurationListByServer.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/ConfigurationListByServer.json
20
20
  */
21
21
  function configurationList() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Updates a configuration of a server.
17
17
  *
18
18
  * @summary Updates a configuration of a server.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ConfigurationUpdate.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/ConfigurationUpdate.json
20
20
  */
21
21
  function updateAUserConfiguration() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Updates a configuration of a server.
17
17
  *
18
18
  * @summary Updates a configuration of a server.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ConfigurationUpdate.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/ConfigurationUpdate.json
20
20
  */
21
21
  function updateAUserConfiguration() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Creates a new database or updates an existing database.
17
17
  *
18
18
  * @summary Creates a new database or updates an existing database.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/DatabaseCreate.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/DatabaseCreate.json
20
20
  */
21
21
  function createADatabase() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes a database.
17
17
  *
18
18
  * @summary Deletes a database.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/DatabaseDelete.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/DatabaseDelete.json
20
20
  */
21
21
  function deleteADatabase() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets information about a database.
17
17
  *
18
18
  * @summary Gets information about a database.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/DatabaseGet.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/DatabaseGet.json
20
20
  */
21
21
  function getADatabase() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to List all the databases in a given server.
17
17
  *
18
18
  * @summary List all the databases in a given server.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/DatabasesListByServer.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/DatabasesListByServer.json
20
20
  */
21
21
  function listDatabasesInAServer() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Creates a new firewall rule or updates an existing firewall rule.
17
17
  *
18
18
  * @summary Creates a new firewall rule or updates an existing firewall rule.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/FirewallRuleCreate.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/FirewallRuleCreate.json
20
20
  */
21
21
  function firewallRuleCreate() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes a PostgreSQL server firewall rule.
17
17
  *
18
18
  * @summary Deletes a PostgreSQL server firewall rule.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/FirewallRuleDelete.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/FirewallRuleDelete.json
20
20
  */
21
21
  function firewallRuleDelete() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to List all the firewall rules in a given server.
17
17
  *
18
18
  * @summary List all the firewall rules in a given server.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/FirewallRuleGet.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/FirewallRuleGet.json
20
20
  */
21
21
  function firewallRuleList() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to List all the firewall rules in a given PostgreSQL server.
17
17
  *
18
18
  * @summary List all the firewall rules in a given PostgreSQL server.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/FirewallRuleListByServer.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/FirewallRuleListByServer.json
20
20
  */
21
21
  function firewallRuleList() {
22
22
  var _a, e_1, _b, _c;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flexibleServerStartLtrBackupSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flexibleServerStartLtrBackupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/flexibleServerStartLtrBackupSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { PostgreSQLManagementFlexibleServerClient } from "@azure/arm-postgresql-flexible";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Start the Long Term Retention Backup operation
17
+ *
18
+ * @summary Start the Long Term Retention Backup operation
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/LongTermRetentionBackup.json
20
+ */
21
+ function sampleExecuteBackup() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["POSTGRESQL_SUBSCRIPTION_ID"] ||
24
+ "ffffffff-ffff-ffff-ffff-ffffffffffff";
25
+ const resourceGroupName = process.env["POSTGRESQL_RESOURCE_GROUP"] || "rgLongTermRetention";
26
+ const serverName = "pgsqlltrtestserver";
27
+ const parameters = {
28
+ backupSettings: { backupName: "backup1" },
29
+ targetDetails: { sasUriList: ["sasuri"] }
30
+ };
31
+ const credential = new DefaultAzureCredential();
32
+ const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
33
+ const result = yield client.flexibleServer.beginStartLtrBackupAndWait(resourceGroupName, serverName, parameters);
34
+ console.log(result);
35
+ });
36
+ }
37
+ function main() {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ sampleExecuteBackup();
40
+ });
41
+ }
42
+ main().catch(console.error);
43
+ //# sourceMappingURL=flexibleServerStartLtrBackupSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flexibleServerStartLtrBackupSample.js","sourceRoot":"","sources":["../../samples-dev/flexibleServerStartLtrBackupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wCAAwC,EACzC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;YACzC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,IAAI,qBAAqB,CAAC;QACpE,MAAM,UAAU,GAAG,oBAAoB,CAAC;QACxC,MAAM,UAAU,GAAqB;YACnC,cAAc,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE;YACzC,aAAa,EAAE,EAAE,UAAU,EAAE,CAAC,QAAQ,CAAC,EAAE;SAC1C,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,0BAA0B,CACnE,iBAAiB,EACjB,UAAU,EACV,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flexibleServerTriggerLtrPreBackupSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flexibleServerTriggerLtrPreBackupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/flexibleServerTriggerLtrPreBackupSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { PostgreSQLManagementFlexibleServerClient } from "@azure/arm-postgresql-flexible";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to PreBackup operation performs all the checks that are needed for the subsequent long term retention backup operation to succeed.
17
+ *
18
+ * @summary PreBackup operation performs all the checks that are needed for the subsequent long term retention backup operation to succeed.
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/LongTermRetentionPreBackup.json
20
+ */
21
+ function samplePrebackup() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["POSTGRESQL_SUBSCRIPTION_ID"] ||
24
+ "ffffffff-ffff-ffff-ffff-ffffffffffff";
25
+ const resourceGroupName = process.env["POSTGRESQL_RESOURCE_GROUP"] || "rgLongTermRetention";
26
+ const serverName = "pgsqlltrtestserver";
27
+ const parameters = {
28
+ backupSettings: { backupName: "backup1" }
29
+ };
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
32
+ const result = yield client.flexibleServer.triggerLtrPreBackup(resourceGroupName, serverName, parameters);
33
+ console.log(result);
34
+ });
35
+ }
36
+ function main() {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ samplePrebackup();
39
+ });
40
+ }
41
+ main().catch(console.error);
42
+ //# sourceMappingURL=flexibleServerTriggerLtrPreBackupSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flexibleServerTriggerLtrPreBackupSample.js","sourceRoot":"","sources":["../../samples-dev/flexibleServerTriggerLtrPreBackupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wCAAwC,EACzC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,eAAe;;QAC5B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;YACzC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,IAAI,qBAAqB,CAAC;QACpE,MAAM,UAAU,GAAG,oBAAoB,CAAC;QACxC,MAAM,UAAU,GAAwB;YACtC,cAAc,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE;SAC1C,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,mBAAmB,CAC5D,iBAAiB,EACjB,UAAU,EACV,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,eAAe,EAAE,CAAC;IACpB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Get private DNS zone suffix in the cloud
17
17
  *
18
18
  * @summary Get private DNS zone suffix in the cloud
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/GetPrivateDnsZoneSuffix.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/GetPrivateDnsZoneSuffix.json
20
20
  */
21
21
  function getPrivateDnsZoneSuffix() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Get capabilities at specified location in a given subscription.
17
17
  *
18
18
  * @summary Get capabilities at specified location in a given subscription.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/CapabilitiesByLocation.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/CapabilitiesByLocation.json
20
20
  */
21
21
  function capabilitiesList() {
22
22
  var _a, e_1, _b, _c;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=logFilesListByServerSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logFilesListByServerSample.d.ts","sourceRoot":"","sources":["../../samples-dev/logFilesListByServerSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,60 @@
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
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { PostgreSQLManagementFlexibleServerClient } from "@azure/arm-postgresql-flexible";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to List all the server log files in a given server.
17
+ *
18
+ * @summary List all the server log files in a given server.
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/LogFilesListByServer.json
20
+ */
21
+ function listAllServerLogFilesForAServer() {
22
+ var _a, e_1, _b, _c;
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const subscriptionId = process.env["POSTGRESQL_SUBSCRIPTION_ID"] ||
25
+ "ffffffff-ffff-ffff-ffff-ffffffffffff";
26
+ const resourceGroupName = process.env["POSTGRESQL_RESOURCE_GROUP"] || "testrg";
27
+ const serverName = "postgresqltestsvc1";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
30
+ const resArray = new Array();
31
+ try {
32
+ for (var _d = true, _e = __asyncValues(client.logFiles.listByServer(resourceGroupName, serverName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
33
+ _c = _f.value;
34
+ _d = false;
35
+ try {
36
+ let item = _c;
37
+ resArray.push(item);
38
+ }
39
+ finally {
40
+ _d = true;
41
+ }
42
+ }
43
+ }
44
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
45
+ finally {
46
+ try {
47
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
48
+ }
49
+ finally { if (e_1) throw e_1.error; }
50
+ }
51
+ console.log(resArray);
52
+ });
53
+ }
54
+ function main() {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ listAllServerLogFilesForAServer();
57
+ });
58
+ }
59
+ main().catch(console.error);
60
+ //# sourceMappingURL=logFilesListByServerSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logFilesListByServerSample.js","sourceRoot":"","sources":["../../samples-dev/logFilesListByServerSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,+BAA+B;;;QAC5C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;YACzC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,IAAI,QAAQ,CAAC;QACvD,MAAM,UAAU,GAAG,oBAAoB,CAAC;QACxC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,YAAY,CACjD,iBAAiB,EACjB,UAAU,CACX,CAAA,IAAA;gBAHsB,cAGtB;gBAHsB,WAGtB;;oBAHU,IAAI,IAAI,KAAA,CAAA;oBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,+BAA+B,EAAE,CAAC;IACpC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ltrBackupOperationsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ltrBackupOperationsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/ltrBackupOperationsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { PostgreSQLManagementFlexibleServerClient } from "@azure/arm-postgresql-flexible";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets the result of the give long term retention backup operation for the flexible server.
17
+ *
18
+ * @summary Gets the result of the give long term retention backup operation for the flexible server.
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/LongTermRetentionOperationGet.json
20
+ */
21
+ function sample() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["POSTGRESQL_SUBSCRIPTION_ID"] ||
24
+ "ffffffff-ffff-ffff-ffff-ffffffffffff";
25
+ const resourceGroupName = process.env["POSTGRESQL_RESOURCE_GROUP"] || "rgLongTermRetention";
26
+ const serverName = "pgsqlltrtestserver";
27
+ const backupName = "backup1";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
30
+ const result = yield client.ltrBackupOperations.get(resourceGroupName, serverName, backupName);
31
+ console.log(result);
32
+ });
33
+ }
34
+ function main() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ sample();
37
+ });
38
+ }
39
+ main().catch(console.error);
40
+ //# sourceMappingURL=ltrBackupOperationsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ltrBackupOperationsGetSample.js","sourceRoot":"","sources":["../../samples-dev/ltrBackupOperationsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,MAAM;;QACnB,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;YACzC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,IAAI,qBAAqB,CAAC;QACpE,MAAM,UAAU,GAAG,oBAAoB,CAAC;QACxC,MAAM,UAAU,GAAG,SAAS,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,GAAG,CACjD,iBAAiB,EACjB,UAAU,EACV,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,EAAE,CAAC;IACX,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ltrBackupOperationsListByServerSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ltrBackupOperationsListByServerSample.d.ts","sourceRoot":"","sources":["../../samples-dev/ltrBackupOperationsListByServerSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,60 @@
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
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { PostgreSQLManagementFlexibleServerClient } from "@azure/arm-postgresql-flexible";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets the result of the give long term retention backup operations for the flexible server.
17
+ *
18
+ * @summary Gets the result of the give long term retention backup operations for the flexible server.
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/LongTermRetentionOperationListByServer.json
20
+ */
21
+ function sampleListOfLongTernRetentionOperationsByFlexibleServer() {
22
+ var _a, e_1, _b, _c;
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const subscriptionId = process.env["POSTGRESQL_SUBSCRIPTION_ID"] ||
25
+ "ffffffff-ffff-ffff-ffff-ffffffffffff";
26
+ const resourceGroupName = process.env["POSTGRESQL_RESOURCE_GROUP"] || "rgLongTermRetention";
27
+ const serverName = "pgsqlltrtestserver";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
30
+ const resArray = new Array();
31
+ try {
32
+ for (var _d = true, _e = __asyncValues(client.ltrBackupOperations.listByServer(resourceGroupName, serverName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
33
+ _c = _f.value;
34
+ _d = false;
35
+ try {
36
+ let item = _c;
37
+ resArray.push(item);
38
+ }
39
+ finally {
40
+ _d = true;
41
+ }
42
+ }
43
+ }
44
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
45
+ finally {
46
+ try {
47
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
48
+ }
49
+ finally { if (e_1) throw e_1.error; }
50
+ }
51
+ console.log(resArray);
52
+ });
53
+ }
54
+ function main() {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ sampleListOfLongTernRetentionOperationsByFlexibleServer();
57
+ });
58
+ }
59
+ main().catch(console.error);
60
+ //# sourceMappingURL=ltrBackupOperationsListByServerSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ltrBackupOperationsListByServerSample.js","sourceRoot":"","sources":["../../samples-dev/ltrBackupOperationsListByServerSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,uDAAuD;;;QACpE,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;YACzC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,IAAI,qBAAqB,CAAC;QACpE,MAAM,UAAU,GAAG,oBAAoB,CAAC;QACxC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,mBAAmB,CAAC,YAAY,CAC5D,iBAAiB,EACjB,UAAU,CACX,CAAA,IAAA;gBAHsB,cAGtB;gBAHsB,WAGtB;;oBAHU,IAAI,IAAI,KAAA,CAAA;oBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,uDAAuD,EAAE,CAAC;IAC5D,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=migrationsCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrationsCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/migrationsCreateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { PostgreSQLManagementFlexibleServerClient } from "@azure/arm-postgresql-flexible";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Creates a new migration.
17
+ *
18
+ * @summary Creates a new migration.
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/Migrations_Create.json
20
+ */
21
+ function migrationsCreate() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["POSTGRESQL_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["POSTGRESQL_RESOURCE_GROUP"] || "testrg";
26
+ const targetDbServerName = "testtarget";
27
+ const migrationName = "testmigration";
28
+ const parameters = {
29
+ dbsToMigrate: ["db1", "db2", "db3", "db4"],
30
+ location: "westus",
31
+ sourceDbServerResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBForPostgreSql/servers/testsource"
32
+ };
33
+ const credential = new DefaultAzureCredential();
34
+ const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
35
+ const result = yield client.migrations.create(subscriptionId, resourceGroupName, targetDbServerName, migrationName, parameters);
36
+ console.log(result);
37
+ });
38
+ }
39
+ function main() {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ migrationsCreate();
42
+ });
43
+ }
44
+ main().catch(console.error);
45
+ //# sourceMappingURL=migrationsCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrationsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/migrationsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wCAAwC,EACzC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gBAAgB;;QAC7B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;YACzC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,IAAI,QAAQ,CAAC;QACvD,MAAM,kBAAkB,GAAG,YAAY,CAAC;QACxC,MAAM,aAAa,GAAG,eAAe,CAAC;QACtC,MAAM,UAAU,GAAsB;YACpC,YAAY,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;YAC1C,QAAQ,EAAE,QAAQ;YAClB,wBAAwB,EACtB,kIAAkI;SACrI,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,MAAM,CAC3C,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,gBAAgB,EAAE,CAAC;IACrB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=migrationsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrationsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/migrationsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { PostgreSQLManagementFlexibleServerClient } from "@azure/arm-postgresql-flexible";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Deletes a migration.
17
+ *
18
+ * @summary Deletes a migration.
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/Migrations_Delete.json
20
+ */
21
+ function migrationsDelete() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["POSTGRESQL_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["POSTGRESQL_RESOURCE_GROUP"] || "testrg";
26
+ const targetDbServerName = "testtarget";
27
+ const migrationName = "testmigration";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
30
+ const result = yield client.migrations.delete(subscriptionId, resourceGroupName, targetDbServerName, migrationName);
31
+ console.log(result);
32
+ });
33
+ }
34
+ function main() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ migrationsDelete();
37
+ });
38
+ }
39
+ main().catch(console.error);
40
+ //# sourceMappingURL=migrationsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrationsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/migrationsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gBAAgB;;QAC7B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;YACzC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,IAAI,QAAQ,CAAC;QACvD,MAAM,kBAAkB,GAAG,YAAY,CAAC;QACxC,MAAM,aAAa,GAAG,eAAe,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,MAAM,CAC3C,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,gBAAgB,EAAE,CAAC;IACrB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=migrationsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrationsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/migrationsGetSample.ts"],"names":[],"mappings":""}