@azure/arm-datamigration 3.0.0-alpha.20250103.1 → 3.0.0-alpha.20250106.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.
- package/dist/index.js +146 -146
- package/dist/index.js.map +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
|
|
47
47
|
if (typeof page !== "object" || page === null) {
|
48
48
|
return undefined;
|
49
49
|
}
|
50
|
-
return (_a = pageMap.get(page)) === null || _a ===
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
|
51
51
|
}
|
52
52
|
function setContinuationToken(page, continuationToken) {
|
53
53
|
var _a;
|
54
54
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
55
55
|
return;
|
56
56
|
}
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !==
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
|
58
58
|
pageInfo.continuationToken = continuationToken;
|
59
59
|
pageMap.set(page, pageInfo);
|
60
60
|
}
|
@@ -13333,12 +13333,12 @@ class LroImpl {
|
|
13333
13333
|
this.requestMethod = requestMethod;
|
13334
13334
|
}
|
13335
13335
|
sendInitialRequest() {
|
13336
|
-
return tslib.__awaiter(this,
|
13336
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
13337
13337
|
return this.sendOperationFn(this.args, this.spec);
|
13338
13338
|
});
|
13339
13339
|
}
|
13340
13340
|
sendPollRequest(path) {
|
13341
|
-
return tslib.__awaiter(this,
|
13341
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
13342
13342
|
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
13343
13343
|
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
13344
13344
|
});
|
@@ -13382,17 +13382,17 @@ class DatabaseMigrationsSqlMiImpl {
|
|
13382
13382
|
* @param options The options parameters.
|
13383
13383
|
*/
|
13384
13384
|
beginCreateOrUpdate(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
|
13385
|
-
return tslib.__awaiter(this,
|
13386
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
13385
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
13386
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
13387
13387
|
return this.client.sendOperationRequest(args, spec);
|
13388
13388
|
});
|
13389
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
13389
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
13390
13390
|
var _a;
|
13391
13391
|
let currentRawResponse = undefined;
|
13392
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
13392
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
13393
13393
|
const callback = (rawResponse, flatResponse) => {
|
13394
13394
|
currentRawResponse = rawResponse;
|
13395
|
-
providedCallback === null || providedCallback ===
|
13395
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
13396
13396
|
};
|
13397
13397
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
13398
13398
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -13413,8 +13413,8 @@ class DatabaseMigrationsSqlMiImpl {
|
|
13413
13413
|
options
|
13414
13414
|
}, createOrUpdateOperationSpec$7);
|
13415
13415
|
const poller = new coreLro.LroEngine(lro, {
|
13416
|
-
resumeFrom: options === null || options ===
|
13417
|
-
intervalInMs: options === null || options ===
|
13416
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
13417
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
13418
13418
|
});
|
13419
13419
|
yield poller.poll();
|
13420
13420
|
return poller;
|
@@ -13430,7 +13430,7 @@ class DatabaseMigrationsSqlMiImpl {
|
|
13430
13430
|
* @param options The options parameters.
|
13431
13431
|
*/
|
13432
13432
|
beginCreateOrUpdateAndWait(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
|
13433
|
-
return tslib.__awaiter(this,
|
13433
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
13434
13434
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, managedInstanceName, targetDbName, parameters, options);
|
13435
13435
|
return poller.pollUntilDone();
|
13436
13436
|
});
|
@@ -13445,17 +13445,17 @@ class DatabaseMigrationsSqlMiImpl {
|
|
13445
13445
|
* @param options The options parameters.
|
13446
13446
|
*/
|
13447
13447
|
beginCancel(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
|
13448
|
-
return tslib.__awaiter(this,
|
13449
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
13448
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
13449
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
13450
13450
|
return this.client.sendOperationRequest(args, spec);
|
13451
13451
|
});
|
13452
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
13452
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
13453
13453
|
var _a;
|
13454
13454
|
let currentRawResponse = undefined;
|
13455
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
13455
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
13456
13456
|
const callback = (rawResponse, flatResponse) => {
|
13457
13457
|
currentRawResponse = rawResponse;
|
13458
|
-
providedCallback === null || providedCallback ===
|
13458
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
13459
13459
|
};
|
13460
13460
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
13461
13461
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -13476,8 +13476,8 @@ class DatabaseMigrationsSqlMiImpl {
|
|
13476
13476
|
options
|
13477
13477
|
}, cancelOperationSpec$3);
|
13478
13478
|
const poller = new coreLro.LroEngine(lro, {
|
13479
|
-
resumeFrom: options === null || options ===
|
13480
|
-
intervalInMs: options === null || options ===
|
13479
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
13480
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
13481
13481
|
});
|
13482
13482
|
yield poller.poll();
|
13483
13483
|
return poller;
|
@@ -13493,7 +13493,7 @@ class DatabaseMigrationsSqlMiImpl {
|
|
13493
13493
|
* @param options The options parameters.
|
13494
13494
|
*/
|
13495
13495
|
beginCancelAndWait(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
|
13496
|
-
return tslib.__awaiter(this,
|
13496
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
13497
13497
|
const poller = yield this.beginCancel(resourceGroupName, managedInstanceName, targetDbName, parameters, options);
|
13498
13498
|
return poller.pollUntilDone();
|
13499
13499
|
});
|
@@ -13508,17 +13508,17 @@ class DatabaseMigrationsSqlMiImpl {
|
|
13508
13508
|
* @param options The options parameters.
|
13509
13509
|
*/
|
13510
13510
|
beginCutover(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
|
13511
|
-
return tslib.__awaiter(this,
|
13512
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
13511
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
13512
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
13513
13513
|
return this.client.sendOperationRequest(args, spec);
|
13514
13514
|
});
|
13515
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
13515
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
13516
13516
|
var _a;
|
13517
13517
|
let currentRawResponse = undefined;
|
13518
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
13518
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
13519
13519
|
const callback = (rawResponse, flatResponse) => {
|
13520
13520
|
currentRawResponse = rawResponse;
|
13521
|
-
providedCallback === null || providedCallback ===
|
13521
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
13522
13522
|
};
|
13523
13523
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
13524
13524
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -13539,8 +13539,8 @@ class DatabaseMigrationsSqlMiImpl {
|
|
13539
13539
|
options
|
13540
13540
|
}, cutoverOperationSpec$1);
|
13541
13541
|
const poller = new coreLro.LroEngine(lro, {
|
13542
|
-
resumeFrom: options === null || options ===
|
13543
|
-
intervalInMs: options === null || options ===
|
13542
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
13543
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
13544
13544
|
});
|
13545
13545
|
yield poller.poll();
|
13546
13546
|
return poller;
|
@@ -13556,7 +13556,7 @@ class DatabaseMigrationsSqlMiImpl {
|
|
13556
13556
|
* @param options The options parameters.
|
13557
13557
|
*/
|
13558
13558
|
beginCutoverAndWait(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
|
13559
|
-
return tslib.__awaiter(this,
|
13559
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
13560
13560
|
const poller = yield this.beginCutover(resourceGroupName, managedInstanceName, targetDbName, parameters, options);
|
13561
13561
|
return poller.pollUntilDone();
|
13562
13562
|
});
|
@@ -13691,17 +13691,17 @@ class DatabaseMigrationsSqlVmImpl {
|
|
13691
13691
|
* @param options The options parameters.
|
13692
13692
|
*/
|
13693
13693
|
beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, targetDbName, parameters, options) {
|
13694
|
-
return tslib.__awaiter(this,
|
13695
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
13694
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
13695
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
13696
13696
|
return this.client.sendOperationRequest(args, spec);
|
13697
13697
|
});
|
13698
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
13698
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
13699
13699
|
var _a;
|
13700
13700
|
let currentRawResponse = undefined;
|
13701
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
13701
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
13702
13702
|
const callback = (rawResponse, flatResponse) => {
|
13703
13703
|
currentRawResponse = rawResponse;
|
13704
|
-
providedCallback === null || providedCallback ===
|
13704
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
13705
13705
|
};
|
13706
13706
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
13707
13707
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -13722,8 +13722,8 @@ class DatabaseMigrationsSqlVmImpl {
|
|
13722
13722
|
options
|
13723
13723
|
}, createOrUpdateOperationSpec$6);
|
13724
13724
|
const poller = new coreLro.LroEngine(lro, {
|
13725
|
-
resumeFrom: options === null || options ===
|
13726
|
-
intervalInMs: options === null || options ===
|
13725
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
13726
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
13727
13727
|
});
|
13728
13728
|
yield poller.poll();
|
13729
13729
|
return poller;
|
@@ -13739,7 +13739,7 @@ class DatabaseMigrationsSqlVmImpl {
|
|
13739
13739
|
* @param options The options parameters.
|
13740
13740
|
*/
|
13741
13741
|
beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineName, targetDbName, parameters, options) {
|
13742
|
-
return tslib.__awaiter(this,
|
13742
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
13743
13743
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, targetDbName, parameters, options);
|
13744
13744
|
return poller.pollUntilDone();
|
13745
13745
|
});
|
@@ -13754,17 +13754,17 @@ class DatabaseMigrationsSqlVmImpl {
|
|
13754
13754
|
* @param options The options parameters.
|
13755
13755
|
*/
|
13756
13756
|
beginCancel(resourceGroupName, sqlVirtualMachineName, targetDbName, parameters, options) {
|
13757
|
-
return tslib.__awaiter(this,
|
13758
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
13757
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
13758
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
13759
13759
|
return this.client.sendOperationRequest(args, spec);
|
13760
13760
|
});
|
13761
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
13761
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
13762
13762
|
var _a;
|
13763
13763
|
let currentRawResponse = undefined;
|
13764
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
13764
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
13765
13765
|
const callback = (rawResponse, flatResponse) => {
|
13766
13766
|
currentRawResponse = rawResponse;
|
13767
|
-
providedCallback === null || providedCallback ===
|
13767
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
13768
13768
|
};
|
13769
13769
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
13770
13770
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -13785,8 +13785,8 @@ class DatabaseMigrationsSqlVmImpl {
|
|
13785
13785
|
options
|
13786
13786
|
}, cancelOperationSpec$2);
|
13787
13787
|
const poller = new coreLro.LroEngine(lro, {
|
13788
|
-
resumeFrom: options === null || options ===
|
13789
|
-
intervalInMs: options === null || options ===
|
13788
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
13789
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
13790
13790
|
});
|
13791
13791
|
yield poller.poll();
|
13792
13792
|
return poller;
|
@@ -13802,7 +13802,7 @@ class DatabaseMigrationsSqlVmImpl {
|
|
13802
13802
|
* @param options The options parameters.
|
13803
13803
|
*/
|
13804
13804
|
beginCancelAndWait(resourceGroupName, sqlVirtualMachineName, targetDbName, parameters, options) {
|
13805
|
-
return tslib.__awaiter(this,
|
13805
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
13806
13806
|
const poller = yield this.beginCancel(resourceGroupName, sqlVirtualMachineName, targetDbName, parameters, options);
|
13807
13807
|
return poller.pollUntilDone();
|
13808
13808
|
});
|
@@ -13817,17 +13817,17 @@ class DatabaseMigrationsSqlVmImpl {
|
|
13817
13817
|
* @param options The options parameters.
|
13818
13818
|
*/
|
13819
13819
|
beginCutover(resourceGroupName, sqlVirtualMachineName, targetDbName, parameters, options) {
|
13820
|
-
return tslib.__awaiter(this,
|
13821
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
13820
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
13821
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
13822
13822
|
return this.client.sendOperationRequest(args, spec);
|
13823
13823
|
});
|
13824
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
13824
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
13825
13825
|
var _a;
|
13826
13826
|
let currentRawResponse = undefined;
|
13827
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
13827
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
13828
13828
|
const callback = (rawResponse, flatResponse) => {
|
13829
13829
|
currentRawResponse = rawResponse;
|
13830
|
-
providedCallback === null || providedCallback ===
|
13830
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
13831
13831
|
};
|
13832
13832
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
13833
13833
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -13848,8 +13848,8 @@ class DatabaseMigrationsSqlVmImpl {
|
|
13848
13848
|
options
|
13849
13849
|
}, cutoverOperationSpec);
|
13850
13850
|
const poller = new coreLro.LroEngine(lro, {
|
13851
|
-
resumeFrom: options === null || options ===
|
13852
|
-
intervalInMs: options === null || options ===
|
13851
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
13852
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
13853
13853
|
});
|
13854
13854
|
yield poller.poll();
|
13855
13855
|
return poller;
|
@@ -13865,7 +13865,7 @@ class DatabaseMigrationsSqlVmImpl {
|
|
13865
13865
|
* @param options The options parameters.
|
13866
13866
|
*/
|
13867
13867
|
beginCutoverAndWait(resourceGroupName, sqlVirtualMachineName, targetDbName, parameters, options) {
|
13868
|
-
return tslib.__awaiter(this,
|
13868
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
13869
13869
|
const poller = yield this.beginCutover(resourceGroupName, sqlVirtualMachineName, targetDbName, parameters, options);
|
13870
13870
|
return poller.pollUntilDone();
|
13871
13871
|
});
|
@@ -13994,7 +13994,7 @@ class OperationsImpl {
|
|
13994
13994
|
return this;
|
13995
13995
|
},
|
13996
13996
|
byPage: (settings) => {
|
13997
|
-
if (settings === null || settings ===
|
13997
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
13998
13998
|
throw new Error("maxPageSize is not supported by this operation.");
|
13999
13999
|
}
|
14000
14000
|
return this.listPagingPage(options, settings);
|
@@ -14004,7 +14004,7 @@ class OperationsImpl {
|
|
14004
14004
|
listPagingPage(options, settings) {
|
14005
14005
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
14006
14006
|
let result;
|
14007
|
-
let continuationToken = settings === null || settings ===
|
14007
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
14008
14008
|
if (!continuationToken) {
|
14009
14009
|
result = yield tslib.__await(this._list(options));
|
14010
14010
|
let page = result.value || [];
|
@@ -14121,7 +14121,7 @@ class SqlMigrationServicesImpl {
|
|
14121
14121
|
return this;
|
14122
14122
|
},
|
14123
14123
|
byPage: (settings) => {
|
14124
|
-
if (settings === null || settings ===
|
14124
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
14125
14125
|
throw new Error("maxPageSize is not supported by this operation.");
|
14126
14126
|
}
|
14127
14127
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
@@ -14131,7 +14131,7 @@ class SqlMigrationServicesImpl {
|
|
14131
14131
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
14132
14132
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
14133
14133
|
let result;
|
14134
|
-
let continuationToken = settings === null || settings ===
|
14134
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
14135
14135
|
if (!continuationToken) {
|
14136
14136
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
14137
14137
|
let page = result.value || [];
|
@@ -14185,7 +14185,7 @@ class SqlMigrationServicesImpl {
|
|
14185
14185
|
return this;
|
14186
14186
|
},
|
14187
14187
|
byPage: (settings) => {
|
14188
|
-
if (settings === null || settings ===
|
14188
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
14189
14189
|
throw new Error("maxPageSize is not supported by this operation.");
|
14190
14190
|
}
|
14191
14191
|
return this.listMigrationsPagingPage(resourceGroupName, sqlMigrationServiceName, options, settings);
|
@@ -14195,7 +14195,7 @@ class SqlMigrationServicesImpl {
|
|
14195
14195
|
listMigrationsPagingPage(resourceGroupName, sqlMigrationServiceName, options, settings) {
|
14196
14196
|
return tslib.__asyncGenerator(this, arguments, function* listMigrationsPagingPage_1() {
|
14197
14197
|
let result;
|
14198
|
-
let continuationToken = settings === null || settings ===
|
14198
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
14199
14199
|
if (!continuationToken) {
|
14200
14200
|
result = yield tslib.__await(this._listMigrations(resourceGroupName, sqlMigrationServiceName, options));
|
14201
14201
|
let page = result.value || [];
|
@@ -14246,7 +14246,7 @@ class SqlMigrationServicesImpl {
|
|
14246
14246
|
return this;
|
14247
14247
|
},
|
14248
14248
|
byPage: (settings) => {
|
14249
|
-
if (settings === null || settings ===
|
14249
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
14250
14250
|
throw new Error("maxPageSize is not supported by this operation.");
|
14251
14251
|
}
|
14252
14252
|
return this.listBySubscriptionPagingPage(options, settings);
|
@@ -14256,7 +14256,7 @@ class SqlMigrationServicesImpl {
|
|
14256
14256
|
listBySubscriptionPagingPage(options, settings) {
|
14257
14257
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
14258
14258
|
let result;
|
14259
|
-
let continuationToken = settings === null || settings ===
|
14259
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
14260
14260
|
if (!continuationToken) {
|
14261
14261
|
result = yield tslib.__await(this._listBySubscription(options));
|
14262
14262
|
let page = result.value || [];
|
@@ -14312,17 +14312,17 @@ class SqlMigrationServicesImpl {
|
|
14312
14312
|
* @param options The options parameters.
|
14313
14313
|
*/
|
14314
14314
|
beginCreateOrUpdate(resourceGroupName, sqlMigrationServiceName, parameters, options) {
|
14315
|
-
return tslib.__awaiter(this,
|
14316
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
14315
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
14316
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
14317
14317
|
return this.client.sendOperationRequest(args, spec);
|
14318
14318
|
});
|
14319
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
14319
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
14320
14320
|
var _a;
|
14321
14321
|
let currentRawResponse = undefined;
|
14322
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
14322
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
14323
14323
|
const callback = (rawResponse, flatResponse) => {
|
14324
14324
|
currentRawResponse = rawResponse;
|
14325
|
-
providedCallback === null || providedCallback ===
|
14325
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
14326
14326
|
};
|
14327
14327
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
14328
14328
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -14337,8 +14337,8 @@ class SqlMigrationServicesImpl {
|
|
14337
14337
|
});
|
14338
14338
|
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlMigrationServiceName, parameters, options }, createOrUpdateOperationSpec$5);
|
14339
14339
|
const poller = new coreLro.LroEngine(lro, {
|
14340
|
-
resumeFrom: options === null || options ===
|
14341
|
-
intervalInMs: options === null || options ===
|
14340
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
14341
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
14342
14342
|
});
|
14343
14343
|
yield poller.poll();
|
14344
14344
|
return poller;
|
@@ -14353,7 +14353,7 @@ class SqlMigrationServicesImpl {
|
|
14353
14353
|
* @param options The options parameters.
|
14354
14354
|
*/
|
14355
14355
|
beginCreateOrUpdateAndWait(resourceGroupName, sqlMigrationServiceName, parameters, options) {
|
14356
|
-
return tslib.__awaiter(this,
|
14356
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
14357
14357
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, sqlMigrationServiceName, parameters, options);
|
14358
14358
|
return poller.pollUntilDone();
|
14359
14359
|
});
|
@@ -14366,17 +14366,17 @@ class SqlMigrationServicesImpl {
|
|
14366
14366
|
* @param options The options parameters.
|
14367
14367
|
*/
|
14368
14368
|
beginDelete(resourceGroupName, sqlMigrationServiceName, options) {
|
14369
|
-
return tslib.__awaiter(this,
|
14370
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
14369
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
14370
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
14371
14371
|
return this.client.sendOperationRequest(args, spec);
|
14372
14372
|
});
|
14373
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
14373
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
14374
14374
|
var _a;
|
14375
14375
|
let currentRawResponse = undefined;
|
14376
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
14376
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
14377
14377
|
const callback = (rawResponse, flatResponse) => {
|
14378
14378
|
currentRawResponse = rawResponse;
|
14379
|
-
providedCallback === null || providedCallback ===
|
14379
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
14380
14380
|
};
|
14381
14381
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
14382
14382
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -14391,8 +14391,8 @@ class SqlMigrationServicesImpl {
|
|
14391
14391
|
});
|
14392
14392
|
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlMigrationServiceName, options }, deleteOperationSpec$5);
|
14393
14393
|
const poller = new coreLro.LroEngine(lro, {
|
14394
|
-
resumeFrom: options === null || options ===
|
14395
|
-
intervalInMs: options === null || options ===
|
14394
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
14395
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
14396
14396
|
});
|
14397
14397
|
yield poller.poll();
|
14398
14398
|
return poller;
|
@@ -14406,7 +14406,7 @@ class SqlMigrationServicesImpl {
|
|
14406
14406
|
* @param options The options parameters.
|
14407
14407
|
*/
|
14408
14408
|
beginDeleteAndWait(resourceGroupName, sqlMigrationServiceName, options) {
|
14409
|
-
return tslib.__awaiter(this,
|
14409
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
14410
14410
|
const poller = yield this.beginDelete(resourceGroupName, sqlMigrationServiceName, options);
|
14411
14411
|
return poller.pollUntilDone();
|
14412
14412
|
});
|
@@ -14420,17 +14420,17 @@ class SqlMigrationServicesImpl {
|
|
14420
14420
|
* @param options The options parameters.
|
14421
14421
|
*/
|
14422
14422
|
beginUpdate(resourceGroupName, sqlMigrationServiceName, parameters, options) {
|
14423
|
-
return tslib.__awaiter(this,
|
14424
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
14423
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
14424
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
14425
14425
|
return this.client.sendOperationRequest(args, spec);
|
14426
14426
|
});
|
14427
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
14427
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
14428
14428
|
var _a;
|
14429
14429
|
let currentRawResponse = undefined;
|
14430
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
14430
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
14431
14431
|
const callback = (rawResponse, flatResponse) => {
|
14432
14432
|
currentRawResponse = rawResponse;
|
14433
|
-
providedCallback === null || providedCallback ===
|
14433
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
14434
14434
|
};
|
14435
14435
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
14436
14436
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -14445,8 +14445,8 @@ class SqlMigrationServicesImpl {
|
|
14445
14445
|
});
|
14446
14446
|
const lro = new LroImpl(sendOperation, { resourceGroupName, sqlMigrationServiceName, parameters, options }, updateOperationSpec$5);
|
14447
14447
|
const poller = new coreLro.LroEngine(lro, {
|
14448
|
-
resumeFrom: options === null || options ===
|
14449
|
-
intervalInMs: options === null || options ===
|
14448
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
14449
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
14450
14450
|
});
|
14451
14451
|
yield poller.poll();
|
14452
14452
|
return poller;
|
@@ -14461,7 +14461,7 @@ class SqlMigrationServicesImpl {
|
|
14461
14461
|
* @param options The options parameters.
|
14462
14462
|
*/
|
14463
14463
|
beginUpdateAndWait(resourceGroupName, sqlMigrationServiceName, parameters, options) {
|
14464
|
-
return tslib.__awaiter(this,
|
14464
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
14465
14465
|
const poller = yield this.beginUpdate(resourceGroupName, sqlMigrationServiceName, parameters, options);
|
14466
14466
|
return poller.pollUntilDone();
|
14467
14467
|
});
|
@@ -14878,7 +14878,7 @@ class ResourceSkusImpl {
|
|
14878
14878
|
return this;
|
14879
14879
|
},
|
14880
14880
|
byPage: (settings) => {
|
14881
|
-
if (settings === null || settings ===
|
14881
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
14882
14882
|
throw new Error("maxPageSize is not supported by this operation.");
|
14883
14883
|
}
|
14884
14884
|
return this.listSkusPagingPage(options, settings);
|
@@ -14888,7 +14888,7 @@ class ResourceSkusImpl {
|
|
14888
14888
|
listSkusPagingPage(options, settings) {
|
14889
14889
|
return tslib.__asyncGenerator(this, arguments, function* listSkusPagingPage_1() {
|
14890
14890
|
let result;
|
14891
|
-
let continuationToken = settings === null || settings ===
|
14891
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
14892
14892
|
if (!continuationToken) {
|
14893
14893
|
result = yield tslib.__await(this._listSkus(options));
|
14894
14894
|
let page = result.value || [];
|
@@ -15014,7 +15014,7 @@ class ServicesImpl {
|
|
15014
15014
|
return this;
|
15015
15015
|
},
|
15016
15016
|
byPage: (settings) => {
|
15017
|
-
if (settings === null || settings ===
|
15017
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
15018
15018
|
throw new Error("maxPageSize is not supported by this operation.");
|
15019
15019
|
}
|
15020
15020
|
return this.listSkusPagingPage(groupName, serviceName, options, settings);
|
@@ -15024,7 +15024,7 @@ class ServicesImpl {
|
|
15024
15024
|
listSkusPagingPage(groupName, serviceName, options, settings) {
|
15025
15025
|
return tslib.__asyncGenerator(this, arguments, function* listSkusPagingPage_1() {
|
15026
15026
|
let result;
|
15027
|
-
let continuationToken = settings === null || settings ===
|
15027
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
15028
15028
|
if (!continuationToken) {
|
15029
15029
|
result = yield tslib.__await(this._listSkus(groupName, serviceName, options));
|
15030
15030
|
let page = result.value || [];
|
@@ -15077,7 +15077,7 @@ class ServicesImpl {
|
|
15077
15077
|
return this;
|
15078
15078
|
},
|
15079
15079
|
byPage: (settings) => {
|
15080
|
-
if (settings === null || settings ===
|
15080
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
15081
15081
|
throw new Error("maxPageSize is not supported by this operation.");
|
15082
15082
|
}
|
15083
15083
|
return this.listByResourceGroupPagingPage(groupName, options, settings);
|
@@ -15087,7 +15087,7 @@ class ServicesImpl {
|
|
15087
15087
|
listByResourceGroupPagingPage(groupName, options, settings) {
|
15088
15088
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
15089
15089
|
let result;
|
15090
|
-
let continuationToken = settings === null || settings ===
|
15090
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
15091
15091
|
if (!continuationToken) {
|
15092
15092
|
result = yield tslib.__await(this._listByResourceGroup(groupName, options));
|
15093
15093
|
let page = result.value || [];
|
@@ -15139,7 +15139,7 @@ class ServicesImpl {
|
|
15139
15139
|
return this;
|
15140
15140
|
},
|
15141
15141
|
byPage: (settings) => {
|
15142
|
-
if (settings === null || settings ===
|
15142
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
15143
15143
|
throw new Error("maxPageSize is not supported by this operation.");
|
15144
15144
|
}
|
15145
15145
|
return this.listPagingPage(options, settings);
|
@@ -15149,7 +15149,7 @@ class ServicesImpl {
|
|
15149
15149
|
listPagingPage(options, settings) {
|
15150
15150
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
15151
15151
|
let result;
|
15152
|
-
let continuationToken = settings === null || settings ===
|
15152
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
15153
15153
|
if (!continuationToken) {
|
15154
15154
|
result = yield tslib.__await(this._list(options));
|
15155
15155
|
let page = result.value || [];
|
@@ -15201,17 +15201,17 @@ class ServicesImpl {
|
|
15201
15201
|
* @param options The options parameters.
|
15202
15202
|
*/
|
15203
15203
|
beginCreateOrUpdate(groupName, serviceName, parameters, options) {
|
15204
|
-
return tslib.__awaiter(this,
|
15205
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
15204
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
15205
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
15206
15206
|
return this.client.sendOperationRequest(args, spec);
|
15207
15207
|
});
|
15208
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
15208
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
15209
15209
|
var _a;
|
15210
15210
|
let currentRawResponse = undefined;
|
15211
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
15211
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
15212
15212
|
const callback = (rawResponse, flatResponse) => {
|
15213
15213
|
currentRawResponse = rawResponse;
|
15214
|
-
providedCallback === null || providedCallback ===
|
15214
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
15215
15215
|
};
|
15216
15216
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
15217
15217
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -15226,8 +15226,8 @@ class ServicesImpl {
|
|
15226
15226
|
});
|
15227
15227
|
const lro = new LroImpl(sendOperation, { groupName, serviceName, parameters, options }, createOrUpdateOperationSpec$4);
|
15228
15228
|
const poller = new coreLro.LroEngine(lro, {
|
15229
|
-
resumeFrom: options === null || options ===
|
15230
|
-
intervalInMs: options === null || options ===
|
15229
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
15230
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
15231
15231
|
});
|
15232
15232
|
yield poller.poll();
|
15233
15233
|
return poller;
|
@@ -15248,7 +15248,7 @@ class ServicesImpl {
|
|
15248
15248
|
* @param options The options parameters.
|
15249
15249
|
*/
|
15250
15250
|
beginCreateOrUpdateAndWait(groupName, serviceName, parameters, options) {
|
15251
|
-
return tslib.__awaiter(this,
|
15251
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
15252
15252
|
const poller = yield this.beginCreateOrUpdate(groupName, serviceName, parameters, options);
|
15253
15253
|
return poller.pollUntilDone();
|
15254
15254
|
});
|
@@ -15271,17 +15271,17 @@ class ServicesImpl {
|
|
15271
15271
|
* @param options The options parameters.
|
15272
15272
|
*/
|
15273
15273
|
beginDelete(groupName, serviceName, options) {
|
15274
|
-
return tslib.__awaiter(this,
|
15275
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
15274
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
15275
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
15276
15276
|
return this.client.sendOperationRequest(args, spec);
|
15277
15277
|
});
|
15278
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
15278
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
15279
15279
|
var _a;
|
15280
15280
|
let currentRawResponse = undefined;
|
15281
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
15281
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
15282
15282
|
const callback = (rawResponse, flatResponse) => {
|
15283
15283
|
currentRawResponse = rawResponse;
|
15284
|
-
providedCallback === null || providedCallback ===
|
15284
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
15285
15285
|
};
|
15286
15286
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
15287
15287
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -15296,8 +15296,8 @@ class ServicesImpl {
|
|
15296
15296
|
});
|
15297
15297
|
const lro = new LroImpl(sendOperation, { groupName, serviceName, options }, deleteOperationSpec$4);
|
15298
15298
|
const poller = new coreLro.LroEngine(lro, {
|
15299
|
-
resumeFrom: options === null || options ===
|
15300
|
-
intervalInMs: options === null || options ===
|
15299
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
15300
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
15301
15301
|
});
|
15302
15302
|
yield poller.poll();
|
15303
15303
|
return poller;
|
@@ -15311,7 +15311,7 @@ class ServicesImpl {
|
|
15311
15311
|
* @param options The options parameters.
|
15312
15312
|
*/
|
15313
15313
|
beginDeleteAndWait(groupName, serviceName, options) {
|
15314
|
-
return tslib.__awaiter(this,
|
15314
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
15315
15315
|
const poller = yield this.beginDelete(groupName, serviceName, options);
|
15316
15316
|
return poller.pollUntilDone();
|
15317
15317
|
});
|
@@ -15327,17 +15327,17 @@ class ServicesImpl {
|
|
15327
15327
|
* @param options The options parameters.
|
15328
15328
|
*/
|
15329
15329
|
beginUpdate(groupName, serviceName, parameters, options) {
|
15330
|
-
return tslib.__awaiter(this,
|
15331
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
15330
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
15331
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
15332
15332
|
return this.client.sendOperationRequest(args, spec);
|
15333
15333
|
});
|
15334
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
15334
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
15335
15335
|
var _a;
|
15336
15336
|
let currentRawResponse = undefined;
|
15337
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
15337
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
15338
15338
|
const callback = (rawResponse, flatResponse) => {
|
15339
15339
|
currentRawResponse = rawResponse;
|
15340
|
-
providedCallback === null || providedCallback ===
|
15340
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
15341
15341
|
};
|
15342
15342
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
15343
15343
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -15352,8 +15352,8 @@ class ServicesImpl {
|
|
15352
15352
|
});
|
15353
15353
|
const lro = new LroImpl(sendOperation, { groupName, serviceName, parameters, options }, updateOperationSpec$4);
|
15354
15354
|
const poller = new coreLro.LroEngine(lro, {
|
15355
|
-
resumeFrom: options === null || options ===
|
15356
|
-
intervalInMs: options === null || options ===
|
15355
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
15356
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
15357
15357
|
});
|
15358
15358
|
yield poller.poll();
|
15359
15359
|
return poller;
|
@@ -15370,7 +15370,7 @@ class ServicesImpl {
|
|
15370
15370
|
* @param options The options parameters.
|
15371
15371
|
*/
|
15372
15372
|
beginUpdateAndWait(groupName, serviceName, parameters, options) {
|
15373
|
-
return tslib.__awaiter(this,
|
15373
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
15374
15374
|
const poller = yield this.beginUpdate(groupName, serviceName, parameters, options);
|
15375
15375
|
return poller.pollUntilDone();
|
15376
15376
|
});
|
@@ -15393,17 +15393,17 @@ class ServicesImpl {
|
|
15393
15393
|
* @param options The options parameters.
|
15394
15394
|
*/
|
15395
15395
|
beginStart(groupName, serviceName, options) {
|
15396
|
-
return tslib.__awaiter(this,
|
15397
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
15396
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
15397
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
15398
15398
|
return this.client.sendOperationRequest(args, spec);
|
15399
15399
|
});
|
15400
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
15400
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
15401
15401
|
var _a;
|
15402
15402
|
let currentRawResponse = undefined;
|
15403
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
15403
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
15404
15404
|
const callback = (rawResponse, flatResponse) => {
|
15405
15405
|
currentRawResponse = rawResponse;
|
15406
|
-
providedCallback === null || providedCallback ===
|
15406
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
15407
15407
|
};
|
15408
15408
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
15409
15409
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -15418,8 +15418,8 @@ class ServicesImpl {
|
|
15418
15418
|
});
|
15419
15419
|
const lro = new LroImpl(sendOperation, { groupName, serviceName, options }, startOperationSpec);
|
15420
15420
|
const poller = new coreLro.LroEngine(lro, {
|
15421
|
-
resumeFrom: options === null || options ===
|
15422
|
-
intervalInMs: options === null || options ===
|
15421
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
15422
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
15423
15423
|
});
|
15424
15424
|
yield poller.poll();
|
15425
15425
|
return poller;
|
@@ -15433,7 +15433,7 @@ class ServicesImpl {
|
|
15433
15433
|
* @param options The options parameters.
|
15434
15434
|
*/
|
15435
15435
|
beginStartAndWait(groupName, serviceName, options) {
|
15436
|
-
return tslib.__awaiter(this,
|
15436
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
15437
15437
|
const poller = yield this.beginStart(groupName, serviceName, options);
|
15438
15438
|
return poller.pollUntilDone();
|
15439
15439
|
});
|
@@ -15447,17 +15447,17 @@ class ServicesImpl {
|
|
15447
15447
|
* @param options The options parameters.
|
15448
15448
|
*/
|
15449
15449
|
beginStop(groupName, serviceName, options) {
|
15450
|
-
return tslib.__awaiter(this,
|
15451
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
15450
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
15451
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
15452
15452
|
return this.client.sendOperationRequest(args, spec);
|
15453
15453
|
});
|
15454
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
15454
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
15455
15455
|
var _a;
|
15456
15456
|
let currentRawResponse = undefined;
|
15457
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
15457
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
15458
15458
|
const callback = (rawResponse, flatResponse) => {
|
15459
15459
|
currentRawResponse = rawResponse;
|
15460
|
-
providedCallback === null || providedCallback ===
|
15460
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
15461
15461
|
};
|
15462
15462
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
15463
15463
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -15472,8 +15472,8 @@ class ServicesImpl {
|
|
15472
15472
|
});
|
15473
15473
|
const lro = new LroImpl(sendOperation, { groupName, serviceName, options }, stopOperationSpec);
|
15474
15474
|
const poller = new coreLro.LroEngine(lro, {
|
15475
|
-
resumeFrom: options === null || options ===
|
15476
|
-
intervalInMs: options === null || options ===
|
15475
|
+
resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
15476
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
15477
15477
|
});
|
15478
15478
|
yield poller.poll();
|
15479
15479
|
return poller;
|
@@ -15488,7 +15488,7 @@ class ServicesImpl {
|
|
15488
15488
|
* @param options The options parameters.
|
15489
15489
|
*/
|
15490
15490
|
beginStopAndWait(groupName, serviceName, options) {
|
15491
|
-
return tslib.__awaiter(this,
|
15491
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
15492
15492
|
const poller = yield this.beginStop(groupName, serviceName, options);
|
15493
15493
|
return poller.pollUntilDone();
|
15494
15494
|
});
|
@@ -15943,7 +15943,7 @@ class TasksImpl {
|
|
15943
15943
|
return this;
|
15944
15944
|
},
|
15945
15945
|
byPage: (settings) => {
|
15946
|
-
if (settings === null || settings ===
|
15946
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
15947
15947
|
throw new Error("maxPageSize is not supported by this operation.");
|
15948
15948
|
}
|
15949
15949
|
return this.listPagingPage(groupName, serviceName, projectName, options, settings);
|
@@ -15953,7 +15953,7 @@ class TasksImpl {
|
|
15953
15953
|
listPagingPage(groupName, serviceName, projectName, options, settings) {
|
15954
15954
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
15955
15955
|
let result;
|
15956
|
-
let continuationToken = settings === null || settings ===
|
15956
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
15957
15957
|
if (!continuationToken) {
|
15958
15958
|
result = yield tslib.__await(this._list(groupName, serviceName, projectName, options));
|
15959
15959
|
let page = result.value || [];
|
@@ -16320,7 +16320,7 @@ class ServiceTasksImpl {
|
|
16320
16320
|
return this;
|
16321
16321
|
},
|
16322
16322
|
byPage: (settings) => {
|
16323
|
-
if (settings === null || settings ===
|
16323
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
16324
16324
|
throw new Error("maxPageSize is not supported by this operation.");
|
16325
16325
|
}
|
16326
16326
|
return this.listPagingPage(groupName, serviceName, options, settings);
|
@@ -16330,7 +16330,7 @@ class ServiceTasksImpl {
|
|
16330
16330
|
listPagingPage(groupName, serviceName, options, settings) {
|
16331
16331
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
16332
16332
|
let result;
|
16333
|
-
let continuationToken = settings === null || settings ===
|
16333
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
16334
16334
|
if (!continuationToken) {
|
16335
16335
|
result = yield tslib.__await(this._list(groupName, serviceName, options));
|
16336
16336
|
let page = result.value || [];
|
@@ -16644,7 +16644,7 @@ class ProjectsImpl {
|
|
16644
16644
|
return this;
|
16645
16645
|
},
|
16646
16646
|
byPage: (settings) => {
|
16647
|
-
if (settings === null || settings ===
|
16647
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
16648
16648
|
throw new Error("maxPageSize is not supported by this operation.");
|
16649
16649
|
}
|
16650
16650
|
return this.listPagingPage(groupName, serviceName, options, settings);
|
@@ -16654,7 +16654,7 @@ class ProjectsImpl {
|
|
16654
16654
|
listPagingPage(groupName, serviceName, options, settings) {
|
16655
16655
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
16656
16656
|
let result;
|
16657
|
-
let continuationToken = settings === null || settings ===
|
16657
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
16658
16658
|
if (!continuationToken) {
|
16659
16659
|
result = yield tslib.__await(this._list(groupName, serviceName, options));
|
16660
16660
|
let page = result.value || [];
|
@@ -16931,7 +16931,7 @@ class UsagesImpl {
|
|
16931
16931
|
return this;
|
16932
16932
|
},
|
16933
16933
|
byPage: (settings) => {
|
16934
|
-
if (settings === null || settings ===
|
16934
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
16935
16935
|
throw new Error("maxPageSize is not supported by this operation.");
|
16936
16936
|
}
|
16937
16937
|
return this.listPagingPage(location, options, settings);
|
@@ -16941,7 +16941,7 @@ class UsagesImpl {
|
|
16941
16941
|
listPagingPage(location, options, settings) {
|
16942
16942
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
16943
16943
|
let result;
|
16944
|
-
let continuationToken = settings === null || settings ===
|
16944
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
16945
16945
|
if (!continuationToken) {
|
16946
16946
|
result = yield tslib.__await(this._list(location, options));
|
16947
16947
|
let page = result.value || [];
|
@@ -17076,7 +17076,7 @@ class FilesImpl {
|
|
17076
17076
|
return this;
|
17077
17077
|
},
|
17078
17078
|
byPage: (settings) => {
|
17079
|
-
if (settings === null || settings ===
|
17079
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
17080
17080
|
throw new Error("maxPageSize is not supported by this operation.");
|
17081
17081
|
}
|
17082
17082
|
return this.listPagingPage(groupName, serviceName, projectName, options, settings);
|
@@ -17086,7 +17086,7 @@ class FilesImpl {
|
|
17086
17086
|
listPagingPage(groupName, serviceName, projectName, options, settings) {
|
17087
17087
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
17088
17088
|
let result;
|
17089
|
-
let continuationToken = settings === null || settings ===
|
17089
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
17090
17090
|
if (!continuationToken) {
|
17091
17091
|
result = yield tslib.__await(this._list(groupName, serviceName, projectName, options));
|
17092
17092
|
let page = result.value || [];
|
@@ -17444,10 +17444,10 @@ class DataMigrationManagementClient extends coreClient__namespace.ServiceClient
|
|
17444
17444
|
: `${packageDetails}`;
|
17445
17445
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
17446
17446
|
userAgentPrefix
|
17447
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
17447
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
17448
17448
|
super(optionsWithDefaults);
|
17449
17449
|
let bearerTokenAuthenticationPolicyFound = false;
|
17450
|
-
if ((options === null || options ===
|
17450
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
17451
17451
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
17452
17452
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
17453
17453
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
@@ -17461,7 +17461,7 @@ class DataMigrationManagementClient extends coreClient__namespace.ServiceClient
|
|
17461
17461
|
});
|
17462
17462
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
17463
17463
|
credential: credentials,
|
17464
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
17464
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
17465
17465
|
challengeCallbacks: {
|
17466
17466
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
17467
17467
|
}
|
@@ -17493,7 +17493,7 @@ class DataMigrationManagementClient extends coreClient__namespace.ServiceClient
|
|
17493
17493
|
const apiVersionPolicy = {
|
17494
17494
|
name: "CustomApiVersionPolicy",
|
17495
17495
|
sendRequest(request, next) {
|
17496
|
-
return tslib.__awaiter(this,
|
17496
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
17497
17497
|
const param = request.url.split("?");
|
17498
17498
|
if (param.length > 1) {
|
17499
17499
|
const newParams = param[1].split("&").map((item) => {
|