@azure/arm-datamigration 3.0.0-beta.2 → 3.0.0-beta.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +1 -1
  3. package/dist/index.js +630 -110
  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/databaseMigrationsSqlMiCreateOrUpdateSample.js +2 -2
  8. package/dist-esm/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.js +2 -2
  10. package/dist-esm/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.js.map +1 -1
  11. package/dist-esm/src/dataMigrationManagementClient.d.ts +2 -0
  12. package/dist-esm/src/dataMigrationManagementClient.d.ts.map +1 -1
  13. package/dist-esm/src/dataMigrationManagementClient.js +49 -18
  14. package/dist-esm/src/dataMigrationManagementClient.js.map +1 -1
  15. package/dist-esm/src/index.d.ts +1 -0
  16. package/dist-esm/src/index.d.ts.map +1 -1
  17. package/dist-esm/src/index.js +1 -0
  18. package/dist-esm/src/index.js.map +1 -1
  19. package/dist-esm/src/models/index.d.ts +556 -240
  20. package/dist-esm/src/models/index.d.ts.map +1 -1
  21. package/dist-esm/src/models/index.js +314 -0
  22. package/dist-esm/src/models/index.js.map +1 -1
  23. package/dist-esm/src/operations/files.d.ts.map +1 -1
  24. package/dist-esm/src/operations/files.js +19 -7
  25. package/dist-esm/src/operations/files.js.map +1 -1
  26. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  27. package/dist-esm/src/operations/operations.js +19 -7
  28. package/dist-esm/src/operations/operations.js.map +1 -1
  29. package/dist-esm/src/operations/projects.d.ts.map +1 -1
  30. package/dist-esm/src/operations/projects.js +19 -7
  31. package/dist-esm/src/operations/projects.js.map +1 -1
  32. package/dist-esm/src/operations/resourceSkus.d.ts.map +1 -1
  33. package/dist-esm/src/operations/resourceSkus.js +19 -7
  34. package/dist-esm/src/operations/resourceSkus.js.map +1 -1
  35. package/dist-esm/src/operations/serviceTasks.d.ts.map +1 -1
  36. package/dist-esm/src/operations/serviceTasks.js +19 -7
  37. package/dist-esm/src/operations/serviceTasks.js.map +1 -1
  38. package/dist-esm/src/operations/services.d.ts.map +1 -1
  39. package/dist-esm/src/operations/services.js +55 -21
  40. package/dist-esm/src/operations/services.js.map +1 -1
  41. package/dist-esm/src/operations/sqlMigrationServices.d.ts.map +1 -1
  42. package/dist-esm/src/operations/sqlMigrationServices.js +55 -21
  43. package/dist-esm/src/operations/sqlMigrationServices.js.map +1 -1
  44. package/dist-esm/src/operations/tasks.d.ts.map +1 -1
  45. package/dist-esm/src/operations/tasks.js +19 -7
  46. package/dist-esm/src/operations/tasks.js.map +1 -1
  47. package/dist-esm/src/operations/usages.d.ts.map +1 -1
  48. package/dist-esm/src/operations/usages.js +19 -7
  49. package/dist-esm/src/operations/usages.js.map +1 -1
  50. package/dist-esm/src/pagingHelper.d.ts +13 -0
  51. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  52. package/dist-esm/src/pagingHelper.js +32 -0
  53. package/dist-esm/src/pagingHelper.js.map +1 -0
  54. package/dist-esm/test/sampleTest.js +11 -13
  55. package/dist-esm/test/sampleTest.js.map +1 -1
  56. package/package.json +14 -10
  57. package/review/arm-datamigration.api.md +564 -872
  58. package/src/dataMigrationManagementClient.ts +60 -20
  59. package/src/index.ts +1 -0
  60. package/src/models/index.ts +646 -246
  61. package/src/operations/files.ts +22 -8
  62. package/src/operations/operations.ts +21 -8
  63. package/src/operations/projects.ts +21 -8
  64. package/src/operations/resourceSkus.ts +21 -8
  65. package/src/operations/serviceTasks.ts +21 -8
  66. package/src/operations/services.ts +67 -25
  67. package/src/operations/sqlMigrationServices.ts +71 -29
  68. package/src/operations/tasks.ts +22 -8
  69. package/src/operations/usages.ts +21 -8
  70. package/src/pagingHelper.ts +39 -0
  71. package/types/arm-datamigration.d.ts +567 -240
  72. package/types/tsdoc-metadata.json +1 -1
package/dist/index.js CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var tslib = require('tslib');
5
6
  var coreClient = require('@azure/core-client');
6
7
  var coreRestPipeline = require('@azure/core-rest-pipeline');
7
- var tslib = require('tslib');
8
8
  var coreLro = require('@azure/core-lro');
9
9
 
