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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/CHANGELOG.md +141 -8
  2. package/README.md +1 -1
  3. package/dist/index.js +4729 -2620
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/administratorsCreateSample.js +1 -1
  8. package/dist-esm/samples-dev/administratorsDeleteSample.js +1 -1
  9. package/dist-esm/samples-dev/administratorsGetSample.js +1 -1
  10. package/dist-esm/samples-dev/administratorsListByServerSample.js +1 -1
  11. package/dist-esm/samples-dev/backupsGetSample.js +1 -1
  12. package/dist-esm/samples-dev/backupsListByServerSample.js +1 -1
  13. package/dist-esm/samples-dev/checkMigrationNameAvailabilitySample.d.ts +2 -0
  14. package/dist-esm/samples-dev/checkMigrationNameAvailabilitySample.d.ts.map +1 -0
  15. package/dist-esm/samples-dev/checkMigrationNameAvailabilitySample.js +43 -0
  16. package/dist-esm/samples-dev/checkMigrationNameAvailabilitySample.js.map +1 -0
  17. package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js +1 -1
  18. package/dist-esm/samples-dev/checkNameAvailabilityWithLocationExecuteSample.js +1 -1
  19. package/dist-esm/samples-dev/configurationsGetSample.js +1 -1
  20. package/dist-esm/samples-dev/configurationsListByServerSample.js +1 -1
  21. package/dist-esm/samples-dev/configurationsPutSample.js +1 -1
  22. package/dist-esm/samples-dev/configurationsUpdateSample.js +1 -1
  23. package/dist-esm/samples-dev/databasesCreateSample.js +1 -1
  24. package/dist-esm/samples-dev/databasesDeleteSample.js +1 -1
  25. package/dist-esm/samples-dev/databasesGetSample.js +1 -1
  26. package/dist-esm/samples-dev/databasesListByServerSample.js +1 -1
  27. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +1 -1
  28. package/dist-esm/samples-dev/firewallRulesDeleteSample.js +1 -1
  29. package/dist-esm/samples-dev/firewallRulesGetSample.js +1 -1
  30. package/dist-esm/samples-dev/firewallRulesListByServerSample.js +1 -1
  31. package/dist-esm/samples-dev/flexibleServerStartLtrBackupSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/flexibleServerStartLtrBackupSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/flexibleServerStartLtrBackupSample.js +43 -0
  34. package/dist-esm/samples-dev/flexibleServerStartLtrBackupSample.js.map +1 -0
  35. package/dist-esm/samples-dev/flexibleServerTriggerLtrPreBackupSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/flexibleServerTriggerLtrPreBackupSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/flexibleServerTriggerLtrPreBackupSample.js +42 -0
  38. package/dist-esm/samples-dev/flexibleServerTriggerLtrPreBackupSample.js.map +1 -0
  39. package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js +1 -1
  40. package/dist-esm/samples-dev/locationBasedCapabilitiesExecuteSample.js +1 -1
  41. package/dist-esm/samples-dev/logFilesListByServerSample.d.ts +2 -0
  42. package/dist-esm/samples-dev/logFilesListByServerSample.d.ts.map +1 -0
  43. package/dist-esm/samples-dev/logFilesListByServerSample.js +60 -0
  44. package/dist-esm/samples-dev/logFilesListByServerSample.js.map +1 -0
  45. package/dist-esm/samples-dev/ltrBackupOperationsGetSample.d.ts +2 -0
  46. package/dist-esm/samples-dev/ltrBackupOperationsGetSample.d.ts.map +1 -0
  47. package/dist-esm/samples-dev/ltrBackupOperationsGetSample.js +40 -0
  48. package/dist-esm/samples-dev/ltrBackupOperationsGetSample.js.map +1 -0
  49. package/dist-esm/samples-dev/ltrBackupOperationsListByServerSample.d.ts +2 -0
  50. package/dist-esm/samples-dev/ltrBackupOperationsListByServerSample.d.ts.map +1 -0
  51. package/dist-esm/samples-dev/ltrBackupOperationsListByServerSample.js +60 -0
  52. package/dist-esm/samples-dev/ltrBackupOperationsListByServerSample.js.map +1 -0
  53. package/dist-esm/samples-dev/migrationsCreateSample.d.ts +2 -0
  54. package/dist-esm/samples-dev/migrationsCreateSample.d.ts.map +1 -0
  55. package/dist-esm/samples-dev/migrationsCreateSample.js +45 -0
  56. package/dist-esm/samples-dev/migrationsCreateSample.js.map +1 -0
  57. package/dist-esm/samples-dev/migrationsDeleteSample.d.ts +2 -0
  58. package/dist-esm/samples-dev/migrationsDeleteSample.d.ts.map +1 -0
  59. package/dist-esm/samples-dev/migrationsDeleteSample.js +40 -0
  60. package/dist-esm/samples-dev/migrationsDeleteSample.js.map +1 -0
  61. package/dist-esm/samples-dev/migrationsGetSample.d.ts +2 -0
  62. package/dist-esm/samples-dev/migrationsGetSample.d.ts.map +1 -0
  63. package/dist-esm/samples-dev/migrationsGetSample.js +40 -0
  64. package/dist-esm/samples-dev/migrationsGetSample.js.map +1 -0
  65. package/dist-esm/samples-dev/migrationsListByTargetServerSample.d.ts +2 -0
  66. package/dist-esm/samples-dev/migrationsListByTargetServerSample.d.ts.map +1 -0
  67. package/dist-esm/samples-dev/migrationsListByTargetServerSample.js +64 -0
  68. package/dist-esm/samples-dev/migrationsListByTargetServerSample.js.map +1 -0
  69. package/dist-esm/samples-dev/migrationsUpdateSample.d.ts +2 -0
  70. package/dist-esm/samples-dev/migrationsUpdateSample.d.ts.map +1 -0
  71. package/dist-esm/samples-dev/migrationsUpdateSample.js +43 -0
  72. package/dist-esm/samples-dev/migrationsUpdateSample.js.map +1 -0
  73. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  74. package/dist-esm/samples-dev/replicasListByServerSample.js +1 -1
  75. package/dist-esm/samples-dev/serverCapabilitiesListSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/serverCapabilitiesListSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/serverCapabilitiesListSample.js +60 -0
  78. package/dist-esm/samples-dev/serverCapabilitiesListSample.js.map +1 -0
  79. package/dist-esm/samples-dev/serversCreateSample.js +63 -9
  80. package/dist-esm/samples-dev/serversCreateSample.js.map +1 -1
  81. package/dist-esm/samples-dev/serversDeleteSample.js +1 -1
  82. package/dist-esm/samples-dev/serversGetSample.js +2 -2
  83. package/dist-esm/samples-dev/serversListByResourceGroupSample.js +1 -1
  84. package/dist-esm/samples-dev/serversListSample.js +1 -1
  85. package/dist-esm/samples-dev/serversRestartSample.js +2 -2
  86. package/dist-esm/samples-dev/serversStartSample.js +1 -1
  87. package/dist-esm/samples-dev/serversStopSample.js +1 -1
  88. package/dist-esm/samples-dev/serversUpdateSample.js +11 -9
  89. package/dist-esm/samples-dev/serversUpdateSample.js.map +1 -1
  90. package/dist-esm/samples-dev/virtualNetworkSubnetUsageExecuteSample.js +1 -1
  91. package/dist-esm/src/models/index.d.ts +1105 -252
  92. package/dist-esm/src/models/index.d.ts.map +1 -1
  93. package/dist-esm/src/models/index.js +240 -2
  94. package/dist-esm/src/models/index.js.map +1 -1
  95. package/dist-esm/src/models/mappers.d.ts +34 -10
  96. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  97. package/dist-esm/src/models/mappers.js +1388 -641
  98. package/dist-esm/src/models/mappers.js.map +1 -1
  99. package/dist-esm/src/models/parameters.d.ts +11 -0
  100. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  101. package/dist-esm/src/models/parameters.js +96 -2
  102. package/dist-esm/src/models/parameters.js.map +1 -1
  103. package/dist-esm/src/operations/flexibleServer.d.ts +39 -0
  104. package/dist-esm/src/operations/flexibleServer.d.ts.map +1 -0
  105. package/dist-esm/src/operations/flexibleServer.js +157 -0
  106. package/dist-esm/src/operations/flexibleServer.js.map +1 -0
  107. package/dist-esm/src/operations/index.d.ts +5 -0
  108. package/dist-esm/src/operations/index.d.ts.map +1 -1
  109. package/dist-esm/src/operations/index.js +5 -0
  110. package/dist-esm/src/operations/index.js.map +1 -1
  111. package/dist-esm/src/operations/locationBasedCapabilities.d.ts +2 -2
  112. package/dist-esm/src/operations/locationBasedCapabilities.d.ts.map +1 -1
  113. package/dist-esm/src/operations/logFiles.d.ts +38 -0
  114. package/dist-esm/src/operations/logFiles.d.ts.map +1 -0
  115. package/dist-esm/src/operations/logFiles.js +155 -0
  116. package/dist-esm/src/operations/logFiles.js.map +1 -0
  117. package/dist-esm/src/operations/ltrBackupOperations.d.ts +46 -0
  118. package/dist-esm/src/operations/ltrBackupOperations.d.ts.map +1 -0
  119. package/dist-esm/src/operations/ltrBackupOperations.js +187 -0
  120. package/dist-esm/src/operations/ltrBackupOperations.js.map +1 -0
  121. package/dist-esm/src/operations/migrations.d.ts +80 -0
  122. package/dist-esm/src/operations/migrations.d.ts.map +1 -0
  123. package/dist-esm/src/operations/migrations.js +331 -0
  124. package/dist-esm/src/operations/migrations.js.map +1 -0
  125. package/dist-esm/src/operations/serverCapabilities.d.ts +38 -0
  126. package/dist-esm/src/operations/serverCapabilities.d.ts.map +1 -0
  127. package/dist-esm/src/operations/serverCapabilities.js +155 -0
  128. package/dist-esm/src/operations/serverCapabilities.js.map +1 -0
  129. package/dist-esm/src/operations/virtualNetworkSubnetUsage.js +1 -1
  130. package/dist-esm/src/operations/virtualNetworkSubnetUsage.js.map +1 -1
  131. package/dist-esm/src/operationsInterfaces/flexibleServer.d.ts +31 -0
  132. package/dist-esm/src/operationsInterfaces/flexibleServer.d.ts.map +1 -0
  133. package/dist-esm/src/operationsInterfaces/flexibleServer.js +9 -0
  134. package/dist-esm/src/operationsInterfaces/flexibleServer.js.map +1 -0
  135. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  136. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  137. package/dist-esm/src/operationsInterfaces/index.js +5 -0
  138. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  139. package/dist-esm/src/operationsInterfaces/locationBasedCapabilities.d.ts +2 -2
  140. package/dist-esm/src/operationsInterfaces/locationBasedCapabilities.d.ts.map +1 -1
  141. package/dist-esm/src/operationsInterfaces/logFiles.d.ts +13 -0
  142. package/dist-esm/src/operationsInterfaces/logFiles.d.ts.map +1 -0
  143. package/dist-esm/src/operationsInterfaces/logFiles.js +9 -0
  144. package/dist-esm/src/operationsInterfaces/logFiles.js.map +1 -0
  145. package/dist-esm/src/operationsInterfaces/ltrBackupOperations.d.ts +21 -0
  146. package/dist-esm/src/operationsInterfaces/ltrBackupOperations.d.ts.map +1 -0
  147. package/dist-esm/src/operationsInterfaces/ltrBackupOperations.js +9 -0
  148. package/dist-esm/src/operationsInterfaces/ltrBackupOperations.js.map +1 -0
  149. package/dist-esm/src/operationsInterfaces/migrations.d.ts +53 -0
  150. package/dist-esm/src/operationsInterfaces/migrations.d.ts.map +1 -0
  151. package/dist-esm/src/operationsInterfaces/migrations.js +9 -0
  152. package/dist-esm/src/operationsInterfaces/migrations.js.map +1 -0
  153. package/dist-esm/src/operationsInterfaces/serverCapabilities.d.ts +13 -0
  154. package/dist-esm/src/operationsInterfaces/serverCapabilities.d.ts.map +1 -0
  155. package/dist-esm/src/operationsInterfaces/serverCapabilities.js +9 -0
  156. package/dist-esm/src/operationsInterfaces/serverCapabilities.js.map +1 -0
  157. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.d.ts +16 -2
  158. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.d.ts.map +1 -1
  159. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.js +52 -3
  160. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.js.map +1 -1
  161. package/package.json +4 -4
  162. package/review/arm-postgresql-flexible.api.md +642 -58
  163. package/src/models/index.ts +1244 -289
  164. package/src/models/mappers.ts +1588 -718
  165. package/src/models/parameters.ts +114 -2
  166. package/src/operations/flexibleServer.ts +223 -0
  167. package/src/operations/index.ts +5 -0
  168. package/src/operations/locationBasedCapabilities.ts +4 -4
  169. package/src/operations/logFiles.ts +198 -0
  170. package/src/operations/ltrBackupOperations.ts +242 -0
  171. package/src/operations/migrations.ts +442 -0
  172. package/src/operations/serverCapabilities.ts +194 -0
  173. package/src/operations/virtualNetworkSubnetUsage.ts +1 -1
  174. package/src/operationsInterfaces/flexibleServer.ts +66 -0
  175. package/src/operationsInterfaces/index.ts +5 -0
  176. package/src/operationsInterfaces/locationBasedCapabilities.ts +2 -2
  177. package/src/operationsInterfaces/logFiles.ts +26 -0
  178. package/src/operationsInterfaces/ltrBackupOperations.ts +44 -0
  179. package/src/operationsInterfaces/migrations.ts +104 -0
  180. package/src/operationsInterfaces/serverCapabilities.ts +29 -0
  181. package/src/postgreSQLManagementFlexibleServerClient.ts +86 -5
  182. package/types/arm-postgresql-flexible.d.ts +1273 -183
  183. package/types/tsdoc-metadata.json +1 -1
