@azure/arm-postgresql-flexible 7.1.1-alpha.20230512.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
@@ -1,7 +1,7 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
2
  import { LocationBasedCapabilities } from "../operationsInterfaces";
3
3
  import { PostgreSQLManagementFlexibleServerClient } from "../postgreSQLManagementFlexibleServerClient";
4
- import { CapabilityProperties, LocationBasedCapabilitiesExecuteOptionalParams } from "../models";
4
+ import { FlexibleServerCapability, LocationBasedCapabilitiesExecuteOptionalParams } from "../models";
5
5
  /** Class containing LocationBasedCapabilities operations. */
6
6
  export declare class LocationBasedCapabilitiesImpl implements LocationBasedCapabilities {
7
7
  private readonly client;
@@ -15,7 +15,7 @@ export declare class LocationBasedCapabilitiesImpl implements LocationBasedCapab
15
15
  * @param locationName The name of the location.
16
16
  * @param options The options parameters.
17
17
  */
18
- listExecute(locationName: string, options?: LocationBasedCapabilitiesExecuteOptionalParams): PagedAsyncIterableIterator<CapabilityProperties>;
18
+ listExecute(locationName: string, options?: LocationBasedCapabilitiesExecuteOptionalParams): PagedAsyncIterableIterator<FlexibleServerCapability>;
19
19
  private executePagingPage;
20
20
  private executePagingAll;
21
21
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"locationBasedCapabilities.d.ts","sourceRoot":"","sources":["../../../src/operations/locationBasedCapabilities.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAIpE,OAAO,EAAE,wCAAwC,EAAE,MAAM,6CAA6C,CAAC;AACvG,OAAO,EACL,oBAAoB,EAEpB,8CAA8C,EAG/C,MAAM,WAAW,CAAC;AAGnB,6DAA6D;AAC7D,qBAAa,6BACX,YAAW,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2C;IAElE;;;OAGG;gBACS,MAAM,EAAE,wCAAwC;IAI5D;;;;OAIG;IACI,WAAW,CAChB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,oBAAoB,CAAC;YAkBpC,iBAAiB;YA2BjB,gBAAgB;IAS/B;;;;OAIG;IACH,OAAO,CAAC,QAAQ;IAUhB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;CAUrB"}
1
+ {"version":3,"file":"locationBasedCapabilities.d.ts","sourceRoot":"","sources":["../../../src/operations/locationBasedCapabilities.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAIpE,OAAO,EAAE,wCAAwC,EAAE,MAAM,6CAA6C,CAAC;AACvG,OAAO,EACL,wBAAwB,EAExB,8CAA8C,EAG/C,MAAM,WAAW,CAAC;AAGnB,6DAA6D;AAC7D,qBAAa,6BACX,YAAW,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2C;IAElE;;;OAGG;gBACS,MAAM,EAAE,wCAAwC;IAI5D;;;;OAIG;IACI,WAAW,CAChB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,wBAAwB,CAAC;YAkBxC,iBAAiB;YA2BjB,gBAAgB;IAS/B;;;;OAIG;IACH,OAAO,CAAC,QAAQ;IAUhB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;CAUrB"}
@@ -0,0 +1,38 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { LogFiles } from "../operationsInterfaces";
3
+ import { PostgreSQLManagementFlexibleServerClient } from "../postgreSQLManagementFlexibleServerClient";
4
+ import { LogFile, LogFilesListByServerOptionalParams } from "../models";
5
+ /** Class containing LogFiles operations. */
6
+ export declare class LogFilesImpl implements LogFiles {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class LogFiles class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: PostgreSQLManagementFlexibleServerClient);
13
+ /**
14
+ * List all the server log files in a given server.
15
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
16
+ * @param serverName The name of the server.
17
+ * @param options The options parameters.
18
+ */
19
+ listByServer(resourceGroupName: string, serverName: string, options?: LogFilesListByServerOptionalParams): PagedAsyncIterableIterator<LogFile>;
20
+ private listByServerPagingPage;
21
+ private listByServerPagingAll;
22
+ /**
23
+ * List all the server log files in a given server.
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param serverName The name of the server.
26
+ * @param options The options parameters.
27
+ */
28
+ private _listByServer;
29
+ /**
30
+ * ListByServerNext
31
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
32
+ * @param serverName The name of the server.
33
+ * @param nextLink The nextLink from the previous successful call to the ListByServer method.
34
+ * @param options The options parameters.
35
+ */
36
+ private _listByServerNext;
37
+ }
38
+ //# sourceMappingURL=logFiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logFiles.d.ts","sourceRoot":"","sources":["../../../src/operations/logFiles.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAInD,OAAO,EAAE,wCAAwC,EAAE,MAAM,6CAA6C,CAAC;AACvG,OAAO,EACL,OAAO,EAEP,kCAAkC,EAGnC,MAAM,WAAW,CAAC;AAGnB,4CAA4C;AAC5C,qBAAa,YAAa,YAAW,QAAQ;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2C;IAElE;;;OAGG;gBACS,MAAM,EAAE,wCAAwC;IAI5D;;;;;OAKG;IACI,YAAY,CACjB,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,0BAA0B,CAAC,OAAO,CAAC;YA2BvB,sBAAsB;YA6BtB,qBAAqB;IAcpC;;;;;OAKG;IACH,OAAO,CAAC,aAAa;IAWrB;;;;;;OAMG;IACH,OAAO,CAAC,iBAAiB;CAW1B"}
@@ -0,0 +1,155 @@
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ /// <reference lib="esnext.asynciterable" />
14
+ /** Class containing LogFiles operations. */
15
+ export class LogFilesImpl {
16
+ /**
17
+ * Initialize a new instance of the class LogFiles class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * List all the server log files in a given server.
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param serverName The name of the server.
27
+ * @param options The options parameters.
28
+ */
29
+ listByServer(resourceGroupName, serverName, options) {
30
+ const iter = this.listByServerPagingAll(resourceGroupName, serverName, options);
31
+ return {
32
+ next() {
33
+ return iter.next();
34
+ },
35
+ [Symbol.asyncIterator]() {
36
+ return this;
37
+ },
38
+ byPage: (settings) => {
39
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ throw new Error("maxPageSize is not supported by this operation.");
41
+ }
42
+ return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
43
+ }
44
+ };
45
+ }
46
+ listByServerPagingPage(resourceGroupName, serverName, options, settings) {
47
+ return __asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
48
+ let result;
49
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
+ if (!continuationToken) {
51
+ result = yield __await(this._listByServer(resourceGroupName, serverName, options));
52
+ let page = result.value || [];
53
+ continuationToken = result.nextLink;
54
+ setContinuationToken(page, continuationToken);
55
+ yield yield __await(page);
56
+ }
57
+ while (continuationToken) {
58
+ result = yield __await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
59
+ continuationToken = result.nextLink;
60
+ let page = result.value || [];
61
+ setContinuationToken(page, continuationToken);
62
+ yield yield __await(page);
63
+ }
64
+ });
65
+ }
66
+ listByServerPagingAll(resourceGroupName, serverName, options) {
67
+ return __asyncGenerator(this, arguments, function* listByServerPagingAll_1() {
68
+ var _a, e_1, _b, _c;
69
+ try {
70
+ for (var _d = true, _e = __asyncValues(this.listByServerPagingPage(resourceGroupName, serverName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
71
+ _c = _f.value;
72
+ _d = false;
73
+ try {
74
+ const page = _c;
75
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
76
+ }
77
+ finally {
78
+ _d = true;
79
+ }
80
+ }
81
+ }
82
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
83
+ finally {
84
+ try {
85
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
86
+ }
87
+ finally { if (e_1) throw e_1.error; }
88
+ }
89
+ });
90
+ }
91
+ /**
92
+ * List all the server log files in a given server.
93
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
94
+ * @param serverName The name of the server.
95
+ * @param options The options parameters.
96
+ */
97
+ _listByServer(resourceGroupName, serverName, options) {
98
+ return this.client.sendOperationRequest({ resourceGroupName, serverName, options }, listByServerOperationSpec);
99
+ }
100
+ /**
101
+ * ListByServerNext
102
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
103
+ * @param serverName The name of the server.
104
+ * @param nextLink The nextLink from the previous successful call to the ListByServer method.
105
+ * @param options The options parameters.
106
+ */
107
+ _listByServerNext(resourceGroupName, serverName, nextLink, options) {
108
+ return this.client.sendOperationRequest({ resourceGroupName, serverName, nextLink, options }, listByServerNextOperationSpec);
109
+ }
110
+ }
111
+ // Operation Specifications
112
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
113
+ const listByServerOperationSpec = {
114
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/logFiles",
115
+ httpMethod: "GET",
116
+ responses: {
117
+ 200: {
118
+ bodyMapper: Mappers.LogFileListResult
119
+ },
120
+ default: {
121
+ bodyMapper: Mappers.ErrorResponse
122
+ }
123
+ },
124
+ queryParameters: [Parameters.apiVersion],
125
+ urlParameters: [
126
+ Parameters.$host,
127
+ Parameters.subscriptionId,
128
+ Parameters.resourceGroupName,
129
+ Parameters.serverName
130
+ ],
131
+ headerParameters: [Parameters.accept],
132
+ serializer
133
+ };
134
+ const listByServerNextOperationSpec = {
135
+ path: "{nextLink}",
136
+ httpMethod: "GET",
137
+ responses: {
138
+ 200: {
139
+ bodyMapper: Mappers.LogFileListResult
140
+ },
141
+ default: {
142
+ bodyMapper: Mappers.ErrorResponse
143
+ }
144
+ },
145
+ urlParameters: [
146
+ Parameters.$host,
147
+ Parameters.subscriptionId,
148
+ Parameters.resourceGroupName,
149
+ Parameters.serverName,
150
+ Parameters.nextLink
151
+ ],
152
+ headerParameters: [Parameters.accept],
153
+ serializer
154
+ };
155
+ //# sourceMappingURL=logFiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logFiles.js","sourceRoot":"","sources":["../../../src/operations/logFiles.ts"],"names":[],"mappings":"AAAA;;;;;;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,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,EACpD,6BAA6B,CAC9B,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EACF,8IAA8I;IAChJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { LtrBackupOperations } from "../operationsInterfaces";
3
+ import { PostgreSQLManagementFlexibleServerClient } from "../postgreSQLManagementFlexibleServerClient";
4
+ import { LtrServerBackupOperation, LtrBackupOperationsListByServerOptionalParams, LtrBackupOperationsGetOptionalParams, LtrBackupOperationsGetResponse } from "../models";
5
+ /** Class containing LtrBackupOperations operations. */
6
+ export declare class LtrBackupOperationsImpl implements LtrBackupOperations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class LtrBackupOperations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: PostgreSQLManagementFlexibleServerClient);
13
+ /**
14
+ * Gets the result of the give long term retention backup operations for the flexible server.
15
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
16
+ * @param serverName The name of the server.
17
+ * @param options The options parameters.
18
+ */
19
+ listByServer(resourceGroupName: string, serverName: string, options?: LtrBackupOperationsListByServerOptionalParams): PagedAsyncIterableIterator<LtrServerBackupOperation>;
20
+ private listByServerPagingPage;
21
+ private listByServerPagingAll;
22
+ /**
23
+ * Gets the result of the give long term retention backup operation for the flexible server.
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param serverName The name of the server.
26
+ * @param backupName The name of the backup.
27
+ * @param options The options parameters.
28
+ */
29
+ get(resourceGroupName: string, serverName: string, backupName: string, options?: LtrBackupOperationsGetOptionalParams): Promise<LtrBackupOperationsGetResponse>;
30
+ /**
31
+ * Gets the result of the give long term retention backup operations for the flexible server.
32
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
33
+ * @param serverName The name of the server.
34
+ * @param options The options parameters.
35
+ */
36
+ private _listByServer;
37
+ /**
38
+ * ListByServerNext
39
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
+ * @param serverName The name of the server.
41
+ * @param nextLink The nextLink from the previous successful call to the ListByServer method.
42
+ * @param options The options parameters.
43
+ */
44
+ private _listByServerNext;
45
+ }
46
+ //# sourceMappingURL=ltrBackupOperations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ltrBackupOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/ltrBackupOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAI9D,OAAO,EAAE,wCAAwC,EAAE,MAAM,6CAA6C,CAAC;AACvG,OAAO,EACL,wBAAwB,EAExB,6CAA6C,EAE7C,oCAAoC,EACpC,8BAA8B,EAE/B,MAAM,WAAW,CAAC;AAGnB,uDAAuD;AACvD,qBAAa,uBAAwB,YAAW,mBAAmB;IACjE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2C;IAElE;;;OAGG;gBACS,MAAM,EAAE,wCAAwC;IAI5D;;;;;OAKG;IACI,YAAY,CACjB,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,6CAA6C,GACtD,0BAA0B,CAAC,wBAAwB,CAAC;YA2BxC,sBAAsB;YA6BtB,qBAAqB;IAcpC;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC;IAO1C;;;;;OAKG;IACH,OAAO,CAAC,aAAa;IAWrB;;;;;;OAMG;IACH,OAAO,CAAC,iBAAiB;CAW1B"}
@@ -0,0 +1,187 @@
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ /// <reference lib="esnext.asynciterable" />
14
+ /** Class containing LtrBackupOperations operations. */
15
+ export class LtrBackupOperationsImpl {
16
+ /**
17
+ * Initialize a new instance of the class LtrBackupOperations class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * Gets the result of the give long term retention backup operations for the flexible server.
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param serverName The name of the server.
27
+ * @param options The options parameters.
28
+ */
29
+ listByServer(resourceGroupName, serverName, options) {
30
+ const iter = this.listByServerPagingAll(resourceGroupName, serverName, options);
31
+ return {
32
+ next() {
33
+ return iter.next();
34
+ },
35
+ [Symbol.asyncIterator]() {
36
+ return this;
37
+ },
38
+ byPage: (settings) => {
39
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ throw new Error("maxPageSize is not supported by this operation.");
41
+ }
42
+ return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
43
+ }
44
+ };
45
+ }
46
+ listByServerPagingPage(resourceGroupName, serverName, options, settings) {
47
+ return __asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
48
+ let result;
49
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
+ if (!continuationToken) {
51
+ result = yield __await(this._listByServer(resourceGroupName, serverName, options));
52
+ let page = result.value || [];
53
+ continuationToken = result.nextLink;
54
+ setContinuationToken(page, continuationToken);
55
+ yield yield __await(page);
56
+ }
57
+ while (continuationToken) {
58
+ result = yield __await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
59
+ continuationToken = result.nextLink;
60
+ let page = result.value || [];
61
+ setContinuationToken(page, continuationToken);
62
+ yield yield __await(page);
63
+ }
64
+ });
65
+ }
66
+ listByServerPagingAll(resourceGroupName, serverName, options) {
67
+ return __asyncGenerator(this, arguments, function* listByServerPagingAll_1() {
68
+ var _a, e_1, _b, _c;
69
+ try {
70
+ for (var _d = true, _e = __asyncValues(this.listByServerPagingPage(resourceGroupName, serverName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
71
+ _c = _f.value;
72
+ _d = false;
73
+ try {
74
+ const page = _c;
75
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
76
+ }
77
+ finally {
78
+ _d = true;
79
+ }
80
+ }
81
+ }
82
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
83
+ finally {
84
+ try {
85
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
86
+ }
87
+ finally { if (e_1) throw e_1.error; }
88
+ }
89
+ });
90
+ }
91
+ /**
92
+ * Gets the result of the give long term retention backup operation for the flexible server.
93
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
94
+ * @param serverName The name of the server.
95
+ * @param backupName The name of the backup.
96
+ * @param options The options parameters.
97
+ */
98
+ get(resourceGroupName, serverName, backupName, options) {
99
+ return this.client.sendOperationRequest({ resourceGroupName, serverName, backupName, options }, getOperationSpec);
100
+ }
101
+ /**
102
+ * Gets the result of the give long term retention backup operations for the flexible server.
103
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
104
+ * @param serverName The name of the server.
105
+ * @param options The options parameters.
106
+ */
107
+ _listByServer(resourceGroupName, serverName, options) {
108
+ return this.client.sendOperationRequest({ resourceGroupName, serverName, options }, listByServerOperationSpec);
109
+ }
110
+ /**
111
+ * ListByServerNext
112
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
113
+ * @param serverName The name of the server.
114
+ * @param nextLink The nextLink from the previous successful call to the ListByServer method.
115
+ * @param options The options parameters.
116
+ */
117
+ _listByServerNext(resourceGroupName, serverName, nextLink, options) {
118
+ return this.client.sendOperationRequest({ resourceGroupName, serverName, nextLink, options }, listByServerNextOperationSpec);
119
+ }
120
+ }
121
+ // Operation Specifications
122
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
123
+ const getOperationSpec = {
124
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/ltrBackupOperations/{backupName}",
125
+ httpMethod: "GET",
126
+ responses: {
127
+ 200: {
128
+ bodyMapper: Mappers.LtrServerBackupOperation
129
+ },
130
+ default: {
131
+ bodyMapper: Mappers.ErrorResponse
132
+ }
133
+ },
134
+ queryParameters: [Parameters.apiVersion],
135
+ urlParameters: [
136
+ Parameters.$host,
137
+ Parameters.subscriptionId,
138
+ Parameters.resourceGroupName,
139
+ Parameters.serverName,
140
+ Parameters.backupName1
141
+ ],
142
+ headerParameters: [Parameters.accept],
143
+ serializer
144
+ };
145
+ const listByServerOperationSpec = {
146
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/ltrBackupOperations",
147
+ httpMethod: "GET",
148
+ responses: {
149
+ 200: {
150
+ bodyMapper: Mappers.LtrServerBackupOperationList
151
+ },
152
+ default: {
153
+ bodyMapper: Mappers.ErrorResponse
154
+ }
155
+ },
156
+ queryParameters: [Parameters.apiVersion],
157
+ urlParameters: [
158
+ Parameters.$host,
159
+ Parameters.subscriptionId,
160
+ Parameters.resourceGroupName,
161
+ Parameters.serverName
162
+ ],
163
+ headerParameters: [Parameters.accept],
164
+ serializer
165
+ };
166
+ const listByServerNextOperationSpec = {
167
+ path: "{nextLink}",
168
+ httpMethod: "GET",
169
+ responses: {
170
+ 200: {
171
+ bodyMapper: Mappers.LtrServerBackupOperationList
172
+ },
173
+ default: {
174
+ bodyMapper: Mappers.ErrorResponse
175
+ }
176
+ },
177
+ urlParameters: [
178
+ Parameters.$host,
179
+ Parameters.subscriptionId,
180
+ Parameters.resourceGroupName,
181
+ Parameters.serverName,
182
+ Parameters.nextLink
183
+ ],
184
+ headerParameters: [Parameters.accept],
185
+ serializer
186
+ };
187
+ //# sourceMappingURL=ltrBackupOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ltrBackupOperations.js","sourceRoot":"","sources":["../../../src/operations/lt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,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,80 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Migrations } from "../operationsInterfaces";
3
+ import { PostgreSQLManagementFlexibleServerClient } from "../postgreSQLManagementFlexibleServerClient";
4
+ import { MigrationResource, MigrationsListByTargetServerOptionalParams, MigrationsCreateOptionalParams, MigrationsCreateResponse, MigrationsGetOptionalParams, MigrationsGetResponse, MigrationResourceForPatch, MigrationsUpdateOptionalParams, MigrationsUpdateResponse, MigrationsDeleteOptionalParams } from "../models";
5
+ /** Class containing Migrations operations. */
6
+ export declare class MigrationsImpl implements Migrations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Migrations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: PostgreSQLManagementFlexibleServerClient);
13
+ /**
14
+ * List all the migrations on a given target server.
15
+ * @param subscriptionId The subscription ID of the target database server.
16
+ * @param resourceGroupName The resource group name of the target database server.
17
+ * @param targetDbServerName The name of the target database server.
18
+ * @param options The options parameters.
19
+ */
20
+ listByTargetServer(subscriptionId: string, resourceGroupName: string, targetDbServerName: string, options?: MigrationsListByTargetServerOptionalParams): PagedAsyncIterableIterator<MigrationResource>;
21
+ private listByTargetServerPagingPage;
22
+ private listByTargetServerPagingAll;
23
+ /**
24
+ * Creates a new migration.
25
+ * @param subscriptionId The subscription ID of the target database server.
26
+ * @param resourceGroupName The resource group name of the target database server.
27
+ * @param targetDbServerName The name of the target database server.
28
+ * @param migrationName The name of the migration.
29
+ * @param parameters The required parameters for creating a migration.
30
+ * @param options The options parameters.
31
+ */
32
+ create(subscriptionId: string, resourceGroupName: string, targetDbServerName: string, migrationName: string, parameters: MigrationResource, options?: MigrationsCreateOptionalParams): Promise<MigrationsCreateResponse>;
33
+ /**
34
+ * Gets details of a migration.
35
+ * @param subscriptionId The subscription ID of the target database server.
36
+ * @param resourceGroupName The resource group name of the target database server.
37
+ * @param targetDbServerName The name of the target database server.
38
+ * @param migrationName The name of the migration.
39
+ * @param options The options parameters.
40
+ */
41
+ get(subscriptionId: string, resourceGroupName: string, targetDbServerName: string, migrationName: string, options?: MigrationsGetOptionalParams): Promise<MigrationsGetResponse>;
42
+ /**
43
+ * Updates an existing migration. The request body can contain one to many of the mutable properties
44
+ * present in the migration definition. Certain property updates initiate migration state transitions.
45
+ * @param subscriptionId The subscription ID of the target database server.
46
+ * @param resourceGroupName The resource group name of the target database server.
47
+ * @param targetDbServerName The name of the target database server.
48
+ * @param migrationName The name of the migration.
49
+ * @param parameters The required parameters for updating a migration.
50
+ * @param options The options parameters.
51
+ */
52
+ update(subscriptionId: string, resourceGroupName: string, targetDbServerName: string, migrationName: string, parameters: MigrationResourceForPatch, options?: MigrationsUpdateOptionalParams): Promise<MigrationsUpdateResponse>;
53
+ /**
54
+ * Deletes a migration.
55
+ * @param subscriptionId The subscription ID of the target database server.
56
+ * @param resourceGroupName The resource group name of the target database server.
57
+ * @param targetDbServerName The name of the target database server.
58
+ * @param migrationName The name of the migration.
59
+ * @param options The options parameters.
60
+ */
61
+ delete(subscriptionId: string, resourceGroupName: string, targetDbServerName: string, migrationName: string, options?: MigrationsDeleteOptionalParams): Promise<void>;
62
+ /**
63
+ * List all the migrations on a given target server.
64
+ * @param subscriptionId The subscription ID of the target database server.
65
+ * @param resourceGroupName The resource group name of the target database server.
66
+ * @param targetDbServerName The name of the target database server.
67
+ * @param options The options parameters.
68
+ */
69
+ private _listByTargetServer;
70
+ /**
71
+ * ListByTargetServerNext
72
+ * @param subscriptionId The subscription ID of the target database server.
73
+ * @param resourceGroupName The resource group name of the target database server.
74
+ * @param targetDbServerName The name of the target database server.
75
+ * @param nextLink The nextLink from the previous successful call to the ListByTargetServer method.
76
+ * @param options The options parameters.
77
+ */
78
+ private _listByTargetServerNext;
79
+ }
80
+ //# sourceMappingURL=migrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../src/operations/migrations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,wCAAwC,EAAE,MAAM,6CAA6C,CAAC;AACvG,OAAO,EACL,iBAAiB,EAEjB,0CAA0C,EAE1C,8BAA8B,EAC9B,wBAAwB,EACxB,2BAA2B,EAC3B,qBAAqB,EACrB,yBAAyB,EACzB,8BAA8B,EAC9B,wBAAwB,EACxB,8BAA8B,EAE/B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2C;IAElE;;;OAGG;gBACS,MAAM,EAAE,wCAAwC;IAI5D;;;;;;OAMG;IACI,kBAAkB,CACvB,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,kBAAk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