10
10
  function _interopNamespace(e) {
@@ -28,6 +28,38 @@ function _interopNamespace(e) {
28
28
  var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
29
  var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
30
 
31
+ /*
32
+ * Copyright (c) Microsoft Corporation.
33
+ * Licensed under the MIT License.
34
+ *
35
+ * Code generated by Microsoft (R) AutoRest Code Generator.
36
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
37
+ */
38
+ const pageMap = new WeakMap();
39
+ /**
40
+ * Given a result page from a pageable operation, returns a
41
+ * continuation token that can be used to begin paging from
42
+ * that point later.
43
+ * @param page A result object from calling .byPage() on a paged operation.
44
+ * @returns The continuation token that can be passed into byPage().
45
+ */
46
+ function getContinuationToken(page) {
47
+ var _a;
48
+ if (typeof page !== "object" || page === null) {
49
+ return undefined;
50
+ }
51
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
52
+ }
53
+ function setContinuationToken(page, continuationToken) {
54
+ var _a;
55
+ if (typeof page !== "object" || page === null || !continuationToken) {
56
+ return;
57
+ }
58
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
59
+ pageInfo.continuationToken = continuationToken;
60
+ pageMap.set(page, pageInfo);
61
+ }
62
+
31
63
  /*
32
64
  * Copyright (c) Microsoft Corporation.
33
65
  * Licensed under the MIT License.
@@ -38,527 +70,841 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
38
70
  /** Known values of {@link CreatedByType} that the service accepts. */
39
71
  exports.KnownCreatedByType = void 0;
40
72
  (function (KnownCreatedByType) {
73
+ /** User */
41
74
  KnownCreatedByType["User"] = "User";
75
+ /** Application */
42
76
  KnownCreatedByType["Application"] = "Application";
77
+ /** ManagedIdentity */
43
78
  KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
79
+ /** Key */
44
80
  KnownCreatedByType["Key"] = "Key";
45
81
  })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
46
82
  /** Known values of {@link ResourceType} that the service accepts. */
47
83
  exports.KnownResourceType = void 0;
48
84
  (function (KnownResourceType) {
85
+ /** SqlMi */
49
86
  KnownResourceType["SqlMi"] = "SqlMi";
87
+ /** SqlVm */
50
88
  KnownResourceType["SqlVm"] = "SqlVm";
51
89
  })(exports.KnownResourceType || (exports.KnownResourceType = {}));
52
90
  /** Known values of {@link OperationOrigin} that the service accepts. */
53
91
  exports.KnownOperationOrigin = void 0;
54
92
  (function (KnownOperationOrigin) {
93
+ /** User */
55
94
  KnownOperationOrigin["User"] = "user";
95
+ /** System */
56
96
  KnownOperationOrigin["System"] = "system";
57
97
  })(exports.KnownOperationOrigin || (exports.KnownOperationOrigin = {}));
58
98
  /** Known values of {@link ResourceSkuCapacityScaleType} that the service accepts. */
59
99
  exports.KnownResourceSkuCapacityScaleType = void 0;
60
100
  (function (KnownResourceSkuCapacityScaleType) {
101
+ /** Automatic */
61
102
  KnownResourceSkuCapacityScaleType["Automatic"] = "Automatic";
103
+ /** Manual */
62
104
  KnownResourceSkuCapacityScaleType["Manual"] = "Manual";
105
+ /** None */
63
106
  KnownResourceSkuCapacityScaleType["None"] = "None";
64
107
  })(exports.KnownResourceSkuCapacityScaleType || (exports.KnownResourceSkuCapacityScaleType = {}));
65
108
  /** Known values of {@link ResourceSkuRestrictionsType} that the service accepts. */
66
109
  exports.KnownResourceSkuRestrictionsType = void 0;
67
110
  (function (KnownResourceSkuRestrictionsType) {
111
+ /** Location */
68
112
  KnownResourceSkuRestrictionsType["Location"] = "location";
69
113
  })(exports.KnownResourceSkuRestrictionsType || (exports.KnownResourceSkuRestrictionsType = {}));
70
114
  /** Known values of {@link ResourceSkuRestrictionsReasonCode} that the service accepts. */
71
115
  exports.KnownResourceSkuRestrictionsReasonCode = void 0;
72
116
  (function (KnownResourceSkuRestrictionsReasonCode) {
117
+ /** QuotaId */
73
118
  KnownResourceSkuRestrictionsReasonCode["QuotaId"] = "QuotaId";
119
+ /** NotAvailableForSubscription */
74
120
  KnownResourceSkuRestrictionsReasonCode["NotAvailableForSubscription"] = "NotAvailableForSubscription";
75
121
  })(exports.KnownResourceSkuRestrictionsReasonCode || (exports.KnownResourceSkuRestrictionsReasonCode = {}));
76
122
  /** Known values of {@link ServiceProvisioningState} that the service accepts. */
77
123
  exports.KnownServiceProvisioningState = void 0;
78
124
  (function (KnownServiceProvisioningState) {
125
+ /** Accepted */
79
126
  KnownServiceProvisioningState["Accepted"] = "Accepted";
127
+ /** Deleting */
80
128
  KnownServiceProvisioningState["Deleting"] = "Deleting";
129
+ /** Deploying */
81
130
  KnownServiceProvisioningState["Deploying"] = "Deploying";
131
+ /** Stopped */
82
132
  KnownServiceProvisioningState["Stopped"] = "Stopped";
133
+ /** Stopping */
83
134
  KnownServiceProvisioningState["Stopping"] = "Stopping";
135
+ /** Starting */
84
136
  KnownServiceProvisioningState["Starting"] = "Starting";
137
+ /** FailedToStart */
85
138
  KnownServiceProvisioningState["FailedToStart"] = "FailedToStart";
139
+ /** FailedToStop */
86
140
  KnownServiceProvisioningState["FailedToStop"] = "FailedToStop";
141
+ /** Succeeded */
87
142
  KnownServiceProvisioningState["Succeeded"] = "Succeeded";
143
+ /** Failed */
88
144
  KnownServiceProvisioningState["Failed"] = "Failed";
89
145
  })(exports.KnownServiceProvisioningState || (exports.KnownServiceProvisioningState = {}));
90
146
  /** Known values of {@link ServiceScalability} that the service accepts. */
91
147
  exports.KnownServiceScalability = void 0;
92
148
  (function (KnownServiceScalability) {
149
+ /** None */
93
150
  KnownServiceScalability["None"] = "none";
151
+ /** Manual */
94
152
  KnownServiceScalability["Manual"] = "manual";
153
+ /** Automatic */
95
154
  KnownServiceScalability["Automatic"] = "automatic";
96
155
  })(exports.KnownServiceScalability || (exports.KnownServiceScalability = {}));
97
156
  /** Known values of {@link TaskType} that the service accepts. */
98
157
  exports.KnownTaskType = void 0;
99
158
  (function (KnownTaskType) {
159
+ /** ConnectMongoDb */
100
160
  KnownTaskType["ConnectMongoDb"] = "Connect.MongoDb";
161
+ /** ConnectToSourceSqlServer */
101
162
  KnownTaskType["ConnectToSourceSqlServer"] = "ConnectToSource.SqlServer";
163
+ /** ConnectToSourceSqlServerSync */
102
164
  KnownTaskType["ConnectToSourceSqlServerSync"] = "ConnectToSource.SqlServer.Sync";
165
+ /** ConnectToSourcePostgreSqlSync */
103
166
  KnownTaskType["ConnectToSourcePostgreSqlSync"] = "ConnectToSource.PostgreSql.Sync";
167
+ /** ConnectToSourceMySql */
104
168
  KnownTaskType["ConnectToSourceMySql"] = "ConnectToSource.MySql";
169
+ /** ConnectToSourceOracleSync */
105
170
  KnownTaskType["ConnectToSourceOracleSync"] = "ConnectToSource.Oracle.Sync";
171
+ /** ConnectToTargetSqlDb */
106
172
  KnownTaskType["ConnectToTargetSqlDb"] = "ConnectToTarget.SqlDb";
173
+ /** ConnectToTargetSqlDbSync */
107
174
  KnownTaskType["ConnectToTargetSqlDbSync"] = "ConnectToTarget.SqlDb.Sync";
175
+ /** ConnectToTargetAzureDbForPostgreSqlSync */
108
176
  KnownTaskType["ConnectToTargetAzureDbForPostgreSqlSync"] = "ConnectToTarget.AzureDbForPostgreSql.Sync";
177
+ /** ConnectToTargetOracleAzureDbForPostgreSqlSync */
109
178
  KnownTaskType["ConnectToTargetOracleAzureDbForPostgreSqlSync"] = "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync";
179
+ /** ConnectToTargetAzureSqlDbMI */
110
180
  KnownTaskType["ConnectToTargetAzureSqlDbMI"] = "ConnectToTarget.AzureSqlDbMI";
181
+ /** ConnectToTargetAzureSqlDbMISyncLRS */
111
182
  KnownTaskType["ConnectToTargetAzureSqlDbMISyncLRS"] = "ConnectToTarget.AzureSqlDbMI.Sync.LRS";
183
+ /** ConnectToTargetAzureDbForMySql */
112
184
  KnownTaskType["ConnectToTargetAzureDbForMySql"] = "ConnectToTarget.AzureDbForMySql";
185
+ /** GetUserTablesSql */
113
186
  KnownTaskType["GetUserTablesSql"] = "GetUserTables.Sql";
187
+ /** GetUserTablesAzureSqlDbSync */
114
188
  KnownTaskType["GetUserTablesAzureSqlDbSync"] = "GetUserTables.AzureSqlDb.Sync";
189
+ /** GetUserTablesOracle */
115
190
  KnownTaskType["GetUserTablesOracle"] = "GetUserTablesOracle";
191
+ /** GetUserTablesPostgreSql */
116
192
  KnownTaskType["GetUserTablesPostgreSql"] = "GetUserTablesPostgreSql";
193
+ /** GetUserTablesMySql */
117
194
  KnownTaskType["GetUserTablesMySql"] = "GetUserTablesMySql";
195
+ /** MigrateMongoDb */
118
196
  KnownTaskType["MigrateMongoDb"] = "Migrate.MongoDb";
197
+ /** MigrateSqlServerAzureSqlDbMI */
119
198
  KnownTaskType["MigrateSqlServerAzureSqlDbMI"] = "Migrate.SqlServer.AzureSqlDbMI";
199
+ /** MigrateSqlServerAzureSqlDbMISyncLRS */
120
200
  KnownTaskType["MigrateSqlServerAzureSqlDbMISyncLRS"] = "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS";
201
+ /** MigrateSqlServerSqlDb */
121
202
  KnownTaskType["MigrateSqlServerSqlDb"] = "Migrate.SqlServer.SqlDb";
203
+ /** MigrateSqlServerAzureSqlDbSync */
122
204
  KnownTaskType["MigrateSqlServerAzureSqlDbSync"] = "Migrate.SqlServer.AzureSqlDb.Sync";
205
+ /** MigrateMySqlAzureDbForMySqlSync */
123
206
  KnownTaskType["MigrateMySqlAzureDbForMySqlSync"] = "Migrate.MySql.AzureDbForMySql.Sync";
207
+ /** MigrateMySqlAzureDbForMySql */
124
208
  KnownTaskType["MigrateMySqlAzureDbForMySql"] = "Migrate.MySql.AzureDbForMySql";
209
+ /** MigratePostgreSqlAzureDbForPostgreSqlSyncV2 */
125
210
  KnownTaskType["MigratePostgreSqlAzureDbForPostgreSqlSyncV2"] = "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2";
211
+ /** MigrateOracleAzureDbForPostgreSqlSync */
126
212
  KnownTaskType["MigrateOracleAzureDbForPostgreSqlSync"] = "Migrate.Oracle.AzureDbForPostgreSql.Sync";
213
+ /** ValidateMigrationInputSqlServerSqlDbSync */
127
214
  KnownTaskType["ValidateMigrationInputSqlServerSqlDbSync"] = "ValidateMigrationInput.SqlServer.SqlDb.Sync";
215
+ /** ValidateMigrationInputSqlServerAzureSqlDbMI */
128
216
  KnownTaskType["ValidateMigrationInputSqlServerAzureSqlDbMI"] = "ValidateMigrationInput.SqlServer.AzureSqlDbMI";
217
+ /** ValidateMigrationInputSqlServerAzureSqlDbMISyncLRS */
129
218
  KnownTaskType["ValidateMigrationInputSqlServerAzureSqlDbMISyncLRS"] = "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS";
219
+ /** ValidateMongoDb */
130
220
  KnownTaskType["ValidateMongoDb"] = "Validate.MongoDb";
221
+ /** ValidateOracleAzureDbPostgreSqlSync */
131
222
  KnownTaskType["ValidateOracleAzureDbPostgreSqlSync"] = "Validate.Oracle.AzureDbPostgreSql.Sync";
223
+ /** GetTDECertificatesSql */
132
224
  KnownTaskType["GetTDECertificatesSql"] = "GetTDECertificates.Sql";
225
+ /** MigrateSsis */
133
226
  KnownTaskType["MigrateSsis"] = "Migrate.Ssis";
227
+ /** ServiceCheckOCI */
134
228
  KnownTaskType["ServiceCheckOCI"] = "Service.Check.OCI";
229
+ /** ServiceUploadOCI */
135
230
  KnownTaskType["ServiceUploadOCI"] = "Service.Upload.OCI";
231
+ /** ServiceInstallOCI */
136
232
  KnownTaskType["ServiceInstallOCI"] = "Service.Install.OCI";
233
+ /** MigrateSchemaSqlServerSqlDb */
137
234
  KnownTaskType["MigrateSchemaSqlServerSqlDb"] = "MigrateSchemaSqlServerSqlDb";
138
235
  })(exports.KnownTaskType || (exports.KnownTaskType = {}));
139
236
  /** Known values of {@link TaskState} that the service accepts. */
140
237
  exports.KnownTaskState = void 0;
141
238
  (function (KnownTaskState) {
239
+ /** Unknown */
142
240
  KnownTaskState["Unknown"] = "Unknown";
241
+ /** Queued */
143
242
  KnownTaskState["Queued"] = "Queued";
243
+ /** Running */
144
244
  KnownTaskState["Running"] = "Running";
245
+ /** Canceled */
145
246
  KnownTaskState["Canceled"] = "Canceled";
247
+ /** Succeeded */
146
248
  KnownTaskState["Succeeded"] = "Succeeded";
249
+ /** Failed */
147
250
  KnownTaskState["Failed"] = "Failed";
251
+ /** FailedInputValidation */
148
252
  KnownTaskState["FailedInputValidation"] = "FailedInputValidation";
253
+ /** Faulted */
149
254
  KnownTaskState["Faulted"] = "Faulted";
150
255
  })(exports.KnownTaskState || (exports.KnownTaskState = {}));
151
256
  /** Known values of {@link CommandType} that the service accepts. */
152
257
  exports.KnownCommandType = void 0;
153
258
  (function (KnownCommandType) {
259
+ /** MigrateSyncCompleteDatabase */
154
260
  KnownCommandType["MigrateSyncCompleteDatabase"] = "Migrate.Sync.Complete.Database";
261
+ /** MigrateSqlServerAzureDbSqlMiComplete */
155
262
  KnownCommandType["MigrateSqlServerAzureDbSqlMiComplete"] = "Migrate.SqlServer.AzureDbSqlMi.Complete";
263
+ /** Cancel */
156
264
  KnownCommandType["Cancel"] = "cancel";
265
+ /** Finish */
157
266
  KnownCommandType["Finish"] = "finish";
267
+ /** Restart */
158
268
  KnownCommandType["Restart"] = "restart";
159
269
  })(exports.KnownCommandType || (exports.KnownCommandType = {}));
160
270
  /** Known values of {@link CommandState} that the service accepts. */
161
271
  exports.KnownCommandState = void 0;
162
272
  (function (KnownCommandState) {
273
+ /** Unknown */
163
274
  KnownCommandState["Unknown"] = "Unknown";
275
+ /** Accepted */
164
276
  KnownCommandState["Accepted"] = "Accepted";
277
+ /** Running */
165
278
  KnownCommandState["Running"] = "Running";
279
+ /** Succeeded */
166
280
  KnownCommandState["Succeeded"] = "Succeeded";
281
+ /** Failed */
167
282
  KnownCommandState["Failed"] = "Failed";
168
283
  })(exports.KnownCommandState || (exports.KnownCommandState = {}));
169
284
  /** Known values of {@link NameCheckFailureReason} that the service accepts. */
170
285
  exports.KnownNameCheckFailureReason = void 0;
171
286
  (function (KnownNameCheckFailureReason) {
287
+ /** AlreadyExists */
172
288
  KnownNameCheckFailureReason["AlreadyExists"] = "AlreadyExists";
289
+ /** Invalid */
173
290
  KnownNameCheckFailureReason["Invalid"] = "Invalid";
174
291
  })(exports.KnownNameCheckFailureReason || (exports.KnownNameCheckFailureReason = {}));
175
292
  /** Known values of {@link ProjectSourcePlatform} that the service accepts. */
176
293
  exports.KnownProjectSourcePlatform = void 0;
177
294
  (function (KnownProjectSourcePlatform) {
295
+ /** SQL */
178
296
  KnownProjectSourcePlatform["SQL"] = "SQL";
297
+ /** MySQL */
179
298
  KnownProjectSourcePlatform["MySQL"] = "MySQL";
299
+ /** PostgreSql */
180
300
  KnownProjectSourcePlatform["PostgreSql"] = "PostgreSql";
301
+ /** MongoDb */
181
302
  KnownProjectSourcePlatform["MongoDb"] = "MongoDb";
303
+ /** Unknown */
182
304
  KnownProjectSourcePlatform["Unknown"] = "Unknown";
183
305
  })(exports.KnownProjectSourcePlatform || (exports.KnownProjectSourcePlatform = {}));
184
306
  /** Known values of {@link ProjectTargetPlatform} that the service accepts. */
185
307
  exports.KnownProjectTargetPlatform = void 0;
186
308
  (function (KnownProjectTargetPlatform) {
309
+ /** Sqldb */
187
310
  KnownProjectTargetPlatform["Sqldb"] = "SQLDB";
311
+ /** Sqlmi */
188
312
  KnownProjectTargetPlatform["Sqlmi"] = "SQLMI";
313
+ /** AzureDbForMySql */
189
314
  KnownProjectTargetPlatform["AzureDbForMySql"] = "AzureDbForMySql";
315
+ /** AzureDbForPostgreSql */
190
316
  KnownProjectTargetPlatform["AzureDbForPostgreSql"] = "AzureDbForPostgreSql";
317
+ /** MongoDb */
191
318
  KnownProjectTargetPlatform["MongoDb"] = "MongoDb";
319
+ /** Unknown */
192
320
  KnownProjectTargetPlatform["Unknown"] = "Unknown";
193
321
  })(exports.KnownProjectTargetPlatform || (exports.KnownProjectTargetPlatform = {}));
194
322
  /** Known values of {@link ProjectProvisioningState} that the service accepts. */
195
323
  exports.KnownProjectProvisioningState = void 0;
196
324
  (function (KnownProjectProvisioningState) {
325
+ /** Deleting */
197
326
  KnownProjectProvisioningState["Deleting"] = "Deleting";
327
+ /** Succeeded */
198
328
  KnownProjectProvisioningState["Succeeded"] = "Succeeded";
199
329
  })(exports.KnownProjectProvisioningState || (exports.KnownProjectProvisioningState = {}));
200
330
  /** Known values of {@link AuthenticationType} that the service accepts. */
201
331
  exports.KnownAuthenticationType = void 0;
202
332
  (function (KnownAuthenticationType) {
333
+ /** None */
203
334
  KnownAuthenticationType["None"] = "None";
335
+ /** WindowsAuthentication */
204
336
  KnownAuthenticationType["WindowsAuthentication"] = "WindowsAuthentication";
337
+ /** SqlAuthentication */
205
338
  KnownAuthenticationType["SqlAuthentication"] = "SqlAuthentication";
339
+ /** ActiveDirectoryIntegrated */
206
340
  KnownAuthenticationType["ActiveDirectoryIntegrated"] = "ActiveDirectoryIntegrated";
341
+ /** ActiveDirectoryPassword */
207
342
  KnownAuthenticationType["ActiveDirectoryPassword"] = "ActiveDirectoryPassword";
208
343
  })(exports.KnownAuthenticationType || (exports.KnownAuthenticationType = {}));
209
344
  /** Known values of {@link SqlSourcePlatform} that the service accepts. */
210
345
  exports.KnownSqlSourcePlatform = void 0;
211
346
  (function (KnownSqlSourcePlatform) {
347
+ /** SqlOnPrem */
212
348
  KnownSqlSourcePlatform["SqlOnPrem"] = "SqlOnPrem";
213
349
  })(exports.KnownSqlSourcePlatform || (exports.KnownSqlSourcePlatform = {}));
214
350
  /** Known values of {@link BackupType} that the service accepts. */
215
351
  exports.KnownBackupType = void 0;
216
352
  (function (KnownBackupType) {
353
+ /** Database */
217
354
  KnownBackupType["Database"] = "Database";
355
+ /** TransactionLog */
218
356
  KnownBackupType["TransactionLog"] = "TransactionLog";
357
+ /** File */
219
358
  KnownBackupType["File"] = "File";
359
+ /** DifferentialDatabase */
220
360
  KnownBackupType["DifferentialDatabase"] = "DifferentialDatabase";
361
+ /** DifferentialFile */
221
362
  KnownBackupType["DifferentialFile"] = "DifferentialFile";
363
+ /** Partial */
222
364
  KnownBackupType["Partial"] = "Partial";
365
+ /** DifferentialPartial */
223
366
  KnownBackupType["DifferentialPartial"] = "DifferentialPartial";
224
367
  })(exports.KnownBackupType || (exports.KnownBackupType = {}));
225
368
  /** Known values of {@link BackupFileStatus} that the service accepts. */
226
369
  exports.KnownBackupFileStatus = void 0;
227
370
  (function (KnownBackupFileStatus) {
371
+ /** Arrived */
228
372
  KnownBackupFileStatus["Arrived"] = "Arrived";
373
+ /** Queued */
229
374
  KnownBackupFileStatus["Queued"] = "Queued";
375
+ /** Uploading */
230
376
  KnownBackupFileStatus["Uploading"] = "Uploading";
377
+ /** Uploaded */
231
378
  KnownBackupFileStatus["Uploaded"] = "Uploaded";
379
+ /** Restoring */
232
380
  KnownBackupFileStatus["Restoring"] = "Restoring";
381
+ /** Restored */
233
382
  KnownBackupFileStatus["Restored"] = "Restored";
383
+ /** Cancelled */
234
384
  KnownBackupFileStatus["Cancelled"] = "Cancelled";
235
385
  })(exports.KnownBackupFileStatus || (exports.KnownBackupFileStatus = {}));
236
386
  /** Known values of {@link MySqlTargetPlatformType} that the service accepts. */
237
387
  exports.KnownMySqlTargetPlatformType = void 0;
238
388
  (function (KnownMySqlTargetPlatformType) {
389
+ /** SqlServer */
239
390
  KnownMySqlTargetPlatformType["SqlServer"] = "SqlServer";
391
+ /** AzureDbForMySQL */
240
392
  KnownMySqlTargetPlatformType["AzureDbForMySQL"] = "AzureDbForMySQL";
241
393
  })(exports.KnownMySqlTargetPlatformType || (exports.KnownMySqlTargetPlatformType = {}));
242
394
  /** Known values of {@link DatabaseFileType} that the service accepts. */
243
395
  exports.KnownDatabaseFileType = void 0;
244
396
  (function (KnownDatabaseFileType) {
397
+ /** Rows */
245
398
  KnownDatabaseFileType["Rows"] = "Rows";
399
+ /** Log */
246
400
  KnownDatabaseFileType["Log"] = "Log";
401
+ /** Filestream */
247
402
  KnownDatabaseFileType["Filestream"] = "Filestream";
403
+ /** NotSupported */
248
404
  KnownDatabaseFileType["NotSupported"] = "NotSupported";
405
+ /** Fulltext */
249
406
  KnownDatabaseFileType["Fulltext"] = "Fulltext";
250
407
  })(exports.KnownDatabaseFileType || (exports.KnownDatabaseFileType = {}));
251
408
  /** Known values of {@link DatabaseCompatLevel} that the service accepts. */
252
409
  exports.KnownDatabaseCompatLevel = void 0;
253
410
  (function (KnownDatabaseCompatLevel) {
411
+ /** CompatLevel80 */
254
412
  KnownDatabaseCompatLevel["CompatLevel80"] = "CompatLevel80";
413
+ /** CompatLevel90 */
255
414
  KnownDatabaseCompatLevel["CompatLevel90"] = "CompatLevel90";
415
+ /** CompatLevel100 */
256
416
  KnownDatabaseCompatLevel["CompatLevel100"] = "CompatLevel100";
417
+ /** CompatLevel110 */
257
418
  KnownDatabaseCompatLevel["CompatLevel110"] = "CompatLevel110";
419
+ /** CompatLevel120 */
258
420
  KnownDatabaseCompatLevel["CompatLevel120"] = "CompatLevel120";
421
+ /** CompatLevel130 */
259
422
  KnownDatabaseCompatLevel["CompatLevel130"] = "CompatLevel130";
423
+ /** CompatLevel140 */
260
424
  KnownDatabaseCompatLevel["CompatLevel140"] = "CompatLevel140";
261
425
  })(exports.KnownDatabaseCompatLevel || (exports.KnownDatabaseCompatLevel = {}));
262
426
  /** Known values of {@link DatabaseState} that the service accepts. */
263
427
  exports.KnownDatabaseState = void 0;
264
428
  (function (KnownDatabaseState) {
429
+ /** Online */
265
430
  KnownDatabaseState["Online"] = "Online";
431
+ /** Restoring */
266
432
  KnownDatabaseState["Restoring"] = "Restoring";
433
+ /** Recovering */
267
434
  KnownDatabaseState["Recovering"] = "Recovering";
435
+ /** RecoveryPending */
268
436
  KnownDatabaseState["RecoveryPending"] = "RecoveryPending";
437
+ /** Suspect */
269
438
  KnownDatabaseState["Suspect"] = "Suspect";
439
+ /** Emergency */
270
440
  KnownDatabaseState["Emergency"] = "Emergency";
441
+ /** Offline */
271
442
  KnownDatabaseState["Offline"] = "Offline";
443
+ /** Copying */
272
444
  KnownDatabaseState["Copying"] = "Copying";
445
+ /** OfflineSecondary */
273
446
  KnownDatabaseState["OfflineSecondary"] = "OfflineSecondary";
274
447
  })(exports.KnownDatabaseState || (exports.KnownDatabaseState = {}));
275
448
  /** Known values of {@link LoginType} that the service accepts. */
276
449
  exports.KnownLoginType = void 0;
277
450
  (function (KnownLoginType) {
451
+ /** WindowsUser */
278
452
  KnownLoginType["WindowsUser"] = "WindowsUser";
453
+ /** WindowsGroup */
279
454
  KnownLoginType["WindowsGroup"] = "WindowsGroup";
455
+ /** SqlLogin */
280
456
  KnownLoginType["SqlLogin"] = "SqlLogin";
457
+ /** Certificate */
281
458
  KnownLoginType["Certificate"] = "Certificate";
459
+ /** AsymmetricKey */
282
460
  KnownLoginType["AsymmetricKey"] = "AsymmetricKey";
461
+ /** ExternalUser */
283
462
  KnownLoginType["ExternalUser"] = "ExternalUser";
463
+ /** ExternalGroup */
284
464
  KnownLoginType["ExternalGroup"] = "ExternalGroup";
285
465
  })(exports.KnownLoginType || (exports.KnownLoginType = {}));
286
466
  /** Known values of {@link SchemaMigrationOption} that the service accepts. */
287
467
  exports.KnownSchemaMigrationOption = void 0;
288
468
  (function (KnownSchemaMigrationOption) {
469
+ /** None */
289
470
  KnownSchemaMigrationOption["None"] = "None";
471
+ /** ExtractFromSource */
290
472
  KnownSchemaMigrationOption["ExtractFromSource"] = "ExtractFromSource";
473
+ /** UseStorageFile */
291
474
  KnownSchemaMigrationOption["UseStorageFile"] = "UseStorageFile";
292
475
  })(exports.KnownSchemaMigrationOption || (exports.KnownSchemaMigrationOption = {}));
293
476
  /** Known values of {@link MigrationState} that the service accepts. */
294
477
  exports.KnownMigrationState = void 0;
295
478
  (function (KnownMigrationState) {
479
+ /** None */
296
480
  KnownMigrationState["None"] = "None";
481
+ /** InProgress */
297
482
  KnownMigrationState["InProgress"] = "InProgress";
483
+ /** Failed */
298
484
  KnownMigrationState["Failed"] = "Failed";
485
+ /** Warning */
299
486
  KnownMigrationState["Warning"] = "Warning";
487
+ /** Completed */
300
488
  KnownMigrationState["Completed"] = "Completed";
489
+ /** Skipped */
301
490
  KnownMigrationState["Skipped"] = "Skipped";
491
+ /** Stopped */
302
492
  KnownMigrationState["Stopped"] = "Stopped";
303
493
  })(exports.KnownMigrationState || (exports.KnownMigrationState = {}));
304
494
  /** Known values of {@link SchemaMigrationStage} that the service accepts. */
305
495
  exports.KnownSchemaMigrationStage = void 0;
306
496
  (function (KnownSchemaMigrationStage) {
497
+ /** NotStarted */
307
498
  KnownSchemaMigrationStage["NotStarted"] = "NotStarted";
499
+ /** ValidatingInputs */
308
500
  KnownSchemaMigrationStage["ValidatingInputs"] = "ValidatingInputs";
501
+ /** CollectingObjects */
309
502
  KnownSchemaMigrationStage["CollectingObjects"] = "CollectingObjects";
503
+ /** DownloadingScript */
310
504
  KnownSchemaMigrationStage["DownloadingScript"] = "DownloadingScript";
505
+ /** GeneratingScript */
311
506
  KnownSchemaMigrationStage["GeneratingScript"] = "GeneratingScript";
507
+ /** UploadingScript */
312
508
  KnownSchemaMigrationStage["UploadingScript"] = "UploadingScript";
509
+ /** DeployingSchema */
313
510
  KnownSchemaMigrationStage["DeployingSchema"] = "DeployingSchema";
511
+ /** Completed */
314
512
  KnownSchemaMigrationStage["Completed"] = "Completed";
513
+ /** CompletedWithWarnings */
315
514
  KnownSchemaMigrationStage["CompletedWithWarnings"] = "CompletedWithWarnings";
515
+ /** Failed */
316
516
  KnownSchemaMigrationStage["Failed"] = "Failed";
317
517
  })(exports.KnownSchemaMigrationStage || (exports.KnownSchemaMigrationStage = {}));
318
518
  /** Known values of {@link SyncDatabaseMigrationReportingState} that the service accepts. */
319
519
  exports.KnownSyncDatabaseMigrationReportingState = void 0;
320
520
  (function (KnownSyncDatabaseMigrationReportingState) {
521
+ /** Undefined */
321
522
  KnownSyncDatabaseMigrationReportingState["Undefined"] = "UNDEFINED";
523
+ /** Configuring */
322
524
  KnownSyncDatabaseMigrationReportingState["Configuring"] = "CONFIGURING";
525
+ /** Initialiazing */
323
526
  KnownSyncDatabaseMigrationReportingState["Initialiazing"] = "INITIALIAZING";
527
+ /** Starting */
324
528
  KnownSyncDatabaseMigrationReportingState["Starting"] = "STARTING";
529
+ /** Running */
325
530
  KnownSyncDatabaseMigrationReportingState["Running"] = "RUNNING";
531
+ /** ReadyTOComplete */
326
532
  KnownSyncDatabaseMigrationReportingState["ReadyTOComplete"] = "READY_TO_COMPLETE";
533
+ /** Completing */
327
534
  KnownSyncDatabaseMigrationReportingState["Completing"] = "COMPLETING";
535
+ /** Complete */
328
536
  KnownSyncDatabaseMigrationReportingState["Complete"] = "COMPLETE";
537
+ /** Cancelling */
329
538
  KnownSyncDatabaseMigrationReportingState["Cancelling"] = "CANCELLING";
539
+ /** Cancelled */
330
540
  KnownSyncDatabaseMigrationReportingState["Cancelled"] = "CANCELLED";
541
+ /** Failed */
331
542
  KnownSyncDatabaseMigrationReportingState["Failed"] = "FAILED";
543
+ /** Validating */
332
544
  KnownSyncDatabaseMigrationReportingState["Validating"] = "VALIDATING";
545
+ /** ValidationComplete */
333
546
  KnownSyncDatabaseMigrationReportingState["ValidationComplete"] = "VALIDATION_COMPLETE";
547
+ /** ValidationFailed */
334
548
  KnownSyncDatabaseMigrationReportingState["ValidationFailed"] = "VALIDATION_FAILED";
549
+ /** RestoreINProgress */
335
550
  KnownSyncDatabaseMigrationReportingState["RestoreINProgress"] = "RESTORE_IN_PROGRESS";
551
+ /** RestoreCompleted */
336
552
  KnownSyncDatabaseMigrationReportingState["RestoreCompleted"] = "RESTORE_COMPLETED";
553
+ /** BackupINProgress */
337
554
  KnownSyncDatabaseMigrationReportingState["BackupINProgress"] = "BACKUP_IN_PROGRESS";
555
+ /** BackupCompleted */
338
556
  KnownSyncDatabaseMigrationReportingState["BackupCompleted"] = "BACKUP_COMPLETED";
339
557
  })(exports.KnownSyncDatabaseMigrationReportingState || (exports.KnownSyncDatabaseMigrationReportingState = {}));
340
558
  /** Known values of {@link SyncTableMigrationState} that the service accepts. */
341
559
  exports.KnownSyncTableMigrationState = void 0;
342
560
  (function (KnownSyncTableMigrationState) {
561
+ /** BeforeLoad */
343
562
  KnownSyncTableMigrationState["BeforeLoad"] = "BEFORE_LOAD";
563
+ /** FullLoad */
344
564
  KnownSyncTableMigrationState["FullLoad"] = "FULL_LOAD";
565
+ /** Completed */
345
566
  KnownSyncTableMigrationState["Completed"] = "COMPLETED";
567
+ /** Canceled */
346
568
  KnownSyncTableMigrationState["Canceled"] = "CANCELED";
569
+ /** Error */
347
570
  KnownSyncTableMigrationState["Error"] = "ERROR";
571
+ /** Failed */
348
572
  KnownSyncTableMigrationState["Failed"] = "FAILED";
349
573
  })(exports.KnownSyncTableMigrationState || (exports.KnownSyncTableMigrationState = {}));
350
574
  /** Known values of {@link ScenarioSource} that the service accepts. */
351
575
  exports.KnownScenarioSource = void 0;
352
576
  (function (KnownScenarioSource) {
577
+ /** Access */
353
578
  KnownScenarioSource["Access"] = "Access";
579
+ /** DB2 */
354
580
  KnownScenarioSource["DB2"] = "DB2";
581
+ /** MySQL */
355
582
  KnownScenarioSource["MySQL"] = "MySQL";
583
+ /** Oracle */
356
584
  KnownScenarioSource["Oracle"] = "Oracle";
585
+ /** SQL */
357
586
  KnownScenarioSource["SQL"] = "SQL";
587
+ /** Sybase */
358
588
  KnownScenarioSource["Sybase"] = "Sybase";
589
+ /** PostgreSQL */
359
590
  KnownScenarioSource["PostgreSQL"] = "PostgreSQL";
591
+ /** MongoDB */
360
592
  KnownScenarioSource["MongoDB"] = "MongoDB";
593
+ /** Sqlrds */
361
594
  KnownScenarioSource["Sqlrds"] = "SQLRDS";
595
+ /** MySqlrds */
362
596
  KnownScenarioSource["MySqlrds"] = "MySQLRDS";
597
+ /** PostgreSqlrds */
363
598
  KnownScenarioSource["PostgreSqlrds"] = "PostgreSQLRDS";
364
599
  })(exports.KnownScenarioSource || (exports.KnownScenarioSource = {}));
365
600
  /** Known values of {@link ScenarioTarget} that the service accepts. */
366
601
  exports.KnownScenarioTarget = void 0;
367
602
  (function (KnownScenarioTarget) {
603
+ /** SQLServer */
368
604
  KnownScenarioTarget["SQLServer"] = "SQLServer";
605
+ /** Sqldb */
369
606
  KnownScenarioTarget["Sqldb"] = "SQLDB";
607
+ /** Sqldw */
370
608
  KnownScenarioTarget["Sqldw"] = "SQLDW";
609
+ /** Sqlmi */
371
610
  KnownScenarioTarget["Sqlmi"] = "SQLMI";
611
+ /** AzureDBForMySql */
372
612
  KnownScenarioTarget["AzureDBForMySql"] = "AzureDBForMySql";
613
+ /** AzureDBForPostgresSQL */
373
614
  KnownScenarioTarget["AzureDBForPostgresSQL"] = "AzureDBForPostgresSQL";
615
+ /** MongoDB */
374
616
  KnownScenarioTarget["MongoDB"] = "MongoDB";
375
617
  })(exports.KnownScenarioTarget || (exports.KnownScenarioTarget = {}));
376
618
  /** Known values of {@link ReplicateMigrationState} that the service accepts. */
377
619
  exports.KnownReplicateMigrationState = void 0;
378
620
  (function (KnownReplicateMigrationState) {
621
+ /** Undefined */
379
622
  KnownReplicateMigrationState["Undefined"] = "UNDEFINED";
623
+ /** Validating */
380
624
  KnownReplicateMigrationState["Validating"] = "VALIDATING";
625
+ /** Pending */
381
626
  KnownReplicateMigrationState["Pending"] = "PENDING";
627
+ /** Complete */
382
628
  KnownReplicateMigrationState["Complete"] = "COMPLETE";
629
+ /** ActionRequired */
383
630
  KnownReplicateMigrationState["ActionRequired"] = "ACTION_REQUIRED";
631
+ /** Failed */
384
632
  KnownReplicateMigrationState["Failed"] = "FAILED";
385
633
  })(exports.KnownReplicateMigrationState || (exports.KnownReplicateMigrationState = {}));
386
634
  /** Known values of {@link MigrationStatus} that the service accepts. */
387
635
  exports.KnownMigrationStatus = void 0;
388
636
  (function (KnownMigrationStatus) {
637
+ /** Default */
389
638
  KnownMigrationStatus["Default"] = "Default";
639
+ /** Connecting */
390
640
  KnownMigrationStatus["Connecting"] = "Connecting";
641
+ /** SourceAndTargetSelected */
391
642
  KnownMigrationStatus["SourceAndTargetSelected"] = "SourceAndTargetSelected";
643
+ /** SelectLogins */
392
644
  KnownMigrationStatus["SelectLogins"] = "SelectLogins";
645
+ /** Configured */
393
646
  KnownMigrationStatus["Configured"] = "Configured";
647
+ /** Running */
394
648
  KnownMigrationStatus["Running"] = "Running";
649
+ /** Error */
395
650
  KnownMigrationStatus["Error"] = "Error";
651
+ /** Stopped */
396
652
  KnownMigrationStatus["Stopped"] = "Stopped";
653
+ /** Completed */
397
654
  KnownMigrationStatus["Completed"] = "Completed";
655
+ /** CompletedWithWarnings */
398
656
  KnownMigrationStatus["CompletedWithWarnings"] = "CompletedWithWarnings";
399
657
  })(exports.KnownMigrationStatus || (exports.KnownMigrationStatus = {}));
400
658
  /** Known values of {@link ValidationStatus} that the service accepts. */
401
659
  exports.KnownValidationStatus = void 0;
402
660
  (function (KnownValidationStatus) {
661
+ /** Default */
403
662
  KnownValidationStatus["Default"] = "Default";
663
+ /** NotStarted */
404
664
  KnownValidationStatus["NotStarted"] = "NotStarted";
665
+ /** Initialized */
405
666
  KnownValidationStatus["Initialized"] = "Initialized";
667
+ /** InProgress */
406
668
  KnownValidationStatus["InProgress"] = "InProgress";
669
+ /** Completed */
407
670
  KnownValidationStatus["Completed"] = "Completed";
671
+ /** CompletedWithIssues */
408
672
  KnownValidationStatus["CompletedWithIssues"] = "CompletedWithIssues";
673
+ /** Stopped */
409
674
  KnownValidationStatus["Stopped"] = "Stopped";
675
+ /** Failed */
410
676
  KnownValidationStatus["Failed"] = "Failed";
411
677
  })(exports.KnownValidationStatus || (exports.KnownValidationStatus = {}));
412
678
  /** Known values of {@link DatabaseMigrationStage} that the service accepts. */
413
679
  exports.KnownDatabaseMigrationStage = void 0;
414
680
  (function (KnownDatabaseMigrationStage) {
681
+ /** None */
415
682
  KnownDatabaseMigrationStage["None"] = "None";
683
+ /** Initialize */
416
684
  KnownDatabaseMigrationStage["Initialize"] = "Initialize";
685
+ /** Backup */
417
686
  KnownDatabaseMigrationStage["Backup"] = "Backup";
687
+ /** FileCopy */
418
688
  KnownDatabaseMigrationStage["FileCopy"] = "FileCopy";
689
+ /** Restore */
419
690
  KnownDatabaseMigrationStage["Restore"] = "Restore";
691
+ /** Completed */
420
692
  KnownDatabaseMigrationStage["Completed"] = "Completed";
421
693
  })(exports.KnownDatabaseMigrationStage || (exports.KnownDatabaseMigrationStage = {}));
422
694
  /** Known values of {@link Severity} that the service accepts. */
423
695
  exports.KnownSeverity = void 0;
424
696
  (function (KnownSeverity) {
697
+ /** Message */
425
698
  KnownSeverity["Message"] = "Message";
699
+ /** Warning */
426
700
  KnownSeverity["Warning"] = "Warning";
701
+ /** Error */
427
702
  KnownSeverity["Error"] = "Error";
428
703
  })(exports.KnownSeverity || (exports.KnownSeverity = {}));
429
704
  /** Known values of {@link ObjectType} that the service accepts. */
430
705
  exports.KnownObjectType = void 0;
431
706
  (function (KnownObjectType) {
707
+ /** StoredProcedures */
432
708
  KnownObjectType["StoredProcedures"] = "StoredProcedures";
709
+ /** Table */
433
710
  KnownObjectType["Table"] = "Table";
711
+ /** User */
434
712
  KnownObjectType["User"] = "User";
713
+ /** View */
435
714
  KnownObjectType["View"] = "View";
715
+ /** Function */
436
716
  KnownObjectType["Function"] = "Function";
437
717
  })(exports.KnownObjectType || (exports.KnownObjectType = {}));
438
718
  /** Known values of {@link UpdateActionType} that the service accepts. */
439
719
  exports.KnownUpdateActionType = void 0;
440
720
  (function (KnownUpdateActionType) {
721
+ /** DeletedOnTarget */
441
722
  KnownUpdateActionType["DeletedOnTarget"] = "DeletedOnTarget";
723
+ /** ChangedOnTarget */
442
724
  KnownUpdateActionType["ChangedOnTarget"] = "ChangedOnTarget";
725
+ /** AddedOnTarget */
443
726
  KnownUpdateActionType["AddedOnTarget"] = "AddedOnTarget";
444
727
  })(exports.KnownUpdateActionType || (exports.KnownUpdateActionType = {}));
445
728
  /** Known values of {@link DatabaseMigrationState} that the service accepts. */
446
729
  exports.KnownDatabaseMigrationState = void 0;
447
730
  (function (KnownDatabaseMigrationState) {
731
+ /** Undefined */
448
732
  KnownDatabaseMigrationState["Undefined"] = "UNDEFINED";
733
+ /** Initial */
449
734
  KnownDatabaseMigrationState["Initial"] = "INITIAL";
735
+ /** FullBackupUploadStart */
450
736
  KnownDatabaseMigrationState["FullBackupUploadStart"] = "FULL_BACKUP_UPLOAD_START";
737
+ /** LOGShippingStart */
451
738
  KnownDatabaseMigrationState["LOGShippingStart"] = "LOG_SHIPPING_START";
739
+ /** UploadLOGFilesStart */
452
740
  KnownDatabaseMigrationState["UploadLOGFilesStart"] = "UPLOAD_LOG_FILES_START";
741
+ /** CutoverStart */
453
742
  KnownDatabaseMigrationState["CutoverStart"] = "CUTOVER_START";
743
+ /** PostCutoverComplete */
454
744
  KnownDatabaseMigrationState["PostCutoverComplete"] = "POST_CUTOVER_COMPLETE";
745
+ /** Completed */
455
746
  KnownDatabaseMigrationState["Completed"] = "COMPLETED";
747
+ /** Cancelled */
456
748
  KnownDatabaseMigrationState["Cancelled"] = "CANCELLED";
749
+ /** Failed */
457
750
  KnownDatabaseMigrationState["Failed"] = "FAILED";
458
751
  })(exports.KnownDatabaseMigrationState || (exports.KnownDatabaseMigrationState = {}));
459
752
  /** Known values of {@link BackupMode} that the service accepts. */
460
753
  exports.KnownBackupMode = void 0;
461
754
  (function (KnownBackupMode) {
755
+ /** CreateBackup */
462
756
  KnownBackupMode["CreateBackup"] = "CreateBackup";
757
+ /** ExistingBackup */
463
758
  KnownBackupMode["ExistingBackup"] = "ExistingBackup";
464
759
  })(exports.KnownBackupMode || (exports.KnownBackupMode = {}));
465
760
  /** Known values of {@link LoginMigrationStage} that the service accepts. */
466
761
  exports.KnownLoginMigrationStage = void 0;
467
762
  (function (KnownLoginMigrationStage) {
763
+ /** None */
468
764
  KnownLoginMigrationStage["None"] = "None";
765
+ /** Initialize */
469
766
  KnownLoginMigrationStage["Initialize"] = "Initialize";
767
+ /** LoginMigration */
470
768
  KnownLoginMigrationStage["LoginMigration"] = "LoginMigration";
769
+ /** EstablishUserMapping */
471
770
  KnownLoginMigrationStage["EstablishUserMapping"] = "EstablishUserMapping";
771
+ /** AssignRoleMembership */
472
772
  KnownLoginMigrationStage["AssignRoleMembership"] = "AssignRoleMembership";
773
+ /** AssignRoleOwnership */
473
774
  KnownLoginMigrationStage["AssignRoleOwnership"] = "AssignRoleOwnership";
775
+ /** EstablishServerPermissions */
474
776
  KnownLoginMigrationStage["EstablishServerPermissions"] = "EstablishServerPermissions";
777
+ /** EstablishObjectPermissions */
475
778
  KnownLoginMigrationStage["EstablishObjectPermissions"] = "EstablishObjectPermissions";
779
+ /** Completed */
476
780
  KnownLoginMigrationStage["Completed"] = "Completed";
477
781
  })(exports.KnownLoginMigrationStage || (exports.KnownLoginMigrationStage = {}));
478
782
  /** Known values of {@link SsisStoreType} that the service accepts. */
479
783
  exports.KnownSsisStoreType = void 0;
480
784
  (function (KnownSsisStoreType) {
785
+ /** SsisCatalog */
481
786
  KnownSsisStoreType["SsisCatalog"] = "SsisCatalog";
482
787
  })(exports.KnownSsisStoreType || (exports.KnownSsisStoreType = {}));
483
788
  /** Known values of {@link SsisMigrationOverwriteOption} that the service accepts. */
484
789
  exports.KnownSsisMigrationOverwriteOption = void 0;
485
790
  (function (KnownSsisMigrationOverwriteOption) {
791
+ /** Ignore */
486
792
  KnownSsisMigrationOverwriteOption["Ignore"] = "Ignore";
793
+ /** Overwrite */
487
794
  KnownSsisMigrationOverwriteOption["Overwrite"] = "Overwrite";
488
795
  })(exports.KnownSsisMigrationOverwriteOption || (exports.KnownSsisMigrationOverwriteOption = {}));
489
796
  /** Known values of {@link SsisMigrationStage} that the service accepts. */
490
797
  exports.KnownSsisMigrationStage = void 0;
491
798
  (function (KnownSsisMigrationStage) {
799
+ /** None */
492
800
  KnownSsisMigrationStage["None"] = "None";
801
+ /** Initialize */
493
802
  KnownSsisMigrationStage["Initialize"] = "Initialize";
803
+ /** InProgress */
494
804
  KnownSsisMigrationStage["InProgress"] = "InProgress";
805
+ /** Completed */
495
806
  KnownSsisMigrationStage["Completed"] = "Completed";
496
807
  })(exports.KnownSsisMigrationStage || (exports.KnownSsisMigrationStage = {}));
497
808
  /** Known values of {@link MongoDbShardKeyOrder} that the service accepts. */
498
809
  exports.KnownMongoDbShardKeyOrder = void 0;
499
810
  (function (KnownMongoDbShardKeyOrder) {
811
+ /** Forward */
500
812
  KnownMongoDbShardKeyOrder["Forward"] = "Forward";
813
+ /** Reverse */
501
814
  KnownMongoDbShardKeyOrder["Reverse"] = "Reverse";
815
+ /** Hashed */
502
816
  KnownMongoDbShardKeyOrder["Hashed"] = "Hashed";
503
817
  })(exports.KnownMongoDbShardKeyOrder || (exports.KnownMongoDbShardKeyOrder = {}));
504
818
  /** Known values of {@link MongoDbClusterType} that the service accepts. */
505
819
  exports.KnownMongoDbClusterType = void 0;
506
820
  (function (KnownMongoDbClusterType) {
821
+ /** BlobContainer */
507
822
  KnownMongoDbClusterType["BlobContainer"] = "BlobContainer";
823
+ /** CosmosDb */
508
824
  KnownMongoDbClusterType["CosmosDb"] = "CosmosDb";
825
+ /** MongoDb */
509
826
  KnownMongoDbClusterType["MongoDb"] = "MongoDb";
510
827
  })(exports.KnownMongoDbClusterType || (exports.KnownMongoDbClusterType = {}));
511
828
  /** Known values of {@link MongoDbErrorType} that the service accepts. */
512
829
  exports.KnownMongoDbErrorType = void 0;
513
830
  (function (KnownMongoDbErrorType) {
831
+ /** Error */
514
832
  KnownMongoDbErrorType["Error"] = "Error";
833
+ /** ValidationError */
515
834
  KnownMongoDbErrorType["ValidationError"] = "ValidationError";
835
+ /** Warning */
516
836
  KnownMongoDbErrorType["Warning"] = "Warning";
517
837
  })(exports.KnownMongoDbErrorType || (exports.KnownMongoDbErrorType = {}));
518
838
  /** Known values of {@link MongoDbProgressResultType} that the service accepts. */
519
839
  exports.KnownMongoDbProgressResultType = void 0;
520
840
  (function (KnownMongoDbProgressResultType) {
841
+ /** Migration */
521
842
  KnownMongoDbProgressResultType["Migration"] = "Migration";
843
+ /** Database */
522
844
  KnownMongoDbProgressResultType["Database"] = "Database";
845
+ /** Collection */
523
846
  KnownMongoDbProgressResultType["Collection"] = "Collection";
524
847
  })(exports.KnownMongoDbProgressResultType || (exports.KnownMongoDbProgressResultType = {}));
525
848
  /** Known values of {@link MongoDbMigrationState} that the service accepts. */
526
849
  exports.KnownMongoDbMigrationState = void 0;
527
850
  (function (KnownMongoDbMigrationState) {
851
+ /** NotStarted */
528
852
  KnownMongoDbMigrationState["NotStarted"] = "NotStarted";
853
+ /** ValidatingInput */
529
854
  KnownMongoDbMigrationState["ValidatingInput"] = "ValidatingInput";
855
+ /** Initializing */
530
856
  KnownMongoDbMigrationState["Initializing"] = "Initializing";
857
+ /** Restarting */
531
858
  KnownMongoDbMigrationState["Restarting"] = "Restarting";
859
+ /** Copying */
532
860
  KnownMongoDbMigrationState["Copying"] = "Copying";
861
+ /** InitialReplay */
533
862
  KnownMongoDbMigrationState["InitialReplay"] = "InitialReplay";
863
+ /** Replaying */
534
864
  KnownMongoDbMigrationState["Replaying"] = "Replaying";
865
+ /** Finalizing */
535
866
  KnownMongoDbMigrationState["Finalizing"] = "Finalizing";
867
+ /** Complete */
536
868
  KnownMongoDbMigrationState["Complete"] = "Complete";
869
+ /** Canceled */
537
870
  KnownMongoDbMigrationState["Canceled"] = "Canceled";
871
+ /** Failed */
538
872
  KnownMongoDbMigrationState["Failed"] = "Failed";
539
873
  })(exports.KnownMongoDbMigrationState || (exports.KnownMongoDbMigrationState = {}));
540
874
  /** Known values of {@link MongoDbReplication} that the service accepts. */
541
875
  exports.KnownMongoDbReplication = void 0;
542
876
  (function (KnownMongoDbReplication) {
877
+ /** Disabled */
543
878
  KnownMongoDbReplication["Disabled"] = "Disabled";
879
+ /** OneTime */
544
880
  KnownMongoDbReplication["OneTime"] = "OneTime";
881
+ /** Continuous */
545
882
  KnownMongoDbReplication["Continuous"] = "Continuous";
546
883
  })(exports.KnownMongoDbReplication || (exports.KnownMongoDbReplication = {}));
547
884
  /** Known values of {@link DataMigrationResultCode} that the service accepts. */
548
885
  exports.KnownDataMigrationResultCode = void 0;
549
886
  (function (KnownDataMigrationResultCode) {
887
+ /** Initial */
550
888
  KnownDataMigrationResultCode["Initial"] = "Initial";
889
+ /** Completed */
551
890
  KnownDataMigrationResultCode["Completed"] = "Completed";
891
+ /** ObjectNotExistsInSource */
552
892
  KnownDataMigrationResultCode["ObjectNotExistsInSource"] = "ObjectNotExistsInSource";
893
+ /** ObjectNotExistsInTarget */
553
894
  KnownDataMigrationResultCode["ObjectNotExistsInTarget"] = "ObjectNotExistsInTarget";
895
+ /** TargetObjectIsInaccessible */
554
896
  KnownDataMigrationResultCode["TargetObjectIsInaccessible"] = "TargetObjectIsInaccessible";
897
+ /** FatalError */
555
898
  KnownDataMigrationResultCode["FatalError"] = "FatalError";
556
899
  })(exports.KnownDataMigrationResultCode || (exports.KnownDataMigrationResultCode = {}));
557
900
  /** Known values of {@link ErrorType} that the service accepts. */
558
901
  exports.KnownErrorType = void 0;
559
902
  (function (KnownErrorType) {
903
+ /** Default */
560
904
  KnownErrorType["Default"] = "Default";
905
+ /** Warning */
561
906
  KnownErrorType["Warning"] = "Warning";
907
+ /** Error */
562
908
  KnownErrorType["Error"] = "Error";
563
909
  })(exports.KnownErrorType || (exports.KnownErrorType = {}));
564
910
 
@@ -13648,20 +13994,31 @@ class OperationsImpl {
13648
13994
  [Symbol.asyncIterator]() {
13649
13995
  return this;
13650
13996
  },
13651
- byPage: () => {
13652
- return this.listPagingPage(options);
13997
+ byPage: (settings) => {
13998
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13999
+ throw new Error("maxPageSize is not supported by this operation.");
14000
+ }
14001
+ return this.listPagingPage(options, settings);
13653
14002
  }
13654
14003
  };
13655
14004
  }
13656
- listPagingPage(options) {
14005
+ listPagingPage(options, settings) {
13657
14006
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
13658
- let result = yield tslib.__await(this._list(options));
13659
- yield yield tslib.__await(result.value || []);
13660
- let continuationToken = result.nextLink;
14007
+ let result;
14008
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14009
+ if (!continuationToken) {
14010
+ result = yield tslib.__await(this._list(options));
14011
+ let page = result.value || [];
14012
+ continuationToken = result.nextLink;
14013
+ setContinuationToken(page, continuationToken);
14014
+ yield yield tslib.__await(page);
14015
+ }
13661
14016
  while (continuationToken) {
13662
14017
  result = yield tslib.__await(this._listNext(continuationToken, options));
13663
14018
  continuationToken = result.nextLink;
13664
- yield yield tslib.__await(result.value || []);
14019
+ let page = result.value || [];
14020
+ setContinuationToken(page, continuationToken);
14021
+ yield yield tslib.__await(page);
13665
14022
  }
13666
14023
  });
13667
14024
  }