@@ -106,263 +106,31 @@ export interface ServerBackupListResult {
106
106
  /** The link used to get the next page of operations. */
107
107
  nextLink?: string;
108
108
  }
109
- /** location capability */
109
+ /** Capability for the PostgreSQL server */
110
110
  export interface CapabilitiesListResult {
111
111
  /**
112
112
  * A list of supported capabilities.
113
113
  * NOTE: This property will not be serialized. It can only be populated by the server.
114
114
  */
115
- readonly value?: CapabilityProperties[];
115
+ readonly value?: FlexibleServerCapability[];
116
116
  /**
117
117
  * Link to retrieve next page of results.
118
118
  * NOTE: This property will not be serialized. It can only be populated by the server.
119
119
  */
120
120
  readonly nextLink?: string;
121
121
  }
122
- /** Location capabilities. */
123
- export interface CapabilityProperties {
122
+ /** Base object for representing capability */
123
+ export interface CapabilityBase {
124
124
  /**
125
- * zone name
125
+ * The status of the capability.
126
126
  * NOTE: This property will not be serialized. It can only be populated by the server.
127
127
  */
128
- readonly zone?: string;
128
+ readonly status?: CapabilityStatus;
129
129
  /**
130
- * Supported high availability mode
131
- * NOTE: This property will not be serialized. It can only be populated by the server.
132
- */
133
- readonly supportedHAMode?: string[];
134
- /**
135
- * A value indicating whether a new server in this region can have geo-backups to paired region.
136
- * NOTE: This property will not be serialized. It can only be populated by the server.
137
- */
138
- readonly geoBackupSupported?: boolean;
139
- /**
140
- * A value indicating whether a new server in this region can support multi zone HA.
141
- * NOTE: This property will not be serialized. It can only be populated by the server.
142
- */
143
- readonly zoneRedundantHaSupported?: boolean;
144
- /**
145
- * A value indicating whether a new server in this region can have geo-backups to paired region.
146
- * NOTE: This property will not be serialized. It can only be populated by the server.
147
- */
148
- readonly zoneRedundantHaAndGeoBackupSupported?: boolean;
149
- /** NOTE: This property will not be serialized. It can only be populated by the server. */
150
- readonly supportedFlexibleServerEditions?: FlexibleServerEditionCapability[];
151
- /** NOTE: This property will not be serialized. It can only be populated by the server. */
152
- readonly supportedHyperscaleNodeEditions?: HyperscaleNodeEditionCapability[];
153
- /**
154
- * A value indicating whether fast provisioning is supported in this region.
155
- * NOTE: This property will not be serialized. It can only be populated by the server.
156
- */
157
- readonly fastProvisioningSupported?: boolean;
158
- /** NOTE: This property will not be serialized. It can only be populated by the server. */
159
- readonly supportedFastProvisioningEditions?: FastProvisioningEditionCapability[];
160
- /**
161
- * The status
162
- * NOTE: This property will not be serialized. It can only be populated by the server.
163
- */
164
- readonly status?: string;
165
- }
166
- /** Flexible server edition capabilities. */
167
- export interface FlexibleServerEditionCapability {
168
- /**
169
- * Server edition name
170
- * NOTE: This property will not be serialized. It can only be populated by the server.
171
- */
172
- readonly name?: string;
173
- /**
174
- * The list of editions supported by this server edition.
175
- * NOTE: This property will not be serialized. It can only be populated by the server.
176
- */
177
- readonly supportedStorageEditions?: StorageEditionCapability[];
178
- /**
179
- * The list of server versions supported by this server edition.
180
- * NOTE: This property will not be serialized. It can only be populated by the server.
181
- */
182
- readonly supportedServerVersions?: ServerVersionCapability[];
183
- /**
184
- * The status
185
- * NOTE: This property will not be serialized. It can only be populated by the server.
186
- */
187
- readonly status?: string;
188
- }
189
- /** storage edition capability */
190
- export interface StorageEditionCapability {
191
- /**
192
- * storage edition name
193
- * NOTE: This property will not be serialized. It can only be populated by the server.
194
- */
195
- readonly name?: string;
196
- /** NOTE: This property will not be serialized. It can only be populated by the server. */
197
- readonly supportedStorageMB?: StorageMBCapability[];
198
- /**
199
- * The status
200
- * NOTE: This property will not be serialized. It can only be populated by the server.
201
- */
202
- readonly status?: string;
203
- }
204
- /** storage size in MB capability */
205
- export interface StorageMBCapability {
206
- /**
207
- * storage MB name
208
- * NOTE: This property will not be serialized. It can only be populated by the server.
209
- */
210
- readonly name?: string;
211
- /**
212
- * supported IOPS
213
- * NOTE: This property will not be serialized. It can only be populated by the server.
214
- */
215
- readonly supportedIops?: number;
216
- /**
217
- * storage size in MB
218
- * NOTE: This property will not be serialized. It can only be populated by the server.
219
- */
220
- readonly storageSizeMB?: number;
221
- /** NOTE: This property will not be serialized. It can only be populated by the server. */
222
- readonly supportedUpgradableTierList?: StorageTierCapability[];
223
- /**
224
- * The status
225
- * NOTE: This property will not be serialized. It can only be populated by the server.
226
- */
227
- readonly status?: string;
228
- }
229
- export interface StorageTierCapability {
230
- /**
231
- * Name to represent Storage tier capability
232
- * NOTE: This property will not be serialized. It can only be populated by the server.
233
- */
234
- readonly name?: string;
235
- /**
236
- * Storage tier name
237
- * NOTE: This property will not be serialized. It can only be populated by the server.
238
- */
239
- readonly tierName?: string;
240
- /**
241
- * Supported IOPS for this storage tier
242
- * NOTE: This property will not be serialized. It can only be populated by the server.
243
- */
244
- readonly iops?: number;
245
- /**
246
- * Indicates if this is a baseline storage tier or not
247
- * NOTE: This property will not be serialized. It can only be populated by the server.
248
- */
249
- readonly isBaseline?: boolean;
250
- /**
251
- * Status os this storage tier
252
- * NOTE: This property will not be serialized. It can only be populated by the server.
253
- */
254
- readonly status?: string;
255
- }
256
- /** Server version capabilities. */
257
- export interface ServerVersionCapability {
258
- /**
259
- * server version
260
- * NOTE: This property will not be serialized. It can only be populated by the server.
261
- */
262
- readonly name?: string;
263
- /**
264
- * Supported servers versions to upgrade
265
- * NOTE: This property will not be serialized. It can only be populated by the server.
266
- */
267
- readonly supportedVersionsToUpgrade?: string[];
268
- /** NOTE: This property will not be serialized. It can only be populated by the server. */
269
- readonly supportedVcores?: VcoreCapability[];
270
- /**
271
- * The status
272
- * NOTE: This property will not be serialized. It can only be populated by the server.
273
- */
274
- readonly status?: string;
275
- }
276
- /** Vcores capability */
277
- export interface VcoreCapability {
278
- /**
279
- * vCore name
280
- * NOTE: This property will not be serialized. It can only be populated by the server.
281
- */
282
- readonly name?: string;
283
- /**
284
- * supported vCores
285
- * NOTE: This property will not be serialized. It can only be populated by the server.
286
- */
287
- readonly vCores?: number;
288
- /**
289
- * supported IOPS
290
- * NOTE: This property will not be serialized. It can only be populated by the server.
291
- */
292
- readonly supportedIops?: number;
293
- /**
294
- * supported memory per vCore in MB
295
- * NOTE: This property will not be serialized. It can only be populated by the server.
296
- */
297
- readonly supportedMemoryPerVcoreMB?: number;
298
- /**
299
- * The status
300
- * NOTE: This property will not be serialized. It can only be populated by the server.
301
- */
302
- readonly status?: string;
303
- }
304
- /** Hyperscale node edition capabilities. */
305
- export interface HyperscaleNodeEditionCapability {
306
- /**
307
- * Server edition name
308
- * NOTE: This property will not be serialized. It can only be populated by the server.
309
- */
310
- readonly name?: string;
311
- /**
312
- * The list of editions supported by this server edition.
313
- * NOTE: This property will not be serialized. It can only be populated by the server.
314
- */
315
- readonly supportedStorageEditions?: StorageEditionCapability[];
316
- /**
317
- * The list of server versions supported by this server edition.
318
- * NOTE: This property will not be serialized. It can only be populated by the server.
319
- */
320
- readonly supportedServerVersions?: ServerVersionCapability[];
321
- /**
322
- * The list of Node Types supported by this server edition.
323
- * NOTE: This property will not be serialized. It can only be populated by the server.
324
- */
325
- readonly supportedNodeTypes?: NodeTypeCapability[];
326
- /**
327
- * The status
328
- * NOTE: This property will not be serialized. It can only be populated by the server.
329
- */
330
- readonly status?: string;
331
- }
332
- /** node type capability */
333
- export interface NodeTypeCapability {
334
- /**
335
- * note type name
336
- * NOTE: This property will not be serialized. It can only be populated by the server.
337
- */
338
- readonly name?: string;
339
- /**
340
- * note type
341
- * NOTE: This property will not be serialized. It can only be populated by the server.
342
- */
343
- readonly nodeType?: string;
344
- /**
345
- * The status
346
- * NOTE: This property will not be serialized. It can only be populated by the server.
347
- */
348
- readonly status?: string;
349
- }
350
- export interface FastProvisioningEditionCapability {
351
- /**
352
- * Fast provisioning supported sku name
353
- * NOTE: This property will not be serialized. It can only be populated by the server.
354
- */
355
- readonly supportedSku?: string;
356
- /**
357
- * Fast provisioning supported storage in Gb
358
- * NOTE: This property will not be serialized. It can only be populated by the server.
359
- */
360
- readonly supportedStorageGb?: number;
361
- /**
362
- * Fast provisioning supported version
130
+ * The reason for the capability not being available.
363
131
  * NOTE: This property will not be serialized. It can only be populated by the server.
364
132
  */
365
- readonly supportedServerVersions?: string;
133
+ readonly reason?: string;
366
134
  }
367
135
  /** The check availability request body. */
368
136
  export interface CheckNameAvailabilityRequest {
@@ -466,7 +234,7 @@ export interface UserAssignedIdentity {
466
234
  userAssignedIdentities?: {
467
235
  [propertyName: string]: UserIdentity;
468
236
  };
469
- /** the types of identities associated with this resource; currently restricted to 'SystemAssigned and UserAssigned' */
237
+ /** the types of identities associated with this resource; currently restricted to 'None and UserAssigned' */
470
238
  type: IdentityType;
471
239
  }
472
240
  /** Describes a single user-assigned identity associated with the application. */
@@ -480,6 +248,15 @@ export interface UserIdentity {
480
248
  export interface Storage {
481
249
  /** Max storage allowed for a server. */
482
250
  storageSizeGB?: number;
251
+ /** Flag to enable / disable Storage Auto grow for flexible server. */
252
+ autoGrow?: StorageAutoGrow;
253
+ /** Name of storage tier for IOPS. */
254
+ iopsTier?: AzureManagedDiskPerformanceTiers;
255
+ /**
256
+ * Storage tier IOPS quantity.
257
+ * NOTE: This property will not be serialized. It can only be populated by the server.
258
+ */
259
+ readonly iops?: number;
483
260
  }
484
261
  /** Authentication configuration properties of a server */
485
262
  export interface AuthConfig {
@@ -492,12 +269,20 @@ export interface AuthConfig {
492
269
  }
493
270
  /** Data encryption properties of a server */
494
271
  export interface DataEncryption {
495
- /** URI for the key for data encryption for primary server. */
272
+ /** URI for the key in keyvault for data encryption of the primary server. */
496
273
  primaryKeyURI?: string;
497
- /** Resource Id for the User assigned identity to be used for data encryption for primary server. */
274
+ /** Resource Id for the User assigned identity to be used for data encryption of the primary server. */
498
275
  primaryUserAssignedIdentityId?: string;
276
+ /** URI for the key in keyvault for data encryption for geo-backup of server. */
277
+ geoBackupKeyURI?: string;
278
+ /** Resource Id for the User assigned identity to be used for data encryption for geo-backup of server. */
279
+ geoBackupUserAssignedIdentityId?: string;
499
280
  /** Data encryption type to depict if it is System Managed vs Azure Key vault. */
500
281
  type?: ArmServerKeyType;
282
+ /** Primary encryption key status for Data encryption enabled server. */
283
+ primaryEncryptionKeyStatus?: KeyStatusEnum;
284
+ /** Geo-backup encryption key status for Data encryption enabled server. */
285
+ geoBackupEncryptionKeyStatus?: KeyStatusEnum;
501
286
  }
502
287
  /** Backup properties of a server */
503
288
  export interface Backup {
@@ -587,6 +372,135 @@ export interface ServerListResult {
587
372
  /** The link used to get the next page of operations. */
588
373
  nextLink?: string;
589
374
  }
375
+ /** Migration status. */
376
+ export interface MigrationStatus {
377
+ /**
378
+ * State of migration
379
+ * NOTE: This property will not be serialized. It can only be populated by the server.
380
+ */
381
+ readonly state?: MigrationState;
382
+ /**
383
+ * Error message, if any, for the migration state
384
+ * NOTE: This property will not be serialized. It can only be populated by the server.
385
+ */
386
+ readonly error?: string;
387
+ /**
388
+ * Current Migration sub state details.
389
+ * NOTE: This property will not be serialized. It can only be populated by the server.
390
+ */
391
+ readonly currentSubStateDetails?: MigrationSubStateDetails;
392
+ }
393
+ /** Migration sub state details. */
394
+ export interface MigrationSubStateDetails {
395
+ /**
396
+ * Migration sub state.
397
+ * NOTE: This property will not be serialized. It can only be populated by the server.
398
+ */
399
+ readonly currentSubState?: MigrationSubState;
400
+ }
401
+ /** Database server metadata. */
402
+ export interface DbServerMetadata {
403
+ /**
404
+ * Location of database server
405
+ * NOTE: This property will not be serialized. It can only be populated by the server.
406
+ */
407
+ readonly location?: string;
408
+ /** Version for database engine */
409
+ version?: string;
410
+ /** Storage size in MB for database server */
411
+ storageMb?: number;
412
+ /** SKU for the database server */
413
+ sku?: ServerSkuAutoGenerated;
414
+ }
415
+ /** Sku information related properties of a server. */
416
+ export interface ServerSkuAutoGenerated {
417
+ /** The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3. */
418
+ name: string;
419
+ /** The tier of the particular SKU, e.g. Burstable. */
420
+ tier: SkuTier;
421
+ }
422
+ /** Migration secret parameters. */
423
+ export interface MigrationSecretParameters {
424
+ /** Admin credentials for source and target servers */
425
+ adminCredentials: AdminCredentials;
426
+ }
427
+ /** Server admin credentials. */
428
+ export interface AdminCredentials {
429
+ /** Password for source server. */
430
+ sourceServerPassword: string;
431
+ /** Password for target server. */
432
+ targetServerPassword: string;
433
+ }
434
+ /** Represents a migration resource for patch. */
435
+ export interface MigrationResourceForPatch {
436
+ /** Application-specific metadata in the form of key-value pairs. */
437
+ tags?: {
438
+ [propertyName: string]: string;
439
+ };
440
+ /** ResourceId of the source database server */
441
+ sourceDbServerResourceId?: string;
442
+ /** Source server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection */
443
+ sourceDbServerFullyQualifiedDomainName?: string;
444
+ /** Target server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection */
445
+ targetDbServerFullyQualifiedDomainName?: string;
446
+ /** Migration secret parameters */
447
+ secretParameters?: MigrationSecretParameters;
448
+ /** Number of databases to migrate */
449
+ dbsToMigrate?: string[];
450
+ /** Indicates whether to setup LogicalReplicationOnSourceDb, if needed */
451
+ setupLogicalReplicationOnSourceDbIfNeeded?: LogicalReplicationOnSourceDbEnum;
452
+ /** 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. */
453
+ overwriteDbsInTarget?: OverwriteDbsInTargetEnum;
454
+ /** Start time in UTC for migration window */
455
+ migrationWindowStartTimeInUtc?: Date;
456
+ /** Indicates whether the data migration should start right away */
457
+ startDataMigration?: StartDataMigrationEnum;
458
+ /** To trigger cutover for entire migration we need to send this flag as Enabled */
459
+ triggerCutover?: TriggerCutoverEnum;
460
+ /** When you want to trigger cutover for specific databases send triggerCutover flag as Enabled and database names in this array */
461
+ dbsToTriggerCutoverOn?: string[];
462
+ /** To trigger cancel for entire migration we need to send this flag as Enabled */
463
+ cancel?: CancelEnum;
464
+ /** When you want to trigger cancel for specific databases send cancel flag as Enabled and database names in this array */
465
+ dbsToCancelMigrationOn?: string[];
466
+ /** There are two types of migration modes Online and Offline */
467
+ migrationMode?: MigrationMode;
468
+ }
469
+ /** A list of migration resources. */
470
+ export interface MigrationResourceListResult {
471
+ /**
472
+ * A list of migration resources.
473
+ * NOTE: This property will not be serialized. It can only be populated by the server.
474
+ */
475
+ readonly value?: MigrationResource[];
476
+ /**
477
+ * The link used to get the next page of migrations.
478
+ * NOTE: This property will not be serialized. It can only be populated by the server.
479
+ */
480
+ readonly nextLink?: string;
481
+ }
482
+ /** Represents a migration name's availability. */
483
+ export interface MigrationNameAvailabilityResource {
484
+ /** The resource name to verify. */
485
+ name: string;
486
+ /** The type of the resource. */
487
+ type: string;
488
+ /**
489
+ * Indicates whether the resource name is available.
490
+ * NOTE: This property will not be serialized. It can only be populated by the server.
491
+ */
492
+ readonly nameAvailable?: boolean;
493
+ /**
494
+ * Migration name availability reason
495
+ * NOTE: This property will not be serialized. It can only be populated by the server.
496
+ */
497
+ readonly reason?: MigrationNameAvailabilityReason;
498
+ /**
499
+ * Migration name availability message.
500
+ * NOTE: This property will not be serialized. It can only be populated by the server.
501
+ */
502
+ readonly message?: string;
503
+ }
590
504
  /** A list of resource provider operations. */
591
505
  export interface OperationListResult {
592
506
  /** Collection of available operation details */
@@ -647,6 +561,13 @@ export interface OperationDisplay {
647
561
  */
648
562
  readonly description?: string;
649
563
  }
564
+ /** A List of logFiles. */
565
+ export interface LogFileListResult {
566
+ /** The list of logFiles in a server */
567
+ value?: LogFile[];
568
+ /** The link used to get the next page of operations. */
569
+ nextLink?: string;
570
+ }
650
571
  /** Represents server restart parameters. */
651
572
  export interface RestartParameter {
652
573
  /** Indicates whether to restart the server with failover. */
@@ -687,6 +608,62 @@ export interface DelegatedSubnetUsage {
687
608
  */
688
609
  readonly usage?: number;
689
610
  }
611
+ /** BackupRequestBase is the base for all backup request. */
612
+ export interface BackupRequestBase {
613
+ /** Backup Settings */
614
+ backupSettings: BackupSettings;
615
+ }
616
+ /** The settings for the long term backup. */
617
+ export interface BackupSettings {
618
+ /** Backup Name for the current backup */
619
+ backupName: string;
620
+ }
621
+ /** Response for the LTR pre-backup API call */
622
+ export interface LtrPreBackupResponse {
623
+ /** Number of storage containers the plugin will use during backup. More than one containers may be used for size limitations, parallelism, or redundancy etc. */
624
+ numberOfContainers: number;
625
+ }
626
+ /** Details about the target where the backup content will be stored. */
627
+ export interface BackupStoreDetails {
628
+ /** List of SAS uri of storage containers where backup data is to be streamed/copied. */
629
+ sasUriList: string[];
630
+ }
631
+ /** Response for the LTR backup API call */
632
+ export interface LtrBackupResponse {
633
+ /** Size of datasource in bytes */
634
+ datasourceSizeInBytes?: number;
635
+ /** Data transferred in bytes */
636
+ dataTransferredInBytes?: number;
637
+ /** Name of Backup operation */
638
+ backupName?: string;
639
+ /** 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 */
640
+ backupMetadata?: string;
641
+ /** Service-set extensible enum indicating the status of operation */
642
+ status?: ExecutionStatus;
643
+ /** Start time of the operation. */
644
+ startTime?: Date;
645
+ /** End time of the operation. */
646
+ endTime?: Date;
647
+ /** PercentageCompleted */
648
+ percentComplete?: number;
649
+ /**
650
+ * The error code.
651
+ * NOTE: This property will not be serialized. It can only be populated by the server.
652
+ */
653
+ readonly errorCode?: string;
654
+ /**
655
+ * The error message.
656
+ * NOTE: This property will not be serialized. It can only be populated by the server.
657
+ */
658
+ readonly errorMessage?: string;
659
+ }
660
+ /** A list of long term retention backup operations for server. */
661
+ export interface LtrServerBackupOperationList {
662
+ /** The list of long term retention server backup operations */
663
+ value?: LtrServerBackupOperation[];
664
+ /** The link used to get the next page of operations. */
665
+ nextLink?: string;
666
+ }
690
667
  /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
691
668
  export interface ProxyResource extends Resource {
692
669
  }
@@ -699,6 +676,212 @@ export interface TrackedResource extends Resource {
699
676
  /** The geo-location where the resource lives */
700
677
  location: string;
701
678
  }
679
+ /** Represents capability of a storage tier */
680
+ export interface StorageTierCapability extends CapabilityBase {
681
+ /**
682
+ * Name to represent Storage tier capability
683
+ * NOTE: This property will not be serialized. It can only be populated by the server.
684
+ */
685
+ readonly name?: string;
686
+ /**
687
+ * Supported IOPS for this storage tier
688
+ * NOTE: This property will not be serialized. It can only be populated by the server.
689
+ */
690
+ readonly iops?: number;
691
+ }
692
+ /** storage size in MB capability */
693
+ export interface StorageMbCapability extends CapabilityBase {
694
+ /**
695
+ * Supported IOPS
696
+ * NOTE: This property will not be serialized. It can only be populated by the server.
697
+ */
698
+ readonly supportedIops?: number;
699
+ /**
700
+ * Storage size in MB
701
+ * NOTE: This property will not be serialized. It can only be populated by the server.
702
+ */
703
+ readonly storageSizeMb?: number;
704
+ /**
705
+ * Default tier for IOPS
706
+ * NOTE: This property will not be serialized. It can only be populated by the server.
707
+ */
708
+ readonly defaultIopsTier?: string;
709
+ /**
710
+ * List of available options to upgrade the storage performance
711
+ * NOTE: This property will not be serialized. It can only be populated by the server.
712
+ */
713
+ readonly supportedIopsTiers?: StorageTierCapability[];
714
+ }
715
+ /** Storage edition capability */
716
+ export interface StorageEditionCapability extends CapabilityBase {
717
+ /**
718
+ * Storage edition name
719
+ * NOTE: This property will not be serialized. It can only be populated by the server.
720
+ */
721
+ readonly name?: string;
722
+ /**
723
+ * Default storage size in MB for storage edition
724
+ * NOTE: This property will not be serialized. It can only be populated by the server.
725
+ */
726
+ readonly defaultStorageSizeMb?: number;
727
+ /**
728
+ * Flexible server supported storage range in MB
729
+ * NOTE: This property will not be serialized. It can only be populated by the server.
730
+ */
731
+ readonly supportedStorageMb?: StorageMbCapability[];
732
+ }
733
+ /** Sku capability */
734
+ export interface ServerSku extends CapabilityBase {
735
+ /**
736
+ * Sku name
737
+ * NOTE: This property will not be serialized. It can only be populated by the server.
738
+ */
739
+ readonly name?: string;
740
+ /**
741
+ * Supported vCores
742
+ * NOTE: This property will not be serialized. It can only be populated by the server.
743
+ */
744
+ readonly vCores?: number;
745
+ /**
746
+ * Supported IOPS
747
+ * NOTE: This property will not be serialized. It can only be populated by the server.
748
+ */
749
+ readonly supportedIops?: number;
750
+ /**
751
+ * Supported memory per vCore in MB
752
+ * NOTE: This property will not be serialized. It can only be populated by the server.
753
+ */
754
+ readonly supportedMemoryPerVcoreMb?: number;
755
+ /**
756
+ * List of supported Availability Zones. E.g. "1", "2", "3"
757
+ * NOTE: This property will not be serialized. It can only be populated by the server.
758
+ */
759
+ readonly supportedZones?: string[];
760
+ /**
761
+ * Supported high availability mode
762
+ * NOTE: This property will not be serialized. It can only be populated by the server.
763
+ */
764
+ readonly supportedHaMode?: HaMode[];
765
+ }
766
+ /** Flexible server edition capabilities. */
767
+ export interface FlexibleServerEditionCapability extends CapabilityBase {
768
+ /**
769
+ * Server edition name
770
+ * NOTE: This property will not be serialized. It can only be populated by the server.
771
+ */
772
+ readonly name?: string;
773
+ /**
774
+ * Default sku name for the server edition
775
+ * NOTE: This property will not be serialized. It can only be populated by the server.
776
+ */
777
+ readonly defaultSkuName?: string;
778
+ /**
779
+ * The list of editions supported by this server edition.
780
+ * NOTE: This property will not be serialized. It can only be populated by the server.
781
+ */
782
+ readonly supportedStorageEditions?: StorageEditionCapability[];
783
+ /**
784
+ * List of supported server SKUs.
785
+ * NOTE: This property will not be serialized. It can only be populated by the server.
786
+ */
787
+ readonly supportedServerSkus?: ServerSku[];
788
+ }
789
+ /** Server version capabilities. */
790
+ export interface ServerVersionCapability extends CapabilityBase {
791
+ /**
792
+ * Server version
793
+ * NOTE: This property will not be serialized. It can only be populated by the server.
794
+ */
795
+ readonly name?: string;
796
+ /**
797
+ * Supported servers versions to upgrade
798
+ * NOTE: This property will not be serialized. It can only be populated by the server.
799
+ */
800
+ readonly supportedVersionsToUpgrade?: string[];
801
+ }
802
+ /** Represents capability of a fast provisioning edition */
803
+ export interface FastProvisioningEditionCapability extends CapabilityBase {
804
+ /**
805
+ * Fast provisioning supported tier name
806
+ * NOTE: This property will not be serialized. It can only be populated by the server.
807
+ */
808
+ readonly supportedTier?: string;
809
+ /**
810
+ * Fast provisioning supported sku name
811
+ * NOTE: This property will not be serialized. It can only be populated by the server.
812
+ */
813
+ readonly supportedSku?: string;
814
+ /**
815
+ * Fast provisioning supported storage in Gb
816
+ * NOTE: This property will not be serialized. It can only be populated by the server.
817
+ */
818
+ readonly supportedStorageGb?: number;
819
+ /**
820
+ * Fast provisioning supported version
821
+ * NOTE: This property will not be serialized. It can only be populated by the server.
822
+ */
823
+ readonly supportedServerVersions?: string;
824
+ /**
825
+ * Count of servers in cache matching the spec
826
+ * NOTE: This property will not be serialized. It can only be populated by the server.
827
+ */
828
+ readonly serverCount?: number;
829
+ }
830
+ /** Capability for the PostgreSQL server */
831
+ export interface FlexibleServerCapability extends CapabilityBase {
832
+ /** Name of flexible servers capability */
833
+ name?: string;
834
+ /**
835
+ * List of supported flexible server editions
836
+ * NOTE: This property will not be serialized. It can only be populated by the server.
837
+ */
838
+ readonly supportedServerEditions?: FlexibleServerEditionCapability[];
839
+ /**
840
+ * The list of server versions supported for this capability.
841
+ * NOTE: This property will not be serialized. It can only be populated by the server.
842
+ */
843
+ readonly supportedServerVersions?: ServerVersionCapability[];
844
+ /**
845
+ * Gets a value indicating whether fast provisioning is supported. "Enabled" means fast provisioning is supported. "Disabled" stands for fast provisioning is not supported.
846
+ * NOTE: This property will not be serialized. It can only be populated by the server.
847
+ */
848
+ readonly fastProvisioningSupported?: FastProvisioningSupportedEnum;
849
+ /**
850
+ * List of supported server editions for fast provisioning
851
+ * NOTE: This property will not be serialized. It can only be populated by the server.
852
+ */
853
+ readonly supportedFastProvisioningEditions?: FastProvisioningEditionCapability[];
854
+ /**
855
+ * Determines if geo-backup is supported in this region. "Enabled" means geo-backup is supported. "Disabled" stands for geo-back is not supported.
856
+ * NOTE: This property will not be serialized. It can only be populated by the server.
857
+ */
858
+ readonly geoBackupSupported?: GeoBackupSupportedEnum;
859
+ /**
860
+ * 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.
861
+ * NOTE: This property will not be serialized. It can only be populated by the server.
862
+ */
863
+ readonly zoneRedundantHaSupported?: ZoneRedundantHaSupportedEnum;
864
+ /**
865
+ * 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.
866
+ * NOTE: This property will not be serialized. It can only be populated by the server.
867
+ */
868
+ readonly zoneRedundantHaAndGeoBackupSupported?: ZoneRedundantHaAndGeoBackupSupportedEnum;
869
+ /**
870
+ * 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.
871
+ * NOTE: This property will not be serialized. It can only be populated by the server.
872
+ */
873
+ readonly storageAutoGrowthSupported?: StorageAutoGrowthSupportedEnum;
874
+ /**
875
+ * 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.
876
+ * NOTE: This property will not be serialized. It can only be populated by the server.
877
+ */
878
+ readonly onlineResizeSupported?: OnlineResizeSupportedEnum;
879
+ /**
880
+ * A value indicating whether this region is restricted. "Enabled" means region is restricted. "Disabled" stands for region is not restricted.
881
+ * NOTE: This property will not be serialized. It can only be populated by the server.
882
+ */
883
+ readonly restricted?: RestrictedEnum;
884
+ }
702
885
  /** Represents a resource name availability. */
703
886
  export interface NameAvailability extends CheckNameAvailabilityResponse {
704
887
  /**
@@ -712,6 +895,14 @@ export interface NameAvailability extends CheckNameAvailabilityResponse {
712
895
  */
713
896
  readonly type?: string;
714
897
  }
898
+ /** A request that is made for pre-backup. */
899
+ export interface LtrPreBackupRequest extends BackupRequestBase {
900
+ }
901
+ /** The request that is made for a long term retention backup. */
902
+ export interface LtrBackupRequest extends BackupRequestBase {
903
+ /** Backup store detail for target server */
904
+ targetDetails: BackupStoreDetails;
905
+ }
715
906
  /** Represents an Active Directory administrator. */
716
907
  export interface ActiveDirectoryAdministrator extends ProxyResource {
717
908
  /** The principal type used to represent the type of Active Directory Administrator. */
@@ -798,6 +989,48 @@ export interface FirewallRule extends ProxyResource {
798
989
  /** The end IP address of the server firewall rule. Must be IPv4 format. */
799
990
  endIpAddress: string;
800
991
  }
992
+ /** Represents a logFile. */
993
+ export interface LogFile extends ProxyResource {
994
+ /** Creation timestamp of the log file. */
995
+ createdTime?: Date;
996
+ /** Last modified timestamp of the log file. */
997
+ lastModifiedTime?: Date;
998
+ /** The size in kb of the logFile. */
999
+ sizeInKb?: number;
1000
+ /** Type of the log file. */
1001
+ typePropertiesType?: string;
1002
+ /** The url to download the log file from. */
1003
+ url?: string;
1004
+ }
1005
+ /** Response for the LTR backup Operation API call */
1006
+ export interface LtrServerBackupOperation extends ProxyResource {
1007
+ /** Size of datasource in bytes */
1008
+ datasourceSizeInBytes?: number;
1009
+ /** Data transferred in bytes */
1010
+ dataTransferredInBytes?: number;
1011
+ /** Name of Backup operation */
1012
+ backupName?: string;
1013
+ /** 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 */
1014
+ backupMetadata?: string;
1015
+ /** Service-set extensible enum indicating the status of operation */
1016
+ status?: ExecutionStatus;
1017
+ /** Start time of the operation. */
1018
+ startTime?: Date;
1019
+ /** End time of the operation. */
1020
+ endTime?: Date;
1021
+ /** PercentageCompleted */
1022
+ percentComplete?: number;
1023
+ /**
1024
+ * The error code.
1025
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1026
+ */
1027
+ readonly errorCode?: string;
1028
+ /**
1029
+ * The error message.
1030
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1031
+ */
1032
+ readonly errorMessage?: string;
1033
+ }
801
1034
  /** Represents a server. */
802
1035
  export interface Server extends TrackedResource {
803
1036
  /** The SKU (pricing tier) of the server. */
@@ -842,19 +1075,80 @@ export interface Server extends TrackedResource {
842
1075
  highAvailability?: HighAvailability;
843
1076
  /** Maintenance window properties of a server. */
844
1077
  maintenanceWindow?: MaintenanceWindow;
845
- /** The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica'. */
1078
+ /** 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 */
846
1079
  sourceServerResourceId?: string;
847
- /** Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore'. */
1080
+ /** Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'ReviveDropped'. */
848
1081
  pointInTimeUTC?: Date;
849
1082
  /** availability zone information of the server. */
850
1083
  availabilityZone?: string;
851
1084
  /** Replication role of the server */
852
1085
  replicationRole?: ReplicationRole;
853
- /** Replicas allowed for a server. */
854
- replicaCapacity?: number;
1086
+ /**
1087
+ * Replicas allowed for a server.
1088
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1089
+ */
1090
+ readonly replicaCapacity?: number;
855
1091
  /** The mode to create a new PostgreSQL server. */
856
1092
  createMode?: CreateMode;
857
1093
  }
1094
+ /** Represents a migration resource. */
1095
+ export interface MigrationResource extends TrackedResource {
1096
+ /**
1097
+ * ID for migration, a GUID.
1098
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1099
+ */
1100
+ readonly migrationId?: string;
1101
+ /**
1102
+ * Current status of migration
1103
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1104
+ */
1105
+ readonly currentStatus?: MigrationStatus;
1106
+ /** There are two types of migration modes Online and Offline */
1107
+ migrationMode?: MigrationMode;
1108
+ /**
1109
+ * Metadata of the source database server
1110
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1111
+ */
1112
+ readonly sourceDbServerMetadata?: DbServerMetadata;
1113
+ /**
1114
+ * Metadata of the target database server
1115
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1116
+ */
1117
+ readonly targetDbServerMetadata?: DbServerMetadata;
1118
+ /** ResourceId of the source database server */
1119
+ sourceDbServerResourceId?: string;
1120
+ /** Source server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection */
1121
+ sourceDbServerFullyQualifiedDomainName?: string;
1122
+ /**
1123
+ * ResourceId of the source database server
1124
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1125
+ */
1126
+ readonly targetDbServerResourceId?: string;
1127
+ /** Target server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection */
1128
+ targetDbServerFullyQualifiedDomainName?: string;
1129
+ /** Migration secret parameters */
1130
+ secretParameters?: MigrationSecretParameters;
1131
+ /** Number of databases to migrate */
1132
+ dbsToMigrate?: string[];
1133
+ /** Indicates whether to setup LogicalReplicationOnSourceDb, if needed */
1134
+ setupLogicalReplicationOnSourceDbIfNeeded?: LogicalReplicationOnSourceDbEnum;
1135
+ /** 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. */
1136
+ overwriteDbsInTarget?: OverwriteDbsInTargetEnum;
1137
+ /** Start time in UTC for migration window */
1138
+ migrationWindowStartTimeInUtc?: Date;
1139
+ /** End time in UTC for migration window */
1140
+ migrationWindowEndTimeInUtc?: Date;
1141
+ /** Indicates whether the data migration should start right away */
1142
+ startDataMigration?: StartDataMigrationEnum;
1143
+ /** To trigger cutover for entire migration we need to send this flag as Enabled */
1144
+ triggerCutover?: TriggerCutoverEnum;
1145
+ /** When you want to trigger cutover for specific databases send triggerCutover flag as Enabled and database names in this array */
1146
+ dbsToTriggerCutoverOn?: string[];
1147
+ /** To trigger cancel for entire migration we need to send this flag as Enabled */
1148
+ cancel?: CancelEnum;
1149
+ /** When you want to trigger cancel for specific databases send cancel flag as Enabled and database names in this array */
1150
+ dbsToCancelMigrationOn?: string[];
1151
+ }
858
1152
  /** Defines headers for Administrators_create operation. */
859
1153
  export interface AdministratorsCreateHeaders {
860
1154
  location?: string;
@@ -911,6 +1205,30 @@ export interface ServersStartHeaders {
911
1205
  export interface ServersStopHeaders {
912
1206
  location?: string;
913
1207
  }
1208
+ /** Defines headers for FlexibleServer_triggerLtrPreBackup operation. */
1209
+ export interface FlexibleServerTriggerLtrPreBackupHeaders {
1210
+ /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */
1211
+ xMsRequestId?: string;
1212
+ }
1213
+ /** Defines headers for FlexibleServer_triggerLtrPreBackup operation. */
1214
+ export interface FlexibleServerTriggerLtrPreBackupExceptionHeaders {
1215
+ /** ErrorCode string in the event of a failure. */
1216
+ xMsErrorCode?: string;
1217
+ /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */
1218
+ xMsRequestId?: string;
1219
+ }
1220
+ /** Defines headers for FlexibleServer_startLtrBackup operation. */
1221
+ export interface FlexibleServerStartLtrBackupHeaders {
1222
+ /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */
1223
+ xMsRequestId?: string;
1224
+ }
1225
+ /** Defines headers for FlexibleServer_startLtrBackup operation. */
1226
+ export interface FlexibleServerStartLtrBackupExceptionHeaders {
1227
+ /** ErrorCode string in the event of a failure. */
1228
+ xMsErrorCode?: string;
1229
+ /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */
1230
+ xMsRequestId?: string;
1231
+ }
914
1232
  /** Known values of {@link PrincipalType} that the service accepts. */
915
1233
  export declare enum KnownPrincipalType {
916
1234
  /** Unknown */
@@ -968,6 +1286,134 @@ export declare enum KnownOrigin {
968
1286
  * **Full**
969
1287
  */
970
1288
  export type Origin = string;
1289
+ /** Known values of {@link HaMode} that the service accepts. */
1290
+ export declare enum KnownHaMode {
1291
+ /** SameZone */
1292
+ SameZone = "SameZone",
1293
+ /** ZoneRedundant */
1294
+ ZoneRedundant = "ZoneRedundant"
1295
+ }
1296
+ /**
1297
+ * Defines values for HaMode. \
1298
+ * {@link KnownHaMode} can be used interchangeably with HaMode,
1299
+ * this enum contains the known values that the service supports.
1300
+ * ### Known values supported by the service
1301
+ * **SameZone** \
1302
+ * **ZoneRedundant**
1303
+ */
1304
+ export type HaMode = string;
1305
+ /** Known values of {@link FastProvisioningSupportedEnum} that the service accepts. */
1306
+ export declare enum KnownFastProvisioningSupportedEnum {
1307
+ /** Enabled */
1308
+ Enabled = "Enabled",
1309
+ /** Disabled */
1310
+ Disabled = "Disabled"
1311
+ }
1312
+ /**
1313
+ * Defines values for FastProvisioningSupportedEnum. \
1314
+ * {@link KnownFastProvisioningSupportedEnum} can be used interchangeably with FastProvisioningSupportedEnum,
1315
+ * this enum contains the known values that the service supports.
1316
+ * ### Known values supported by the service
1317
+ * **Enabled** \
1318
+ * **Disabled**
1319
+ */
1320
+ export type FastProvisioningSupportedEnum = string;
1321
+ /** Known values of {@link GeoBackupSupportedEnum} that the service accepts. */
1322
+ export declare enum KnownGeoBackupSupportedEnum {
1323
+ /** Enabled */
1324
+ Enabled = "Enabled",
1325
+ /** Disabled */
1326
+ Disabled = "Disabled"
1327
+ }
1328
+ /**
1329
+ * Defines values for GeoBackupSupportedEnum. \
1330
+ * {@link KnownGeoBackupSupportedEnum} can be used interchangeably with GeoBackupSupportedEnum,
1331
+ * this enum contains the known values that the service supports.
1332
+ * ### Known values supported by the service
1333
+ * **Enabled** \
1334
+ * **Disabled**
1335
+ */
1336
+ export type GeoBackupSupportedEnum = string;
1337
+ /** Known values of {@link ZoneRedundantHaSupportedEnum} that the service accepts. */
1338
+ export declare enum KnownZoneRedundantHaSupportedEnum {
1339
+ /** Enabled */
1340
+ Enabled = "Enabled",
1341
+ /** Disabled */
1342
+ Disabled = "Disabled"
1343
+ }
1344
+ /**
1345
+ * Defines values for ZoneRedundantHaSupportedEnum. \
1346
+ * {@link KnownZoneRedundantHaSupportedEnum} can be used interchangeably with ZoneRedundantHaSupportedEnum,
1347
+ * this enum contains the known values that the service supports.
1348
+ * ### Known values supported by the service
1349
+ * **Enabled** \
1350
+ * **Disabled**
1351
+ */
1352
+ export type ZoneRedundantHaSupportedEnum = string;
1353
+ /** Known values of {@link ZoneRedundantHaAndGeoBackupSupportedEnum} that the service accepts. */
1354
+ export declare enum KnownZoneRedundantHaAndGeoBackupSupportedEnum {
1355
+ /** Enabled */
1356
+ Enabled = "Enabled",
1357
+ /** Disabled */
1358
+ Disabled = "Disabled"
1359
+ }
1360
+ /**
1361
+ * Defines values for ZoneRedundantHaAndGeoBackupSupportedEnum. \
1362
+ * {@link KnownZoneRedundantHaAndGeoBackupSupportedEnum} can be used interchangeably with ZoneRedundantHaAndGeoBackupSupportedEnum,
1363
+ * this enum contains the known values that the service supports.
1364
+ * ### Known values supported by the service
1365
+ * **Enabled** \
1366
+ * **Disabled**
1367
+ */
1368
+ export type ZoneRedundantHaAndGeoBackupSupportedEnum = string;
1369
+ /** Known values of {@link StorageAutoGrowthSupportedEnum} that the service accepts. */
1370
+ export declare enum KnownStorageAutoGrowthSupportedEnum {
1371
+ /** Enabled */
1372
+ Enabled = "Enabled",
1373
+ /** Disabled */
1374
+ Disabled = "Disabled"
1375
+ }
1376
+ /**
1377
+ * Defines values for StorageAutoGrowthSupportedEnum. \
1378
+ * {@link KnownStorageAutoGrowthSupportedEnum} can be used interchangeably with StorageAutoGrowthSupportedEnum,
1379
+ * this enum contains the known values that the service supports.
1380
+ * ### Known values supported by the service
1381
+ * **Enabled** \
1382
+ * **Disabled**
1383
+ */
1384
+ export type StorageAutoGrowthSupportedEnum = string;
1385
+ /** Known values of {@link OnlineResizeSupportedEnum} that the service accepts. */
1386
+ export declare enum KnownOnlineResizeSupportedEnum {
1387
+ /** Enabled */
1388
+ Enabled = "Enabled",
1389
+ /** Disabled */
1390
+ Disabled = "Disabled"
1391
+ }
1392
+ /**
1393
+ * Defines values for OnlineResizeSupportedEnum. \
1394
+ * {@link KnownOnlineResizeSupportedEnum} can be used interchangeably with OnlineResizeSupportedEnum,
1395
+ * this enum contains the known values that the service supports.
1396
+ * ### Known values supported by the service
1397
+ * **Enabled** \
1398
+ * **Disabled**
1399
+ */
1400
+ export type OnlineResizeSupportedEnum = string;
1401
+ /** Known values of {@link RestrictedEnum} that the service accepts. */
1402
+ export declare enum KnownRestrictedEnum {
1403
+ /** Enabled */
1404
+ Enabled = "Enabled",
1405
+ /** Disabled */
1406
+ Disabled = "Disabled"
1407
+ }
1408
+ /**
1409
+ * Defines values for RestrictedEnum. \
1410
+ * {@link KnownRestrictedEnum} can be used interchangeably with RestrictedEnum,
1411
+ * this enum contains the known values that the service supports.
1412
+ * ### Known values supported by the service
1413
+ * **Enabled** \
1414
+ * **Disabled**
1415
+ */
1416
+ export type RestrictedEnum = string;
971
1417
  /** Known values of {@link CheckNameAvailabilityReason} that the service accepts. */
972
1418
  export declare enum KnownCheckNameAvailabilityReason {
973
1419
  /** Invalid */
@@ -1029,8 +1475,6 @@ export type SkuTier = string;
1029
1475
  export declare enum KnownIdentityType {
1030
1476
  /** None */
1031
1477
  None = "None",
1032
- /** SystemAssigned */
1033
- SystemAssigned = "SystemAssigned",
1034
1478
  /** UserAssigned */
1035
1479
  UserAssigned = "UserAssigned"
1036
1480
  }
@@ -1040,12 +1484,13 @@ export declare enum KnownIdentityType {
1040
1484
  * this enum contains the known values that the service supports.
1041
1485
  * ### Known values supported by the service
1042
1486
  * **None** \
1043
- * **SystemAssigned** \
1044
1487
  * **UserAssigned**
1045
1488
  */
1046
1489
  export type IdentityType = string;
1047
1490
  /** Known values of {@link ServerVersion} that the service accepts. */
1048
1491
  export declare enum KnownServerVersion {
1492
+ /** Fifteen */
1493
+ Fifteen = "15",
1049
1494
  /** Fourteen */
1050
1495
  Fourteen = "14",
1051
1496
  /** Thirteen */
@@ -1060,6 +1505,7 @@ export declare enum KnownServerVersion {
1060
1505
  * {@link KnownServerVersion} can be used interchangeably with ServerVersion,
1061
1506
  * this enum contains the known values that the service supports.
1062
1507
  * ### Known values supported by the service
1508
+ * **15** \
1063
1509
  * **14** \
1064
1510
  * **13** \
1065
1511
  * **12** \
@@ -1097,6 +1543,74 @@ export declare enum KnownServerState {
1097
1543
  * **Updating**
1098
1544
  */
1099
1545
  export type ServerState = string;
1546
+ /** Known values of {@link StorageAutoGrow} that the service accepts. */
1547
+ export declare enum KnownStorageAutoGrow {
1548
+ /** Enabled */
1549
+ Enabled = "Enabled",
1550
+ /** Disabled */
1551
+ Disabled = "Disabled"
1552
+ }
1553
+ /**
1554
+ * Defines values for StorageAutoGrow. \
1555
+ * {@link KnownStorageAutoGrow} can be used interchangeably with StorageAutoGrow,
1556
+ * this enum contains the known values that the service supports.
1557
+ * ### Known values supported by the service
1558
+ * **Enabled** \
1559
+ * **Disabled**
1560
+ */
1561
+ export type StorageAutoGrow = string;
1562
+ /** Known values of {@link AzureManagedDiskPerformanceTiers} that the service accepts. */
1563
+ export declare enum KnownAzureManagedDiskPerformanceTiers {
1564
+ /** P1 */
1565
+ P1 = "P1",
1566
+ /** P2 */
1567
+ P2 = "P2",
1568
+ /** P3 */
1569
+ P3 = "P3",
1570
+ /** P4 */
1571
+ P4 = "P4",
1572
+ /** P6 */
1573
+ P6 = "P6",
1574
+ /** P10 */
1575
+ P10 = "P10",
1576
+ /** P15 */
1577
+ P15 = "P15",
1578
+ /** P20 */
1579
+ P20 = "P20",
1580
+ /** P30 */
1581
+ P30 = "P30",
1582
+ /** P40 */
1583
+ P40 = "P40",
1584
+ /** P50 */
1585
+ P50 = "P50",
1586
+ /** P60 */
1587
+ P60 = "P60",
1588
+ /** P70 */
1589
+ P70 = "P70",
1590
+ /** P80 */
1591
+ P80 = "P80"
1592
+ }
1593
+ /**
1594
+ * Defines values for AzureManagedDiskPerformanceTiers. \
1595
+ * {@link KnownAzureManagedDiskPerformanceTiers} can be used interchangeably with AzureManagedDiskPerformanceTiers,
1596
+ * this enum contains the known values that the service supports.
1597
+ * ### Known values supported by the service
1598
+ * **P1** \
1599
+ * **P2** \
1600
+ * **P3** \
1601
+ * **P4** \
1602
+ * **P6** \
1603
+ * **P10** \
1604
+ * **P15** \
1605
+ * **P20** \
1606
+ * **P30** \
1607
+ * **P40** \
1608
+ * **P50** \
1609
+ * **P60** \
1610
+ * **P70** \
1611
+ * **P80**
1612
+ */
1613
+ export type AzureManagedDiskPerformanceTiers = string;
1100
1614
  /** Known values of {@link ActiveDirectoryAuthEnum} that the service accepts. */
1101
1615
  export declare enum KnownActiveDirectoryAuthEnum {
1102
1616
  /** Enabled */
@@ -1145,6 +1659,22 @@ export declare enum KnownArmServerKeyType {
1145
1659
  * **AzureKeyVault**
1146
1660
  */
1147
1661
  export type ArmServerKeyType = string;
1662
+ /** Known values of {@link KeyStatusEnum} that the service accepts. */
1663
+ export declare enum KnownKeyStatusEnum {
1664
+ /** Valid */
1665
+ Valid = "Valid",
1666
+ /** Invalid */
1667
+ Invalid = "Invalid"
1668
+ }
1669
+ /**
1670
+ * Defines values for KeyStatusEnum. \
1671
+ * {@link KnownKeyStatusEnum} can be used interchangeably with KeyStatusEnum,
1672
+ * this enum contains the known values that the service supports.
1673
+ * ### Known values supported by the service
1674
+ * **Valid** \
1675
+ * **Invalid**
1676
+ */
1677
+ export type KeyStatusEnum = string;
1148
1678
  /** Known values of {@link GeoRedundantBackupEnum} that the service accepts. */
1149
1679
  export declare enum KnownGeoRedundantBackupEnum {
1150
1680
  /** Enabled */
@@ -1259,7 +1789,9 @@ export declare enum KnownCreateMode {
1259
1789
  /** GeoRestore */
1260
1790
  GeoRestore = "GeoRestore",
1261
1791
  /** Replica */
1262
- Replica = "Replica"
1792
+ Replica = "Replica",
1793
+ /** ReviveDropped */
1794
+ ReviveDropped = "ReviveDropped"
1263
1795
  }
1264
1796
  /**
1265
1797
  * Defines values for CreateMode. \
@@ -1271,7 +1803,8 @@ export declare enum KnownCreateMode {
1271
1803
  * **Update** \
1272
1804
  * **PointInTimeRestore** \
1273
1805
  * **GeoRestore** \
1274
- * **Replica**
1806
+ * **Replica** \
1807
+ * **ReviveDropped**
1275
1808
  */
1276
1809
  export type CreateMode = string;
1277
1810
  /** Known values of {@link CreateModeForUpdate} that the service accepts. */
@@ -1290,6 +1823,199 @@ export declare enum KnownCreateModeForUpdate {
1290
1823
  * **Update**
1291
1824
  */
1292
1825
  export type CreateModeForUpdate = string;
1826
+ /** Known values of {@link MigrationState} that the service accepts. */
1827
+ export declare enum KnownMigrationState {
1828
+ /** InProgress */
1829
+ InProgress = "InProgress",
1830
+ /** WaitingForUserAction */
1831
+ WaitingForUserAction = "WaitingForUserAction",
1832
+ /** Canceled */
1833
+ Canceled = "Canceled",
1834
+ /** Failed */
1835
+ Failed = "Failed",
1836
+ /** Succeeded */
1837
+ Succeeded = "Succeeded"
1838
+ }
1839
+ /**
1840
+ * Defines values for MigrationState. \
1841
+ * {@link KnownMigrationState} can be used interchangeably with MigrationState,
1842
+ * this enum contains the known values that the service supports.
1843
+ * ### Known values supported by the service
1844
+ * **InProgress** \
1845
+ * **WaitingForUserAction** \
1846
+ * **Canceled** \
1847
+ * **Failed** \
1848
+ * **Succeeded**
1849
+ */
1850
+ export type MigrationState = string;
1851
+ /** Known values of {@link MigrationSubState} that the service accepts. */
1852
+ export declare enum KnownMigrationSubState {
1853
+ /** PerformingPreRequisiteSteps */
1854
+ PerformingPreRequisiteSteps = "PerformingPreRequisiteSteps",
1855
+ /** WaitingForLogicalReplicationSetupRequestOnSourceDB */
1856
+ WaitingForLogicalReplicationSetupRequestOnSourceDB = "WaitingForLogicalReplicationSetupRequestOnSourceDB",
1857
+ /** WaitingForDBsToMigrateSpecification */
1858
+ WaitingForDBsToMigrateSpecification = "WaitingForDBsToMigrateSpecification",
1859
+ /** WaitingForTargetDBOverwriteConfirmation */
1860
+ WaitingForTargetDBOverwriteConfirmation = "WaitingForTargetDBOverwriteConfirmation",
1861
+ /** WaitingForDataMigrationScheduling */
1862
+ WaitingForDataMigrationScheduling = "WaitingForDataMigrationScheduling",
1863
+ /** WaitingForDataMigrationWindow */
1864
+ WaitingForDataMigrationWindow = "WaitingForDataMigrationWindow",
1865
+ /** MigratingData */
1866
+ MigratingData = "MigratingData",
1867
+ /** WaitingForCutoverTrigger */
1868
+ WaitingForCutoverTrigger = "WaitingForCutoverTrigger",
1869
+ /** CompletingMigration */
1870
+ CompletingMigration = "CompletingMigration",
1871
+ /** Completed */
1872
+ Completed = "Completed"
1873
+ }
1874
+ /**
1875
+ * Defines values for MigrationSubState. \
1876
+ * {@link KnownMigrationSubState} can be used interchangeably with MigrationSubState,
1877
+ * this enum contains the known values that the service supports.
1878
+ * ### Known values supported by the service
1879
+ * **PerformingPreRequisiteSteps** \
1880
+ * **WaitingForLogicalReplicationSetupRequestOnSourceDB** \
1881
+ * **WaitingForDBsToMigrateSpecification** \
1882
+ * **WaitingForTargetDBOverwriteConfirmation** \
1883
+ * **WaitingForDataMigrationScheduling** \
1884
+ * **WaitingForDataMigrationWindow** \
1885
+ * **MigratingData** \
1886
+ * **WaitingForCutoverTrigger** \
1887
+ * **CompletingMigration** \
1888
+ * **Completed**
1889
+ */
1890
+ export type MigrationSubState = string;
1891
+ /** Known values of {@link MigrationMode} that the service accepts. */
1892
+ export declare enum KnownMigrationMode {
1893
+ /** Offline */
1894
+ Offline = "Offline",
1895
+ /** Online */
1896
+ Online = "Online"
1897
+ }
1898
+ /**
1899
+ * Defines values for MigrationMode. \
1900
+ * {@link KnownMigrationMode} can be used interchangeably with MigrationMode,
1901
+ * this enum contains the known values that the service supports.
1902
+ * ### Known values supported by the service
1903
+ * **Offline** \
1904
+ * **Online**
1905
+ */
1906
+ export type MigrationMode = string;
1907
+ /** Known values of {@link LogicalReplicationOnSourceDbEnum} that the service accepts. */
1908
+ export declare enum KnownLogicalReplicationOnSourceDbEnum {
1909
+ /** Enabled */
1910
+ Enabled = "Enabled",
1911
+ /** Disabled */
1912
+ Disabled = "Disabled"
1913
+ }
1914
+ /**
1915
+ * Defines values for LogicalReplicationOnSourceDbEnum. \
1916
+ * {@link KnownLogicalReplicationOnSourceDbEnum} can be used interchangeably with LogicalReplicationOnSourceDbEnum,
1917
+ * this enum contains the known values that the service supports.
1918
+ * ### Known values supported by the service
1919
+ * **Enabled** \
1920
+ * **Disabled**
1921
+ */
1922
+ export type LogicalReplicationOnSourceDbEnum = string;
1923
+ /** Known values of {@link OverwriteDbsInTargetEnum} that the service accepts. */
1924
+ export declare enum KnownOverwriteDbsInTargetEnum {
1925
+ /** Enabled */
1926
+ Enabled = "Enabled",
1927
+ /** Disabled */
1928
+ Disabled = "Disabled"
1929
+ }
1930
+ /**
1931
+ * Defines values for OverwriteDbsInTargetEnum. \
1932
+ * {@link KnownOverwriteDbsInTargetEnum} can be used interchangeably with OverwriteDbsInTargetEnum,
1933
+ * this enum contains the known values that the service supports.
1934
+ * ### Known values supported by the service
1935
+ * **Enabled** \
1936
+ * **Disabled**
1937
+ */
1938
+ export type OverwriteDbsInTargetEnum = string;
1939
+ /** Known values of {@link StartDataMigrationEnum} that the service accepts. */
1940
+ export declare enum KnownStartDataMigrationEnum {
1941
+ /** Enabled */
1942
+ Enabled = "Enabled",
1943
+ /** Disabled */
1944
+ Disabled = "Disabled"
1945
+ }
1946
+ /**
1947
+ * Defines values for StartDataMigrationEnum. \
1948
+ * {@link KnownStartDataMigrationEnum} can be used interchangeably with StartDataMigrationEnum,
1949
+ * this enum contains the known values that the service supports.
1950
+ * ### Known values supported by the service
1951
+ * **Enabled** \
1952
+ * **Disabled**
1953
+ */
1954
+ export type StartDataMigrationEnum = string;
1955
+ /** Known values of {@link TriggerCutoverEnum} that the service accepts. */
1956
+ export declare enum KnownTriggerCutoverEnum {
1957
+ /** Enabled */
1958
+ Enabled = "Enabled",
1959
+ /** Disabled */
1960
+ Disabled = "Disabled"
1961
+ }
1962
+ /**
1963
+ * Defines values for TriggerCutoverEnum. \
1964
+ * {@link KnownTriggerCutoverEnum} can be used interchangeably with TriggerCutoverEnum,
1965
+ * this enum contains the known values that the service supports.
1966
+ * ### Known values supported by the service
1967
+ * **Enabled** \
1968
+ * **Disabled**
1969
+ */
1970
+ export type TriggerCutoverEnum = string;
1971
+ /** Known values of {@link CancelEnum} that the service accepts. */
1972
+ export declare enum KnownCancelEnum {
1973
+ /** Enabled */
1974
+ Enabled = "Enabled",
1975
+ /** Disabled */
1976
+ Disabled = "Disabled"
1977
+ }
1978
+ /**
1979
+ * Defines values for CancelEnum. \
1980
+ * {@link KnownCancelEnum} can be used interchangeably with CancelEnum,
1981
+ * this enum contains the known values that the service supports.
1982
+ * ### Known values supported by the service
1983
+ * **Enabled** \
1984
+ * **Disabled**
1985
+ */
1986
+ export type CancelEnum = string;
1987
+ /** Known values of {@link MigrationListFilter} that the service accepts. */
1988
+ export declare enum KnownMigrationListFilter {
1989
+ /** Active */
1990
+ Active = "Active",
1991
+ /** All */
1992
+ All = "All"
1993
+ }
1994
+ /**
1995
+ * Defines values for MigrationListFilter. \
1996
+ * {@link KnownMigrationListFilter} can be used interchangeably with MigrationListFilter,
1997
+ * this enum contains the known values that the service supports.
1998
+ * ### Known values supported by the service
1999
+ * **Active** \
2000
+ * **All**
2001
+ */
2002
+ export type MigrationListFilter = string;
2003
+ /** Known values of {@link MigrationNameAvailabilityReason} that the service accepts. */
2004
+ export declare enum KnownMigrationNameAvailabilityReason {
2005
+ /** Invalid */
2006
+ Invalid = "Invalid",
2007
+ /** AlreadyExists */
2008
+ AlreadyExists = "AlreadyExists"
2009
+ }
2010
+ /**
2011
+ * Defines values for MigrationNameAvailabilityReason. \
2012
+ * {@link KnownMigrationNameAvailabilityReason} can be used interchangeably with MigrationNameAvailabilityReason,
2013
+ * this enum contains the known values that the service supports.
2014
+ * ### Known values supported by the service
2015
+ * **Invalid** \
2016
+ * **AlreadyExists**
2017
+ */
2018
+ export type MigrationNameAvailabilityReason = string;
1293
2019
  /** Known values of {@link OperationOrigin} that the service accepts. */
1294
2020
  export declare enum KnownOperationOrigin {
1295
2021
  /** NotSpecified */
@@ -1331,6 +2057,49 @@ export declare enum KnownFailoverMode {
1331
2057
  * **ForcedSwitchover**
1332
2058
  */
1333
2059
  export type FailoverMode = string;
2060
+ /** Known values of {@link ExecutionStatus} that the service accepts. */
2061
+ export declare enum KnownExecutionStatus {
2062
+ /** Running */
2063
+ Running = "Running",
2064
+ /** Cancelled */
2065
+ Cancelled = "Cancelled",
2066
+ /** Failed */
2067
+ Failed = "Failed",
2068
+ /** Succeeded */
2069
+ Succeeded = "Succeeded"
2070
+ }
2071
+ /**
2072
+ * Defines values for ExecutionStatus. \
2073
+ * {@link KnownExecutionStatus} can be used interchangeably with ExecutionStatus,
2074
+ * this enum contains the known values that the service supports.
2075
+ * ### Known values supported by the service
2076
+ * **Running** \
2077
+ * **Cancelled** \
2078
+ * **Failed** \
2079
+ * **Succeeded**
2080
+ */
2081
+ export type ExecutionStatus = string;
2082
+ /** Known values of {@link MigrationDetailsLevel} that the service accepts. */
2083
+ export declare enum KnownMigrationDetailsLevel {
2084
+ /** Default */
2085
+ Default = "Default",
2086
+ /** Summary */
2087
+ Summary = "Summary",
2088
+ /** Full */
2089
+ Full = "Full"
2090
+ }
2091
+ /**
2092
+ * Defines values for MigrationDetailsLevel. \
2093
+ * {@link KnownMigrationDetailsLevel} can be used interchangeably with MigrationDetailsLevel,
2094
+ * this enum contains the known values that the service supports.
2095
+ * ### Known values supported by the service
2096
+ * **Default** \
2097
+ * **Summary** \
2098
+ * **Full**
2099
+ */
2100
+ export type MigrationDetailsLevel = string;
2101
+ /** Defines values for CapabilityStatus. */
2102
+ export type CapabilityStatus = "Visible" | "Available" | "Default" | "Disabled";
1334
2103
  /** Optional parameters. */
1335
2104
  export interface AdministratorsCreateOptionalParams extends coreClient.OperationOptions {
1336
2105
  /** Delay to wait until next poll, in milliseconds. */
@@ -1388,6 +2157,16 @@ export interface LocationBasedCapabilitiesExecuteNextOptionalParams extends core
1388
2157
  /** Contains response data for the executeNext operation. */
1389
2158
  export type LocationBasedCapabilitiesExecuteNextResponse = CapabilitiesListResult;
1390
2159
  /** Optional parameters. */
2160
+ export interface ServerCapabilitiesListOptionalParams extends coreClient.OperationOptions {
2161
+ }
2162
+ /** Contains response data for the list operation. */
2163
+ export type ServerCapabilitiesListResponse = CapabilitiesListResult;
2164
+ /** Optional parameters. */
2165
+ export interface ServerCapabilitiesListNextOptionalParams extends coreClient.OperationOptions {
2166
+ }
2167
+ /** Contains response data for the listNext operation. */
2168
+ export type ServerCapabilitiesListNextResponse = CapabilitiesListResult;
2169
+ /** Optional parameters. */
1391
2170
  export interface CheckNameAvailabilityExecuteOptionalParams extends coreClient.OperationOptions {
1392
2171
  }
1393
2172
  /** Contains response data for the execute operation. */
@@ -1566,6 +2345,41 @@ export interface ServersListNextOptionalParams extends coreClient.OperationOptio
1566
2345
  /** Contains response data for the listNext operation. */
1567
2346
  export type ServersListNextResponse = ServerListResult;
1568
2347
  /** Optional parameters. */
2348
+ export interface MigrationsCreateOptionalParams extends coreClient.OperationOptions {
2349
+ }
2350
+ /** Contains response data for the create operation. */
2351
+ export type MigrationsCreateResponse = MigrationResource;
2352
+ /** Optional parameters. */
2353
+ export interface MigrationsGetOptionalParams extends coreClient.OperationOptions {
2354
+ }
2355
+ /** Contains response data for the get operation. */
2356
+ export type MigrationsGetResponse = MigrationResource;
2357
+ /** Optional parameters. */
2358
+ export interface MigrationsUpdateOptionalParams extends coreClient.OperationOptions {
2359
+ }
2360
+ /** Contains response data for the update operation. */
2361
+ export type MigrationsUpdateResponse = MigrationResource;
2362
+ /** Optional parameters. */
2363
+ export interface MigrationsDeleteOptionalParams extends coreClient.OperationOptions {
2364
+ }
2365
+ /** Optional parameters. */
2366
+ export interface MigrationsListByTargetServerOptionalParams extends coreClient.OperationOptions {
2367
+ /** Migration list filter. Retrieves either active migrations or all migrations. */
2368
+ migrationListFilter?: MigrationListFilter;
2369
+ }
2370
+ /** Contains response data for the listByTargetServer operation. */
2371
+ export type MigrationsListByTargetServerResponse = MigrationResourceListResult;
2372
+ /** Optional parameters. */
2373
+ export interface MigrationsListByTargetServerNextOptionalParams extends coreClient.OperationOptions {
2374
+ }
2375
+ /** Contains response data for the listByTargetServerNext operation. */
2376
+ export type MigrationsListByTargetServerNextResponse = MigrationResourceListResult;
2377
+ /** Optional parameters. */
2378
+ export interface CheckMigrationNameAvailabilityOptionalParams extends coreClient.OperationOptions {
2379
+ }
2380
+ /** Contains response data for the checkMigrationNameAvailability operation. */
2381
+ export type CheckMigrationNameAvailabilityResponse = MigrationNameAvailabilityResource;
2382
+ /** Optional parameters. */
1569
2383
  export interface OperationsListOptionalParams extends coreClient.OperationOptions {
1570
2384
  }
1571
2385
  /** Contains response data for the list operation. */
@@ -1584,11 +2398,50 @@ export interface ReplicasListByServerOptionalParams extends coreClient.Operation
1584
2398
  /** Contains response data for the listByServer operation. */
1585
2399
  export type ReplicasListByServerResponse = ServerListResult;
1586
2400
  /** Optional parameters. */
2401
+ export interface LogFilesListByServerOptionalParams extends coreClient.OperationOptions {
2402
+ }
2403
+ /** Contains response data for the listByServer operation. */
2404
+ export type LogFilesListByServerResponse = LogFileListResult;
2405
+ /** Optional parameters. */
2406
+ export interface LogFilesListByServerNextOptionalParams extends coreClient.OperationOptions {
2407
+ }
2408
+ /** Contains response data for the listByServerNext operation. */
2409
+ export type LogFilesListByServerNextResponse = LogFileListResult;
2410
+ /** Optional parameters. */
1587
2411
  export interface VirtualNetworkSubnetUsageExecuteOptionalParams extends coreClient.OperationOptions {
1588
2412
  }
1589
2413
  /** Contains response data for the execute operation. */
1590
2414
  export type VirtualNetworkSubnetUsageExecuteResponse = VirtualNetworkSubnetUsageResult;
1591
2415
  /** Optional parameters. */
2416
+ export interface FlexibleServerTriggerLtrPreBackupOptionalParams extends coreClient.OperationOptions {
2417
+ }
2418
+ /** Contains response data for the triggerLtrPreBackup operation. */
2419
+ export type FlexibleServerTriggerLtrPreBackupResponse = FlexibleServerTriggerLtrPreBackupHeaders & LtrPreBackupResponse;
2420
+ /** Optional parameters. */
2421
+ export interface FlexibleServerStartLtrBackupOptionalParams extends coreClient.OperationOptions {
2422
+ /** Delay to wait until next poll, in milliseconds. */
2423
+ updateIntervalInMs?: number;
2424
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2425
+ resumeFrom?: string;
2426
+ }
2427
+ /** Contains response data for the startLtrBackup operation. */
2428
+ export type FlexibleServerStartLtrBackupResponse = FlexibleServerStartLtrBackupHeaders & LtrBackupResponse;
2429
+ /** Optional parameters. */
2430
+ export interface LtrBackupOperationsGetOptionalParams extends coreClient.OperationOptions {
2431
+ }
2432
+ /** Contains response data for the get operation. */
2433
+ export type LtrBackupOperationsGetResponse = LtrServerBackupOperation;
2434
+ /** Optional parameters. */
2435
+ export interface LtrBackupOperationsListByServerOptionalParams extends coreClient.OperationOptions {
2436
+ }
2437
+ /** Contains response data for the listByServer operation. */
2438
+ export type LtrBackupOperationsListByServerResponse = LtrServerBackupOperationList;
2439
+ /** Optional parameters. */
2440
+ export interface LtrBackupOperationsListByServerNextOptionalParams extends coreClient.OperationOptions {
2441
+ }
2442
+ /** Contains response data for the listByServerNext operation. */
2443
+ export type LtrBackupOperationsListByServerNextResponse = LtrServerBackupOperationList;
2444
+ /** Optional parameters. */
1592
2445
  export interface PostgreSQLManagementFlexibleServerClientOptionalParams extends coreClient.ServiceClientOptions {
1593
2446
  /** server parameter */
1594
2447
  $host?: string;