@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
@@ -123,13 +123,13 @@ export interface ServerBackupListResult {
123
123
  nextLink?: string;
124
124
  }
125
125
 
126
- /** location capability */
126
+ /** Capability for the PostgreSQL server */
127
127
  export interface CapabilitiesListResult {
128
128
  /**
129
129
  * A list of supported capabilities.
130
130
  * NOTE: This property will not be serialized. It can only be populated by the server.
131
131
  */
132
- readonly value?: CapabilityProperties[];
132
+ readonly value?: FlexibleServerCapability[];
133
133
  /**
134
134
  * Link to retrieve next page of results.
135
135
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -137,259 +137,18 @@ export interface CapabilitiesListResult {
137
137
  readonly nextLink?: string;
138
138
  }
139
139
 
140
- /** Location capabilities. */
141
- export interface CapabilityProperties {
140
+ /** Base object for representing capability */
141
+ export interface CapabilityBase {
142
142
  /**
143
- * zone name
143
+ * The status of the capability.
144
144
  * NOTE: This property will not be serialized. It can only be populated by the server.
145
145
  */
146
- readonly zone?: string;
146
+ readonly status?: CapabilityStatus;
147
147
  /**
148
- * Supported high availability mode
149
- * NOTE: This property will not be serialized. It can only be populated by the server.
150
- */
151
- readonly supportedHAMode?: string[];
152
- /**
153
- * A value indicating whether a new server in this region can have geo-backups to paired region.
154
- * NOTE: This property will not be serialized. It can only be populated by the server.
155
- */
156
- readonly geoBackupSupported?: boolean;
157
- /**
158
- * A value indicating whether a new server in this region can support multi zone HA.
159
- * NOTE: This property will not be serialized. It can only be populated by the server.
160
- */
161
- readonly zoneRedundantHaSupported?: boolean;
162
- /**
163
- * A value indicating whether a new server in this region can have geo-backups to paired region.
164
- * NOTE: This property will not be serialized. It can only be populated by the server.
165
- */
166
- readonly zoneRedundantHaAndGeoBackupSupported?: boolean;
167
- /** NOTE: This property will not be serialized. It can only be populated by the server. */
168
- readonly supportedFlexibleServerEditions?: FlexibleServerEditionCapability[];
169
- /** NOTE: This property will not be serialized. It can only be populated by the server. */
170
- readonly supportedHyperscaleNodeEditions?: HyperscaleNodeEditionCapability[];
171
- /**
172
- * A value indicating whether fast provisioning is supported in this region.
173
- * NOTE: This property will not be serialized. It can only be populated by the server.
174
- */
175
- readonly fastProvisioningSupported?: boolean;
176
- /** NOTE: This property will not be serialized. It can only be populated by the server. */
177
- readonly supportedFastProvisioningEditions?: FastProvisioningEditionCapability[];
178
- /**
179
- * The status
180
- * NOTE: This property will not be serialized. It can only be populated by the server.
181
- */
182
- readonly status?: string;
183
- }
184
-
185
- /** Flexible server edition capabilities. */
186
- export interface FlexibleServerEditionCapability {
187
- /**
188
- * Server edition name
189
- * NOTE: This property will not be serialized. It can only be populated by the server.
190
- */
191
- readonly name?: string;
192
- /**
193
- * The list of editions supported by this server edition.
194
- * NOTE: This property will not be serialized. It can only be populated by the server.
195
- */
196
- readonly supportedStorageEditions?: StorageEditionCapability[];
197
- /**
198
- * The list of server versions supported by this server edition.
199
- * NOTE: This property will not be serialized. It can only be populated by the server.
200
- */
201
- readonly supportedServerVersions?: ServerVersionCapability[];
202
- /**
203
- * The status
204
- * NOTE: This property will not be serialized. It can only be populated by the server.
205
- */
206
- readonly status?: string;
207
- }
208
-
209
- /** storage edition capability */
210
- export interface StorageEditionCapability {
211
- /**
212
- * storage edition name
213
- * NOTE: This property will not be serialized. It can only be populated by the server.
214
- */
215
- readonly name?: string;
216
- /** NOTE: This property will not be serialized. It can only be populated by the server. */
217
- readonly supportedStorageMB?: StorageMBCapability[];
218
- /**
219
- * The status
220
- * NOTE: This property will not be serialized. It can only be populated by the server.
221
- */
222
- readonly status?: string;
223
- }
224
-
225
- /** storage size in MB capability */
226
- export interface StorageMBCapability {
227
- /**
228
- * storage MB name
229
- * NOTE: This property will not be serialized. It can only be populated by the server.
230
- */
231
- readonly name?: string;
232
- /**
233
- * supported IOPS
234
- * NOTE: This property will not be serialized. It can only be populated by the server.
235
- */
236
- readonly supportedIops?: number;
237
- /**
238
- * storage size in MB
239
- * NOTE: This property will not be serialized. It can only be populated by the server.
240
- */
241
- readonly storageSizeMB?: number;
242
- /** NOTE: This property will not be serialized. It can only be populated by the server. */
243
- readonly supportedUpgradableTierList?: StorageTierCapability[];
244
- /**
245
- * The status
246
- * NOTE: This property will not be serialized. It can only be populated by the server.
247
- */
248
- readonly status?: string;
249
- }
250
-
251
- export interface StorageTierCapability {
252
- /**
253
- * Name to represent Storage tier capability
254
- * NOTE: This property will not be serialized. It can only be populated by the server.
255
- */
256
- readonly name?: string;
257
- /**
258
- * Storage tier name
259
- * NOTE: This property will not be serialized. It can only be populated by the server.
260
- */
261
- readonly tierName?: string;
262
- /**
263
- * Supported IOPS for this storage tier
264
- * NOTE: This property will not be serialized. It can only be populated by the server.
265
- */
266
- readonly iops?: number;
267
- /**
268
- * Indicates if this is a baseline storage tier or not
269
- * NOTE: This property will not be serialized. It can only be populated by the server.
270
- */
271
- readonly isBaseline?: boolean;
272
- /**
273
- * Status os this storage tier
274
- * NOTE: This property will not be serialized. It can only be populated by the server.
275
- */
276
- readonly status?: string;
277
- }
278
-
279
- /** Server version capabilities. */
280
- export interface ServerVersionCapability {
281
- /**
282
- * server version
283
- * NOTE: This property will not be serialized. It can only be populated by the server.
284
- */
285
- readonly name?: string;
286
- /**
287
- * Supported servers versions to upgrade
288
- * NOTE: This property will not be serialized. It can only be populated by the server.
289
- */
290
- readonly supportedVersionsToUpgrade?: string[];
291
- /** NOTE: This property will not be serialized. It can only be populated by the server. */
292
- readonly supportedVcores?: VcoreCapability[];
293
- /**
294
- * The status
295
- * NOTE: This property will not be serialized. It can only be populated by the server.
296
- */
297
- readonly status?: string;
298
- }
299
-
300
- /** Vcores capability */
301
- export interface VcoreCapability {
302
- /**
303
- * vCore name
304
- * NOTE: This property will not be serialized. It can only be populated by the server.
305
- */
306
- readonly name?: string;
307
- /**
308
- * supported vCores
309
- * NOTE: This property will not be serialized. It can only be populated by the server.
310
- */
311
- readonly vCores?: number;
312
- /**
313
- * supported IOPS
314
- * NOTE: This property will not be serialized. It can only be populated by the server.
315
- */
316
- readonly supportedIops?: number;
317
- /**
318
- * supported memory per vCore in MB
319
- * NOTE: This property will not be serialized. It can only be populated by the server.
320
- */
321
- readonly supportedMemoryPerVcoreMB?: number;
322
- /**
323
- * The status
324
- * NOTE: This property will not be serialized. It can only be populated by the server.
325
- */
326
- readonly status?: string;
327
- }
328
-
329
- /** Hyperscale node edition capabilities. */
330
- export interface HyperscaleNodeEditionCapability {
331
- /**
332
- * Server edition name
333
- * NOTE: This property will not be serialized. It can only be populated by the server.
334
- */
335
- readonly name?: string;
336
- /**
337
- * The list of editions supported by this server edition.
338
- * NOTE: This property will not be serialized. It can only be populated by the server.
339
- */
340
- readonly supportedStorageEditions?: StorageEditionCapability[];
341
- /**
342
- * The list of server versions supported by this server edition.
343
- * NOTE: This property will not be serialized. It can only be populated by the server.
344
- */
345
- readonly supportedServerVersions?: ServerVersionCapability[];
346
- /**
347
- * The list of Node Types supported by this server edition.
348
- * NOTE: This property will not be serialized. It can only be populated by the server.
349
- */
350
- readonly supportedNodeTypes?: NodeTypeCapability[];
351
- /**
352
- * The status
353
- * NOTE: This property will not be serialized. It can only be populated by the server.
354
- */
355
- readonly status?: string;
356
- }
357
-
358
- /** node type capability */
359
- export interface NodeTypeCapability {
360
- /**
361
- * note type name
362
- * NOTE: This property will not be serialized. It can only be populated by the server.
363
- */
364
- readonly name?: string;
365
- /**
366
- * note type
367
- * NOTE: This property will not be serialized. It can only be populated by the server.
368
- */
369
- readonly nodeType?: string;
370
- /**
371
- * The status
372
- * NOTE: This property will not be serialized. It can only be populated by the server.
373
- */
374
- readonly status?: string;
375
- }
376
-
377
- export interface FastProvisioningEditionCapability {
378
- /**
379
- * Fast provisioning supported sku name
380
- * NOTE: This property will not be serialized. It can only be populated by the server.
381
- */
382
- readonly supportedSku?: string;
383
- /**
384
- * Fast provisioning supported storage in Gb
385
- * NOTE: This property will not be serialized. It can only be populated by the server.
386
- */
387
- readonly supportedStorageGb?: number;
388
- /**
389
- * Fast provisioning supported version
148
+ * The reason for the capability not being available.
390
149
  * NOTE: This property will not be serialized. It can only be populated by the server.
391
150
  */
392
- readonly supportedServerVersions?: string;
151
+ readonly reason?: string;
393
152
  }
394
153
 
395
154
  /** The check availability request body. */
@@ -499,7 +258,7 @@ export interface Sku {
499
258
  export interface UserAssignedIdentity {
500
259
  /** represents user assigned identities map. */
501
260
  userAssignedIdentities?: { [propertyName: string]: UserIdentity };
502
- /** the types of identities associated with this resource; currently restricted to 'SystemAssigned and UserAssigned' */
261
+ /** the types of identities associated with this resource; currently restricted to 'None and UserAssigned' */
503
262
  type: IdentityType;
504
263
  }
505
264
 
@@ -515,6 +274,15 @@ export interface UserIdentity {
515
274
  export interface Storage {
516
275
  /** Max storage allowed for a server. */
517
276
  storageSizeGB?: number;
277
+ /** Flag to enable / disable Storage Auto grow for flexible server. */
278
+ autoGrow?: StorageAutoGrow;
279
+ /** Name of storage tier for IOPS. */
280
+ iopsTier?: AzureManagedDiskPerformanceTiers;
281
+ /**
282
+ * Storage tier IOPS quantity.
283
+ * NOTE: This property will not be serialized. It can only be populated by the server.
284
+ */
285
+ readonly iops?: number;
518
286
  }
519
287
 
520
288
  /** Authentication configuration properties of a server */
@@ -529,12 +297,20 @@ export interface AuthConfig {
529
297
 
530
298
  /** Data encryption properties of a server */
531
299
  export interface DataEncryption {
532
- /** URI for the key for data encryption for primary server. */
300
+ /** URI for the key in keyvault for data encryption of the primary server. */
533
301
  primaryKeyURI?: string;
534
- /** Resource Id for the User assigned identity to be used for data encryption for primary server. */
302
+ /** Resource Id for the User assigned identity to be used for data encryption of the primary server. */
535
303
  primaryUserAssignedIdentityId?: string;
304
+ /** URI for the key in keyvault for data encryption for geo-backup of server. */
305
+ geoBackupKeyURI?: string;
306
+ /** Resource Id for the User assigned identity to be used for data encryption for geo-backup of server. */
307
+ geoBackupUserAssignedIdentityId?: string;
536
308
  /** Data encryption type to depict if it is System Managed vs Azure Key vault. */
537
309
  type?: ArmServerKeyType;
310
+ /** Primary encryption key status for Data encryption enabled server. */
311
+ primaryEncryptionKeyStatus?: KeyStatusEnum;
312
+ /** Geo-backup encryption key status for Data encryption enabled server. */
313
+ geoBackupEncryptionKeyStatus?: KeyStatusEnum;
538
314
  }
539
315
 
540
316
  /** Backup properties of a server */
@@ -629,6 +405,142 @@ export interface ServerListResult {
629
405
  nextLink?: string;
630
406
  }
631
407
 
408
+ /** Migration status. */
409
+ export interface MigrationStatus {
410
+ /**
411
+ * State of migration
412
+ * NOTE: This property will not be serialized. It can only be populated by the server.
413
+ */
414
+ readonly state?: MigrationState;
415
+ /**
416
+ * Error message, if any, for the migration state
417
+ * NOTE: This property will not be serialized. It can only be populated by the server.
418
+ */
419
+ readonly error?: string;
420
+ /**
421
+ * Current Migration sub state details.
422
+ * NOTE: This property will not be serialized. It can only be populated by the server.
423
+ */
424
+ readonly currentSubStateDetails?: MigrationSubStateDetails;
425
+ }
426
+
427
+ /** Migration sub state details. */
428
+ export interface MigrationSubStateDetails {
429
+ /**
430
+ * Migration sub state.
431
+ * NOTE: This property will not be serialized. It can only be populated by the server.
432
+ */
433
+ readonly currentSubState?: MigrationSubState;
434
+ }
435
+
436
+ /** Database server metadata. */
437
+ export interface DbServerMetadata {
438
+ /**
439
+ * Location of database server
440
+ * NOTE: This property will not be serialized. It can only be populated by the server.
441
+ */
442
+ readonly location?: string;
443
+ /** Version for database engine */
444
+ version?: string;
445
+ /** Storage size in MB for database server */
446
+ storageMb?: number;
447
+ /** SKU for the database server */
448
+ sku?: ServerSkuAutoGenerated;
449
+ }
450
+
451
+ /** Sku information related properties of a server. */
452
+ export interface ServerSkuAutoGenerated {
453
+ /** The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3. */
454
+ name: string;
455
+ /** The tier of the particular SKU, e.g. Burstable. */
456
+ tier: SkuTier;
457
+ }
458
+
459
+ /** Migration secret parameters. */
460
+ export interface MigrationSecretParameters {
461
+ /** Admin credentials for source and target servers */
462
+ adminCredentials: AdminCredentials;
463
+ }
464
+
465
+ /** Server admin credentials. */
466
+ export interface AdminCredentials {
467
+ /** Password for source server. */
468
+ sourceServerPassword: string;
469
+ /** Password for target server. */
470
+ targetServerPassword: string;
471
+ }
472
+
473
+ /** Represents a migration resource for patch. */
474
+ export interface MigrationResourceForPatch {
475
+ /** Application-specific metadata in the form of key-value pairs. */
476
+ tags?: { [propertyName: string]: string };
477
+ /** ResourceId of the source database server */
478
+ sourceDbServerResourceId?: string;
479
+ /** Source server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection */
480
+ sourceDbServerFullyQualifiedDomainName?: string;
481
+ /** Target server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection */
482
+ targetDbServerFullyQualifiedDomainName?: string;
483
+ /** Migration secret parameters */
484
+ secretParameters?: MigrationSecretParameters;
485
+ /** Number of databases to migrate */
486
+ dbsToMigrate?: string[];
487
+ /** Indicates whether to setup LogicalReplicationOnSourceDb, if needed */
488
+ setupLogicalReplicationOnSourceDbIfNeeded?: LogicalReplicationOnSourceDbEnum;
489
+ /** Indicates whether the databases on the target server can be overwritten, if already present. If set to Disabled, the migration workflow will wait for a confirmation, if it detects that the database already exists. */
490
+ overwriteDbsInTarget?: OverwriteDbsInTargetEnum;
491
+ /** Start time in UTC for migration window */
492
+ migrationWindowStartTimeInUtc?: Date;
493
+ /** Indicates whether the data migration should start right away */
494
+ startDataMigration?: StartDataMigrationEnum;
495
+ /** To trigger cutover for entire migration we need to send this flag as Enabled */
496
+ triggerCutover?: TriggerCutoverEnum;
497
+ /** When you want to trigger cutover for specific databases send triggerCutover flag as Enabled and database names in this array */
498
+ dbsToTriggerCutoverOn?: string[];
499
+ /** To trigger cancel for entire migration we need to send this flag as Enabled */
500
+ cancel?: CancelEnum;
501
+ /** When you want to trigger cancel for specific databases send cancel flag as Enabled and database names in this array */
502
+ dbsToCancelMigrationOn?: string[];
503
+ /** There are two types of migration modes Online and Offline */
504
+ migrationMode?: MigrationMode;
505
+ }
506
+
507
+ /** A list of migration resources. */
508
+ export interface MigrationResourceListResult {
509
+ /**
510
+ * A list of migration resources.
511
+ * NOTE: This property will not be serialized. It can only be populated by the server.
512
+ */
513
+ readonly value?: MigrationResource[];
514
+ /**
515
+ * The link used to get the next page of migrations.
516
+ * NOTE: This property will not be serialized. It can only be populated by the server.
517
+ */
518
+ readonly nextLink?: string;
519
+ }
520
+
521
+ /** Represents a migration name's availability. */
522
+ export interface MigrationNameAvailabilityResource {
523
+ /** The resource name to verify. */
524
+ name: string;
525
+ /** The type of the resource. */
526
+ type: string;
527
+ /**
528
+ * Indicates whether the resource name is available.
529
+ * NOTE: This property will not be serialized. It can only be populated by the server.
530
+ */
531
+ readonly nameAvailable?: boolean;
532
+ /**
533
+ * Migration name availability reason
534
+ * NOTE: This property will not be serialized. It can only be populated by the server.
535
+ */
536
+ readonly reason?: MigrationNameAvailabilityReason;
537
+ /**
538
+ * Migration name availability message.
539
+ * NOTE: This property will not be serialized. It can only be populated by the server.
540
+ */
541
+ readonly message?: string;
542
+ }
543
+
632
544
  /** A list of resource provider operations. */
633
545
  export interface OperationListResult {
634
546
  /** Collection of available operation details */
@@ -690,6 +602,14 @@ export interface OperationDisplay {
690
602
  readonly description?: string;
691
603
  }
692
604
 
605
+ /** A List of logFiles. */
606
+ export interface LogFileListResult {
607
+ /** The list of logFiles in a server */
608
+ value?: LogFile[];
609
+ /** The link used to get the next page of operations. */
610
+ nextLink?: string;
611
+ }
612
+
693
613
  /** Represents server restart parameters. */
694
614
  export interface RestartParameter {
695
615
  /** Indicates whether to restart the server with failover. */
@@ -734,31 +654,316 @@ export interface DelegatedSubnetUsage {
734
654
  readonly usage?: number;
735
655
  }
736
656
 
737
- /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
738
- export interface ProxyResource extends Resource {}
657
+ /** BackupRequestBase is the base for all backup request. */
658
+ export interface BackupRequestBase {
659
+ /** Backup Settings */
660
+ backupSettings: BackupSettings;
661
+ }
739
662
 
740
- /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
741
- export interface TrackedResource extends Resource {
742
- /** Resource tags. */
743
- tags?: { [propertyName: string]: string };
744
- /** The geo-location where the resource lives */
745
- location: string;
663
+ /** The settings for the long term backup. */
664
+ export interface BackupSettings {
665
+ /** Backup Name for the current backup */
666
+ backupName: string;
746
667
  }
747
668
 
748
- /** Represents a resource name availability. */
749
- export interface NameAvailability extends CheckNameAvailabilityResponse {
669
+ /** Response for the LTR pre-backup API call */
670
+ export interface LtrPreBackupResponse {
671
+ /** Number of storage containers the plugin will use during backup. More than one containers may be used for size limitations, parallelism, or redundancy etc. */
672
+ numberOfContainers: number;
673
+ }
674
+
675
+ /** Details about the target where the backup content will be stored. */
676
+ export interface BackupStoreDetails {
677
+ /** List of SAS uri of storage containers where backup data is to be streamed/copied. */
678
+ sasUriList: string[];
679
+ }
680
+
681
+ /** Response for the LTR backup API call */
682
+ export interface LtrBackupResponse {
683
+ /** Size of datasource in bytes */
684
+ datasourceSizeInBytes?: number;
685
+ /** Data transferred in bytes */
686
+ dataTransferredInBytes?: number;
687
+ /** Name of Backup operation */
688
+ backupName?: string;
689
+ /** Metadata to be stored in RP. Store everything that will be required to perform a successful restore using this Recovery point. e.g. Versions, DataFormat etc */
690
+ backupMetadata?: string;
691
+ /** Service-set extensible enum indicating the status of operation */
692
+ status?: ExecutionStatus;
693
+ /** Start time of the operation. */
694
+ startTime?: Date;
695
+ /** End time of the operation. */
696
+ endTime?: Date;
697
+ /** PercentageCompleted */
698
+ percentComplete?: number;
750
699
  /**
751
- * name of the PostgreSQL server.
700
+ * The error code.
752
701
  * NOTE: This property will not be serialized. It can only be populated by the server.
753
702
  */
754
- readonly name?: string;
703
+ readonly errorCode?: string;
755
704
  /**
756
- * type of the server
705
+ * The error message.
706
+ * NOTE: This property will not be serialized. It can only be populated by the server.
707
+ */
708
+ readonly errorMessage?: string;
709
+ }
710
+
711
+ /** A list of long term retention backup operations for server. */
712
+ export interface LtrServerBackupOperationList {
713
+ /** The list of long term retention server backup operations */
714
+ value?: LtrServerBackupOperation[];
715
+ /** The link used to get the next page of operations. */
716
+ nextLink?: string;
717
+ }
718
+
719
+ /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
720
+ export interface ProxyResource extends Resource {}
721
+
722
+ /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
723
+ export interface TrackedResource extends Resource {
724
+ /** Resource tags. */
725
+ tags?: { [propertyName: string]: string };
726
+ /** The geo-location where the resource lives */
727
+ location: string;
728
+ }
729
+
730
+ /** Represents capability of a storage tier */
731
+ export interface StorageTierCapability extends CapabilityBase {
732
+ /**
733
+ * Name to represent Storage tier capability
734
+ * NOTE: This property will not be serialized. It can only be populated by the server.
735
+ */
736
+ readonly name?: string;
737
+ /**
738
+ * Supported IOPS for this storage tier
739
+ * NOTE: This property will not be serialized. It can only be populated by the server.
740
+ */
741
+ readonly iops?: number;
742
+ }
743
+
744
+ /** storage size in MB capability */
745
+ export interface StorageMbCapability extends CapabilityBase {
746
+ /**
747
+ * Supported IOPS
748
+ * NOTE: This property will not be serialized. It can only be populated by the server.
749
+ */
750
+ readonly supportedIops?: number;
751
+ /**
752
+ * Storage size in MB
753
+ * NOTE: This property will not be serialized. It can only be populated by the server.
754
+ */
755
+ readonly storageSizeMb?: number;
756
+ /**
757
+ * Default tier for IOPS
758
+ * NOTE: This property will not be serialized. It can only be populated by the server.
759
+ */
760
+ readonly defaultIopsTier?: string;
761
+ /**
762
+ * List of available options to upgrade the storage performance
763
+ * NOTE: This property will not be serialized. It can only be populated by the server.
764
+ */
765
+ readonly supportedIopsTiers?: StorageTierCapability[];
766
+ }
767
+
768
+ /** Storage edition capability */
769
+ export interface StorageEditionCapability extends CapabilityBase {
770
+ /**
771
+ * Storage edition name
772
+ * NOTE: This property will not be serialized. It can only be populated by the server.
773
+ */
774
+ readonly name?: string;
775
+ /**
776
+ * Default storage size in MB for storage edition
777
+ * NOTE: This property will not be serialized. It can only be populated by the server.
778
+ */
779
+ readonly defaultStorageSizeMb?: number;
780
+ /**
781
+ * Flexible server supported storage range in MB
782
+ * NOTE: This property will not be serialized. It can only be populated by the server.
783
+ */
784
+ readonly supportedStorageMb?: StorageMbCapability[];
785
+ }
786
+
787
+ /** Sku capability */
788
+ export interface ServerSku extends CapabilityBase {
789
+ /**
790
+ * Sku name
791
+ * NOTE: This property will not be serialized. It can only be populated by the server.
792
+ */
793
+ readonly name?: string;
794
+ /**
795
+ * Supported vCores
796
+ * NOTE: This property will not be serialized. It can only be populated by the server.
797
+ */
798
+ readonly vCores?: number;
799
+ /**
800
+ * Supported IOPS
801
+ * NOTE: This property will not be serialized. It can only be populated by the server.
802
+ */
803
+ readonly supportedIops?: number;
804
+ /**
805
+ * Supported memory per vCore in MB
806
+ * NOTE: This property will not be serialized. It can only be populated by the server.
807
+ */
808
+ readonly supportedMemoryPerVcoreMb?: number;
809
+ /**
810
+ * List of supported Availability Zones. E.g. "1", "2", "3"
811
+ * NOTE: This property will not be serialized. It can only be populated by the server.
812
+ */
813
+ readonly supportedZones?: string[];
814
+ /**
815
+ * Supported high availability mode
816
+ * NOTE: This property will not be serialized. It can only be populated by the server.
817
+ */
818
+ readonly supportedHaMode?: HaMode[];
819
+ }
820
+
821
+ /** Flexible server edition capabilities. */
822
+ export interface FlexibleServerEditionCapability extends CapabilityBase {
823
+ /**
824
+ * Server edition name
825
+ * NOTE: This property will not be serialized. It can only be populated by the server.
826
+ */
827
+ readonly name?: string;
828
+ /**
829
+ * Default sku name for the server edition
830
+ * NOTE: This property will not be serialized. It can only be populated by the server.
831
+ */
832
+ readonly defaultSkuName?: string;
833
+ /**
834
+ * The list of editions supported by this server edition.
835
+ * NOTE: This property will not be serialized. It can only be populated by the server.
836
+ */
837
+ readonly supportedStorageEditions?: StorageEditionCapability[];
838
+ /**
839
+ * List of supported server SKUs.
840
+ * NOTE: This property will not be serialized. It can only be populated by the server.
841
+ */
842
+ readonly supportedServerSkus?: ServerSku[];
843
+ }
844
+
845
+ /** Server version capabilities. */
846
+ export interface ServerVersionCapability extends CapabilityBase {
847
+ /**
848
+ * Server version
849
+ * NOTE: This property will not be serialized. It can only be populated by the server.
850
+ */
851
+ readonly name?: string;
852
+ /**
853
+ * Supported servers versions to upgrade
854
+ * NOTE: This property will not be serialized. It can only be populated by the server.
855
+ */
856
+ readonly supportedVersionsToUpgrade?: string[];
857
+ }
858
+
859
+ /** Represents capability of a fast provisioning edition */
860
+ export interface FastProvisioningEditionCapability extends CapabilityBase {
861
+ /**
862
+ * Fast provisioning supported tier name
863
+ * NOTE: This property will not be serialized. It can only be populated by the server.
864
+ */
865
+ readonly supportedTier?: string;
866
+ /**
867
+ * Fast provisioning supported sku name
868
+ * NOTE: This property will not be serialized. It can only be populated by the server.
869
+ */
870
+ readonly supportedSku?: string;
871
+ /**
872
+ * Fast provisioning supported storage in Gb
873
+ * NOTE: This property will not be serialized. It can only be populated by the server.
874
+ */
875
+ readonly supportedStorageGb?: number;
876
+ /**
877
+ * Fast provisioning supported version
878
+ * NOTE: This property will not be serialized. It can only be populated by the server.
879
+ */
880
+ readonly supportedServerVersions?: string;
881
+ /**
882
+ * Count of servers in cache matching the spec
883
+ * NOTE: This property will not be serialized. It can only be populated by the server.
884
+ */
885
+ readonly serverCount?: number;
886
+ }
887
+
888
+ /** Capability for the PostgreSQL server */
889
+ export interface FlexibleServerCapability extends CapabilityBase {
890
+ /** Name of flexible servers capability */
891
+ name?: string;
892
+ /**
893
+ * List of supported flexible server editions
894
+ * NOTE: This property will not be serialized. It can only be populated by the server.
895
+ */
896
+ readonly supportedServerEditions?: FlexibleServerEditionCapability[];
897
+ /**
898
+ * The list of server versions supported for this capability.
899
+ * NOTE: This property will not be serialized. It can only be populated by the server.
900
+ */
901
+ readonly supportedServerVersions?: ServerVersionCapability[];
902
+ /**
903
+ * Gets a value indicating whether fast provisioning is supported. "Enabled" means fast provisioning is supported. "Disabled" stands for fast provisioning is not supported.
904
+ * NOTE: This property will not be serialized. It can only be populated by the server.
905
+ */
906
+ readonly fastProvisioningSupported?: FastProvisioningSupportedEnum;
907
+ /**
908
+ * List of supported server editions for fast provisioning
909
+ * NOTE: This property will not be serialized. It can only be populated by the server.
910
+ */
911
+ readonly supportedFastProvisioningEditions?: FastProvisioningEditionCapability[];
912
+ /**
913
+ * Determines if geo-backup is supported in this region. "Enabled" means geo-backup is supported. "Disabled" stands for geo-back is not supported.
914
+ * NOTE: This property will not be serialized. It can only be populated by the server.
915
+ */
916
+ readonly geoBackupSupported?: GeoBackupSupportedEnum;
917
+ /**
918
+ * A value indicating whether Zone Redundant HA is supported in this region. "Enabled" means zone redundant HA is supported. "Disabled" stands for zone redundant HA is not supported.
919
+ * NOTE: This property will not be serialized. It can only be populated by the server.
920
+ */
921
+ readonly zoneRedundantHaSupported?: ZoneRedundantHaSupportedEnum;
922
+ /**
923
+ * A value indicating whether Zone Redundant HA and Geo-backup is supported in this region. "Enabled" means zone redundant HA and geo-backup is supported. "Disabled" stands for zone redundant HA and geo-backup is not supported.
924
+ * NOTE: This property will not be serialized. It can only be populated by the server.
925
+ */
926
+ readonly zoneRedundantHaAndGeoBackupSupported?: ZoneRedundantHaAndGeoBackupSupportedEnum;
927
+ /**
928
+ * A value indicating whether storage auto-grow is supported in this region. "Enabled" means storage auto-grow is supported. "Disabled" stands for storage auto-grow is not supported.
929
+ * NOTE: This property will not be serialized. It can only be populated by the server.
930
+ */
931
+ readonly storageAutoGrowthSupported?: StorageAutoGrowthSupportedEnum;
932
+ /**
933
+ * A value indicating whether online resize is supported in this region for the given subscription. "Enabled" means storage online resize is supported. "Disabled" means storage online resize is not supported.
934
+ * NOTE: This property will not be serialized. It can only be populated by the server.
935
+ */
936
+ readonly onlineResizeSupported?: OnlineResizeSupportedEnum;
937
+ /**
938
+ * A value indicating whether this region is restricted. "Enabled" means region is restricted. "Disabled" stands for region is not restricted.
939
+ * NOTE: This property will not be serialized. It can only be populated by the server.
940
+ */
941
+ readonly restricted?: RestrictedEnum;
942
+ }
943
+
944
+ /** Represents a resource name availability. */
945
+ export interface NameAvailability extends CheckNameAvailabilityResponse {
946
+ /**
947
+ * name of the PostgreSQL server.
948
+ * NOTE: This property will not be serialized. It can only be populated by the server.
949
+ */
950
+ readonly name?: string;
951
+ /**
952
+ * type of the server
757
953
  * NOTE: This property will not be serialized. It can only be populated by the server.
758
954
  */
759
955
  readonly type?: string;
760
956
  }
761
957
 
958
+ /** A request that is made for pre-backup. */
959
+ export interface LtrPreBackupRequest extends BackupRequestBase {}
960
+
961
+ /** The request that is made for a long term retention backup. */
962
+ export interface LtrBackupRequest extends BackupRequestBase {
963
+ /** Backup store detail for target server */
964
+ targetDetails: BackupStoreDetails;
965
+ }
966
+
762
967
  /** Represents an Active Directory administrator. */
763
968
  export interface ActiveDirectoryAdministrator extends ProxyResource {
764
969
  /** The principal type used to represent the type of Active Directory Administrator. */
@@ -850,6 +1055,50 @@ export interface FirewallRule extends ProxyResource {
850
1055
  endIpAddress: string;
851
1056
  }
852
1057
 
1058
+ /** Represents a logFile. */
1059
+ export interface LogFile extends ProxyResource {
1060
+ /** Creation timestamp of the log file. */
1061
+ createdTime?: Date;
1062
+ /** Last modified timestamp of the log file. */
1063
+ lastModifiedTime?: Date;
1064
+ /** The size in kb of the logFile. */
1065
+ sizeInKb?: number;
1066
+ /** Type of the log file. */
1067
+ typePropertiesType?: string;
1068
+ /** The url to download the log file from. */
1069
+ url?: string;
1070
+ }
1071
+
1072
+ /** Response for the LTR backup Operation API call */
1073
+ export interface LtrServerBackupOperation extends ProxyResource {
1074
+ /** Size of datasource in bytes */
1075
+ datasourceSizeInBytes?: number;
1076
+ /** Data transferred in bytes */
1077
+ dataTransferredInBytes?: number;
1078
+ /** Name of Backup operation */
1079
+ backupName?: string;
1080
+ /** Metadata to be stored in RP. Store everything that will be required to perform a successful restore using this Recovery point. e.g. Versions, DataFormat etc */
1081
+ backupMetadata?: string;
1082
+ /** Service-set extensible enum indicating the status of operation */
1083
+ status?: ExecutionStatus;
1084
+ /** Start time of the operation. */
1085
+ startTime?: Date;
1086
+ /** End time of the operation. */
1087
+ endTime?: Date;
1088
+ /** PercentageCompleted */
1089
+ percentComplete?: number;
1090
+ /**
1091
+ * The error code.
1092
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1093
+ */
1094
+ readonly errorCode?: string;
1095
+ /**
1096
+ * The error message.
1097
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1098
+ */
1099
+ readonly errorMessage?: string;
1100
+ }
1101
+
853
1102
  /** Represents a server. */
854
1103
  export interface Server extends TrackedResource {
855
1104
  /** The SKU (pricing tier) of the server. */
@@ -894,20 +1143,82 @@ export interface Server extends TrackedResource {
894
1143
  highAvailability?: HighAvailability;
895
1144
  /** Maintenance window properties of a server. */
896
1145
  maintenanceWindow?: MaintenanceWindow;
897
- /** The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica'. */
1146
+ /** The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica' or 'ReviveDropped'. This property is returned only for Replica server */
898
1147
  sourceServerResourceId?: string;
899
- /** Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore'. */
1148
+ /** Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'ReviveDropped'. */
900
1149
  pointInTimeUTC?: Date;
901
1150
  /** availability zone information of the server. */
902
1151
  availabilityZone?: string;
903
1152
  /** Replication role of the server */
904
1153
  replicationRole?: ReplicationRole;
905
- /** Replicas allowed for a server. */
906
- replicaCapacity?: number;
1154
+ /**
1155
+ * Replicas allowed for a server.
1156
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1157
+ */
1158
+ readonly replicaCapacity?: number;
907
1159
  /** The mode to create a new PostgreSQL server. */
908
1160
  createMode?: CreateMode;
909
1161
  }
910
1162
 
1163
+ /** Represents a migration resource. */
1164
+ export interface MigrationResource extends TrackedResource {
1165
+ /**
1166
+ * ID for migration, a GUID.
1167
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1168
+ */
1169
+ readonly migrationId?: string;
1170
+ /**
1171
+ * Current status of migration
1172
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1173
+ */
1174
+ readonly currentStatus?: MigrationStatus;
1175
+ /** There are two types of migration modes Online and Offline */
1176
+ migrationMode?: MigrationMode;
1177
+ /**
1178
+ * Metadata of the source database server
1179
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1180
+ */
1181
+ readonly sourceDbServerMetadata?: DbServerMetadata;
1182
+ /**
1183
+ * Metadata of the target database server
1184
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1185
+ */
1186
+ readonly targetDbServerMetadata?: DbServerMetadata;
1187
+ /** ResourceId of the source database server */
1188
+ sourceDbServerResourceId?: string;
1189
+ /** Source server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection */
1190
+ sourceDbServerFullyQualifiedDomainName?: string;
1191
+ /**
1192
+ * ResourceId of the source database server
1193
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1194
+ */
1195
+ readonly targetDbServerResourceId?: string;
1196
+ /** Target server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection */
1197
+ targetDbServerFullyQualifiedDomainName?: string;
1198
+ /** Migration secret parameters */
1199
+ secretParameters?: MigrationSecretParameters;
1200
+ /** Number of databases to migrate */
1201
+ dbsToMigrate?: string[];
1202
+ /** Indicates whether to setup LogicalReplicationOnSourceDb, if needed */
1203
+ setupLogicalReplicationOnSourceDbIfNeeded?: LogicalReplicationOnSourceDbEnum;
1204
+ /** Indicates whether the databases on the target server can be overwritten, if already present. If set to Disabled, the migration workflow will wait for a confirmation, if it detects that the database already exists. */
1205
+ overwriteDbsInTarget?: OverwriteDbsInTargetEnum;
1206
+ /** Start time in UTC for migration window */
1207
+ migrationWindowStartTimeInUtc?: Date;
1208
+ /** End time in UTC for migration window */
1209
+ migrationWindowEndTimeInUtc?: Date;
1210
+ /** Indicates whether the data migration should start right away */
1211
+ startDataMigration?: StartDataMigrationEnum;
1212
+ /** To trigger cutover for entire migration we need to send this flag as Enabled */
1213
+ triggerCutover?: TriggerCutoverEnum;
1214
+ /** When you want to trigger cutover for specific databases send triggerCutover flag as Enabled and database names in this array */
1215
+ dbsToTriggerCutoverOn?: string[];
1216
+ /** To trigger cancel for entire migration we need to send this flag as Enabled */
1217
+ cancel?: CancelEnum;
1218
+ /** When you want to trigger cancel for specific databases send cancel flag as Enabled and database names in this array */
1219
+ dbsToCancelMigrationOn?: string[];
1220
+ }
1221
+
911
1222
  /** Defines headers for Administrators_create operation. */
912
1223
  export interface AdministratorsCreateHeaders {
913
1224
  location?: string;
@@ -978,6 +1289,34 @@ export interface ServersStopHeaders {
978
1289
  location?: string;
979
1290
  }
980
1291
 
1292
+ /** Defines headers for FlexibleServer_triggerLtrPreBackup operation. */
1293
+ export interface FlexibleServerTriggerLtrPreBackupHeaders {
1294
+ /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */
1295
+ xMsRequestId?: string;
1296
+ }
1297
+
1298
+ /** Defines headers for FlexibleServer_triggerLtrPreBackup operation. */
1299
+ export interface FlexibleServerTriggerLtrPreBackupExceptionHeaders {
1300
+ /** ErrorCode string in the event of a failure. */
1301
+ xMsErrorCode?: string;
1302
+ /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */
1303
+ xMsRequestId?: string;
1304
+ }
1305
+
1306
+ /** Defines headers for FlexibleServer_startLtrBackup operation. */
1307
+ export interface FlexibleServerStartLtrBackupHeaders {
1308
+ /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */
1309
+ xMsRequestId?: string;
1310
+ }
1311
+
1312
+ /** Defines headers for FlexibleServer_startLtrBackup operation. */
1313
+ export interface FlexibleServerStartLtrBackupExceptionHeaders {
1314
+ /** ErrorCode string in the event of a failure. */
1315
+ xMsErrorCode?: string;
1316
+ /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */
1317
+ xMsRequestId?: string;
1318
+ }
1319
+
981
1320
  /** Known values of {@link PrincipalType} that the service accepts. */
982
1321
  export enum KnownPrincipalType {
983
1322
  /** Unknown */
@@ -1015,31 +1354,175 @@ export enum KnownCreatedByType {
1015
1354
  }
1016
1355
 
1017
1356
  /**
1018
- * Defines values for CreatedByType. \
1019
- * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
1357
+ * Defines values for CreatedByType. \
1358
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
1359
+ * this enum contains the known values that the service supports.
1360
+ * ### Known values supported by the service
1361
+ * **User** \
1362
+ * **Application** \
1363
+ * **ManagedIdentity** \
1364
+ * **Key**
1365
+ */
1366
+ export type CreatedByType = string;
1367
+
1368
+ /** Known values of {@link Origin} that the service accepts. */
1369
+ export enum KnownOrigin {
1370
+ /** Full */
1371
+ Full = "Full"
1372
+ }
1373
+
1374
+ /**
1375
+ * Defines values for Origin. \
1376
+ * {@link KnownOrigin} can be used interchangeably with Origin,
1377
+ * this enum contains the known values that the service supports.
1378
+ * ### Known values supported by the service
1379
+ * **Full**
1380
+ */
1381
+ export type Origin = string;
1382
+
1383
+ /** Known values of {@link HaMode} that the service accepts. */
1384
+ export enum KnownHaMode {
1385
+ /** SameZone */
1386
+ SameZone = "SameZone",
1387
+ /** ZoneRedundant */
1388
+ ZoneRedundant = "ZoneRedundant"
1389
+ }
1390
+
1391
+ /**
1392
+ * Defines values for HaMode. \
1393
+ * {@link KnownHaMode} can be used interchangeably with HaMode,
1394
+ * this enum contains the known values that the service supports.
1395
+ * ### Known values supported by the service
1396
+ * **SameZone** \
1397
+ * **ZoneRedundant**
1398
+ */
1399
+ export type HaMode = string;
1400
+
1401
+ /** Known values of {@link FastProvisioningSupportedEnum} that the service accepts. */
1402
+ export enum KnownFastProvisioningSupportedEnum {
1403
+ /** Enabled */
1404
+ Enabled = "Enabled",
1405
+ /** Disabled */
1406
+ Disabled = "Disabled"
1407
+ }
1408
+
1409
+ /**
1410
+ * Defines values for FastProvisioningSupportedEnum. \
1411
+ * {@link KnownFastProvisioningSupportedEnum} can be used interchangeably with FastProvisioningSupportedEnum,
1412
+ * this enum contains the known values that the service supports.
1413
+ * ### Known values supported by the service
1414
+ * **Enabled** \
1415
+ * **Disabled**
1416
+ */
1417
+ export type FastProvisioningSupportedEnum = string;
1418
+
1419
+ /** Known values of {@link GeoBackupSupportedEnum} that the service accepts. */
1420
+ export enum KnownGeoBackupSupportedEnum {
1421
+ /** Enabled */
1422
+ Enabled = "Enabled",
1423
+ /** Disabled */
1424
+ Disabled = "Disabled"
1425
+ }
1426
+
1427
+ /**
1428
+ * Defines values for GeoBackupSupportedEnum. \
1429
+ * {@link KnownGeoBackupSupportedEnum} can be used interchangeably with GeoBackupSupportedEnum,
1430
+ * this enum contains the known values that the service supports.
1431
+ * ### Known values supported by the service
1432
+ * **Enabled** \
1433
+ * **Disabled**
1434
+ */
1435
+ export type GeoBackupSupportedEnum = string;
1436
+
1437
+ /** Known values of {@link ZoneRedundantHaSupportedEnum} that the service accepts. */
1438
+ export enum KnownZoneRedundantHaSupportedEnum {
1439
+ /** Enabled */
1440
+ Enabled = "Enabled",
1441
+ /** Disabled */
1442
+ Disabled = "Disabled"
1443
+ }
1444
+
1445
+ /**
1446
+ * Defines values for ZoneRedundantHaSupportedEnum. \
1447
+ * {@link KnownZoneRedundantHaSupportedEnum} can be used interchangeably with ZoneRedundantHaSupportedEnum,
1448
+ * this enum contains the known values that the service supports.
1449
+ * ### Known values supported by the service
1450
+ * **Enabled** \
1451
+ * **Disabled**
1452
+ */
1453
+ export type ZoneRedundantHaSupportedEnum = string;
1454
+
1455
+ /** Known values of {@link ZoneRedundantHaAndGeoBackupSupportedEnum} that the service accepts. */
1456
+ export enum KnownZoneRedundantHaAndGeoBackupSupportedEnum {
1457
+ /** Enabled */
1458
+ Enabled = "Enabled",
1459
+ /** Disabled */
1460
+ Disabled = "Disabled"
1461
+ }
1462
+
1463
+ /**
1464
+ * Defines values for ZoneRedundantHaAndGeoBackupSupportedEnum. \
1465
+ * {@link KnownZoneRedundantHaAndGeoBackupSupportedEnum} can be used interchangeably with ZoneRedundantHaAndGeoBackupSupportedEnum,
1466
+ * this enum contains the known values that the service supports.
1467
+ * ### Known values supported by the service
1468
+ * **Enabled** \
1469
+ * **Disabled**
1470
+ */
1471
+ export type ZoneRedundantHaAndGeoBackupSupportedEnum = string;
1472
+
1473
+ /** Known values of {@link StorageAutoGrowthSupportedEnum} that the service accepts. */
1474
+ export enum KnownStorageAutoGrowthSupportedEnum {
1475
+ /** Enabled */
1476
+ Enabled = "Enabled",
1477
+ /** Disabled */
1478
+ Disabled = "Disabled"
1479
+ }
1480
+
1481
+ /**
1482
+ * Defines values for StorageAutoGrowthSupportedEnum. \
1483
+ * {@link KnownStorageAutoGrowthSupportedEnum} can be used interchangeably with StorageAutoGrowthSupportedEnum,
1484
+ * this enum contains the known values that the service supports.
1485
+ * ### Known values supported by the service
1486
+ * **Enabled** \
1487
+ * **Disabled**
1488
+ */
1489
+ export type StorageAutoGrowthSupportedEnum = string;
1490
+
1491
+ /** Known values of {@link OnlineResizeSupportedEnum} that the service accepts. */
1492
+ export enum KnownOnlineResizeSupportedEnum {
1493
+ /** Enabled */
1494
+ Enabled = "Enabled",
1495
+ /** Disabled */
1496
+ Disabled = "Disabled"
1497
+ }
1498
+
1499
+ /**
1500
+ * Defines values for OnlineResizeSupportedEnum. \
1501
+ * {@link KnownOnlineResizeSupportedEnum} can be used interchangeably with OnlineResizeSupportedEnum,
1020
1502
  * this enum contains the known values that the service supports.
1021
1503
  * ### Known values supported by the service
1022
- * **User** \
1023
- * **Application** \
1024
- * **ManagedIdentity** \
1025
- * **Key**
1504
+ * **Enabled** \
1505
+ * **Disabled**
1026
1506
  */
1027
- export type CreatedByType = string;
1507
+ export type OnlineResizeSupportedEnum = string;
1028
1508
 
1029
- /** Known values of {@link Origin} that the service accepts. */
1030
- export enum KnownOrigin {
1031
- /** Full */
1032
- Full = "Full"
1509
+ /** Known values of {@link RestrictedEnum} that the service accepts. */
1510
+ export enum KnownRestrictedEnum {
1511
+ /** Enabled */
1512
+ Enabled = "Enabled",
1513
+ /** Disabled */
1514
+ Disabled = "Disabled"
1033
1515
  }
1034
1516
 
1035
1517
  /**
1036
- * Defines values for Origin. \
1037
- * {@link KnownOrigin} can be used interchangeably with Origin,
1518
+ * Defines values for RestrictedEnum. \
1519
+ * {@link KnownRestrictedEnum} can be used interchangeably with RestrictedEnum,
1038
1520
  * this enum contains the known values that the service supports.
1039
1521
  * ### Known values supported by the service
1040
- * **Full**
1522
+ * **Enabled** \
1523
+ * **Disabled**
1041
1524
  */
1042
- export type Origin = string;
1525
+ export type RestrictedEnum = string;
1043
1526
 
1044
1527
  /** Known values of {@link CheckNameAvailabilityReason} that the service accepts. */
1045
1528
  export enum KnownCheckNameAvailabilityReason {
@@ -1108,8 +1591,6 @@ export type SkuTier = string;
1108
1591
  export enum KnownIdentityType {
1109
1592
  /** None */
1110
1593
  None = "None",
1111
- /** SystemAssigned */
1112
- SystemAssigned = "SystemAssigned",
1113
1594
  /** UserAssigned */
1114
1595
  UserAssigned = "UserAssigned"
1115
1596
  }
@@ -1120,13 +1601,14 @@ export enum KnownIdentityType {
1120
1601
  * this enum contains the known values that the service supports.
1121
1602
  * ### Known values supported by the service
1122
1603
  * **None** \
1123
- * **SystemAssigned** \
1124
1604
  * **UserAssigned**
1125
1605
  */
1126
1606
  export type IdentityType = string;
1127
1607
 
1128
1608
  /** Known values of {@link ServerVersion} that the service accepts. */
1129
1609
  export enum KnownServerVersion {
1610
+ /** Fifteen */
1611
+ Fifteen = "15",
1130
1612
  /** Fourteen */
1131
1613
  Fourteen = "14",
1132
1614
  /** Thirteen */
@@ -1142,6 +1624,7 @@ export enum KnownServerVersion {
1142
1624
  * {@link KnownServerVersion} can be used interchangeably with ServerVersion,
1143
1625
  * this enum contains the known values that the service supports.
1144
1626
  * ### Known values supported by the service
1627
+ * **15** \
1145
1628
  * **14** \
1146
1629
  * **13** \
1147
1630
  * **12** \
@@ -1182,6 +1665,78 @@ export enum KnownServerState {
1182
1665
  */
1183
1666
  export type ServerState = string;
1184
1667
 
1668
+ /** Known values of {@link StorageAutoGrow} that the service accepts. */
1669
+ export enum KnownStorageAutoGrow {
1670
+ /** Enabled */
1671
+ Enabled = "Enabled",
1672
+ /** Disabled */
1673
+ Disabled = "Disabled"
1674
+ }
1675
+
1676
+ /**
1677
+ * Defines values for StorageAutoGrow. \
1678
+ * {@link KnownStorageAutoGrow} can be used interchangeably with StorageAutoGrow,
1679
+ * this enum contains the known values that the service supports.
1680
+ * ### Known values supported by the service
1681
+ * **Enabled** \
1682
+ * **Disabled**
1683
+ */
1684
+ export type StorageAutoGrow = string;
1685
+
1686
+ /** Known values of {@link AzureManagedDiskPerformanceTiers} that the service accepts. */
1687
+ export enum KnownAzureManagedDiskPerformanceTiers {
1688
+ /** P1 */
1689
+ P1 = "P1",
1690
+ /** P2 */
1691
+ P2 = "P2",
1692
+ /** P3 */
1693
+ P3 = "P3",
1694
+ /** P4 */
1695
+ P4 = "P4",
1696
+ /** P6 */
1697
+ P6 = "P6",
1698
+ /** P10 */
1699
+ P10 = "P10",
1700
+ /** P15 */
1701
+ P15 = "P15",
1702
+ /** P20 */
1703
+ P20 = "P20",
1704
+ /** P30 */
1705
+ P30 = "P30",
1706
+ /** P40 */
1707
+ P40 = "P40",
1708
+ /** P50 */
1709
+ P50 = "P50",
1710
+ /** P60 */
1711
+ P60 = "P60",
1712
+ /** P70 */
1713
+ P70 = "P70",
1714
+ /** P80 */
1715
+ P80 = "P80"
1716
+ }
1717
+
1718
+ /**
1719
+ * Defines values for AzureManagedDiskPerformanceTiers. \
1720
+ * {@link KnownAzureManagedDiskPerformanceTiers} can be used interchangeably with AzureManagedDiskPerformanceTiers,
1721
+ * this enum contains the known values that the service supports.
1722
+ * ### Known values supported by the service
1723
+ * **P1** \
1724
+ * **P2** \
1725
+ * **P3** \
1726
+ * **P4** \
1727
+ * **P6** \
1728
+ * **P10** \
1729
+ * **P15** \
1730
+ * **P20** \
1731
+ * **P30** \
1732
+ * **P40** \
1733
+ * **P50** \
1734
+ * **P60** \
1735
+ * **P70** \
1736
+ * **P80**
1737
+ */
1738
+ export type AzureManagedDiskPerformanceTiers = string;
1739
+
1185
1740
  /** Known values of {@link ActiveDirectoryAuthEnum} that the service accepts. */
1186
1741
  export enum KnownActiveDirectoryAuthEnum {
1187
1742
  /** Enabled */
@@ -1236,6 +1791,24 @@ export enum KnownArmServerKeyType {
1236
1791
  */
1237
1792
  export type ArmServerKeyType = string;
1238
1793
 
1794
+ /** Known values of {@link KeyStatusEnum} that the service accepts. */
1795
+ export enum KnownKeyStatusEnum {
1796
+ /** Valid */
1797
+ Valid = "Valid",
1798
+ /** Invalid */
1799
+ Invalid = "Invalid"
1800
+ }
1801
+
1802
+ /**
1803
+ * Defines values for KeyStatusEnum. \
1804
+ * {@link KnownKeyStatusEnum} can be used interchangeably with KeyStatusEnum,
1805
+ * this enum contains the known values that the service supports.
1806
+ * ### Known values supported by the service
1807
+ * **Valid** \
1808
+ * **Invalid**
1809
+ */
1810
+ export type KeyStatusEnum = string;
1811
+
1239
1812
  /** Known values of {@link GeoRedundantBackupEnum} that the service accepts. */
1240
1813
  export enum KnownGeoRedundantBackupEnum {
1241
1814
  /** Enabled */
@@ -1360,7 +1933,9 @@ export enum KnownCreateMode {
1360
1933
  /** GeoRestore */
1361
1934
  GeoRestore = "GeoRestore",
1362
1935
  /** Replica */
1363
- Replica = "Replica"
1936
+ Replica = "Replica",
1937
+ /** ReviveDropped */
1938
+ ReviveDropped = "ReviveDropped"
1364
1939
  }
1365
1940
 
1366
1941
  /**
@@ -1373,7 +1948,8 @@ export enum KnownCreateMode {
1373
1948
  * **Update** \
1374
1949
  * **PointInTimeRestore** \
1375
1950
  * **GeoRestore** \
1376
- * **Replica**
1951
+ * **Replica** \
1952
+ * **ReviveDropped**
1377
1953
  */
1378
1954
  export type CreateMode = string;
1379
1955
 
@@ -1395,6 +1971,219 @@ export enum KnownCreateModeForUpdate {
1395
1971
  */
1396
1972
  export type CreateModeForUpdate = string;
1397
1973
 
1974
+ /** Known values of {@link MigrationState} that the service accepts. */
1975
+ export enum KnownMigrationState {
1976
+ /** InProgress */
1977
+ InProgress = "InProgress",
1978
+ /** WaitingForUserAction */
1979
+ WaitingForUserAction = "WaitingForUserAction",
1980
+ /** Canceled */
1981
+ Canceled = "Canceled",
1982
+ /** Failed */
1983
+ Failed = "Failed",
1984
+ /** Succeeded */
1985
+ Succeeded = "Succeeded"
1986
+ }
1987
+
1988
+ /**
1989
+ * Defines values for MigrationState. \
1990
+ * {@link KnownMigrationState} can be used interchangeably with MigrationState,
1991
+ * this enum contains the known values that the service supports.
1992
+ * ### Known values supported by the service
1993
+ * **InProgress** \
1994
+ * **WaitingForUserAction** \
1995
+ * **Canceled** \
1996
+ * **Failed** \
1997
+ * **Succeeded**
1998
+ */
1999
+ export type MigrationState = string;
2000
+
2001
+ /** Known values of {@link MigrationSubState} that the service accepts. */
2002
+ export enum KnownMigrationSubState {
2003
+ /** PerformingPreRequisiteSteps */
2004
+ PerformingPreRequisiteSteps = "PerformingPreRequisiteSteps",
2005
+ /** WaitingForLogicalReplicationSetupRequestOnSourceDB */
2006
+ WaitingForLogicalReplicationSetupRequestOnSourceDB = "WaitingForLogicalReplicationSetupRequestOnSourceDB",
2007
+ /** WaitingForDBsToMigrateSpecification */
2008
+ WaitingForDBsToMigrateSpecification = "WaitingForDBsToMigrateSpecification",
2009
+ /** WaitingForTargetDBOverwriteConfirmation */
2010
+ WaitingForTargetDBOverwriteConfirmation = "WaitingForTargetDBOverwriteConfirmation",
2011
+ /** WaitingForDataMigrationScheduling */
2012
+ WaitingForDataMigrationScheduling = "WaitingForDataMigrationScheduling",
2013
+ /** WaitingForDataMigrationWindow */
2014
+ WaitingForDataMigrationWindow = "WaitingForDataMigrationWindow",
2015
+ /** MigratingData */
2016
+ MigratingData = "MigratingData",
2017
+ /** WaitingForCutoverTrigger */
2018
+ WaitingForCutoverTrigger = "WaitingForCutoverTrigger",
2019
+ /** CompletingMigration */
2020
+ CompletingMigration = "CompletingMigration",
2021
+ /** Completed */
2022
+ Completed = "Completed"
2023
+ }
2024
+
2025
+ /**
2026
+ * Defines values for MigrationSubState. \
2027
+ * {@link KnownMigrationSubState} can be used interchangeably with MigrationSubState,
2028
+ * this enum contains the known values that the service supports.
2029
+ * ### Known values supported by the service
2030
+ * **PerformingPreRequisiteSteps** \
2031
+ * **WaitingForLogicalReplicationSetupRequestOnSourceDB** \
2032
+ * **WaitingForDBsToMigrateSpecification** \
2033
+ * **WaitingForTargetDBOverwriteConfirmation** \
2034
+ * **WaitingForDataMigrationScheduling** \
2035
+ * **WaitingForDataMigrationWindow** \
2036
+ * **MigratingData** \
2037
+ * **WaitingForCutoverTrigger** \
2038
+ * **CompletingMigration** \
2039
+ * **Completed**
2040
+ */
2041
+ export type MigrationSubState = string;
2042
+
2043
+ /** Known values of {@link MigrationMode} that the service accepts. */
2044
+ export enum KnownMigrationMode {
2045
+ /** Offline */
2046
+ Offline = "Offline",
2047
+ /** Online */
2048
+ Online = "Online"
2049
+ }
2050
+
2051
+ /**
2052
+ * Defines values for MigrationMode. \
2053
+ * {@link KnownMigrationMode} can be used interchangeably with MigrationMode,
2054
+ * this enum contains the known values that the service supports.
2055
+ * ### Known values supported by the service
2056
+ * **Offline** \
2057
+ * **Online**
2058
+ */
2059
+ export type MigrationMode = string;
2060
+
2061
+ /** Known values of {@link LogicalReplicationOnSourceDbEnum} that the service accepts. */
2062
+ export enum KnownLogicalReplicationOnSourceDbEnum {
2063
+ /** Enabled */
2064
+ Enabled = "Enabled",
2065
+ /** Disabled */
2066
+ Disabled = "Disabled"
2067
+ }
2068
+
2069
+ /**
2070
+ * Defines values for LogicalReplicationOnSourceDbEnum. \
2071
+ * {@link KnownLogicalReplicationOnSourceDbEnum} can be used interchangeably with LogicalReplicationOnSourceDbEnum,
2072
+ * this enum contains the known values that the service supports.
2073
+ * ### Known values supported by the service
2074
+ * **Enabled** \
2075
+ * **Disabled**
2076
+ */
2077
+ export type LogicalReplicationOnSourceDbEnum = string;
2078
+
2079
+ /** Known values of {@link OverwriteDbsInTargetEnum} that the service accepts. */
2080
+ export enum KnownOverwriteDbsInTargetEnum {
2081
+ /** Enabled */
2082
+ Enabled = "Enabled",
2083
+ /** Disabled */
2084
+ Disabled = "Disabled"
2085
+ }
2086
+
2087
+ /**
2088
+ * Defines values for OverwriteDbsInTargetEnum. \
2089
+ * {@link KnownOverwriteDbsInTargetEnum} can be used interchangeably with OverwriteDbsInTargetEnum,
2090
+ * this enum contains the known values that the service supports.
2091
+ * ### Known values supported by the service
2092
+ * **Enabled** \
2093
+ * **Disabled**
2094
+ */
2095
+ export type OverwriteDbsInTargetEnum = string;
2096
+
2097
+ /** Known values of {@link StartDataMigrationEnum} that the service accepts. */
2098
+ export enum KnownStartDataMigrationEnum {
2099
+ /** Enabled */
2100
+ Enabled = "Enabled",
2101
+ /** Disabled */
2102
+ Disabled = "Disabled"
2103
+ }
2104
+
2105
+ /**
2106
+ * Defines values for StartDataMigrationEnum. \
2107
+ * {@link KnownStartDataMigrationEnum} can be used interchangeably with StartDataMigrationEnum,
2108
+ * this enum contains the known values that the service supports.
2109
+ * ### Known values supported by the service
2110
+ * **Enabled** \
2111
+ * **Disabled**
2112
+ */
2113
+ export type StartDataMigrationEnum = string;
2114
+
2115
+ /** Known values of {@link TriggerCutoverEnum} that the service accepts. */
2116
+ export enum KnownTriggerCutoverEnum {
2117
+ /** Enabled */
2118
+ Enabled = "Enabled",
2119
+ /** Disabled */
2120
+ Disabled = "Disabled"
2121
+ }
2122
+
2123
+ /**
2124
+ * Defines values for TriggerCutoverEnum. \
2125
+ * {@link KnownTriggerCutoverEnum} can be used interchangeably with TriggerCutoverEnum,
2126
+ * this enum contains the known values that the service supports.
2127
+ * ### Known values supported by the service
2128
+ * **Enabled** \
2129
+ * **Disabled**
2130
+ */
2131
+ export type TriggerCutoverEnum = string;
2132
+
2133
+ /** Known values of {@link CancelEnum} that the service accepts. */
2134
+ export enum KnownCancelEnum {
2135
+ /** Enabled */
2136
+ Enabled = "Enabled",
2137
+ /** Disabled */
2138
+ Disabled = "Disabled"
2139
+ }
2140
+
2141
+ /**
2142
+ * Defines values for CancelEnum. \
2143
+ * {@link KnownCancelEnum} can be used interchangeably with CancelEnum,
2144
+ * this enum contains the known values that the service supports.
2145
+ * ### Known values supported by the service
2146
+ * **Enabled** \
2147
+ * **Disabled**
2148
+ */
2149
+ export type CancelEnum = string;
2150
+
2151
+ /** Known values of {@link MigrationListFilter} that the service accepts. */
2152
+ export enum KnownMigrationListFilter {
2153
+ /** Active */
2154
+ Active = "Active",
2155
+ /** All */
2156
+ All = "All"
2157
+ }
2158
+
2159
+ /**
2160
+ * Defines values for MigrationListFilter. \
2161
+ * {@link KnownMigrationListFilter} can be used interchangeably with MigrationListFilter,
2162
+ * this enum contains the known values that the service supports.
2163
+ * ### Known values supported by the service
2164
+ * **Active** \
2165
+ * **All**
2166
+ */
2167
+ export type MigrationListFilter = string;
2168
+
2169
+ /** Known values of {@link MigrationNameAvailabilityReason} that the service accepts. */
2170
+ export enum KnownMigrationNameAvailabilityReason {
2171
+ /** Invalid */
2172
+ Invalid = "Invalid",
2173
+ /** AlreadyExists */
2174
+ AlreadyExists = "AlreadyExists"
2175
+ }
2176
+
2177
+ /**
2178
+ * Defines values for MigrationNameAvailabilityReason. \
2179
+ * {@link KnownMigrationNameAvailabilityReason} can be used interchangeably with MigrationNameAvailabilityReason,
2180
+ * this enum contains the known values that the service supports.
2181
+ * ### Known values supported by the service
2182
+ * **Invalid** \
2183
+ * **AlreadyExists**
2184
+ */
2185
+ export type MigrationNameAvailabilityReason = string;
2186
+
1398
2187
  /** Known values of {@link OperationOrigin} that the service accepts. */
1399
2188
  export enum KnownOperationOrigin {
1400
2189
  /** NotSpecified */
@@ -1440,6 +2229,53 @@ export enum KnownFailoverMode {
1440
2229
  */
1441
2230
  export type FailoverMode = string;
1442
2231
 
2232
+ /** Known values of {@link ExecutionStatus} that the service accepts. */
2233
+ export enum KnownExecutionStatus {
2234
+ /** Running */
2235
+ Running = "Running",
2236
+ /** Cancelled */
2237
+ Cancelled = "Cancelled",
2238
+ /** Failed */
2239
+ Failed = "Failed",
2240
+ /** Succeeded */
2241
+ Succeeded = "Succeeded"
2242
+ }
2243
+
2244
+ /**
2245
+ * Defines values for ExecutionStatus. \
2246
+ * {@link KnownExecutionStatus} can be used interchangeably with ExecutionStatus,
2247
+ * this enum contains the known values that the service supports.
2248
+ * ### Known values supported by the service
2249
+ * **Running** \
2250
+ * **Cancelled** \
2251
+ * **Failed** \
2252
+ * **Succeeded**
2253
+ */
2254
+ export type ExecutionStatus = string;
2255
+
2256
+ /** Known values of {@link MigrationDetailsLevel} that the service accepts. */
2257
+ export enum KnownMigrationDetailsLevel {
2258
+ /** Default */
2259
+ Default = "Default",
2260
+ /** Summary */
2261
+ Summary = "Summary",
2262
+ /** Full */
2263
+ Full = "Full"
2264
+ }
2265
+
2266
+ /**
2267
+ * Defines values for MigrationDetailsLevel. \
2268
+ * {@link KnownMigrationDetailsLevel} can be used interchangeably with MigrationDetailsLevel,
2269
+ * this enum contains the known values that the service supports.
2270
+ * ### Known values supported by the service
2271
+ * **Default** \
2272
+ * **Summary** \
2273
+ * **Full**
2274
+ */
2275
+ export type MigrationDetailsLevel = string;
2276
+ /** Defines values for CapabilityStatus. */
2277
+ export type CapabilityStatus = "Visible" | "Available" | "Default" | "Disabled";
2278
+
1443
2279
  /** Optional parameters. */
1444
2280
  export interface AdministratorsCreateOptionalParams
1445
2281
  extends coreClient.OperationOptions {
@@ -1516,6 +2352,20 @@ export interface LocationBasedCapabilitiesExecuteNextOptionalParams
1516
2352
  /** Contains response data for the executeNext operation. */
1517
2353
  export type LocationBasedCapabilitiesExecuteNextResponse = CapabilitiesListResult;
1518
2354
 
2355
+ /** Optional parameters. */
2356
+ export interface ServerCapabilitiesListOptionalParams
2357
+ extends coreClient.OperationOptions {}
2358
+
2359
+ /** Contains response data for the list operation. */
2360
+ export type ServerCapabilitiesListResponse = CapabilitiesListResult;
2361
+
2362
+ /** Optional parameters. */
2363
+ export interface ServerCapabilitiesListNextOptionalParams
2364
+ extends coreClient.OperationOptions {}
2365
+
2366
+ /** Contains response data for the listNext operation. */
2367
+ export type ServerCapabilitiesListNextResponse = CapabilitiesListResult;
2368
+
1519
2369
  /** Optional parameters. */
1520
2370
  export interface CheckNameAvailabilityExecuteOptionalParams
1521
2371
  extends coreClient.OperationOptions {}
@@ -1754,6 +2604,55 @@ export interface ServersListNextOptionalParams
1754
2604
  /** Contains response data for the listNext operation. */
1755
2605
  export type ServersListNextResponse = ServerListResult;
1756
2606
 
2607
+ /** Optional parameters. */
2608
+ export interface MigrationsCreateOptionalParams
2609
+ extends coreClient.OperationOptions {}
2610
+
2611
+ /** Contains response data for the create operation. */
2612
+ export type MigrationsCreateResponse = MigrationResource;
2613
+
2614
+ /** Optional parameters. */
2615
+ export interface MigrationsGetOptionalParams
2616
+ extends coreClient.OperationOptions {}
2617
+
2618
+ /** Contains response data for the get operation. */
2619
+ export type MigrationsGetResponse = MigrationResource;
2620
+
2621
+ /** Optional parameters. */
2622
+ export interface MigrationsUpdateOptionalParams
2623
+ extends coreClient.OperationOptions {}
2624
+
2625
+ /** Contains response data for the update operation. */
2626
+ export type MigrationsUpdateResponse = MigrationResource;
2627
+
2628
+ /** Optional parameters. */
2629
+ export interface MigrationsDeleteOptionalParams
2630
+ extends coreClient.OperationOptions {}
2631
+
2632
+ /** Optional parameters. */
2633
+ export interface MigrationsListByTargetServerOptionalParams
2634
+ extends coreClient.OperationOptions {
2635
+ /** Migration list filter. Retrieves either active migrations or all migrations. */
2636
+ migrationListFilter?: MigrationListFilter;
2637
+ }
2638
+
2639
+ /** Contains response data for the listByTargetServer operation. */
2640
+ export type MigrationsListByTargetServerResponse = MigrationResourceListResult;
2641
+
2642
+ /** Optional parameters. */
2643
+ export interface MigrationsListByTargetServerNextOptionalParams
2644
+ extends coreClient.OperationOptions {}
2645
+
2646
+ /** Contains response data for the listByTargetServerNext operation. */
2647
+ export type MigrationsListByTargetServerNextResponse = MigrationResourceListResult;
2648
+
2649
+ /** Optional parameters. */
2650
+ export interface CheckMigrationNameAvailabilityOptionalParams
2651
+ extends coreClient.OperationOptions {}
2652
+
2653
+ /** Contains response data for the checkMigrationNameAvailability operation. */
2654
+ export type CheckMigrationNameAvailabilityResponse = MigrationNameAvailabilityResource;
2655
+
1757
2656
  /** Optional parameters. */
1758
2657
  export interface OperationsListOptionalParams
1759
2658
  extends coreClient.OperationOptions {}
@@ -1778,6 +2677,20 @@ export interface ReplicasListByServerOptionalParams
1778
2677
  /** Contains response data for the listByServer operation. */
1779
2678
  export type ReplicasListByServerResponse = ServerListResult;
1780
2679
 
2680
+ /** Optional parameters. */
2681
+ export interface LogFilesListByServerOptionalParams
2682
+ extends coreClient.OperationOptions {}
2683
+
2684
+ /** Contains response data for the listByServer operation. */
2685
+ export type LogFilesListByServerResponse = LogFileListResult;
2686
+
2687
+ /** Optional parameters. */
2688
+ export interface LogFilesListByServerNextOptionalParams
2689
+ extends coreClient.OperationOptions {}
2690
+
2691
+ /** Contains response data for the listByServerNext operation. */
2692
+ export type LogFilesListByServerNextResponse = LogFileListResult;
2693
+
1781
2694
  /** Optional parameters. */
1782
2695
  export interface VirtualNetworkSubnetUsageExecuteOptionalParams
1783
2696
  extends coreClient.OperationOptions {}
@@ -1785,6 +2698,48 @@ export interface VirtualNetworkSubnetUsageExecuteOptionalParams
1785
2698
  /** Contains response data for the execute operation. */
1786
2699
  export type VirtualNetworkSubnetUsageExecuteResponse = VirtualNetworkSubnetUsageResult;
1787
2700
 
2701
+ /** Optional parameters. */
2702
+ export interface FlexibleServerTriggerLtrPreBackupOptionalParams
2703
+ extends coreClient.OperationOptions {}
2704
+
2705
+ /** Contains response data for the triggerLtrPreBackup operation. */
2706
+ export type FlexibleServerTriggerLtrPreBackupResponse = FlexibleServerTriggerLtrPreBackupHeaders &
2707
+ LtrPreBackupResponse;
2708
+
2709
+ /** Optional parameters. */
2710
+ export interface FlexibleServerStartLtrBackupOptionalParams
2711
+ extends coreClient.OperationOptions {
2712
+ /** Delay to wait until next poll, in milliseconds. */
2713
+ updateIntervalInMs?: number;
2714
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2715
+ resumeFrom?: string;
2716
+ }
2717
+
2718
+ /** Contains response data for the startLtrBackup operation. */
2719
+ export type FlexibleServerStartLtrBackupResponse = FlexibleServerStartLtrBackupHeaders &
2720
+ LtrBackupResponse;
2721
+
2722
+ /** Optional parameters. */
2723
+ export interface LtrBackupOperationsGetOptionalParams
2724
+ extends coreClient.OperationOptions {}
2725
+
2726
+ /** Contains response data for the get operation. */
2727
+ export type LtrBackupOperationsGetResponse = LtrServerBackupOperation;
2728
+
2729
+ /** Optional parameters. */
2730
+ export interface LtrBackupOperationsListByServerOptionalParams
2731
+ extends coreClient.OperationOptions {}
2732
+
2733
+ /** Contains response data for the listByServer operation. */
2734
+ export type LtrBackupOperationsListByServerResponse = LtrServerBackupOperationList;
2735
+
2736
+ /** Optional parameters. */
2737
+ export interface LtrBackupOperationsListByServerNextOptionalParams
2738
+ extends coreClient.OperationOptions {}
2739
+
2740
+ /** Contains response data for the listByServerNext operation. */
2741
+ export type LtrBackupOperationsListByServerNextResponse = LtrServerBackupOperationList;
2742
+
1788
2743
  /** Optional parameters. */
1789
2744
  export interface PostgreSQLManagementFlexibleServerClientOptionalParams
1790
2745
  extends coreClient.ServiceClientOptions {