@@ -13762,20 +14119,31 @@ class SqlMigrationServicesImpl {
13762
14119
  [Symbol.asyncIterator]() {
13763
14120
  return this;
13764
14121
  },
13765
- byPage: () => {
13766
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
14122
+ byPage: (settings) => {
14123
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14124
+ throw new Error("maxPageSize is not supported by this operation.");
14125
+ }
14126
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
13767
14127
  }
13768
14128
  };
13769
14129
  }
13770
- listByResourceGroupPagingPage(resourceGroupName, options) {
14130
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
13771
14131
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
13772
- let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
13773
- yield yield tslib.__await(result.value || []);
13774
- let continuationToken = result.nextLink;
14132
+ let result;
14133
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14134
+ if (!continuationToken) {
14135
+ result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
14136
+ let page = result.value || [];
14137
+ continuationToken = result.nextLink;
14138
+ setContinuationToken(page, continuationToken);
14139
+ yield yield tslib.__await(page);
14140
+ }
13775
14141
  while (continuationToken) {
13776
14142
  result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
13777
14143
  continuationToken = result.nextLink;
13778
- yield yield tslib.__await(result.value || []);
14144
+ let page = result.value || [];
14145
+ setContinuationToken(page, continuationToken);
14146
+ yield yield tslib.__await(page);
13779
14147
  }
13780
14148
  });
13781
14149
  }
@@ -13813,20 +14181,31 @@ class SqlMigrationServicesImpl {
13813
14181
  [Symbol.asyncIterator]() {
13814
14182
  return this;
13815
14183
  },
13816
- byPage: () => {
13817
- return this.listMigrationsPagingPage(resourceGroupName, sqlMigrationServiceName, options);
14184
+ byPage: (settings) => {
14185
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14186
+ throw new Error("maxPageSize is not supported by this operation.");
14187
+ }
14188
+ return this.listMigrationsPagingPage(resourceGroupName, sqlMigrationServiceName, options, settings);
13818
14189
  }
13819
14190
  };
13820
14191
  }
13821
- listMigrationsPagingPage(resourceGroupName, sqlMigrationServiceName, options) {
14192
+ listMigrationsPagingPage(resourceGroupName, sqlMigrationServiceName, options, settings) {
13822
14193
  return tslib.__asyncGenerator(this, arguments, function* listMigrationsPagingPage_1() {
13823
- let result = yield tslib.__await(this._listMigrations(resourceGroupName, sqlMigrationServiceName, options));
13824
- yield yield tslib.__await(result.value || []);
13825
- let continuationToken = result.nextLink;
14194
+ let result;
14195
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14196
+ if (!continuationToken) {
14197
+ result = yield tslib.__await(this._listMigrations(resourceGroupName, sqlMigrationServiceName, options));
14198
+ let page = result.value || [];
14199
+ continuationToken = result.nextLink;
14200
+ setContinuationToken(page, continuationToken);
14201
+ yield yield tslib.__await(page);
14202
+ }
13826
14203
  while (continuationToken) {
13827
14204
  result = yield tslib.__await(this._listMigrationsNext(resourceGroupName, sqlMigrationServiceName, continuationToken, options));
13828
14205
  continuationToken = result.nextLink;
13829
- yield yield tslib.__await(result.value || []);
14206
+ let page = result.value || [];
14207
+ setContinuationToken(page, continuationToken);
14208
+ yield yield tslib.__await(page);
13830
14209
  }
13831
14210
  });
13832
14211
  }
@@ -13861,20 +14240,31 @@ class SqlMigrationServicesImpl {
13861
14240
  [Symbol.asyncIterator]() {
13862
14241
  return this;
13863
14242
  },
13864
- byPage: () => {
13865
- return this.listBySubscriptionPagingPage(options);
14243
+ byPage: (settings) => {
14244
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14245
+ throw new Error("maxPageSize is not supported by this operation.");
14246
+ }
14247
+ return this.listBySubscriptionPagingPage(options, settings);
13866
14248
  }
13867
14249
  };
13868
14250
  }
13869
- listBySubscriptionPagingPage(options) {
14251
+ listBySubscriptionPagingPage(options, settings) {
13870
14252
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
13871
- let result = yield tslib.__await(this._listBySubscription(options));
13872
- yield yield tslib.__await(result.value || []);
13873
- let continuationToken = result.nextLink;
14253
+ let result;
14254
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14255
+ if (!continuationToken) {
14256
+ result = yield tslib.__await(this._listBySubscription(options));
14257
+ let page = result.value || [];
14258
+ continuationToken = result.nextLink;
14259
+ setContinuationToken(page, continuationToken);
14260
+ yield yield tslib.__await(page);
14261
+ }
13874
14262
  while (continuationToken) {
13875
14263
  result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
13876
14264
  continuationToken = result.nextLink;
13877
- yield yield tslib.__await(result.value || []);
14265
+ let page = result.value || [];
14266
+ setContinuationToken(page, continuationToken);
14267
+ yield yield tslib.__await(page);
13878
14268
  }
13879
14269
  });
13880
14270
  }
@@ -14480,20 +14870,31 @@ class ResourceSkusImpl {
14480
14870
  [Symbol.asyncIterator]() {
14481
14871
  return this;
14482
14872
  },
14483
- byPage: () => {
14484
- return this.listSkusPagingPage(options);
14873
+ byPage: (settings) => {
14874
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14875
+ throw new Error("maxPageSize is not supported by this operation.");
14876
+ }
14877
+ return this.listSkusPagingPage(options, settings);
14485
14878
  }
14486
14879
  };
14487
14880
  }
14488
- listSkusPagingPage(options) {
14881
+ listSkusPagingPage(options, settings) {
14489
14882
  return tslib.__asyncGenerator(this, arguments, function* listSkusPagingPage_1() {
14490
- let result = yield tslib.__await(this._listSkus(options));
14491
- yield yield tslib.__await(result.value || []);
14492
- let continuationToken = result.nextLink;
14883
+ let result;
14884
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14885
+ if (!continuationToken) {
14886
+ result = yield tslib.__await(this._listSkus(options));
14887
+ let page = result.value || [];
14888
+ continuationToken = result.nextLink;
14889
+ setContinuationToken(page, continuationToken);
14890
+ yield yield tslib.__await(page);
14891
+ }
14493
14892
  while (continuationToken) {
14494
14893
  result = yield tslib.__await(this._listSkusNext(continuationToken, options));
14495
14894
  continuationToken = result.nextLink;
14496
- yield yield tslib.__await(result.value || []);
14895
+ let page = result.value || [];
14896
+ setContinuationToken(page, continuationToken);
14897
+ yield yield tslib.__await(page);
14497
14898
  }
14498
14899
  });
14499
14900
  }
@@ -14603,20 +15004,31 @@ class ServicesImpl {
14603
15004
  [Symbol.asyncIterator]() {
14604
15005
  return this;
14605
15006
  },
14606
- byPage: () => {
14607
- return this.listSkusPagingPage(groupName, serviceName, options);
15007
+ byPage: (settings) => {
15008
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15009
+ throw new Error("maxPageSize is not supported by this operation.");
15010
+ }
15011
+ return this.listSkusPagingPage(groupName, serviceName, options, settings);
14608
15012
  }
14609
15013
  };
14610
15014
  }
14611
- listSkusPagingPage(groupName, serviceName, options) {
15015
+ listSkusPagingPage(groupName, serviceName, options, settings) {
14612
15016
  return tslib.__asyncGenerator(this, arguments, function* listSkusPagingPage_1() {
14613
- let result = yield tslib.__await(this._listSkus(groupName, serviceName, options));
14614
- yield yield tslib.__await(result.value || []);
14615
- let continuationToken = result.nextLink;
15017
+ let result;
15018
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15019
+ if (!continuationToken) {
15020
+ result = yield tslib.__await(this._listSkus(groupName, serviceName, options));
15021
+ let page = result.value || [];
15022
+ continuationToken = result.nextLink;
15023
+ setContinuationToken(page, continuationToken);
15024
+ yield yield tslib.__await(page);
15025
+ }
14616
15026
  while (continuationToken) {
14617
15027
  result = yield tslib.__await(this._listSkusNext(groupName, serviceName, continuationToken, options));
14618
15028
  continuationToken = result.nextLink;
14619
- yield yield tslib.__await(result.value || []);
15029
+ let page = result.value || [];
15030
+ setContinuationToken(page, continuationToken);
15031
+ yield yield tslib.__await(page);
14620
15032
  }
14621
15033
  });
14622
15034
  }
@@ -14653,20 +15065,31 @@ class ServicesImpl {
14653
15065
  [Symbol.asyncIterator]() {
14654
15066
  return this;
14655
15067
  },
14656
- byPage: () => {
14657
- return this.listByResourceGroupPagingPage(groupName, options);
15068
+ byPage: (settings) => {
15069
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15070
+ throw new Error("maxPageSize is not supported by this operation.");
15071
+ }
15072
+ return this.listByResourceGroupPagingPage(groupName, options, settings);
14658
15073
  }
14659
15074
  };
14660
15075
  }
14661
- listByResourceGroupPagingPage(groupName, options) {
15076
+ listByResourceGroupPagingPage(groupName, options, settings) {
14662
15077
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
14663
- let result = yield tslib.__await(this._listByResourceGroup(groupName, options));
14664
- yield yield tslib.__await(result.value || []);
14665
- let continuationToken = result.nextLink;
15078
+ let result;
15079
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15080
+ if (!continuationToken) {
15081
+ result = yield tslib.__await(this._listByResourceGroup(groupName, options));
15082
+ let page = result.value || [];
15083
+ continuationToken = result.nextLink;
15084
+ setContinuationToken(page, continuationToken);
15085
+ yield yield tslib.__await(page);
15086
+ }
14666
15087
  while (continuationToken) {
14667
15088
  result = yield tslib.__await(this._listByResourceGroupNext(groupName, continuationToken, options));
14668
15089
  continuationToken = result.nextLink;
14669
- yield yield tslib.__await(result.value || []);
15090
+ let page = result.value || [];
15091
+ setContinuationToken(page, continuationToken);
15092
+ yield yield tslib.__await(page);
14670
15093
  }
14671
15094
  });
14672
15095
  }
@@ -14702,20 +15125,31 @@ class ServicesImpl {
14702
15125
  [Symbol.asyncIterator]() {
14703
15126
  return this;
14704
15127
  },
14705
- byPage: () => {
14706
- return this.listPagingPage(options);
15128
+ byPage: (settings) => {
15129
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15130
+ throw new Error("maxPageSize is not supported by this operation.");
15131
+ }
15132
+ return this.listPagingPage(options, settings);
14707
15133
  }
14708
15134
  };
14709
15135
  }
14710
- listPagingPage(options) {
15136
+ listPagingPage(options, settings) {
14711
15137
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
14712
- let result = yield tslib.__await(this._list(options));
14713
- yield yield tslib.__await(result.value || []);
14714
- let continuationToken = result.nextLink;
15138
+ let result;
15139
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15140
+ if (!continuationToken) {
15141
+ result = yield tslib.__await(this._list(options));
15142
+ let page = result.value || [];
15143
+ continuationToken = result.nextLink;
15144
+ setContinuationToken(page, continuationToken);
15145
+ yield yield tslib.__await(page);
15146
+ }
14715
15147
  while (continuationToken) {
14716
15148
  result = yield tslib.__await(this._listNext(continuationToken, options));
14717
15149
  continuationToken = result.nextLink;
14718
- yield yield tslib.__await(result.value || []);
15150
+ let page = result.value || [];
15151
+ setContinuationToken(page, continuationToken);
15152
+ yield yield tslib.__await(page);
14719
15153
  }
14720
15154
  });
14721
15155
  }
@@ -15493,20 +15927,31 @@ class TasksImpl {
15493
15927
  [Symbol.asyncIterator]() {
15494
15928
  return this;
15495
15929
  },
15496
- byPage: () => {
15497
- return this.listPagingPage(groupName, serviceName, projectName, options);
15930
+ byPage: (settings) => {
15931
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15932
+ throw new Error("maxPageSize is not supported by this operation.");
15933
+ }
15934
+ return this.listPagingPage(groupName, serviceName, projectName, options, settings);
15498
15935
  }
15499
15936
  };
15500
15937
  }
15501
- listPagingPage(groupName, serviceName, projectName, options) {
15938
+ listPagingPage(groupName, serviceName, projectName, options, settings) {
15502
15939
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
15503
- let result = yield tslib.__await(this._list(groupName, serviceName, projectName, options));
15504
- yield yield tslib.__await(result.value || []);
15505
- let continuationToken = result.nextLink;
15940
+ let result;
15941
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15942
+ if (!continuationToken) {
15943
+ result = yield tslib.__await(this._list(groupName, serviceName, projectName, options));
15944
+ let page = result.value || [];
15945
+ continuationToken = result.nextLink;
15946
+ setContinuationToken(page, continuationToken);
15947
+ yield yield tslib.__await(page);
15948
+ }
15506
15949
  while (continuationToken) {
15507
15950
  result = yield tslib.__await(this._listNext(groupName, serviceName, projectName, continuationToken, options));
15508
15951
  continuationToken = result.nextLink;
15509
- yield yield tslib.__await(result.value || []);
15952
+ let page = result.value || [];
15953
+ setContinuationToken(page, continuationToken);
15954
+ yield yield tslib.__await(page);
15510
15955
  }
15511
15956
  });
15512
15957
  }
@@ -15857,20 +16302,31 @@ class ServiceTasksImpl {
15857
16302
  [Symbol.asyncIterator]() {
15858
16303
  return this;
15859
16304
  },
15860
- byPage: () => {
15861
- return this.listPagingPage(groupName, serviceName, options);
16305
+ byPage: (settings) => {
16306
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
16307
+ throw new Error("maxPageSize is not supported by this operation.");
16308
+ }
16309
+ return this.listPagingPage(groupName, serviceName, options, settings);
15862
16310
  }
15863
16311
  };
15864
16312
  }
15865
- listPagingPage(groupName, serviceName, options) {
16313
+ listPagingPage(groupName, serviceName, options, settings) {
15866
16314
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
15867
- let result = yield tslib.__await(this._list(groupName, serviceName, options));
15868
- yield yield tslib.__await(result.value || []);
15869
- let continuationToken = result.nextLink;
16315
+ let result;
16316
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
16317
+ if (!continuationToken) {
16318
+ result = yield tslib.__await(this._list(groupName, serviceName, options));
16319
+ let page = result.value || [];
16320
+ continuationToken = result.nextLink;
16321
+ setContinuationToken(page, continuationToken);
16322
+ yield yield tslib.__await(page);
16323
+ }
15870
16324
  while (continuationToken) {
15871
16325
  result = yield tslib.__await(this._listNext(groupName, serviceName, continuationToken, options));
15872
16326
  continuationToken = result.nextLink;
15873
- yield yield tslib.__await(result.value || []);
16327
+ let page = result.value || [];
16328
+ setContinuationToken(page, continuationToken);
16329
+ yield yield tslib.__await(page);
15874
16330
  }
15875
16331
  });
15876
16332
  }
@@ -16168,20 +16624,31 @@ class ProjectsImpl {
16168
16624
  [Symbol.asyncIterator]() {
16169
16625
  return this;
16170
16626
  },
16171
- byPage: () => {
16172
- return this.listPagingPage(groupName, serviceName, options);
16627
+ byPage: (settings) => {
16628
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
16629
+ throw new Error("maxPageSize is not supported by this operation.");
16630
+ }
16631
+ return this.listPagingPage(groupName, serviceName, options, settings);
16173
16632
  }
16174
16633
  };
16175
16634
  }
16176
- listPagingPage(groupName, serviceName, options) {
16635
+ listPagingPage(groupName, serviceName, options, settings) {
16177
16636
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
16178
- let result = yield tslib.__await(this._list(groupName, serviceName, options));
16179
- yield yield tslib.__await(result.value || []);
16180
- let continuationToken = result.nextLink;
16637
+ let result;
16638
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
16639
+ if (!continuationToken) {
16640
+ result = yield tslib.__await(this._list(groupName, serviceName, options));
16641
+ let page = result.value || [];
16642
+ continuationToken = result.nextLink;
16643
+ setContinuationToken(page, continuationToken);
16644
+ yield yield tslib.__await(page);
16645
+ }
16181
16646
  while (continuationToken) {
16182
16647
  result = yield tslib.__await(this._listNext(groupName, serviceName, continuationToken, options));
16183
16648
  continuationToken = result.nextLink;
16184
- yield yield tslib.__await(result.value || []);
16649
+ let page = result.value || [];
16650
+ setContinuationToken(page, continuationToken);
16651
+ yield yield tslib.__await(page);
16185
16652
  }
16186
16653
  });
16187
16654
  }
@@ -16442,20 +16909,31 @@ class UsagesImpl {
16442
16909
  [Symbol.asyncIterator]() {
16443
16910
  return this;
16444
16911
  },
16445
- byPage: () => {
16446
- return this.listPagingPage(location, options);
16912
+ byPage: (settings) => {
16913
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
16914
+ throw new Error("maxPageSize is not supported by this operation.");
16915
+ }
16916
+ return this.listPagingPage(location, options, settings);
16447
16917
  }
16448
16918
  };
16449
16919
  }
16450
- listPagingPage(location, options) {
16920
+ listPagingPage(location, options, settings) {
16451
16921
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
16452
- let result = yield tslib.__await(this._list(location, options));
16453
- yield yield tslib.__await(result.value || []);
16454
- let continuationToken = result.nextLink;
16922
+ let result;
16923
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
16924
+ if (!continuationToken) {
16925
+ result = yield tslib.__await(this._list(location, options));
16926
+ let page = result.value || [];
16927
+ continuationToken = result.nextLink;
16928
+ setContinuationToken(page, continuationToken);
16929
+ yield yield tslib.__await(page);
16930
+ }
16455
16931
  while (continuationToken) {
16456
16932
  result = yield tslib.__await(this._listNext(location, continuationToken, options));
16457
16933
  continuationToken = result.nextLink;
16458
- yield yield tslib.__await(result.value || []);
16934
+ let page = result.value || [];
16935
+ setContinuationToken(page, continuationToken);
16936
+ yield yield tslib.__await(page);
16459
16937
  }
16460
16938
  });
16461
16939
  }
@@ -16574,20 +17052,31 @@ class FilesImpl {
16574
17052
  [Symbol.asyncIterator]() {
16575
17053
  return this;
16576
17054
  },
16577
- byPage: () => {
16578
- return this.listPagingPage(groupName, serviceName, projectName, options);
17055
+ byPage: (settings) => {
17056
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
17057
+ throw new Error("maxPageSize is not supported by this operation.");
17058
+ }
17059
+ return this.listPagingPage(groupName, serviceName, projectName, options, settings);
16579
17060
  }
16580
17061
  };
16581
17062
  }
16582
- listPagingPage(groupName, serviceName, projectName, options) {
17063
+ listPagingPage(groupName, serviceName, projectName, options, settings) {
16583
17064
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
16584
- let result = yield tslib.__await(this._list(groupName, serviceName, projectName, options));
16585
- yield yield tslib.__await(result.value || []);
16586
- let continuationToken = result.nextLink;
17065
+ let result;
17066
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
17067
+ if (!continuationToken) {
17068
+ result = yield tslib.__await(this._list(groupName, serviceName, projectName, options));
17069
+ let page = result.value || [];
17070
+ continuationToken = result.nextLink;
17071
+ setContinuationToken(page, continuationToken);
17072
+ yield yield tslib.__await(page);
17073
+ }
16587
17074
  while (continuationToken) {
16588
17075
  result = yield tslib.__await(this._listNext(groupName, serviceName, projectName, continuationToken, options));
16589
17076
  continuationToken = result.nextLink;
16590
- yield yield tslib.__await(result.value || []);
17077
+ let page = result.value || [];
17078
+ setContinuationToken(page, continuationToken);
17079
+ yield yield tslib.__await(page);
16591
17080
  }
16592
17081
  });
16593
17082
  }
@@ -16909,7 +17398,7 @@ class DataMigrationManagementClient extends coreClient__namespace.ServiceClient
16909
17398
  * @param options The parameter options
16910
17399
  */
16911
17400
  constructor(credentials, subscriptionId, options) {
16912
- var _a, _b;
17401
+ var _a, _b, _c;
16913
17402
  if (credentials === undefined) {
16914
17403
  throw new Error("'credentials' cannot be null");
16915
17404
  }
@@ -16924,32 +17413,34 @@ class DataMigrationManagementClient extends coreClient__namespace.ServiceClient
16924
17413
  requestContentType: "application/json; charset=utf-8",
16925
17414
  credential: credentials
16926
17415
  };
16927
- const packageDetails = `azsdk-js-arm-datamigration/3.0.0-beta.2`;
17416
+ const packageDetails = `azsdk-js-arm-datamigration/3.0.0-beta.3`;
16928
17417
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
16929
17418
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
16930
17419
  : `${packageDetails}`;
16931
- if (!options.credentialScopes) {
16932
- options.credentialScopes = ["https://management.azure.com/.default"];
16933
- }
16934
17420
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
16935
17421
  userAgentPrefix
16936
- }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
17422
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
16937
17423
  super(optionsWithDefaults);
17424
+ let bearerTokenAuthenticationPolicyFound = false;
16938
17425
  if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
16939
17426
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
16940
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
17427
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
16941
17428
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
16942
- if (!bearerTokenAuthenticationPolicyFound) {
16943
- this.pipeline.removePolicy({
16944
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
16945
- });
16946
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
16947
- scopes: `${optionsWithDefaults.baseUri}/.default`,
16948
- challengeCallbacks: {
16949
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
16950
- }
16951
- }));
16952
- }
17429
+ }
17430
+ if (!options ||
17431
+ !options.pipeline ||
17432
+ options.pipeline.getOrderedPolicies().length == 0 ||
17433
+ !bearerTokenAuthenticationPolicyFound) {
17434
+ this.pipeline.removePolicy({
17435
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
17436
+ });
17437
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
17438
+ credential: credentials,
17439
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
17440
+ challengeCallbacks: {
17441
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
17442
+ }
17443
+ }));
16953
17444
  }
16954
17445
  // Parameter assignments
16955
17446
  this.subscriptionId = subscriptionId;
@@ -16967,8 +17458,37 @@ class DataMigrationManagementClient extends coreClient__namespace.ServiceClient
16967
17458
  this.projects = new ProjectsImpl(this);
16968
17459
  this.usages = new UsagesImpl(this);
16969
17460
  this.files = new FilesImpl(this);
17461
+ this.addCustomApiVersionPolicy(options.apiVersion);
17462
+ }
17463
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
17464
+ addCustomApiVersionPolicy(apiVersion) {
17465
+ if (!apiVersion) {
17466
+ return;
17467
+ }
17468
+ const apiVersionPolicy = {
17469
+ name: "CustomApiVersionPolicy",
17470
+ sendRequest(request, next) {
17471
+ return tslib.__awaiter(this, void 0, void 0, function* () {
17472
+ const param = request.url.split("?");
17473
+ if (param.length > 1) {
17474
+ const newParams = param[1].split("&").map((item) => {
17475
+ if (item.indexOf("api-version") > -1) {
17476
+ return "api-version=" + apiVersion;
17477
+ }
17478
+ else {
17479
+ return item;
17480
+ }
17481
+ });
17482
+ request.url = param[0] + "?" + newParams.join("&");
17483
+ }
17484
+ return next(request);
17485
+ });
17486
+ }
17487
+ };
17488
+ this.pipeline.addPolicy(apiVersionPolicy);
16970
17489
  }
16971
17490
  }
16972
17491
 
16973
17492
  exports.DataMigrationManagementClient = DataMigrationManagementClient;
17493
+ exports.getContinuationToken = getContinuationToken;
16974
17494
  //# sourceMappingURL=index.js.map