@azure/arm-recoveryservices-siterecovery 5.2.1-alpha.20250206.1 → 5.2.1-alpha.20250210.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 +677 -677
- 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 === void 0 ? void 0 : _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 !== void 0 ? _a : {};
|
|
58
58
|
pageInfo.continuationToken = continuationToken;
|
|
59
59
|
pageMap.set(page, pageInfo);
|
|
60
60
|
}
|
|
@@ -22531,7 +22531,7 @@ class OperationsImpl {
|
|
|
22531
22531
|
return this;
|
|
22532
22532
|
},
|
|
22533
22533
|
byPage: (settings) => {
|
|
22534
|
-
if (settings === null || settings ===
|
|
22534
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
22535
22535
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
22536
22536
|
}
|
|
22537
22537
|
return this.listPagingPage(resourceGroupName, options, settings);
|
|
@@ -22541,7 +22541,7 @@ class OperationsImpl {
|
|
|
22541
22541
|
listPagingPage(resourceGroupName, options, settings) {
|
|
22542
22542
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
22543
22543
|
let result;
|
|
22544
|
-
let continuationToken = settings === null || settings ===
|
|
22544
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
22545
22545
|
if (!continuationToken) {
|
|
22546
22546
|
result = yield tslib.__await(this._list(resourceGroupName, options));
|
|
22547
22547
|
let page = result.value || [];
|
|
@@ -22669,7 +22669,7 @@ class ReplicationAlertSettingsImpl {
|
|
|
22669
22669
|
return this;
|
|
22670
22670
|
},
|
|
22671
22671
|
byPage: (settings) => {
|
|
22672
|
-
if (settings === null || settings ===
|
|
22672
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
22673
22673
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
22674
22674
|
}
|
|
22675
22675
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -22679,7 +22679,7 @@ class ReplicationAlertSettingsImpl {
|
|
|
22679
22679
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
22680
22680
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
22681
22681
|
let result;
|
|
22682
|
-
let continuationToken = settings === null || settings ===
|
|
22682
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
22683
22683
|
if (!continuationToken) {
|
|
22684
22684
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
22685
22685
|
let page = result.value || [];
|
|
@@ -22874,7 +22874,7 @@ class ReplicationAppliancesImpl {
|
|
|
22874
22874
|
return this;
|
|
22875
22875
|
},
|
|
22876
22876
|
byPage: (settings) => {
|
|
22877
|
-
if (settings === null || settings ===
|
|
22877
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
22878
22878
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
22879
22879
|
}
|
|
22880
22880
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -22884,7 +22884,7 @@ class ReplicationAppliancesImpl {
|
|
|
22884
22884
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
22885
22885
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
22886
22886
|
let result;
|
|
22887
|
-
let continuationToken = settings === null || settings ===
|
|
22887
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
22888
22888
|
if (!continuationToken) {
|
|
22889
22889
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
22890
22890
|
let page = result.value || [];
|
|
@@ -23092,7 +23092,7 @@ class ReplicationEventsImpl {
|
|
|
23092
23092
|
return this;
|
|
23093
23093
|
},
|
|
23094
23094
|
byPage: (settings) => {
|
|
23095
|
-
if (settings === null || settings ===
|
|
23095
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
23096
23096
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
23097
23097
|
}
|
|
23098
23098
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -23102,7 +23102,7 @@ class ReplicationEventsImpl {
|
|
|
23102
23102
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
23103
23103
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
23104
23104
|
let result;
|
|
23105
|
-
let continuationToken = settings === null || settings ===
|
|
23105
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
23106
23106
|
if (!continuationToken) {
|
|
23107
23107
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
23108
23108
|
let page = result.value || [];
|
|
@@ -23238,7 +23238,7 @@ function createLroSpec(inputs) {
|
|
|
23238
23238
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
23239
23239
|
sendPollRequest: (path, options) => {
|
|
23240
23240
|
const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
23241
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
23241
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
23242
23242
|
},
|
|
23243
23243
|
};
|
|
23244
23244
|
}
|
|
@@ -23277,7 +23277,7 @@ class ReplicationFabricsImpl {
|
|
|
23277
23277
|
return this;
|
|
23278
23278
|
},
|
|
23279
23279
|
byPage: (settings) => {
|
|
23280
|
-
if (settings === null || settings ===
|
|
23280
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
23281
23281
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
23282
23282
|
}
|
|
23283
23283
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -23287,7 +23287,7 @@ class ReplicationFabricsImpl {
|
|
|
23287
23287
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
23288
23288
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
23289
23289
|
let result;
|
|
23290
|
-
let continuationToken = settings === null || settings ===
|
|
23290
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
23291
23291
|
if (!continuationToken) {
|
|
23292
23292
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
23293
23293
|
let page = result.value || [];
|
|
@@ -23355,17 +23355,17 @@ class ReplicationFabricsImpl {
|
|
|
23355
23355
|
* @param options The options parameters.
|
|
23356
23356
|
*/
|
|
23357
23357
|
beginCreate(resourceName, resourceGroupName, fabricName, input, options) {
|
|
23358
|
-
return tslib.__awaiter(this,
|
|
23359
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
23358
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23359
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23360
23360
|
return this.client.sendOperationRequest(args, spec);
|
|
23361
23361
|
});
|
|
23362
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
23362
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23363
23363
|
var _a;
|
|
23364
23364
|
let currentRawResponse = undefined;
|
|
23365
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
23365
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
23366
23366
|
const callback = (rawResponse, flatResponse) => {
|
|
23367
23367
|
currentRawResponse = rawResponse;
|
|
23368
|
-
providedCallback === null || providedCallback ===
|
|
23368
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
23369
23369
|
};
|
|
23370
23370
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
23371
23371
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -23384,8 +23384,8 @@ class ReplicationFabricsImpl {
|
|
|
23384
23384
|
spec: createOperationSpec$c,
|
|
23385
23385
|
});
|
|
23386
23386
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
23387
|
-
restoreFrom: options === null || options ===
|
|
23388
|
-
intervalInMs: options === null || options ===
|
|
23387
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
23388
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
23389
23389
|
});
|
|
23390
23390
|
yield poller.poll();
|
|
23391
23391
|
return poller;
|
|
@@ -23401,7 +23401,7 @@ class ReplicationFabricsImpl {
|
|
|
23401
23401
|
* @param options The options parameters.
|
|
23402
23402
|
*/
|
|
23403
23403
|
beginCreateAndWait(resourceName, resourceGroupName, fabricName, input, options) {
|
|
23404
|
-
return tslib.__awaiter(this,
|
|
23404
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23405
23405
|
const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, input, options);
|
|
23406
23406
|
return poller.pollUntilDone();
|
|
23407
23407
|
});
|
|
@@ -23415,17 +23415,17 @@ class ReplicationFabricsImpl {
|
|
|
23415
23415
|
* @param options The options parameters.
|
|
23416
23416
|
*/
|
|
23417
23417
|
beginPurge(resourceName, resourceGroupName, fabricName, options) {
|
|
23418
|
-
return tslib.__awaiter(this,
|
|
23419
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
23418
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23419
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23420
23420
|
return this.client.sendOperationRequest(args, spec);
|
|
23421
23421
|
});
|
|
23422
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
23422
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23423
23423
|
var _a;
|
|
23424
23424
|
let currentRawResponse = undefined;
|
|
23425
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
23425
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
23426
23426
|
const callback = (rawResponse, flatResponse) => {
|
|
23427
23427
|
currentRawResponse = rawResponse;
|
|
23428
|
-
providedCallback === null || providedCallback ===
|
|
23428
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
23429
23429
|
};
|
|
23430
23430
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
23431
23431
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -23444,8 +23444,8 @@ class ReplicationFabricsImpl {
|
|
|
23444
23444
|
spec: purgeOperationSpec$3,
|
|
23445
23445
|
});
|
|
23446
23446
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
23447
|
-
restoreFrom: options === null || options ===
|
|
23448
|
-
intervalInMs: options === null || options ===
|
|
23447
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
23448
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
23449
23449
|
});
|
|
23450
23450
|
yield poller.poll();
|
|
23451
23451
|
return poller;
|
|
@@ -23460,7 +23460,7 @@ class ReplicationFabricsImpl {
|
|
|
23460
23460
|
* @param options The options parameters.
|
|
23461
23461
|
*/
|
|
23462
23462
|
beginPurgeAndWait(resourceName, resourceGroupName, fabricName, options) {
|
|
23463
|
-
return tslib.__awaiter(this,
|
|
23463
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23464
23464
|
const poller = yield this.beginPurge(resourceName, resourceGroupName, fabricName, options);
|
|
23465
23465
|
return poller.pollUntilDone();
|
|
23466
23466
|
});
|
|
@@ -23474,17 +23474,17 @@ class ReplicationFabricsImpl {
|
|
|
23474
23474
|
* @param options The options parameters.
|
|
23475
23475
|
*/
|
|
23476
23476
|
beginCheckConsistency(resourceName, resourceGroupName, fabricName, options) {
|
|
23477
|
-
return tslib.__awaiter(this,
|
|
23478
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
23477
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23478
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23479
23479
|
return this.client.sendOperationRequest(args, spec);
|
|
23480
23480
|
});
|
|
23481
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
23481
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23482
23482
|
var _a;
|
|
23483
23483
|
let currentRawResponse = undefined;
|
|
23484
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
23484
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
23485
23485
|
const callback = (rawResponse, flatResponse) => {
|
|
23486
23486
|
currentRawResponse = rawResponse;
|
|
23487
|
-
providedCallback === null || providedCallback ===
|
|
23487
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
23488
23488
|
};
|
|
23489
23489
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
23490
23490
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -23503,8 +23503,8 @@ class ReplicationFabricsImpl {
|
|
|
23503
23503
|
spec: checkConsistencyOperationSpec,
|
|
23504
23504
|
});
|
|
23505
23505
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
23506
|
-
restoreFrom: options === null || options ===
|
|
23507
|
-
intervalInMs: options === null || options ===
|
|
23506
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
23507
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
23508
23508
|
});
|
|
23509
23509
|
yield poller.poll();
|
|
23510
23510
|
return poller;
|
|
@@ -23519,7 +23519,7 @@ class ReplicationFabricsImpl {
|
|
|
23519
23519
|
* @param options The options parameters.
|
|
23520
23520
|
*/
|
|
23521
23521
|
beginCheckConsistencyAndWait(resourceName, resourceGroupName, fabricName, options) {
|
|
23522
|
-
return tslib.__awaiter(this,
|
|
23522
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23523
23523
|
const poller = yield this.beginCheckConsistency(resourceName, resourceGroupName, fabricName, options);
|
|
23524
23524
|
return poller.pollUntilDone();
|
|
23525
23525
|
});
|
|
@@ -23533,17 +23533,17 @@ class ReplicationFabricsImpl {
|
|
|
23533
23533
|
* @param options The options parameters.
|
|
23534
23534
|
*/
|
|
23535
23535
|
beginMigrateToAad(resourceName, resourceGroupName, fabricName, options) {
|
|
23536
|
-
return tslib.__awaiter(this,
|
|
23537
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
23536
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23537
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23538
23538
|
return this.client.sendOperationRequest(args, spec);
|
|
23539
23539
|
});
|
|
23540
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
23540
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23541
23541
|
var _a;
|
|
23542
23542
|
let currentRawResponse = undefined;
|
|
23543
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
23543
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
23544
23544
|
const callback = (rawResponse, flatResponse) => {
|
|
23545
23545
|
currentRawResponse = rawResponse;
|
|
23546
|
-
providedCallback === null || providedCallback ===
|
|
23546
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
23547
23547
|
};
|
|
23548
23548
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
23549
23549
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -23562,8 +23562,8 @@ class ReplicationFabricsImpl {
|
|
|
23562
23562
|
spec: migrateToAadOperationSpec,
|
|
23563
23563
|
});
|
|
23564
23564
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
23565
|
-
restoreFrom: options === null || options ===
|
|
23566
|
-
intervalInMs: options === null || options ===
|
|
23565
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
23566
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
23567
23567
|
});
|
|
23568
23568
|
yield poller.poll();
|
|
23569
23569
|
return poller;
|
|
@@ -23578,7 +23578,7 @@ class ReplicationFabricsImpl {
|
|
|
23578
23578
|
* @param options The options parameters.
|
|
23579
23579
|
*/
|
|
23580
23580
|
beginMigrateToAadAndWait(resourceName, resourceGroupName, fabricName, options) {
|
|
23581
|
-
return tslib.__awaiter(this,
|
|
23581
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23582
23582
|
const poller = yield this.beginMigrateToAad(resourceName, resourceGroupName, fabricName, options);
|
|
23583
23583
|
return poller.pollUntilDone();
|
|
23584
23584
|
});
|
|
@@ -23593,17 +23593,17 @@ class ReplicationFabricsImpl {
|
|
|
23593
23593
|
* @param options The options parameters.
|
|
23594
23594
|
*/
|
|
23595
23595
|
beginReassociateGateway(resourceName, resourceGroupName, fabricName, failoverProcessServerRequest, options) {
|
|
23596
|
-
return tslib.__awaiter(this,
|
|
23597
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
23596
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23597
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23598
23598
|
return this.client.sendOperationRequest(args, spec);
|
|
23599
23599
|
});
|
|
23600
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
23600
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23601
23601
|
var _a;
|
|
23602
23602
|
let currentRawResponse = undefined;
|
|
23603
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
23603
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
23604
23604
|
const callback = (rawResponse, flatResponse) => {
|
|
23605
23605
|
currentRawResponse = rawResponse;
|
|
23606
|
-
providedCallback === null || providedCallback ===
|
|
23606
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
23607
23607
|
};
|
|
23608
23608
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
23609
23609
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -23628,8 +23628,8 @@ class ReplicationFabricsImpl {
|
|
|
23628
23628
|
spec: reassociateGatewayOperationSpec,
|
|
23629
23629
|
});
|
|
23630
23630
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
23631
|
-
restoreFrom: options === null || options ===
|
|
23632
|
-
intervalInMs: options === null || options ===
|
|
23631
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
23632
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
23633
23633
|
});
|
|
23634
23634
|
yield poller.poll();
|
|
23635
23635
|
return poller;
|
|
@@ -23645,7 +23645,7 @@ class ReplicationFabricsImpl {
|
|
|
23645
23645
|
* @param options The options parameters.
|
|
23646
23646
|
*/
|
|
23647
23647
|
beginReassociateGatewayAndWait(resourceName, resourceGroupName, fabricName, failoverProcessServerRequest, options) {
|
|
23648
|
-
return tslib.__awaiter(this,
|
|
23648
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23649
23649
|
const poller = yield this.beginReassociateGateway(resourceName, resourceGroupName, fabricName, failoverProcessServerRequest, options);
|
|
23650
23650
|
return poller.pollUntilDone();
|
|
23651
23651
|
});
|
|
@@ -23659,17 +23659,17 @@ class ReplicationFabricsImpl {
|
|
|
23659
23659
|
* @param options The options parameters.
|
|
23660
23660
|
*/
|
|
23661
23661
|
beginDelete(resourceName, resourceGroupName, fabricName, options) {
|
|
23662
|
-
return tslib.__awaiter(this,
|
|
23663
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
23662
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23663
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23664
23664
|
return this.client.sendOperationRequest(args, spec);
|
|
23665
23665
|
});
|
|
23666
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
23666
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23667
23667
|
var _a;
|
|
23668
23668
|
let currentRawResponse = undefined;
|
|
23669
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
23669
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
23670
23670
|
const callback = (rawResponse, flatResponse) => {
|
|
23671
23671
|
currentRawResponse = rawResponse;
|
|
23672
|
-
providedCallback === null || providedCallback ===
|
|
23672
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
23673
23673
|
};
|
|
23674
23674
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
23675
23675
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -23688,8 +23688,8 @@ class ReplicationFabricsImpl {
|
|
|
23688
23688
|
spec: deleteOperationSpec$a,
|
|
23689
23689
|
});
|
|
23690
23690
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
23691
|
-
restoreFrom: options === null || options ===
|
|
23692
|
-
intervalInMs: options === null || options ===
|
|
23691
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
23692
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
23693
23693
|
});
|
|
23694
23694
|
yield poller.poll();
|
|
23695
23695
|
return poller;
|
|
@@ -23704,7 +23704,7 @@ class ReplicationFabricsImpl {
|
|
|
23704
23704
|
* @param options The options parameters.
|
|
23705
23705
|
*/
|
|
23706
23706
|
beginDeleteAndWait(resourceName, resourceGroupName, fabricName, options) {
|
|
23707
|
-
return tslib.__awaiter(this,
|
|
23707
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23708
23708
|
const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, options);
|
|
23709
23709
|
return poller.pollUntilDone();
|
|
23710
23710
|
});
|
|
@@ -23719,17 +23719,17 @@ class ReplicationFabricsImpl {
|
|
|
23719
23719
|
* @param options The options parameters.
|
|
23720
23720
|
*/
|
|
23721
23721
|
beginRenewCertificate(resourceName, resourceGroupName, fabricName, renewCertificate, options) {
|
|
23722
|
-
return tslib.__awaiter(this,
|
|
23723
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
23722
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23723
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23724
23724
|
return this.client.sendOperationRequest(args, spec);
|
|
23725
23725
|
});
|
|
23726
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
23726
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23727
23727
|
var _a;
|
|
23728
23728
|
let currentRawResponse = undefined;
|
|
23729
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
23729
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
23730
23730
|
const callback = (rawResponse, flatResponse) => {
|
|
23731
23731
|
currentRawResponse = rawResponse;
|
|
23732
|
-
providedCallback === null || providedCallback ===
|
|
23732
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
23733
23733
|
};
|
|
23734
23734
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
23735
23735
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -23754,8 +23754,8 @@ class ReplicationFabricsImpl {
|
|
|
23754
23754
|
spec: renewCertificateOperationSpec,
|
|
23755
23755
|
});
|
|
23756
23756
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
23757
|
-
restoreFrom: options === null || options ===
|
|
23758
|
-
intervalInMs: options === null || options ===
|
|
23757
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
23758
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
23759
23759
|
});
|
|
23760
23760
|
yield poller.poll();
|
|
23761
23761
|
return poller;
|
|
@@ -23771,7 +23771,7 @@ class ReplicationFabricsImpl {
|
|
|
23771
23771
|
* @param options The options parameters.
|
|
23772
23772
|
*/
|
|
23773
23773
|
beginRenewCertificateAndWait(resourceName, resourceGroupName, fabricName, renewCertificate, options) {
|
|
23774
|
-
return tslib.__awaiter(this,
|
|
23774
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23775
23775
|
const poller = yield this.beginRenewCertificate(resourceName, resourceGroupName, fabricName, renewCertificate, options);
|
|
23776
23776
|
return poller.pollUntilDone();
|
|
23777
23777
|
});
|
|
@@ -23785,17 +23785,17 @@ class ReplicationFabricsImpl {
|
|
|
23785
23785
|
* @param options The options parameters.
|
|
23786
23786
|
*/
|
|
23787
23787
|
beginRemoveInfra(resourceGroupName, resourceName, fabricName, options) {
|
|
23788
|
-
return tslib.__awaiter(this,
|
|
23789
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
23788
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23789
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23790
23790
|
return this.client.sendOperationRequest(args, spec);
|
|
23791
23791
|
});
|
|
23792
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
23792
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23793
23793
|
var _a;
|
|
23794
23794
|
let currentRawResponse = undefined;
|
|
23795
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
23795
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
23796
23796
|
const callback = (rawResponse, flatResponse) => {
|
|
23797
23797
|
currentRawResponse = rawResponse;
|
|
23798
|
-
providedCallback === null || providedCallback ===
|
|
23798
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
23799
23799
|
};
|
|
23800
23800
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
23801
23801
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -23814,8 +23814,8 @@ class ReplicationFabricsImpl {
|
|
|
23814
23814
|
spec: removeInfraOperationSpec,
|
|
23815
23815
|
});
|
|
23816
23816
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
23817
|
-
restoreFrom: options === null || options ===
|
|
23818
|
-
intervalInMs: options === null || options ===
|
|
23817
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
23818
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
23819
23819
|
});
|
|
23820
23820
|
yield poller.poll();
|
|
23821
23821
|
return poller;
|
|
@@ -23830,7 +23830,7 @@ class ReplicationFabricsImpl {
|
|
|
23830
23830
|
* @param options The options parameters.
|
|
23831
23831
|
*/
|
|
23832
23832
|
beginRemoveInfraAndWait(resourceGroupName, resourceName, fabricName, options) {
|
|
23833
|
-
return tslib.__awaiter(this,
|
|
23833
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23834
23834
|
const poller = yield this.beginRemoveInfra(resourceGroupName, resourceName, fabricName, options);
|
|
23835
23835
|
return poller.pollUntilDone();
|
|
23836
23836
|
});
|
|
@@ -24131,7 +24131,7 @@ class ReplicationLogicalNetworksImpl {
|
|
|
24131
24131
|
return this;
|
|
24132
24132
|
},
|
|
24133
24133
|
byPage: (settings) => {
|
|
24134
|
-
if (settings === null || settings ===
|
|
24134
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
24135
24135
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
24136
24136
|
}
|
|
24137
24137
|
return this.listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings);
|
|
@@ -24141,7 +24141,7 @@ class ReplicationLogicalNetworksImpl {
|
|
|
24141
24141
|
listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings) {
|
|
24142
24142
|
return tslib.__asyncGenerator(this, arguments, function* listByReplicationFabricsPagingPage_1() {
|
|
24143
24143
|
let result;
|
|
24144
|
-
let continuationToken = settings === null || settings ===
|
|
24144
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
24145
24145
|
if (!continuationToken) {
|
|
24146
24146
|
result = yield tslib.__await(this._listByReplicationFabrics(resourceName, resourceGroupName, fabricName, options));
|
|
24147
24147
|
let page = result.value || [];
|
|
@@ -24317,7 +24317,7 @@ class ReplicationNetworksImpl {
|
|
|
24317
24317
|
return this;
|
|
24318
24318
|
},
|
|
24319
24319
|
byPage: (settings) => {
|
|
24320
|
-
if (settings === null || settings ===
|
|
24320
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
24321
24321
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
24322
24322
|
}
|
|
24323
24323
|
return this.listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings);
|
|
@@ -24327,7 +24327,7 @@ class ReplicationNetworksImpl {
|
|
|
24327
24327
|
listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings) {
|
|
24328
24328
|
return tslib.__asyncGenerator(this, arguments, function* listByReplicationFabricsPagingPage_1() {
|
|
24329
24329
|
let result;
|
|
24330
|
-
let continuationToken = settings === null || settings ===
|
|
24330
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
24331
24331
|
if (!continuationToken) {
|
|
24332
24332
|
result = yield tslib.__await(this._listByReplicationFabrics(resourceName, resourceGroupName, fabricName, options));
|
|
24333
24333
|
let page = result.value || [];
|
|
@@ -24381,7 +24381,7 @@ class ReplicationNetworksImpl {
|
|
|
24381
24381
|
return this;
|
|
24382
24382
|
},
|
|
24383
24383
|
byPage: (settings) => {
|
|
24384
|
-
if (settings === null || settings ===
|
|
24384
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
24385
24385
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
24386
24386
|
}
|
|
24387
24387
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -24391,7 +24391,7 @@ class ReplicationNetworksImpl {
|
|
|
24391
24391
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
24392
24392
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
24393
24393
|
let result;
|
|
24394
|
-
let continuationToken = settings === null || settings ===
|
|
24394
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
24395
24395
|
if (!continuationToken) {
|
|
24396
24396
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
24397
24397
|
let page = result.value || [];
|
|
@@ -24619,7 +24619,7 @@ class ReplicationNetworkMappingsImpl {
|
|
|
24619
24619
|
return this;
|
|
24620
24620
|
},
|
|
24621
24621
|
byPage: (settings) => {
|
|
24622
|
-
if (settings === null || settings ===
|
|
24622
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
24623
24623
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
24624
24624
|
}
|
|
24625
24625
|
return this.listByReplicationNetworksPagingPage(resourceName, resourceGroupName, fabricName, networkName, options, settings);
|
|
@@ -24629,7 +24629,7 @@ class ReplicationNetworkMappingsImpl {
|
|
|
24629
24629
|
listByReplicationNetworksPagingPage(resourceName, resourceGroupName, fabricName, networkName, options, settings) {
|
|
24630
24630
|
return tslib.__asyncGenerator(this, arguments, function* listByReplicationNetworksPagingPage_1() {
|
|
24631
24631
|
let result;
|
|
24632
|
-
let continuationToken = settings === null || settings ===
|
|
24632
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
24633
24633
|
if (!continuationToken) {
|
|
24634
24634
|
result = yield tslib.__await(this._listByReplicationNetworks(resourceName, resourceGroupName, fabricName, networkName, options));
|
|
24635
24635
|
let page = result.value || [];
|
|
@@ -24683,7 +24683,7 @@ class ReplicationNetworkMappingsImpl {
|
|
|
24683
24683
|
return this;
|
|
24684
24684
|
},
|
|
24685
24685
|
byPage: (settings) => {
|
|
24686
|
-
if (settings === null || settings ===
|
|
24686
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
24687
24687
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
24688
24688
|
}
|
|
24689
24689
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -24693,7 +24693,7 @@ class ReplicationNetworkMappingsImpl {
|
|
|
24693
24693
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
24694
24694
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
24695
24695
|
let result;
|
|
24696
|
-
let continuationToken = settings === null || settings ===
|
|
24696
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
24697
24697
|
if (!continuationToken) {
|
|
24698
24698
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
24699
24699
|
let page = result.value || [];
|
|
@@ -24774,17 +24774,17 @@ class ReplicationNetworkMappingsImpl {
|
|
|
24774
24774
|
* @param options The options parameters.
|
|
24775
24775
|
*/
|
|
24776
24776
|
beginCreate(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, options) {
|
|
24777
|
-
return tslib.__awaiter(this,
|
|
24778
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
24777
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
24778
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
24779
24779
|
return this.client.sendOperationRequest(args, spec);
|
|
24780
24780
|
});
|
|
24781
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
24781
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
24782
24782
|
var _a;
|
|
24783
24783
|
let currentRawResponse = undefined;
|
|
24784
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
24784
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
24785
24785
|
const callback = (rawResponse, flatResponse) => {
|
|
24786
24786
|
currentRawResponse = rawResponse;
|
|
24787
|
-
providedCallback === null || providedCallback ===
|
|
24787
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
24788
24788
|
};
|
|
24789
24789
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
24790
24790
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -24811,8 +24811,8 @@ class ReplicationNetworkMappingsImpl {
|
|
|
24811
24811
|
spec: createOperationSpec$b,
|
|
24812
24812
|
});
|
|
24813
24813
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
24814
|
-
restoreFrom: options === null || options ===
|
|
24815
|
-
intervalInMs: options === null || options ===
|
|
24814
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
24815
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
24816
24816
|
});
|
|
24817
24817
|
yield poller.poll();
|
|
24818
24818
|
return poller;
|
|
@@ -24830,7 +24830,7 @@ class ReplicationNetworkMappingsImpl {
|
|
|
24830
24830
|
* @param options The options parameters.
|
|
24831
24831
|
*/
|
|
24832
24832
|
beginCreateAndWait(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, options) {
|
|
24833
|
-
return tslib.__awaiter(this,
|
|
24833
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
24834
24834
|
const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, options);
|
|
24835
24835
|
return poller.pollUntilDone();
|
|
24836
24836
|
});
|
|
@@ -24846,17 +24846,17 @@ class ReplicationNetworkMappingsImpl {
|
|
|
24846
24846
|
* @param options The options parameters.
|
|
24847
24847
|
*/
|
|
24848
24848
|
beginDelete(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, options) {
|
|
24849
|
-
return tslib.__awaiter(this,
|
|
24850
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
24849
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
24850
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
24851
24851
|
return this.client.sendOperationRequest(args, spec);
|
|
24852
24852
|
});
|
|
24853
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
24853
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
24854
24854
|
var _a;
|
|
24855
24855
|
let currentRawResponse = undefined;
|
|
24856
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
24856
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
24857
24857
|
const callback = (rawResponse, flatResponse) => {
|
|
24858
24858
|
currentRawResponse = rawResponse;
|
|
24859
|
-
providedCallback === null || providedCallback ===
|
|
24859
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
24860
24860
|
};
|
|
24861
24861
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
24862
24862
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -24882,8 +24882,8 @@ class ReplicationNetworkMappingsImpl {
|
|
|
24882
24882
|
spec: deleteOperationSpec$9,
|
|
24883
24883
|
});
|
|
24884
24884
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
24885
|
-
restoreFrom: options === null || options ===
|
|
24886
|
-
intervalInMs: options === null || options ===
|
|
24885
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
24886
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
24887
24887
|
});
|
|
24888
24888
|
yield poller.poll();
|
|
24889
24889
|
return poller;
|
|
@@ -24900,7 +24900,7 @@ class ReplicationNetworkMappingsImpl {
|
|
|
24900
24900
|
* @param options The options parameters.
|
|
24901
24901
|
*/
|
|
24902
24902
|
beginDeleteAndWait(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, options) {
|
|
24903
|
-
return tslib.__awaiter(this,
|
|
24903
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
24904
24904
|
const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, options);
|
|
24905
24905
|
return poller.pollUntilDone();
|
|
24906
24906
|
});
|
|
@@ -24917,17 +24917,17 @@ class ReplicationNetworkMappingsImpl {
|
|
|
24917
24917
|
* @param options The options parameters.
|
|
24918
24918
|
*/
|
|
24919
24919
|
beginUpdate(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, options) {
|
|
24920
|
-
return tslib.__awaiter(this,
|
|
24921
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
24920
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
24921
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
24922
24922
|
return this.client.sendOperationRequest(args, spec);
|
|
24923
24923
|
});
|
|
24924
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
24924
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
24925
24925
|
var _a;
|
|
24926
24926
|
let currentRawResponse = undefined;
|
|
24927
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
24927
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
24928
24928
|
const callback = (rawResponse, flatResponse) => {
|
|
24929
24929
|
currentRawResponse = rawResponse;
|
|
24930
|
-
providedCallback === null || providedCallback ===
|
|
24930
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
24931
24931
|
};
|
|
24932
24932
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
24933
24933
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -24954,8 +24954,8 @@ class ReplicationNetworkMappingsImpl {
|
|
|
24954
24954
|
spec: updateOperationSpec$6,
|
|
24955
24955
|
});
|
|
24956
24956
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
24957
|
-
restoreFrom: options === null || options ===
|
|
24958
|
-
intervalInMs: options === null || options ===
|
|
24957
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
24958
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
24959
24959
|
});
|
|
24960
24960
|
yield poller.poll();
|
|
24961
24961
|
return poller;
|
|
@@ -24973,7 +24973,7 @@ class ReplicationNetworkMappingsImpl {
|
|
|
24973
24973
|
* @param options The options parameters.
|
|
24974
24974
|
*/
|
|
24975
24975
|
beginUpdateAndWait(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, options) {
|
|
24976
|
-
return tslib.__awaiter(this,
|
|
24976
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
24977
24977
|
const poller = yield this.beginUpdate(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, options);
|
|
24978
24978
|
return poller.pollUntilDone();
|
|
24979
24979
|
});
|
|
@@ -25236,7 +25236,7 @@ class ReplicationProtectionContainersImpl {
|
|
|
25236
25236
|
return this;
|
|
25237
25237
|
},
|
|
25238
25238
|
byPage: (settings) => {
|
|
25239
|
-
if (settings === null || settings ===
|
|
25239
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
25240
25240
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
25241
25241
|
}
|
|
25242
25242
|
return this.listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings);
|
|
@@ -25246,7 +25246,7 @@ class ReplicationProtectionContainersImpl {
|
|
|
25246
25246
|
listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings) {
|
|
25247
25247
|
return tslib.__asyncGenerator(this, arguments, function* listByReplicationFabricsPagingPage_1() {
|
|
25248
25248
|
let result;
|
|
25249
|
-
let continuationToken = settings === null || settings ===
|
|
25249
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
25250
25250
|
if (!continuationToken) {
|
|
25251
25251
|
result = yield tslib.__await(this._listByReplicationFabrics(resourceName, resourceGroupName, fabricName, options));
|
|
25252
25252
|
let page = result.value || [];
|
|
@@ -25300,7 +25300,7 @@ class ReplicationProtectionContainersImpl {
|
|
|
25300
25300
|
return this;
|
|
25301
25301
|
},
|
|
25302
25302
|
byPage: (settings) => {
|
|
25303
|
-
if (settings === null || settings ===
|
|
25303
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
25304
25304
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
25305
25305
|
}
|
|
25306
25306
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -25310,7 +25310,7 @@ class ReplicationProtectionContainersImpl {
|
|
|
25310
25310
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
25311
25311
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
25312
25312
|
let result;
|
|
25313
|
-
let continuationToken = settings === null || settings ===
|
|
25313
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
25314
25314
|
if (!continuationToken) {
|
|
25315
25315
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
25316
25316
|
let page = result.value || [];
|
|
@@ -25387,17 +25387,17 @@ class ReplicationProtectionContainersImpl {
|
|
|
25387
25387
|
* @param options The options parameters.
|
|
25388
25388
|
*/
|
|
25389
25389
|
beginCreate(resourceName, resourceGroupName, fabricName, protectionContainerName, creationInput, options) {
|
|
25390
|
-
return tslib.__awaiter(this,
|
|
25391
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
25390
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
25391
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
25392
25392
|
return this.client.sendOperationRequest(args, spec);
|
|
25393
25393
|
});
|
|
25394
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
25394
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
25395
25395
|
var _a;
|
|
25396
25396
|
let currentRawResponse = undefined;
|
|
25397
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
25397
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
25398
25398
|
const callback = (rawResponse, flatResponse) => {
|
|
25399
25399
|
currentRawResponse = rawResponse;
|
|
25400
|
-
providedCallback === null || providedCallback ===
|
|
25400
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
25401
25401
|
};
|
|
25402
25402
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
25403
25403
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -25423,8 +25423,8 @@ class ReplicationProtectionContainersImpl {
|
|
|
25423
25423
|
spec: createOperationSpec$a,
|
|
25424
25424
|
});
|
|
25425
25425
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
25426
|
-
restoreFrom: options === null || options ===
|
|
25427
|
-
intervalInMs: options === null || options ===
|
|
25426
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
25427
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
25428
25428
|
});
|
|
25429
25429
|
yield poller.poll();
|
|
25430
25430
|
return poller;
|
|
@@ -25441,7 +25441,7 @@ class ReplicationProtectionContainersImpl {
|
|
|
25441
25441
|
* @param options The options parameters.
|
|
25442
25442
|
*/
|
|
25443
25443
|
beginCreateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, creationInput, options) {
|
|
25444
|
-
return tslib.__awaiter(this,
|
|
25444
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
25445
25445
|
const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, protectionContainerName, creationInput, options);
|
|
25446
25446
|
return poller.pollUntilDone();
|
|
25447
25447
|
});
|
|
@@ -25457,17 +25457,17 @@ class ReplicationProtectionContainersImpl {
|
|
|
25457
25457
|
* @param options The options parameters.
|
|
25458
25458
|
*/
|
|
25459
25459
|
beginDiscoverProtectableItem(resourceName, resourceGroupName, fabricName, protectionContainerName, discoverProtectableItemRequest, options) {
|
|
25460
|
-
return tslib.__awaiter(this,
|
|
25461
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
25460
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
25461
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
25462
25462
|
return this.client.sendOperationRequest(args, spec);
|
|
25463
25463
|
});
|
|
25464
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
25464
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
25465
25465
|
var _a;
|
|
25466
25466
|
let currentRawResponse = undefined;
|
|
25467
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
25467
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
25468
25468
|
const callback = (rawResponse, flatResponse) => {
|
|
25469
25469
|
currentRawResponse = rawResponse;
|
|
25470
|
-
providedCallback === null || providedCallback ===
|
|
25470
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
25471
25471
|
};
|
|
25472
25472
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
25473
25473
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -25493,8 +25493,8 @@ class ReplicationProtectionContainersImpl {
|
|
|
25493
25493
|
spec: discoverProtectableItemOperationSpec,
|
|
25494
25494
|
});
|
|
25495
25495
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
25496
|
-
restoreFrom: options === null || options ===
|
|
25497
|
-
intervalInMs: options === null || options ===
|
|
25496
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
25497
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
25498
25498
|
});
|
|
25499
25499
|
yield poller.poll();
|
|
25500
25500
|
return poller;
|
|
@@ -25511,7 +25511,7 @@ class ReplicationProtectionContainersImpl {
|
|
|
25511
25511
|
* @param options The options parameters.
|
|
25512
25512
|
*/
|
|
25513
25513
|
beginDiscoverProtectableItemAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, discoverProtectableItemRequest, options) {
|
|
25514
|
-
return tslib.__awaiter(this,
|
|
25514
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
25515
25515
|
const poller = yield this.beginDiscoverProtectableItem(resourceName, resourceGroupName, fabricName, protectionContainerName, discoverProtectableItemRequest, options);
|
|
25516
25516
|
return poller.pollUntilDone();
|
|
25517
25517
|
});
|
|
@@ -25526,17 +25526,17 @@ class ReplicationProtectionContainersImpl {
|
|
|
25526
25526
|
* @param options The options parameters.
|
|
25527
25527
|
*/
|
|
25528
25528
|
beginDelete(resourceName, resourceGroupName, fabricName, protectionContainerName, options) {
|
|
25529
|
-
return tslib.__awaiter(this,
|
|
25530
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
25529
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
25530
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
25531
25531
|
return this.client.sendOperationRequest(args, spec);
|
|
25532
25532
|
});
|
|
25533
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
25533
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
25534
25534
|
var _a;
|
|
25535
25535
|
let currentRawResponse = undefined;
|
|
25536
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
25536
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
25537
25537
|
const callback = (rawResponse, flatResponse) => {
|
|
25538
25538
|
currentRawResponse = rawResponse;
|
|
25539
|
-
providedCallback === null || providedCallback ===
|
|
25539
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
25540
25540
|
};
|
|
25541
25541
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
25542
25542
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -25561,8 +25561,8 @@ class ReplicationProtectionContainersImpl {
|
|
|
25561
25561
|
spec: deleteOperationSpec$8,
|
|
25562
25562
|
});
|
|
25563
25563
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
25564
|
-
restoreFrom: options === null || options ===
|
|
25565
|
-
intervalInMs: options === null || options ===
|
|
25564
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
25565
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
25566
25566
|
});
|
|
25567
25567
|
yield poller.poll();
|
|
25568
25568
|
return poller;
|
|
@@ -25578,7 +25578,7 @@ class ReplicationProtectionContainersImpl {
|
|
|
25578
25578
|
* @param options The options parameters.
|
|
25579
25579
|
*/
|
|
25580
25580
|
beginDeleteAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, options) {
|
|
25581
|
-
return tslib.__awaiter(this,
|
|
25581
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
25582
25582
|
const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, protectionContainerName, options);
|
|
25583
25583
|
return poller.pollUntilDone();
|
|
25584
25584
|
});
|
|
@@ -25594,17 +25594,17 @@ class ReplicationProtectionContainersImpl {
|
|
|
25594
25594
|
* @param options The options parameters.
|
|
25595
25595
|
*/
|
|
25596
25596
|
beginSwitchProtection(resourceName, resourceGroupName, fabricName, protectionContainerName, switchInput, options) {
|
|
25597
|
-
return tslib.__awaiter(this,
|
|
25598
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
25597
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
25598
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
25599
25599
|
return this.client.sendOperationRequest(args, spec);
|
|
25600
25600
|
});
|
|
25601
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
25601
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
25602
25602
|
var _a;
|
|
25603
25603
|
let currentRawResponse = undefined;
|
|
25604
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
25604
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
25605
25605
|
const callback = (rawResponse, flatResponse) => {
|
|
25606
25606
|
currentRawResponse = rawResponse;
|
|
25607
|
-
providedCallback === null || providedCallback ===
|
|
25607
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
25608
25608
|
};
|
|
25609
25609
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
25610
25610
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -25630,8 +25630,8 @@ class ReplicationProtectionContainersImpl {
|
|
|
25630
25630
|
spec: switchProtectionOperationSpec,
|
|
25631
25631
|
});
|
|
25632
25632
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
25633
|
-
restoreFrom: options === null || options ===
|
|
25634
|
-
intervalInMs: options === null || options ===
|
|
25633
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
25634
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
25635
25635
|
});
|
|
25636
25636
|
yield poller.poll();
|
|
25637
25637
|
return poller;
|
|
@@ -25648,7 +25648,7 @@ class ReplicationProtectionContainersImpl {
|
|
|
25648
25648
|
* @param options The options parameters.
|
|
25649
25649
|
*/
|
|
25650
25650
|
beginSwitchProtectionAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, switchInput, options) {
|
|
25651
|
-
return tslib.__awaiter(this,
|
|
25651
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
25652
25652
|
const poller = yield this.beginSwitchProtection(resourceName, resourceGroupName, fabricName, protectionContainerName, switchInput, options);
|
|
25653
25653
|
return poller.pollUntilDone();
|
|
25654
25654
|
});
|
|
@@ -25929,7 +25929,7 @@ class ReplicationMigrationItemsImpl {
|
|
|
25929
25929
|
return this;
|
|
25930
25930
|
},
|
|
25931
25931
|
byPage: (settings) => {
|
|
25932
|
-
if (settings === null || settings ===
|
|
25932
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
25933
25933
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
25934
25934
|
}
|
|
25935
25935
|
return this.listByReplicationProtectionContainersPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, options, settings);
|
|
@@ -25939,7 +25939,7 @@ class ReplicationMigrationItemsImpl {
|
|
|
25939
25939
|
listByReplicationProtectionContainersPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, options, settings) {
|
|
25940
25940
|
return tslib.__asyncGenerator(this, arguments, function* listByReplicationProtectionContainersPagingPage_1() {
|
|
25941
25941
|
let result;
|
|
25942
|
-
let continuationToken = settings === null || settings ===
|
|
25942
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
25943
25943
|
if (!continuationToken) {
|
|
25944
25944
|
result = yield tslib.__await(this._listByReplicationProtectionContainers(resourceName, resourceGroupName, fabricName, protectionContainerName, options));
|
|
25945
25945
|
let page = result.value || [];
|
|
@@ -25993,7 +25993,7 @@ class ReplicationMigrationItemsImpl {
|
|
|
25993
25993
|
return this;
|
|
25994
25994
|
},
|
|
25995
25995
|
byPage: (settings) => {
|
|
25996
|
-
if (settings === null || settings ===
|
|
25996
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
25997
25997
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
25998
25998
|
}
|
|
25999
25999
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -26003,7 +26003,7 @@ class ReplicationMigrationItemsImpl {
|
|
|
26003
26003
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
26004
26004
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
26005
26005
|
let result;
|
|
26006
|
-
let continuationToken = settings === null || settings ===
|
|
26006
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
26007
26007
|
if (!continuationToken) {
|
|
26008
26008
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
26009
26009
|
let page = result.value || [];
|
|
@@ -26090,17 +26090,17 @@ class ReplicationMigrationItemsImpl {
|
|
|
26090
26090
|
* @param options The options parameters.
|
|
26091
26091
|
*/
|
|
26092
26092
|
beginCreate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options) {
|
|
26093
|
-
return tslib.__awaiter(this,
|
|
26094
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
26093
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26094
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26095
26095
|
return this.client.sendOperationRequest(args, spec);
|
|
26096
26096
|
});
|
|
26097
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
26097
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26098
26098
|
var _a;
|
|
26099
26099
|
let currentRawResponse = undefined;
|
|
26100
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
26100
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
26101
26101
|
const callback = (rawResponse, flatResponse) => {
|
|
26102
26102
|
currentRawResponse = rawResponse;
|
|
26103
|
-
providedCallback === null || providedCallback ===
|
|
26103
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
26104
26104
|
};
|
|
26105
26105
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
26106
26106
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -26127,8 +26127,8 @@ class ReplicationMigrationItemsImpl {
|
|
|
26127
26127
|
spec: createOperationSpec$9,
|
|
26128
26128
|
});
|
|
26129
26129
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
26130
|
-
restoreFrom: options === null || options ===
|
|
26131
|
-
intervalInMs: options === null || options ===
|
|
26130
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
26131
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
26132
26132
|
});
|
|
26133
26133
|
yield poller.poll();
|
|
26134
26134
|
return poller;
|
|
@@ -26146,7 +26146,7 @@ class ReplicationMigrationItemsImpl {
|
|
|
26146
26146
|
* @param options The options parameters.
|
|
26147
26147
|
*/
|
|
26148
26148
|
beginCreateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options) {
|
|
26149
|
-
return tslib.__awaiter(this,
|
|
26149
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26150
26150
|
const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options);
|
|
26151
26151
|
return poller.pollUntilDone();
|
|
26152
26152
|
});
|
|
@@ -26162,17 +26162,17 @@ class ReplicationMigrationItemsImpl {
|
|
|
26162
26162
|
* @param options The options parameters.
|
|
26163
26163
|
*/
|
|
26164
26164
|
beginDelete(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, options) {
|
|
26165
|
-
return tslib.__awaiter(this,
|
|
26166
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
26165
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26166
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26167
26167
|
return this.client.sendOperationRequest(args, spec);
|
|
26168
26168
|
});
|
|
26169
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
26169
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26170
26170
|
var _a;
|
|
26171
26171
|
let currentRawResponse = undefined;
|
|
26172
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
26172
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
26173
26173
|
const callback = (rawResponse, flatResponse) => {
|
|
26174
26174
|
currentRawResponse = rawResponse;
|
|
26175
|
-
providedCallback === null || providedCallback ===
|
|
26175
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
26176
26176
|
};
|
|
26177
26177
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
26178
26178
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -26198,8 +26198,8 @@ class ReplicationMigrationItemsImpl {
|
|
|
26198
26198
|
spec: deleteOperationSpec$7,
|
|
26199
26199
|
});
|
|
26200
26200
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
26201
|
-
restoreFrom: options === null || options ===
|
|
26202
|
-
intervalInMs: options === null || options ===
|
|
26201
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
26202
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
26203
26203
|
});
|
|
26204
26204
|
yield poller.poll();
|
|
26205
26205
|
return poller;
|
|
@@ -26216,7 +26216,7 @@ class ReplicationMigrationItemsImpl {
|
|
|
26216
26216
|
* @param options The options parameters.
|
|
26217
26217
|
*/
|
|
26218
26218
|
beginDeleteAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, options) {
|
|
26219
|
-
return tslib.__awaiter(this,
|
|
26219
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26220
26220
|
const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, options);
|
|
26221
26221
|
return poller.pollUntilDone();
|
|
26222
26222
|
});
|
|
@@ -26233,17 +26233,17 @@ class ReplicationMigrationItemsImpl {
|
|
|
26233
26233
|
* @param options The options parameters.
|
|
26234
26234
|
*/
|
|
26235
26235
|
beginUpdate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options) {
|
|
26236
|
-
return tslib.__awaiter(this,
|
|
26237
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
26236
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26237
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26238
26238
|
return this.client.sendOperationRequest(args, spec);
|
|
26239
26239
|
});
|
|
26240
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
26240
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26241
26241
|
var _a;
|
|
26242
26242
|
let currentRawResponse = undefined;
|
|
26243
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
26243
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
26244
26244
|
const callback = (rawResponse, flatResponse) => {
|
|
26245
26245
|
currentRawResponse = rawResponse;
|
|
26246
|
-
providedCallback === null || providedCallback ===
|
|
26246
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
26247
26247
|
};
|
|
26248
26248
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
26249
26249
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -26270,8 +26270,8 @@ class ReplicationMigrationItemsImpl {
|
|
|
26270
26270
|
spec: updateOperationSpec$5,
|
|
26271
26271
|
});
|
|
26272
26272
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
26273
|
-
restoreFrom: options === null || options ===
|
|
26274
|
-
intervalInMs: options === null || options ===
|
|
26273
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
26274
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
26275
26275
|
});
|
|
26276
26276
|
yield poller.poll();
|
|
26277
26277
|
return poller;
|
|
@@ -26289,7 +26289,7 @@ class ReplicationMigrationItemsImpl {
|
|
|
26289
26289
|
* @param options The options parameters.
|
|
26290
26290
|
*/
|
|
26291
26291
|
beginUpdateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options) {
|
|
26292
|
-
return tslib.__awaiter(this,
|
|
26292
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26293
26293
|
const poller = yield this.beginUpdate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options);
|
|
26294
26294
|
return poller.pollUntilDone();
|
|
26295
26295
|
});
|
|
@@ -26306,17 +26306,17 @@ class ReplicationMigrationItemsImpl {
|
|
|
26306
26306
|
* @param options The options parameters.
|
|
26307
26307
|
*/
|
|
26308
26308
|
beginMigrate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, migrateInput, options) {
|
|
26309
|
-
return tslib.__awaiter(this,
|
|
26310
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
26309
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26310
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26311
26311
|
return this.client.sendOperationRequest(args, spec);
|
|
26312
26312
|
});
|
|
26313
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
26313
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26314
26314
|
var _a;
|
|
26315
26315
|
let currentRawResponse = undefined;
|
|
26316
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
26316
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
26317
26317
|
const callback = (rawResponse, flatResponse) => {
|
|
26318
26318
|
currentRawResponse = rawResponse;
|
|
26319
|
-
providedCallback === null || providedCallback ===
|
|
26319
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
26320
26320
|
};
|
|
26321
26321
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
26322
26322
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -26343,8 +26343,8 @@ class ReplicationMigrationItemsImpl {
|
|
|
26343
26343
|
spec: migrateOperationSpec,
|
|
26344
26344
|
});
|
|
26345
26345
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
26346
|
-
restoreFrom: options === null || options ===
|
|
26347
|
-
intervalInMs: options === null || options ===
|
|
26346
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
26347
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
26348
26348
|
});
|
|
26349
26349
|
yield poller.poll();
|
|
26350
26350
|
return poller;
|
|
@@ -26362,7 +26362,7 @@ class ReplicationMigrationItemsImpl {
|
|
|
26362
26362
|
* @param options The options parameters.
|
|
26363
26363
|
*/
|
|
26364
26364
|
beginMigrateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, migrateInput, options) {
|
|
26365
|
-
return tslib.__awaiter(this,
|
|
26365
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26366
26366
|
const poller = yield this.beginMigrate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, migrateInput, options);
|
|
26367
26367
|
return poller.pollUntilDone();
|
|
26368
26368
|
});
|
|
@@ -26379,17 +26379,17 @@ class ReplicationMigrationItemsImpl {
|
|
|
26379
26379
|
* @param options The options parameters.
|
|
26380
26380
|
*/
|
|
26381
26381
|
beginPauseReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput, options) {
|
|
26382
|
-
return tslib.__awaiter(this,
|
|
26383
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
26382
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26383
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26384
26384
|
return this.client.sendOperationRequest(args, spec);
|
|
26385
26385
|
});
|
|
26386
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
26386
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26387
26387
|
var _a;
|
|
26388
26388
|
let currentRawResponse = undefined;
|
|
26389
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
26389
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
26390
26390
|
const callback = (rawResponse, flatResponse) => {
|
|
26391
26391
|
currentRawResponse = rawResponse;
|
|
26392
|
-
providedCallback === null || providedCallback ===
|
|
26392
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
26393
26393
|
};
|
|
26394
26394
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
26395
26395
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -26416,8 +26416,8 @@ class ReplicationMigrationItemsImpl {
|
|
|
26416
26416
|
spec: pauseReplicationOperationSpec,
|
|
26417
26417
|
});
|
|
26418
26418
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
26419
|
-
restoreFrom: options === null || options ===
|
|
26420
|
-
intervalInMs: options === null || options ===
|
|
26419
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
26420
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
26421
26421
|
});
|
|
26422
26422
|
yield poller.poll();
|
|
26423
26423
|
return poller;
|
|
@@ -26435,7 +26435,7 @@ class ReplicationMigrationItemsImpl {
|
|
|
26435
26435
|
* @param options The options parameters.
|
|
26436
26436
|
*/
|
|
26437
26437
|
beginPauseReplicationAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput, options) {
|
|
26438
|
-
return tslib.__awaiter(this,
|
|
26438
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26439
26439
|
const poller = yield this.beginPauseReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput, options);
|
|
26440
26440
|
return poller.pollUntilDone();
|
|
26441
26441
|
});
|
|
@@ -26452,17 +26452,17 @@ class ReplicationMigrationItemsImpl {
|
|
|
26452
26452
|
* @param options The options parameters.
|
|
26453
26453
|
*/
|
|
26454
26454
|
beginResumeReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput, options) {
|
|
26455
|
-
return tslib.__awaiter(this,
|
|
26456
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
26455
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26456
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26457
26457
|
return this.client.sendOperationRequest(args, spec);
|
|
26458
26458
|
});
|
|
26459
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
26459
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26460
26460
|
var _a;
|
|
26461
26461
|
let currentRawResponse = undefined;
|
|
26462
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
26462
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
26463
26463
|
const callback = (rawResponse, flatResponse) => {
|
|
26464
26464
|
currentRawResponse = rawResponse;
|
|
26465
|
-
providedCallback === null || providedCallback ===
|
|
26465
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
26466
26466
|
};
|
|
26467
26467
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
26468
26468
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -26489,8 +26489,8 @@ class ReplicationMigrationItemsImpl {
|
|
|
26489
26489
|
spec: resumeReplicationOperationSpec,
|
|
26490
26490
|
});
|
|
26491
26491
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
26492
|
-
restoreFrom: options === null || options ===
|
|
26493
|
-
intervalInMs: options === null || options ===
|
|
26492
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
26493
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
26494
26494
|
});
|
|
26495
26495
|
yield poller.poll();
|
|
26496
26496
|
return poller;
|
|
@@ -26508,7 +26508,7 @@ class ReplicationMigrationItemsImpl {
|
|
|
26508
26508
|
* @param options The options parameters.
|
|
26509
26509
|
*/
|
|
26510
26510
|
beginResumeReplicationAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput, options) {
|
|
26511
|
-
return tslib.__awaiter(this,
|
|
26511
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26512
26512
|
const poller = yield this.beginResumeReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput, options);
|
|
26513
26513
|
return poller.pollUntilDone();
|
|
26514
26514
|
});
|
|
@@ -26525,17 +26525,17 @@ class ReplicationMigrationItemsImpl {
|
|
|
26525
26525
|
* @param options The options parameters.
|
|
26526
26526
|
*/
|
|
26527
26527
|
beginResync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options) {
|
|
26528
|
-
return tslib.__awaiter(this,
|
|
26529
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
26528
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26529
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26530
26530
|
return this.client.sendOperationRequest(args, spec);
|
|
26531
26531
|
});
|
|
26532
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
26532
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26533
26533
|
var _a;
|
|
26534
26534
|
let currentRawResponse = undefined;
|
|
26535
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
26535
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
26536
26536
|
const callback = (rawResponse, flatResponse) => {
|
|
26537
26537
|
currentRawResponse = rawResponse;
|
|
26538
|
-
providedCallback === null || providedCallback ===
|
|
26538
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
26539
26539
|
};
|
|
26540
26540
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
26541
26541
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -26562,8 +26562,8 @@ class ReplicationMigrationItemsImpl {
|
|
|
26562
26562
|
spec: resyncOperationSpec,
|
|
26563
26563
|
});
|
|
26564
26564
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
26565
|
-
restoreFrom: options === null || options ===
|
|
26566
|
-
intervalInMs: options === null || options ===
|
|
26565
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
26566
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
26567
26567
|
});
|
|
26568
26568
|
yield poller.poll();
|
|
26569
26569
|
return poller;
|
|
@@ -26581,7 +26581,7 @@ class ReplicationMigrationItemsImpl {
|
|
|
26581
26581
|
* @param options The options parameters.
|
|
26582
26582
|
*/
|
|
26583
26583
|
beginResyncAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options) {
|
|
26584
|
-
return tslib.__awaiter(this,
|
|
26584
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26585
26585
|
const poller = yield this.beginResync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options);
|
|
26586
26586
|
return poller.pollUntilDone();
|
|
26587
26587
|
});
|
|
@@ -26598,17 +26598,17 @@ class ReplicationMigrationItemsImpl {
|
|
|
26598
26598
|
* @param options The options parameters.
|
|
26599
26599
|
*/
|
|
26600
26600
|
beginTestMigrate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, testMigrateInput, options) {
|
|
26601
|
-
return tslib.__awaiter(this,
|
|
26602
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
26601
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26602
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26603
26603
|
return this.client.sendOperationRequest(args, spec);
|
|
26604
26604
|
});
|
|
26605
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
26605
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26606
26606
|
var _a;
|
|
26607
26607
|
let currentRawResponse = undefined;
|
|
26608
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
26608
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
26609
26609
|
const callback = (rawResponse, flatResponse) => {
|
|
26610
26610
|
currentRawResponse = rawResponse;
|
|
26611
|
-
providedCallback === null || providedCallback ===
|
|
26611
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
26612
26612
|
};
|
|
26613
26613
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
26614
26614
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -26635,8 +26635,8 @@ class ReplicationMigrationItemsImpl {
|
|
|
26635
26635
|
spec: testMigrateOperationSpec,
|
|
26636
26636
|
});
|
|
26637
26637
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
26638
|
-
restoreFrom: options === null || options ===
|
|
26639
|
-
intervalInMs: options === null || options ===
|
|
26638
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
26639
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
26640
26640
|
});
|
|
26641
26641
|
yield poller.poll();
|
|
26642
26642
|
return poller;
|
|
@@ -26654,7 +26654,7 @@ class ReplicationMigrationItemsImpl {
|
|
|
26654
26654
|
* @param options The options parameters.
|
|
26655
26655
|
*/
|
|
26656
26656
|
beginTestMigrateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, testMigrateInput, options) {
|
|
26657
|
-
return tslib.__awaiter(this,
|
|
26657
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26658
26658
|
const poller = yield this.beginTestMigrate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, testMigrateInput, options);
|
|
26659
26659
|
return poller.pollUntilDone();
|
|
26660
26660
|
});
|
|
@@ -26671,17 +26671,17 @@ class ReplicationMigrationItemsImpl {
|
|
|
26671
26671
|
* @param options The options parameters.
|
|
26672
26672
|
*/
|
|
26673
26673
|
beginTestMigrateCleanup(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput, options) {
|
|
26674
|
-
return tslib.__awaiter(this,
|
|
26675
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
26674
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26675
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26676
26676
|
return this.client.sendOperationRequest(args, spec);
|
|
26677
26677
|
});
|
|
26678
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
26678
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26679
26679
|
var _a;
|
|
26680
26680
|
let currentRawResponse = undefined;
|
|
26681
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
26681
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
26682
26682
|
const callback = (rawResponse, flatResponse) => {
|
|
26683
26683
|
currentRawResponse = rawResponse;
|
|
26684
|
-
providedCallback === null || providedCallback ===
|
|
26684
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
26685
26685
|
};
|
|
26686
26686
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
26687
26687
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -26708,8 +26708,8 @@ class ReplicationMigrationItemsImpl {
|
|
|
26708
26708
|
spec: testMigrateCleanupOperationSpec,
|
|
26709
26709
|
});
|
|
26710
26710
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
26711
|
-
restoreFrom: options === null || options ===
|
|
26712
|
-
intervalInMs: options === null || options ===
|
|
26711
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
26712
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
26713
26713
|
});
|
|
26714
26714
|
yield poller.poll();
|
|
26715
26715
|
return poller;
|
|
@@ -26727,7 +26727,7 @@ class ReplicationMigrationItemsImpl {
|
|
|
26727
26727
|
* @param options The options parameters.
|
|
26728
26728
|
*/
|
|
26729
26729
|
beginTestMigrateCleanupAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput, options) {
|
|
26730
|
-
return tslib.__awaiter(this,
|
|
26730
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26731
26731
|
const poller = yield this.beginTestMigrateCleanup(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput, options);
|
|
26732
26732
|
return poller.pollUntilDone();
|
|
26733
26733
|
});
|
|
@@ -27194,7 +27194,7 @@ class MigrationRecoveryPointsImpl {
|
|
|
27194
27194
|
return this;
|
|
27195
27195
|
},
|
|
27196
27196
|
byPage: (settings) => {
|
|
27197
|
-
if (settings === null || settings ===
|
|
27197
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
27198
27198
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
27199
27199
|
}
|
|
27200
27200
|
return this.listByReplicationMigrationItemsPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, options, settings);
|
|
@@ -27204,7 +27204,7 @@ class MigrationRecoveryPointsImpl {
|
|
|
27204
27204
|
listByReplicationMigrationItemsPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, options, settings) {
|
|
27205
27205
|
return tslib.__asyncGenerator(this, arguments, function* listByReplicationMigrationItemsPagingPage_1() {
|
|
27206
27206
|
let result;
|
|
27207
|
-
let continuationToken = settings === null || settings ===
|
|
27207
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
27208
27208
|
if (!continuationToken) {
|
|
27209
27209
|
result = yield tslib.__await(this._listByReplicationMigrationItems(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, options));
|
|
27210
27210
|
let page = result.value || [];
|
|
@@ -27410,7 +27410,7 @@ class ReplicationProtectableItemsImpl {
|
|
|
27410
27410
|
return this;
|
|
27411
27411
|
},
|
|
27412
27412
|
byPage: (settings) => {
|
|
27413
|
-
if (settings === null || settings ===
|
|
27413
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
27414
27414
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
27415
27415
|
}
|
|
27416
27416
|
return this.listByReplicationProtectionContainersPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, options, settings);
|
|
@@ -27420,7 +27420,7 @@ class ReplicationProtectableItemsImpl {
|
|
|
27420
27420
|
listByReplicationProtectionContainersPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, options, settings) {
|
|
27421
27421
|
return tslib.__asyncGenerator(this, arguments, function* listByReplicationProtectionContainersPagingPage_1() {
|
|
27422
27422
|
let result;
|
|
27423
|
-
let continuationToken = settings === null || settings ===
|
|
27423
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
27424
27424
|
if (!continuationToken) {
|
|
27425
27425
|
result = yield tslib.__await(this._listByReplicationProtectionContainers(resourceName, resourceGroupName, fabricName, protectionContainerName, options));
|
|
27426
27426
|
let page = result.value || [];
|
|
@@ -27622,7 +27622,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
27622
27622
|
return this;
|
|
27623
27623
|
},
|
|
27624
27624
|
byPage: (settings) => {
|
|
27625
|
-
if (settings === null || settings ===
|
|
27625
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
27626
27626
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
27627
27627
|
}
|
|
27628
27628
|
return this.listByReplicationProtectionContainersPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, options, settings);
|
|
@@ -27632,7 +27632,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
27632
27632
|
listByReplicationProtectionContainersPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, options, settings) {
|
|
27633
27633
|
return tslib.__asyncGenerator(this, arguments, function* listByReplicationProtectionContainersPagingPage_1() {
|
|
27634
27634
|
let result;
|
|
27635
|
-
let continuationToken = settings === null || settings ===
|
|
27635
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
27636
27636
|
if (!continuationToken) {
|
|
27637
27637
|
result = yield tslib.__await(this._listByReplicationProtectionContainers(resourceName, resourceGroupName, fabricName, protectionContainerName, options));
|
|
27638
27638
|
let page = result.value || [];
|
|
@@ -27686,7 +27686,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
27686
27686
|
return this;
|
|
27687
27687
|
},
|
|
27688
27688
|
byPage: (settings) => {
|
|
27689
|
-
if (settings === null || settings ===
|
|
27689
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
27690
27690
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
27691
27691
|
}
|
|
27692
27692
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -27696,7 +27696,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
27696
27696
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
27697
27697
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
27698
27698
|
let result;
|
|
27699
|
-
let continuationToken = settings === null || settings ===
|
|
27699
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
27700
27700
|
if (!continuationToken) {
|
|
27701
27701
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
27702
27702
|
let page = result.value || [];
|
|
@@ -27783,17 +27783,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
27783
27783
|
* @param options The options parameters.
|
|
27784
27784
|
*/
|
|
27785
27785
|
beginCreate(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, input, options) {
|
|
27786
|
-
return tslib.__awaiter(this,
|
|
27787
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
27786
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
27787
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
27788
27788
|
return this.client.sendOperationRequest(args, spec);
|
|
27789
27789
|
});
|
|
27790
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
27790
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
27791
27791
|
var _a;
|
|
27792
27792
|
let currentRawResponse = undefined;
|
|
27793
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
27793
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
27794
27794
|
const callback = (rawResponse, flatResponse) => {
|
|
27795
27795
|
currentRawResponse = rawResponse;
|
|
27796
|
-
providedCallback === null || providedCallback ===
|
|
27796
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
27797
27797
|
};
|
|
27798
27798
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
27799
27799
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -27820,8 +27820,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
27820
27820
|
spec: createOperationSpec$8,
|
|
27821
27821
|
});
|
|
27822
27822
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
27823
|
-
restoreFrom: options === null || options ===
|
|
27824
|
-
intervalInMs: options === null || options ===
|
|
27823
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
27824
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
27825
27825
|
});
|
|
27826
27826
|
yield poller.poll();
|
|
27827
27827
|
return poller;
|
|
@@ -27839,7 +27839,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
27839
27839
|
* @param options The options parameters.
|
|
27840
27840
|
*/
|
|
27841
27841
|
beginCreateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, input, options) {
|
|
27842
|
-
return tslib.__awaiter(this,
|
|
27842
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
27843
27843
|
const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, input, options);
|
|
27844
27844
|
return poller.pollUntilDone();
|
|
27845
27845
|
});
|
|
@@ -27857,17 +27857,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
27857
27857
|
* @param options The options parameters.
|
|
27858
27858
|
*/
|
|
27859
27859
|
beginPurge(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options) {
|
|
27860
|
-
return tslib.__awaiter(this,
|
|
27861
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
27860
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
27861
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
27862
27862
|
return this.client.sendOperationRequest(args, spec);
|
|
27863
27863
|
});
|
|
27864
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
27864
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
27865
27865
|
var _a;
|
|
27866
27866
|
let currentRawResponse = undefined;
|
|
27867
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
27867
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
27868
27868
|
const callback = (rawResponse, flatResponse) => {
|
|
27869
27869
|
currentRawResponse = rawResponse;
|
|
27870
|
-
providedCallback === null || providedCallback ===
|
|
27870
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
27871
27871
|
};
|
|
27872
27872
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
27873
27873
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -27893,8 +27893,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
27893
27893
|
spec: purgeOperationSpec$2,
|
|
27894
27894
|
});
|
|
27895
27895
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
27896
|
-
restoreFrom: options === null || options ===
|
|
27897
|
-
intervalInMs: options === null || options ===
|
|
27896
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
27897
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
27898
27898
|
});
|
|
27899
27899
|
yield poller.poll();
|
|
27900
27900
|
return poller;
|
|
@@ -27913,7 +27913,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
27913
27913
|
* @param options The options parameters.
|
|
27914
27914
|
*/
|
|
27915
27915
|
beginPurgeAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options) {
|
|
27916
|
-
return tslib.__awaiter(this,
|
|
27916
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
27917
27917
|
const poller = yield this.beginPurge(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options);
|
|
27918
27918
|
return poller.pollUntilDone();
|
|
27919
27919
|
});
|
|
@@ -27930,17 +27930,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
27930
27930
|
* @param options The options parameters.
|
|
27931
27931
|
*/
|
|
27932
27932
|
beginUpdate(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, options) {
|
|
27933
|
-
return tslib.__awaiter(this,
|
|
27934
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
27933
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
27934
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
27935
27935
|
return this.client.sendOperationRequest(args, spec);
|
|
27936
27936
|
});
|
|
27937
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
27937
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
27938
27938
|
var _a;
|
|
27939
27939
|
let currentRawResponse = undefined;
|
|
27940
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
27940
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
27941
27941
|
const callback = (rawResponse, flatResponse) => {
|
|
27942
27942
|
currentRawResponse = rawResponse;
|
|
27943
|
-
providedCallback === null || providedCallback ===
|
|
27943
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
27944
27944
|
};
|
|
27945
27945
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
27946
27946
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -27967,8 +27967,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
27967
27967
|
spec: updateOperationSpec$4,
|
|
27968
27968
|
});
|
|
27969
27969
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
27970
|
-
restoreFrom: options === null || options ===
|
|
27971
|
-
intervalInMs: options === null || options ===
|
|
27970
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
27971
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
27972
27972
|
});
|
|
27973
27973
|
yield poller.poll();
|
|
27974
27974
|
return poller;
|
|
@@ -27986,7 +27986,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
27986
27986
|
* @param options The options parameters.
|
|
27987
27987
|
*/
|
|
27988
27988
|
beginUpdateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, options) {
|
|
27989
|
-
return tslib.__awaiter(this,
|
|
27989
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
27990
27990
|
const poller = yield this.beginUpdate(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, options);
|
|
27991
27991
|
return poller.pollUntilDone();
|
|
27992
27992
|
});
|
|
@@ -28003,17 +28003,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
28003
28003
|
* @param options The options parameters.
|
|
28004
28004
|
*/
|
|
28005
28005
|
beginAddDisks(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, options) {
|
|
28006
|
-
return tslib.__awaiter(this,
|
|
28007
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
28006
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28007
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28008
28008
|
return this.client.sendOperationRequest(args, spec);
|
|
28009
28009
|
});
|
|
28010
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
28010
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28011
28011
|
var _a;
|
|
28012
28012
|
let currentRawResponse = undefined;
|
|
28013
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
28013
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
28014
28014
|
const callback = (rawResponse, flatResponse) => {
|
|
28015
28015
|
currentRawResponse = rawResponse;
|
|
28016
|
-
providedCallback === null || providedCallback ===
|
|
28016
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
28017
28017
|
};
|
|
28018
28018
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
28019
28019
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -28040,8 +28040,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
28040
28040
|
spec: addDisksOperationSpec,
|
|
28041
28041
|
});
|
|
28042
28042
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
28043
|
-
restoreFrom: options === null || options ===
|
|
28044
|
-
intervalInMs: options === null || options ===
|
|
28043
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
28044
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
28045
28045
|
});
|
|
28046
28046
|
yield poller.poll();
|
|
28047
28047
|
return poller;
|
|
@@ -28059,7 +28059,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
28059
28059
|
* @param options The options parameters.
|
|
28060
28060
|
*/
|
|
28061
28061
|
beginAddDisksAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, options) {
|
|
28062
|
-
return tslib.__awaiter(this,
|
|
28062
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28063
28063
|
const poller = yield this.beginAddDisks(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, options);
|
|
28064
28064
|
return poller.pollUntilDone();
|
|
28065
28065
|
});
|
|
@@ -28076,17 +28076,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
28076
28076
|
* @param options The options parameters.
|
|
28077
28077
|
*/
|
|
28078
28078
|
beginApplyRecoveryPoint(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, options) {
|
|
28079
|
-
return tslib.__awaiter(this,
|
|
28080
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
28079
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28080
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28081
28081
|
return this.client.sendOperationRequest(args, spec);
|
|
28082
28082
|
});
|
|
28083
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
28083
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28084
28084
|
var _a;
|
|
28085
28085
|
let currentRawResponse = undefined;
|
|
28086
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
28086
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
28087
28087
|
const callback = (rawResponse, flatResponse) => {
|
|
28088
28088
|
currentRawResponse = rawResponse;
|
|
28089
|
-
providedCallback === null || providedCallback ===
|
|
28089
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
28090
28090
|
};
|
|
28091
28091
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
28092
28092
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -28113,8 +28113,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
28113
28113
|
spec: applyRecoveryPointOperationSpec,
|
|
28114
28114
|
});
|
|
28115
28115
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
28116
|
-
restoreFrom: options === null || options ===
|
|
28117
|
-
intervalInMs: options === null || options ===
|
|
28116
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
28117
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
28118
28118
|
});
|
|
28119
28119
|
yield poller.poll();
|
|
28120
28120
|
return poller;
|
|
@@ -28132,7 +28132,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
28132
28132
|
* @param options The options parameters.
|
|
28133
28133
|
*/
|
|
28134
28134
|
beginApplyRecoveryPointAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, options) {
|
|
28135
|
-
return tslib.__awaiter(this,
|
|
28135
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28136
28136
|
const poller = yield this.beginApplyRecoveryPoint(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, options);
|
|
28137
28137
|
return poller.pollUntilDone();
|
|
28138
28138
|
});
|
|
@@ -28148,17 +28148,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
28148
28148
|
* @param options The options parameters.
|
|
28149
28149
|
*/
|
|
28150
28150
|
beginFailoverCancel(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options) {
|
|
28151
|
-
return tslib.__awaiter(this,
|
|
28152
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
28151
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28152
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28153
28153
|
return this.client.sendOperationRequest(args, spec);
|
|
28154
28154
|
});
|
|
28155
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
28155
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28156
28156
|
var _a;
|
|
28157
28157
|
let currentRawResponse = undefined;
|
|
28158
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
28158
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
28159
28159
|
const callback = (rawResponse, flatResponse) => {
|
|
28160
28160
|
currentRawResponse = rawResponse;
|
|
28161
|
-
providedCallback === null || providedCallback ===
|
|
28161
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
28162
28162
|
};
|
|
28163
28163
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
28164
28164
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -28184,8 +28184,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
28184
28184
|
spec: failoverCancelOperationSpec$1,
|
|
28185
28185
|
});
|
|
28186
28186
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
28187
|
-
restoreFrom: options === null || options ===
|
|
28188
|
-
intervalInMs: options === null || options ===
|
|
28187
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
28188
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
28189
28189
|
});
|
|
28190
28190
|
yield poller.poll();
|
|
28191
28191
|
return poller;
|
|
@@ -28202,7 +28202,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
28202
28202
|
* @param options The options parameters.
|
|
28203
28203
|
*/
|
|
28204
28204
|
beginFailoverCancelAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options) {
|
|
28205
|
-
return tslib.__awaiter(this,
|
|
28205
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28206
28206
|
const poller = yield this.beginFailoverCancel(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options);
|
|
28207
28207
|
return poller.pollUntilDone();
|
|
28208
28208
|
});
|
|
@@ -28218,17 +28218,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
28218
28218
|
* @param options The options parameters.
|
|
28219
28219
|
*/
|
|
28220
28220
|
beginFailoverCommit(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options) {
|
|
28221
|
-
return tslib.__awaiter(this,
|
|
28222
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
28221
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28222
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28223
28223
|
return this.client.sendOperationRequest(args, spec);
|
|
28224
28224
|
});
|
|
28225
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
28225
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28226
28226
|
var _a;
|
|
28227
28227
|
let currentRawResponse = undefined;
|
|
28228
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
28228
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
28229
28229
|
const callback = (rawResponse, flatResponse) => {
|
|
28230
28230
|
currentRawResponse = rawResponse;
|
|
28231
|
-
providedCallback === null || providedCallback ===
|
|
28231
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
28232
28232
|
};
|
|
28233
28233
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
28234
28234
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -28254,8 +28254,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
28254
28254
|
spec: failoverCommitOperationSpec$1,
|
|
28255
28255
|
});
|
|
28256
28256
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
28257
|
-
restoreFrom: options === null || options ===
|
|
28258
|
-
intervalInMs: options === null || options ===
|
|
28257
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
28258
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
28259
28259
|
});
|
|
28260
28260
|
yield poller.poll();
|
|
28261
28261
|
return poller;
|
|
@@ -28272,7 +28272,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
28272
28272
|
* @param options The options parameters.
|
|
28273
28273
|
*/
|
|
28274
28274
|
beginFailoverCommitAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options) {
|
|
28275
|
-
return tslib.__awaiter(this,
|
|
28275
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28276
28276
|
const poller = yield this.beginFailoverCommit(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options);
|
|
28277
28277
|
return poller.pollUntilDone();
|
|
28278
28278
|
});
|
|
@@ -28289,17 +28289,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
28289
28289
|
* @param options The options parameters.
|
|
28290
28290
|
*/
|
|
28291
28291
|
beginPlannedFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options) {
|
|
28292
|
-
return tslib.__awaiter(this,
|
|
28293
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
28292
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28293
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28294
28294
|
return this.client.sendOperationRequest(args, spec);
|
|
28295
28295
|
});
|
|
28296
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
28296
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28297
28297
|
var _a;
|
|
28298
28298
|
let currentRawResponse = undefined;
|
|
28299
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
28299
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
28300
28300
|
const callback = (rawResponse, flatResponse) => {
|
|
28301
28301
|
currentRawResponse = rawResponse;
|
|
28302
|
-
providedCallback === null || providedCallback ===
|
|
28302
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
28303
28303
|
};
|
|
28304
28304
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
28305
28305
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -28326,8 +28326,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
28326
28326
|
spec: plannedFailoverOperationSpec$1,
|
|
28327
28327
|
});
|
|
28328
28328
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
28329
|
-
restoreFrom: options === null || options ===
|
|
28330
|
-
intervalInMs: options === null || options ===
|
|
28329
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
28330
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
28331
28331
|
});
|
|
28332
28332
|
yield poller.poll();
|
|
28333
28333
|
return poller;
|
|
@@ -28345,7 +28345,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
28345
28345
|
* @param options The options parameters.
|
|
28346
28346
|
*/
|
|
28347
28347
|
beginPlannedFailoverAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options) {
|
|
28348
|
-
return tslib.__awaiter(this,
|
|
28348
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28349
28349
|
const poller = yield this.beginPlannedFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options);
|
|
28350
28350
|
return poller.pollUntilDone();
|
|
28351
28351
|
});
|
|
@@ -28363,17 +28363,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
28363
28363
|
* @param options The options parameters.
|
|
28364
28364
|
*/
|
|
28365
28365
|
beginDelete(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, options) {
|
|
28366
|
-
return tslib.__awaiter(this,
|
|
28367
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
28366
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28367
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28368
28368
|
return this.client.sendOperationRequest(args, spec);
|
|
28369
28369
|
});
|
|
28370
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
28370
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28371
28371
|
var _a;
|
|
28372
28372
|
let currentRawResponse = undefined;
|
|
28373
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
28373
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
28374
28374
|
const callback = (rawResponse, flatResponse) => {
|
|
28375
28375
|
currentRawResponse = rawResponse;
|
|
28376
|
-
providedCallback === null || providedCallback ===
|
|
28376
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
28377
28377
|
};
|
|
28378
28378
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
28379
28379
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -28400,8 +28400,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
28400
28400
|
spec: deleteOperationSpec$6,
|
|
28401
28401
|
});
|
|
28402
28402
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
28403
|
-
restoreFrom: options === null || options ===
|
|
28404
|
-
intervalInMs: options === null || options ===
|
|
28403
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
28404
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
28405
28405
|
});
|
|
28406
28406
|
yield poller.poll();
|
|
28407
28407
|
return poller;
|
|
@@ -28420,7 +28420,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
28420
28420
|
* @param options The options parameters.
|
|
28421
28421
|
*/
|
|
28422
28422
|
beginDeleteAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, options) {
|
|
28423
|
-
return tslib.__awaiter(this,
|
|
28423
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28424
28424
|
const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, options);
|
|
28425
28425
|
return poller.pollUntilDone();
|
|
28426
28426
|
});
|
|
@@ -28437,17 +28437,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
28437
28437
|
* @param options The options parameters.
|
|
28438
28438
|
*/
|
|
28439
28439
|
beginRemoveDisks(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, options) {
|
|
28440
|
-
return tslib.__awaiter(this,
|
|
28441
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
28440
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28441
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28442
28442
|
return this.client.sendOperationRequest(args, spec);
|
|
28443
28443
|
});
|
|
28444
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
28444
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28445
28445
|
var _a;
|
|
28446
28446
|
let currentRawResponse = undefined;
|
|
28447
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
28447
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
28448
28448
|
const callback = (rawResponse, flatResponse) => {
|
|
28449
28449
|
currentRawResponse = rawResponse;
|
|
28450
|
-
providedCallback === null || providedCallback ===
|
|
28450
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
28451
28451
|
};
|
|
28452
28452
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
28453
28453
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -28474,8 +28474,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
28474
28474
|
spec: removeDisksOperationSpec,
|
|
28475
28475
|
});
|
|
28476
28476
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
28477
|
-
restoreFrom: options === null || options ===
|
|
28478
|
-
intervalInMs: options === null || options ===
|
|
28477
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
28478
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
28479
28479
|
});
|
|
28480
28480
|
yield poller.poll();
|
|
28481
28481
|
return poller;
|
|
@@ -28493,7 +28493,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
28493
28493
|
* @param options The options parameters.
|
|
28494
28494
|
*/
|
|
28495
28495
|
beginRemoveDisksAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, options) {
|
|
28496
|
-
return tslib.__awaiter(this,
|
|
28496
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28497
28497
|
const poller = yield this.beginRemoveDisks(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, options);
|
|
28498
28498
|
return poller.pollUntilDone();
|
|
28499
28499
|
});
|
|
@@ -28510,17 +28510,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
28510
28510
|
* @param options The options parameters.
|
|
28511
28511
|
*/
|
|
28512
28512
|
beginRepairReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options) {
|
|
28513
|
-
return tslib.__awaiter(this,
|
|
28514
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
28513
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28514
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28515
28515
|
return this.client.sendOperationRequest(args, spec);
|
|
28516
28516
|
});
|
|
28517
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
28517
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28518
28518
|
var _a;
|
|
28519
28519
|
let currentRawResponse = undefined;
|
|
28520
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
28520
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
28521
28521
|
const callback = (rawResponse, flatResponse) => {
|
|
28522
28522
|
currentRawResponse = rawResponse;
|
|
28523
|
-
providedCallback === null || providedCallback ===
|
|
28523
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
28524
28524
|
};
|
|
28525
28525
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
28526
28526
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -28546,8 +28546,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
28546
28546
|
spec: repairReplicationOperationSpec,
|
|
28547
28547
|
});
|
|
28548
28548
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
28549
|
-
restoreFrom: options === null || options ===
|
|
28550
|
-
intervalInMs: options === null || options ===
|
|
28549
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
28550
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
28551
28551
|
});
|
|
28552
28552
|
yield poller.poll();
|
|
28553
28553
|
return poller;
|
|
@@ -28565,7 +28565,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
28565
28565
|
* @param options The options parameters.
|
|
28566
28566
|
*/
|
|
28567
28567
|
beginRepairReplicationAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options) {
|
|
28568
|
-
return tslib.__awaiter(this,
|
|
28568
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28569
28569
|
const poller = yield this.beginRepairReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options);
|
|
28570
28570
|
return poller.pollUntilDone();
|
|
28571
28571
|
});
|
|
@@ -28582,17 +28582,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
28582
28582
|
* @param options The options parameters.
|
|
28583
28583
|
*/
|
|
28584
28584
|
beginReprotect(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, options) {
|
|
28585
|
-
return tslib.__awaiter(this,
|
|
28586
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
28585
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28586
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28587
28587
|
return this.client.sendOperationRequest(args, spec);
|
|
28588
28588
|
});
|
|
28589
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
28589
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28590
28590
|
var _a;
|
|
28591
28591
|
let currentRawResponse = undefined;
|
|
28592
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
28592
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
28593
28593
|
const callback = (rawResponse, flatResponse) => {
|
|
28594
28594
|
currentRawResponse = rawResponse;
|
|
28595
|
-
providedCallback === null || providedCallback ===
|
|
28595
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
28596
28596
|
};
|
|
28597
28597
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
28598
28598
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -28619,8 +28619,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
28619
28619
|
spec: reprotectOperationSpec$1,
|
|
28620
28620
|
});
|
|
28621
28621
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
28622
|
-
restoreFrom: options === null || options ===
|
|
28623
|
-
intervalInMs: options === null || options ===
|
|
28622
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
28623
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
28624
28624
|
});
|
|
28625
28625
|
yield poller.poll();
|
|
28626
28626
|
return poller;
|
|
@@ -28638,7 +28638,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
28638
28638
|
* @param options The options parameters.
|
|
28639
28639
|
*/
|
|
28640
28640
|
beginReprotectAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, options) {
|
|
28641
|
-
return tslib.__awaiter(this,
|
|
28641
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28642
28642
|
const poller = yield this.beginReprotect(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, options);
|
|
28643
28643
|
return poller.pollUntilDone();
|
|
28644
28644
|
});
|
|
@@ -28655,17 +28655,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
28655
28655
|
* @param options The options parameters.
|
|
28656
28656
|
*/
|
|
28657
28657
|
beginResolveHealthErrors(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, options) {
|
|
28658
|
-
return tslib.__awaiter(this,
|
|
28659
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
28658
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28659
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28660
28660
|
return this.client.sendOperationRequest(args, spec);
|
|
28661
28661
|
});
|
|
28662
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
28662
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28663
28663
|
var _a;
|
|
28664
28664
|
let currentRawResponse = undefined;
|
|
28665
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
28665
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
28666
28666
|
const callback = (rawResponse, flatResponse) => {
|
|
28667
28667
|
currentRawResponse = rawResponse;
|
|
28668
|
-
providedCallback === null || providedCallback ===
|
|
28668
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
28669
28669
|
};
|
|
28670
28670
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
28671
28671
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -28692,8 +28692,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
28692
28692
|
spec: resolveHealthErrorsOperationSpec,
|
|
28693
28693
|
});
|
|
28694
28694
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
28695
|
-
restoreFrom: options === null || options ===
|
|
28696
|
-
intervalInMs: options === null || options ===
|
|
28695
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
28696
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
28697
28697
|
});
|
|
28698
28698
|
yield poller.poll();
|
|
28699
28699
|
return poller;
|
|
@@ -28711,7 +28711,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
28711
28711
|
* @param options The options parameters.
|
|
28712
28712
|
*/
|
|
28713
28713
|
beginResolveHealthErrorsAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, options) {
|
|
28714
|
-
return tslib.__awaiter(this,
|
|
28714
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28715
28715
|
const poller = yield this.beginResolveHealthErrors(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, options);
|
|
28716
28716
|
return poller.pollUntilDone();
|
|
28717
28717
|
});
|
|
@@ -28728,17 +28728,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
28728
28728
|
* @param options The options parameters.
|
|
28729
28729
|
*/
|
|
28730
28730
|
beginSwitchProvider(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput, options) {
|
|
28731
|
-
return tslib.__awaiter(this,
|
|
28732
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
28731
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28732
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28733
28733
|
return this.client.sendOperationRequest(args, spec);
|
|
28734
28734
|
});
|
|
28735
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
28735
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28736
28736
|
var _a;
|
|
28737
28737
|
let currentRawResponse = undefined;
|
|
28738
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
28738
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
28739
28739
|
const callback = (rawResponse, flatResponse) => {
|
|
28740
28740
|
currentRawResponse = rawResponse;
|
|
28741
|
-
providedCallback === null || providedCallback ===
|
|
28741
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
28742
28742
|
};
|
|
28743
28743
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
28744
28744
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -28765,8 +28765,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
28765
28765
|
spec: switchProviderOperationSpec,
|
|
28766
28766
|
});
|
|
28767
28767
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
28768
|
-
restoreFrom: options === null || options ===
|
|
28769
|
-
intervalInMs: options === null || options ===
|
|
28768
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
28769
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
28770
28770
|
resourceLocationConfig: "azure-async-operation",
|
|
28771
28771
|
});
|
|
28772
28772
|
yield poller.poll();
|
|
@@ -28785,7 +28785,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
28785
28785
|
* @param options The options parameters.
|
|
28786
28786
|
*/
|
|
28787
28787
|
beginSwitchProviderAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput, options) {
|
|
28788
|
-
return tslib.__awaiter(this,
|
|
28788
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28789
28789
|
const poller = yield this.beginSwitchProvider(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput, options);
|
|
28790
28790
|
return poller.pollUntilDone();
|
|
28791
28791
|
});
|
|
@@ -28802,17 +28802,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
28802
28802
|
* @param options The options parameters.
|
|
28803
28803
|
*/
|
|
28804
28804
|
beginTestFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, options) {
|
|
28805
|
-
return tslib.__awaiter(this,
|
|
28806
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
28805
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28806
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28807
28807
|
return this.client.sendOperationRequest(args, spec);
|
|
28808
28808
|
});
|
|
28809
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
28809
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28810
28810
|
var _a;
|
|
28811
28811
|
let currentRawResponse = undefined;
|
|
28812
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
28812
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
28813
28813
|
const callback = (rawResponse, flatResponse) => {
|
|
28814
28814
|
currentRawResponse = rawResponse;
|
|
28815
|
-
providedCallback === null || providedCallback ===
|
|
28815
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
28816
28816
|
};
|
|
28817
28817
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
28818
28818
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -28839,8 +28839,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
28839
28839
|
spec: testFailoverOperationSpec$1,
|
|
28840
28840
|
});
|
|
28841
28841
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
28842
|
-
restoreFrom: options === null || options ===
|
|
28843
|
-
intervalInMs: options === null || options ===
|
|
28842
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
28843
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
28844
28844
|
});
|
|
28845
28845
|
yield poller.poll();
|
|
28846
28846
|
return poller;
|
|
@@ -28858,7 +28858,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
28858
28858
|
* @param options The options parameters.
|
|
28859
28859
|
*/
|
|
28860
28860
|
beginTestFailoverAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, options) {
|
|
28861
|
-
return tslib.__awaiter(this,
|
|
28861
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28862
28862
|
const poller = yield this.beginTestFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, options);
|
|
28863
28863
|
return poller.pollUntilDone();
|
|
28864
28864
|
});
|
|
@@ -28875,17 +28875,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
28875
28875
|
* @param options The options parameters.
|
|
28876
28876
|
*/
|
|
28877
28877
|
beginTestFailoverCleanup(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, options) {
|
|
28878
|
-
return tslib.__awaiter(this,
|
|
28879
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
28878
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28879
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28880
28880
|
return this.client.sendOperationRequest(args, spec);
|
|
28881
28881
|
});
|
|
28882
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
28882
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28883
28883
|
var _a;
|
|
28884
28884
|
let currentRawResponse = undefined;
|
|
28885
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
28885
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
28886
28886
|
const callback = (rawResponse, flatResponse) => {
|
|
28887
28887
|
currentRawResponse = rawResponse;
|
|
28888
|
-
providedCallback === null || providedCallback ===
|
|
28888
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
28889
28889
|
};
|
|
28890
28890
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
28891
28891
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -28912,8 +28912,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
28912
28912
|
spec: testFailoverCleanupOperationSpec$1,
|
|
28913
28913
|
});
|
|
28914
28914
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
28915
|
-
restoreFrom: options === null || options ===
|
|
28916
|
-
intervalInMs: options === null || options ===
|
|
28915
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
28916
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
28917
28917
|
});
|
|
28918
28918
|
yield poller.poll();
|
|
28919
28919
|
return poller;
|
|
@@ -28931,7 +28931,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
28931
28931
|
* @param options The options parameters.
|
|
28932
28932
|
*/
|
|
28933
28933
|
beginTestFailoverCleanupAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, options) {
|
|
28934
|
-
return tslib.__awaiter(this,
|
|
28934
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28935
28935
|
const poller = yield this.beginTestFailoverCleanup(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, options);
|
|
28936
28936
|
return poller.pollUntilDone();
|
|
28937
28937
|
});
|
|
@@ -28948,17 +28948,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
28948
28948
|
* @param options The options parameters.
|
|
28949
28949
|
*/
|
|
28950
28950
|
beginUnplannedFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options) {
|
|
28951
|
-
return tslib.__awaiter(this,
|
|
28952
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
28951
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28952
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28953
28953
|
return this.client.sendOperationRequest(args, spec);
|
|
28954
28954
|
});
|
|
28955
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
28955
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28956
28956
|
var _a;
|
|
28957
28957
|
let currentRawResponse = undefined;
|
|
28958
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
28958
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
28959
28959
|
const callback = (rawResponse, flatResponse) => {
|
|
28960
28960
|
currentRawResponse = rawResponse;
|
|
28961
|
-
providedCallback === null || providedCallback ===
|
|
28961
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
28962
28962
|
};
|
|
28963
28963
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
28964
28964
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -28985,8 +28985,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
28985
28985
|
spec: unplannedFailoverOperationSpec$1,
|
|
28986
28986
|
});
|
|
28987
28987
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
28988
|
-
restoreFrom: options === null || options ===
|
|
28989
|
-
intervalInMs: options === null || options ===
|
|
28988
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
28989
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
28990
28990
|
});
|
|
28991
28991
|
yield poller.poll();
|
|
28992
28992
|
return poller;
|
|
@@ -29004,7 +29004,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
29004
29004
|
* @param options The options parameters.
|
|
29005
29005
|
*/
|
|
29006
29006
|
beginUnplannedFailoverAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options) {
|
|
29007
|
-
return tslib.__awaiter(this,
|
|
29007
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
29008
29008
|
const poller = yield this.beginUnplannedFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options);
|
|
29009
29009
|
return poller.pollUntilDone();
|
|
29010
29010
|
});
|
|
@@ -29021,17 +29021,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
29021
29021
|
* @param options The options parameters.
|
|
29022
29022
|
*/
|
|
29023
29023
|
beginUpdateAppliance(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, options) {
|
|
29024
|
-
return tslib.__awaiter(this,
|
|
29025
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
29024
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
29025
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
29026
29026
|
return this.client.sendOperationRequest(args, spec);
|
|
29027
29027
|
});
|
|
29028
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
29028
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
29029
29029
|
var _a;
|
|
29030
29030
|
let currentRawResponse = undefined;
|
|
29031
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
29031
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
29032
29032
|
const callback = (rawResponse, flatResponse) => {
|
|
29033
29033
|
currentRawResponse = rawResponse;
|
|
29034
|
-
providedCallback === null || providedCallback ===
|
|
29034
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
29035
29035
|
};
|
|
29036
29036
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
29037
29037
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -29058,8 +29058,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
29058
29058
|
spec: updateApplianceOperationSpec,
|
|
29059
29059
|
});
|
|
29060
29060
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
29061
|
-
restoreFrom: options === null || options ===
|
|
29062
|
-
intervalInMs: options === null || options ===
|
|
29061
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
29062
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
29063
29063
|
});
|
|
29064
29064
|
yield poller.poll();
|
|
29065
29065
|
return poller;
|
|
@@ -29077,7 +29077,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
29077
29077
|
* @param options The options parameters.
|
|
29078
29078
|
*/
|
|
29079
29079
|
beginUpdateApplianceAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, options) {
|
|
29080
|
-
return tslib.__awaiter(this,
|
|
29080
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
29081
29081
|
const poller = yield this.beginUpdateAppliance(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, options);
|
|
29082
29082
|
return poller.pollUntilDone();
|
|
29083
29083
|
});
|
|
@@ -29096,17 +29096,17 @@ class ReplicationProtectedItemsImpl {
|
|
|
29096
29096
|
* @param options The options parameters.
|
|
29097
29097
|
*/
|
|
29098
29098
|
beginUpdateMobilityService(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest, options) {
|
|
29099
|
-
return tslib.__awaiter(this,
|
|
29100
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
29099
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
29100
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
29101
29101
|
return this.client.sendOperationRequest(args, spec);
|
|
29102
29102
|
});
|
|
29103
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
29103
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
29104
29104
|
var _a;
|
|
29105
29105
|
let currentRawResponse = undefined;
|
|
29106
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
29106
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
29107
29107
|
const callback = (rawResponse, flatResponse) => {
|
|
29108
29108
|
currentRawResponse = rawResponse;
|
|
29109
|
-
providedCallback === null || providedCallback ===
|
|
29109
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
29110
29110
|
};
|
|
29111
29111
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
29112
29112
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -29133,8 +29133,8 @@ class ReplicationProtectedItemsImpl {
|
|
|
29133
29133
|
spec: updateMobilityServiceOperationSpec,
|
|
29134
29134
|
});
|
|
29135
29135
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
29136
|
-
restoreFrom: options === null || options ===
|
|
29137
|
-
intervalInMs: options === null || options ===
|
|
29136
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
29137
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
29138
29138
|
resourceLocationConfig: "location",
|
|
29139
29139
|
});
|
|
29140
29140
|
yield poller.poll();
|
|
@@ -29155,7 +29155,7 @@ class ReplicationProtectedItemsImpl {
|
|
|
29155
29155
|
* @param options The options parameters.
|
|
29156
29156
|
*/
|
|
29157
29157
|
beginUpdateMobilityServiceAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest, options) {
|
|
29158
|
-
return tslib.__awaiter(this,
|
|
29158
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
29159
29159
|
const poller = yield this.beginUpdateMobilityService(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest, options);
|
|
29160
29160
|
return poller.pollUntilDone();
|
|
29161
29161
|
});
|
|
@@ -29917,7 +29917,7 @@ class RecoveryPointsImpl {
|
|
|
29917
29917
|
return this;
|
|
29918
29918
|
},
|
|
29919
29919
|
byPage: (settings) => {
|
|
29920
|
-
if (settings === null || settings ===
|
|
29920
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
29921
29921
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
29922
29922
|
}
|
|
29923
29923
|
return this.listByReplicationProtectedItemsPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options, settings);
|
|
@@ -29927,7 +29927,7 @@ class RecoveryPointsImpl {
|
|
|
29927
29927
|
listByReplicationProtectedItemsPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options, settings) {
|
|
29928
29928
|
return tslib.__asyncGenerator(this, arguments, function* listByReplicationProtectedItemsPagingPage_1() {
|
|
29929
29929
|
let result;
|
|
29930
|
-
let continuationToken = settings === null || settings ===
|
|
29930
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
29931
29931
|
if (!continuationToken) {
|
|
29932
29932
|
result = yield tslib.__await(this._listByReplicationProtectedItems(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options));
|
|
29933
29933
|
let page = result.value || [];
|
|
@@ -30134,7 +30134,7 @@ class TargetComputeSizesImpl {
|
|
|
30134
30134
|
return this;
|
|
30135
30135
|
},
|
|
30136
30136
|
byPage: (settings) => {
|
|
30137
|
-
if (settings === null || settings ===
|
|
30137
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
30138
30138
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
30139
30139
|
}
|
|
30140
30140
|
return this.listByReplicationProtectedItemsPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options, settings);
|
|
@@ -30144,7 +30144,7 @@ class TargetComputeSizesImpl {
|
|
|
30144
30144
|
listByReplicationProtectedItemsPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options, settings) {
|
|
30145
30145
|
return tslib.__asyncGenerator(this, arguments, function* listByReplicationProtectedItemsPagingPage_1() {
|
|
30146
30146
|
let result;
|
|
30147
|
-
let continuationToken = settings === null || settings ===
|
|
30147
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
30148
30148
|
if (!continuationToken) {
|
|
30149
30149
|
result = yield tslib.__await(this._listByReplicationProtectedItems(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options));
|
|
30150
30150
|
let page = result.value || [];
|
|
@@ -30306,7 +30306,7 @@ class ReplicationProtectionContainerMappingsImpl {
|
|
|
30306
30306
|
return this;
|
|
30307
30307
|
},
|
|
30308
30308
|
byPage: (settings) => {
|
|
30309
|
-
if (settings === null || settings ===
|
|
30309
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
30310
30310
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
30311
30311
|
}
|
|
30312
30312
|
return this.listByReplicationProtectionContainersPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, options, settings);
|
|
@@ -30316,7 +30316,7 @@ class ReplicationProtectionContainerMappingsImpl {
|
|
|
30316
30316
|
listByReplicationProtectionContainersPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, options, settings) {
|
|
30317
30317
|
return tslib.__asyncGenerator(this, arguments, function* listByReplicationProtectionContainersPagingPage_1() {
|
|
30318
30318
|
let result;
|
|
30319
|
-
let continuationToken = settings === null || settings ===
|
|
30319
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
30320
30320
|
if (!continuationToken) {
|
|
30321
30321
|
result = yield tslib.__await(this._listByReplicationProtectionContainers(resourceName, resourceGroupName, fabricName, protectionContainerName, options));
|
|
30322
30322
|
let page = result.value || [];
|
|
@@ -30370,7 +30370,7 @@ class ReplicationProtectionContainerMappingsImpl {
|
|
|
30370
30370
|
return this;
|
|
30371
30371
|
},
|
|
30372
30372
|
byPage: (settings) => {
|
|
30373
|
-
if (settings === null || settings ===
|
|
30373
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
30374
30374
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
30375
30375
|
}
|
|
30376
30376
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -30380,7 +30380,7 @@ class ReplicationProtectionContainerMappingsImpl {
|
|
|
30380
30380
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
30381
30381
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
30382
30382
|
let result;
|
|
30383
|
-
let continuationToken = settings === null || settings ===
|
|
30383
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
30384
30384
|
if (!continuationToken) {
|
|
30385
30385
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
30386
30386
|
let page = result.value || [];
|
|
@@ -30467,17 +30467,17 @@ class ReplicationProtectionContainerMappingsImpl {
|
|
|
30467
30467
|
* @param options The options parameters.
|
|
30468
30468
|
*/
|
|
30469
30469
|
beginCreate(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, creationInput, options) {
|
|
30470
|
-
return tslib.__awaiter(this,
|
|
30471
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
30470
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
30471
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
30472
30472
|
return this.client.sendOperationRequest(args, spec);
|
|
30473
30473
|
});
|
|
30474
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
30474
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
30475
30475
|
var _a;
|
|
30476
30476
|
let currentRawResponse = undefined;
|
|
30477
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
30477
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
30478
30478
|
const callback = (rawResponse, flatResponse) => {
|
|
30479
30479
|
currentRawResponse = rawResponse;
|
|
30480
|
-
providedCallback === null || providedCallback ===
|
|
30480
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
30481
30481
|
};
|
|
30482
30482
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
30483
30483
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -30504,8 +30504,8 @@ class ReplicationProtectionContainerMappingsImpl {
|
|
|
30504
30504
|
spec: createOperationSpec$7,
|
|
30505
30505
|
});
|
|
30506
30506
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
30507
|
-
restoreFrom: options === null || options ===
|
|
30508
|
-
intervalInMs: options === null || options ===
|
|
30507
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
30508
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
30509
30509
|
});
|
|
30510
30510
|
yield poller.poll();
|
|
30511
30511
|
return poller;
|
|
@@ -30523,7 +30523,7 @@ class ReplicationProtectionContainerMappingsImpl {
|
|
|
30523
30523
|
* @param options The options parameters.
|
|
30524
30524
|
*/
|
|
30525
30525
|
beginCreateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, creationInput, options) {
|
|
30526
|
-
return tslib.__awaiter(this,
|
|
30526
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
30527
30527
|
const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, creationInput, options);
|
|
30528
30528
|
return poller.pollUntilDone();
|
|
30529
30529
|
});
|
|
@@ -30539,17 +30539,17 @@ class ReplicationProtectionContainerMappingsImpl {
|
|
|
30539
30539
|
* @param options The options parameters.
|
|
30540
30540
|
*/
|
|
30541
30541
|
beginPurge(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, options) {
|
|
30542
|
-
return tslib.__awaiter(this,
|
|
30543
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
30542
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
30543
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
30544
30544
|
return this.client.sendOperationRequest(args, spec);
|
|
30545
30545
|
});
|
|
30546
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
30546
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
30547
30547
|
var _a;
|
|
30548
30548
|
let currentRawResponse = undefined;
|
|
30549
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
30549
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
30550
30550
|
const callback = (rawResponse, flatResponse) => {
|
|
30551
30551
|
currentRawResponse = rawResponse;
|
|
30552
|
-
providedCallback === null || providedCallback ===
|
|
30552
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
30553
30553
|
};
|
|
30554
30554
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
30555
30555
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -30575,8 +30575,8 @@ class ReplicationProtectionContainerMappingsImpl {
|
|
|
30575
30575
|
spec: purgeOperationSpec$1,
|
|
30576
30576
|
});
|
|
30577
30577
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
30578
|
-
restoreFrom: options === null || options ===
|
|
30579
|
-
intervalInMs: options === null || options ===
|
|
30578
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
30579
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
30580
30580
|
});
|
|
30581
30581
|
yield poller.poll();
|
|
30582
30582
|
return poller;
|
|
@@ -30593,7 +30593,7 @@ class ReplicationProtectionContainerMappingsImpl {
|
|
|
30593
30593
|
* @param options The options parameters.
|
|
30594
30594
|
*/
|
|
30595
30595
|
beginPurgeAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, options) {
|
|
30596
|
-
return tslib.__awaiter(this,
|
|
30596
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
30597
30597
|
const poller = yield this.beginPurge(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, options);
|
|
30598
30598
|
return poller.pollUntilDone();
|
|
30599
30599
|
});
|
|
@@ -30610,17 +30610,17 @@ class ReplicationProtectionContainerMappingsImpl {
|
|
|
30610
30610
|
* @param options The options parameters.
|
|
30611
30611
|
*/
|
|
30612
30612
|
beginUpdate(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, updateInput, options) {
|
|
30613
|
-
return tslib.__awaiter(this,
|
|
30614
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
30613
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
30614
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
30615
30615
|
return this.client.sendOperationRequest(args, spec);
|
|
30616
30616
|
});
|
|
30617
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
30617
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
30618
30618
|
var _a;
|
|
30619
30619
|
let currentRawResponse = undefined;
|
|
30620
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
30620
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
30621
30621
|
const callback = (rawResponse, flatResponse) => {
|
|
30622
30622
|
currentRawResponse = rawResponse;
|
|
30623
|
-
providedCallback === null || providedCallback ===
|
|
30623
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
30624
30624
|
};
|
|
30625
30625
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
30626
30626
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -30647,8 +30647,8 @@ class ReplicationProtectionContainerMappingsImpl {
|
|
|
30647
30647
|
spec: updateOperationSpec$3,
|
|
30648
30648
|
});
|
|
30649
30649
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
30650
|
-
restoreFrom: options === null || options ===
|
|
30651
|
-
intervalInMs: options === null || options ===
|
|
30650
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
30651
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
30652
30652
|
});
|
|
30653
30653
|
yield poller.poll();
|
|
30654
30654
|
return poller;
|
|
@@ -30666,7 +30666,7 @@ class ReplicationProtectionContainerMappingsImpl {
|
|
|
30666
30666
|
* @param options The options parameters.
|
|
30667
30667
|
*/
|
|
30668
30668
|
beginUpdateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, updateInput, options) {
|
|
30669
|
-
return tslib.__awaiter(this,
|
|
30669
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
30670
30670
|
const poller = yield this.beginUpdate(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, updateInput, options);
|
|
30671
30671
|
return poller.pollUntilDone();
|
|
30672
30672
|
});
|
|
@@ -30683,17 +30683,17 @@ class ReplicationProtectionContainerMappingsImpl {
|
|
|
30683
30683
|
* @param options The options parameters.
|
|
30684
30684
|
*/
|
|
30685
30685
|
beginDelete(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, removalInput, options) {
|
|
30686
|
-
return tslib.__awaiter(this,
|
|
30687
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
30686
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
30687
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
30688
30688
|
return this.client.sendOperationRequest(args, spec);
|
|
30689
30689
|
});
|
|
30690
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
30690
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
30691
30691
|
var _a;
|
|
30692
30692
|
let currentRawResponse = undefined;
|
|
30693
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
30693
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
30694
30694
|
const callback = (rawResponse, flatResponse) => {
|
|
30695
30695
|
currentRawResponse = rawResponse;
|
|
30696
|
-
providedCallback === null || providedCallback ===
|
|
30696
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
30697
30697
|
};
|
|
30698
30698
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
30699
30699
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -30720,8 +30720,8 @@ class ReplicationProtectionContainerMappingsImpl {
|
|
|
30720
30720
|
spec: deleteOperationSpec$5,
|
|
30721
30721
|
});
|
|
30722
30722
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
30723
|
-
restoreFrom: options === null || options ===
|
|
30724
|
-
intervalInMs: options === null || options ===
|
|
30723
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
30724
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
30725
30725
|
});
|
|
30726
30726
|
yield poller.poll();
|
|
30727
30727
|
return poller;
|
|
@@ -30739,7 +30739,7 @@ class ReplicationProtectionContainerMappingsImpl {
|
|
|
30739
30739
|
* @param options The options parameters.
|
|
30740
30740
|
*/
|
|
30741
30741
|
beginDeleteAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, removalInput, options) {
|
|
30742
|
-
return tslib.__awaiter(this,
|
|
30742
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
30743
30743
|
const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, removalInput, options);
|
|
30744
30744
|
return poller.pollUntilDone();
|
|
30745
30745
|
});
|
|
@@ -31021,7 +31021,7 @@ class ReplicationRecoveryServicesProvidersImpl {
|
|
|
31021
31021
|
return this;
|
|
31022
31022
|
},
|
|
31023
31023
|
byPage: (settings) => {
|
|
31024
|
-
if (settings === null || settings ===
|
|
31024
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
31025
31025
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
31026
31026
|
}
|
|
31027
31027
|
return this.listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings);
|
|
@@ -31031,7 +31031,7 @@ class ReplicationRecoveryServicesProvidersImpl {
|
|
|
31031
31031
|
listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings) {
|
|
31032
31032
|
return tslib.__asyncGenerator(this, arguments, function* listByReplicationFabricsPagingPage_1() {
|
|
31033
31033
|
let result;
|
|
31034
|
-
let continuationToken = settings === null || settings ===
|
|
31034
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
31035
31035
|
if (!continuationToken) {
|
|
31036
31036
|
result = yield tslib.__await(this._listByReplicationFabrics(resourceName, resourceGroupName, fabricName, options));
|
|
31037
31037
|
let page = result.value || [];
|
|
@@ -31085,7 +31085,7 @@ class ReplicationRecoveryServicesProvidersImpl {
|
|
|
31085
31085
|
return this;
|
|
31086
31086
|
},
|
|
31087
31087
|
byPage: (settings) => {
|
|
31088
|
-
if (settings === null || settings ===
|
|
31088
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
31089
31089
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
31090
31090
|
}
|
|
31091
31091
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -31095,7 +31095,7 @@ class ReplicationRecoveryServicesProvidersImpl {
|
|
|
31095
31095
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
31096
31096
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
31097
31097
|
let result;
|
|
31098
|
-
let continuationToken = settings === null || settings ===
|
|
31098
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
31099
31099
|
if (!continuationToken) {
|
|
31100
31100
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
31101
31101
|
let page = result.value || [];
|
|
@@ -31166,17 +31166,17 @@ class ReplicationRecoveryServicesProvidersImpl {
|
|
|
31166
31166
|
* @param options The options parameters.
|
|
31167
31167
|
*/
|
|
31168
31168
|
beginCreate(resourceName, resourceGroupName, fabricName, providerName, addProviderInput, options) {
|
|
31169
|
-
return tslib.__awaiter(this,
|
|
31170
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
31169
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31170
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31171
31171
|
return this.client.sendOperationRequest(args, spec);
|
|
31172
31172
|
});
|
|
31173
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
31173
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31174
31174
|
var _a;
|
|
31175
31175
|
let currentRawResponse = undefined;
|
|
31176
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
31176
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
31177
31177
|
const callback = (rawResponse, flatResponse) => {
|
|
31178
31178
|
currentRawResponse = rawResponse;
|
|
31179
|
-
providedCallback === null || providedCallback ===
|
|
31179
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
31180
31180
|
};
|
|
31181
31181
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
31182
31182
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -31202,8 +31202,8 @@ class ReplicationRecoveryServicesProvidersImpl {
|
|
|
31202
31202
|
spec: createOperationSpec$6,
|
|
31203
31203
|
});
|
|
31204
31204
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
31205
|
-
restoreFrom: options === null || options ===
|
|
31206
|
-
intervalInMs: options === null || options ===
|
|
31205
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
31206
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
31207
31207
|
});
|
|
31208
31208
|
yield poller.poll();
|
|
31209
31209
|
return poller;
|
|
@@ -31220,7 +31220,7 @@ class ReplicationRecoveryServicesProvidersImpl {
|
|
|
31220
31220
|
* @param options The options parameters.
|
|
31221
31221
|
*/
|
|
31222
31222
|
beginCreateAndWait(resourceName, resourceGroupName, fabricName, providerName, addProviderInput, options) {
|
|
31223
|
-
return tslib.__awaiter(this,
|
|
31223
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31224
31224
|
const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, providerName, addProviderInput, options);
|
|
31225
31225
|
return poller.pollUntilDone();
|
|
31226
31226
|
});
|
|
@@ -31235,17 +31235,17 @@ class ReplicationRecoveryServicesProvidersImpl {
|
|
|
31235
31235
|
* @param options The options parameters.
|
|
31236
31236
|
*/
|
|
31237
31237
|
beginPurge(resourceName, resourceGroupName, fabricName, providerName, options) {
|
|
31238
|
-
return tslib.__awaiter(this,
|
|
31239
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
31238
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31239
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31240
31240
|
return this.client.sendOperationRequest(args, spec);
|
|
31241
31241
|
});
|
|
31242
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
31242
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31243
31243
|
var _a;
|
|
31244
31244
|
let currentRawResponse = undefined;
|
|
31245
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
31245
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
31246
31246
|
const callback = (rawResponse, flatResponse) => {
|
|
31247
31247
|
currentRawResponse = rawResponse;
|
|
31248
|
-
providedCallback === null || providedCallback ===
|
|
31248
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
31249
31249
|
};
|
|
31250
31250
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
31251
31251
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -31270,8 +31270,8 @@ class ReplicationRecoveryServicesProvidersImpl {
|
|
|
31270
31270
|
spec: purgeOperationSpec,
|
|
31271
31271
|
});
|
|
31272
31272
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
31273
|
-
restoreFrom: options === null || options ===
|
|
31274
|
-
intervalInMs: options === null || options ===
|
|
31273
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
31274
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
31275
31275
|
});
|
|
31276
31276
|
yield poller.poll();
|
|
31277
31277
|
return poller;
|
|
@@ -31287,7 +31287,7 @@ class ReplicationRecoveryServicesProvidersImpl {
|
|
|
31287
31287
|
* @param options The options parameters.
|
|
31288
31288
|
*/
|
|
31289
31289
|
beginPurgeAndWait(resourceName, resourceGroupName, fabricName, providerName, options) {
|
|
31290
|
-
return tslib.__awaiter(this,
|
|
31290
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31291
31291
|
const poller = yield this.beginPurge(resourceName, resourceGroupName, fabricName, providerName, options);
|
|
31292
31292
|
return poller.pollUntilDone();
|
|
31293
31293
|
});
|
|
@@ -31302,17 +31302,17 @@ class ReplicationRecoveryServicesProvidersImpl {
|
|
|
31302
31302
|
* @param options The options parameters.
|
|
31303
31303
|
*/
|
|
31304
31304
|
beginRefreshProvider(resourceName, resourceGroupName, fabricName, providerName, options) {
|
|
31305
|
-
return tslib.__awaiter(this,
|
|
31306
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
31305
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31306
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31307
31307
|
return this.client.sendOperationRequest(args, spec);
|
|
31308
31308
|
});
|
|
31309
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
31309
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31310
31310
|
var _a;
|
|
31311
31311
|
let currentRawResponse = undefined;
|
|
31312
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
31312
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
31313
31313
|
const callback = (rawResponse, flatResponse) => {
|
|
31314
31314
|
currentRawResponse = rawResponse;
|
|
31315
|
-
providedCallback === null || providedCallback ===
|
|
31315
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
31316
31316
|
};
|
|
31317
31317
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
31318
31318
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -31337,8 +31337,8 @@ class ReplicationRecoveryServicesProvidersImpl {
|
|
|
31337
31337
|
spec: refreshProviderOperationSpec,
|
|
31338
31338
|
});
|
|
31339
31339
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
31340
|
-
restoreFrom: options === null || options ===
|
|
31341
|
-
intervalInMs: options === null || options ===
|
|
31340
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
31341
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
31342
31342
|
});
|
|
31343
31343
|
yield poller.poll();
|
|
31344
31344
|
return poller;
|
|
@@ -31354,7 +31354,7 @@ class ReplicationRecoveryServicesProvidersImpl {
|
|
|
31354
31354
|
* @param options The options parameters.
|
|
31355
31355
|
*/
|
|
31356
31356
|
beginRefreshProviderAndWait(resourceName, resourceGroupName, fabricName, providerName, options) {
|
|
31357
|
-
return tslib.__awaiter(this,
|
|
31357
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31358
31358
|
const poller = yield this.beginRefreshProvider(resourceName, resourceGroupName, fabricName, providerName, options);
|
|
31359
31359
|
return poller.pollUntilDone();
|
|
31360
31360
|
});
|
|
@@ -31369,17 +31369,17 @@ class ReplicationRecoveryServicesProvidersImpl {
|
|
|
31369
31369
|
* @param options The options parameters.
|
|
31370
31370
|
*/
|
|
31371
31371
|
beginDelete(resourceName, resourceGroupName, fabricName, providerName, options) {
|
|
31372
|
-
return tslib.__awaiter(this,
|
|
31373
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
31372
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31373
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31374
31374
|
return this.client.sendOperationRequest(args, spec);
|
|
31375
31375
|
});
|
|
31376
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
31376
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31377
31377
|
var _a;
|
|
31378
31378
|
let currentRawResponse = undefined;
|
|
31379
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
31379
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
31380
31380
|
const callback = (rawResponse, flatResponse) => {
|
|
31381
31381
|
currentRawResponse = rawResponse;
|
|
31382
|
-
providedCallback === null || providedCallback ===
|
|
31382
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
31383
31383
|
};
|
|
31384
31384
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
31385
31385
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -31404,8 +31404,8 @@ class ReplicationRecoveryServicesProvidersImpl {
|
|
|
31404
31404
|
spec: deleteOperationSpec$4,
|
|
31405
31405
|
});
|
|
31406
31406
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
31407
|
-
restoreFrom: options === null || options ===
|
|
31408
|
-
intervalInMs: options === null || options ===
|
|
31407
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
31408
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
31409
31409
|
});
|
|
31410
31410
|
yield poller.poll();
|
|
31411
31411
|
return poller;
|
|
@@ -31421,7 +31421,7 @@ class ReplicationRecoveryServicesProvidersImpl {
|
|
|
31421
31421
|
* @param options The options parameters.
|
|
31422
31422
|
*/
|
|
31423
31423
|
beginDeleteAndWait(resourceName, resourceGroupName, fabricName, providerName, options) {
|
|
31424
|
-
return tslib.__awaiter(this,
|
|
31424
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31425
31425
|
const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, providerName, options);
|
|
31426
31426
|
return poller.pollUntilDone();
|
|
31427
31427
|
});
|
|
@@ -31683,7 +31683,7 @@ class ReplicationStorageClassificationsImpl {
|
|
|
31683
31683
|
return this;
|
|
31684
31684
|
},
|
|
31685
31685
|
byPage: (settings) => {
|
|
31686
|
-
if (settings === null || settings ===
|
|
31686
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
31687
31687
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
31688
31688
|
}
|
|
31689
31689
|
return this.listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings);
|
|
@@ -31693,7 +31693,7 @@ class ReplicationStorageClassificationsImpl {
|
|
|
31693
31693
|
listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings) {
|
|
31694
31694
|
return tslib.__asyncGenerator(this, arguments, function* listByReplicationFabricsPagingPage_1() {
|
|
31695
31695
|
let result;
|
|
31696
|
-
let continuationToken = settings === null || settings ===
|
|
31696
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
31697
31697
|
if (!continuationToken) {
|
|
31698
31698
|
result = yield tslib.__await(this._listByReplicationFabrics(resourceName, resourceGroupName, fabricName, options));
|
|
31699
31699
|
let page = result.value || [];
|
|
@@ -31747,7 +31747,7 @@ class ReplicationStorageClassificationsImpl {
|
|
|
31747
31747
|
return this;
|
|
31748
31748
|
},
|
|
31749
31749
|
byPage: (settings) => {
|
|
31750
|
-
if (settings === null || settings ===
|
|
31750
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
31751
31751
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
31752
31752
|
}
|
|
31753
31753
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -31757,7 +31757,7 @@ class ReplicationStorageClassificationsImpl {
|
|
|
31757
31757
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
31758
31758
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
31759
31759
|
let result;
|
|
31760
|
-
let continuationToken = settings === null || settings ===
|
|
31760
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
31761
31761
|
if (!continuationToken) {
|
|
31762
31762
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
31763
31763
|
let page = result.value || [];
|
|
@@ -31991,7 +31991,7 @@ class ReplicationStorageClassificationMappingsImpl {
|
|
|
31991
31991
|
return this;
|
|
31992
31992
|
},
|
|
31993
31993
|
byPage: (settings) => {
|
|
31994
|
-
if (settings === null || settings ===
|
|
31994
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
31995
31995
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
31996
31996
|
}
|
|
31997
31997
|
return this.listByReplicationStorageClassificationsPagingPage(resourceName, resourceGroupName, fabricName, storageClassificationName, options, settings);
|
|
@@ -32001,7 +32001,7 @@ class ReplicationStorageClassificationMappingsImpl {
|
|
|
32001
32001
|
listByReplicationStorageClassificationsPagingPage(resourceName, resourceGroupName, fabricName, storageClassificationName, options, settings) {
|
|
32002
32002
|
return tslib.__asyncGenerator(this, arguments, function* listByReplicationStorageClassificationsPagingPage_1() {
|
|
32003
32003
|
let result;
|
|
32004
|
-
let continuationToken = settings === null || settings ===
|
|
32004
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
32005
32005
|
if (!continuationToken) {
|
|
32006
32006
|
result = yield tslib.__await(this._listByReplicationStorageClassifications(resourceName, resourceGroupName, fabricName, storageClassificationName, options));
|
|
32007
32007
|
let page = result.value || [];
|
|
@@ -32055,7 +32055,7 @@ class ReplicationStorageClassificationMappingsImpl {
|
|
|
32055
32055
|
return this;
|
|
32056
32056
|
},
|
|
32057
32057
|
byPage: (settings) => {
|
|
32058
|
-
if (settings === null || settings ===
|
|
32058
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
32059
32059
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
32060
32060
|
}
|
|
32061
32061
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -32065,7 +32065,7 @@ class ReplicationStorageClassificationMappingsImpl {
|
|
|
32065
32065
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
32066
32066
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
32067
32067
|
let result;
|
|
32068
|
-
let continuationToken = settings === null || settings ===
|
|
32068
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
32069
32069
|
if (!continuationToken) {
|
|
32070
32070
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
32071
32071
|
let page = result.value || [];
|
|
@@ -32152,17 +32152,17 @@ class ReplicationStorageClassificationMappingsImpl {
|
|
|
32152
32152
|
* @param options The options parameters.
|
|
32153
32153
|
*/
|
|
32154
32154
|
beginCreate(resourceName, resourceGroupName, fabricName, storageClassificationName, storageClassificationMappingName, pairingInput, options) {
|
|
32155
|
-
return tslib.__awaiter(this,
|
|
32156
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
32155
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32156
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32157
32157
|
return this.client.sendOperationRequest(args, spec);
|
|
32158
32158
|
});
|
|
32159
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
32159
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32160
32160
|
var _a;
|
|
32161
32161
|
let currentRawResponse = undefined;
|
|
32162
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
32162
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
32163
32163
|
const callback = (rawResponse, flatResponse) => {
|
|
32164
32164
|
currentRawResponse = rawResponse;
|
|
32165
|
-
providedCallback === null || providedCallback ===
|
|
32165
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
32166
32166
|
};
|
|
32167
32167
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
32168
32168
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -32189,8 +32189,8 @@ class ReplicationStorageClassificationMappingsImpl {
|
|
|
32189
32189
|
spec: createOperationSpec$5,
|
|
32190
32190
|
});
|
|
32191
32191
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
32192
|
-
restoreFrom: options === null || options ===
|
|
32193
|
-
intervalInMs: options === null || options ===
|
|
32192
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
32193
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
32194
32194
|
});
|
|
32195
32195
|
yield poller.poll();
|
|
32196
32196
|
return poller;
|
|
@@ -32208,7 +32208,7 @@ class ReplicationStorageClassificationMappingsImpl {
|
|
|
32208
32208
|
* @param options The options parameters.
|
|
32209
32209
|
*/
|
|
32210
32210
|
beginCreateAndWait(resourceName, resourceGroupName, fabricName, storageClassificationName, storageClassificationMappingName, pairingInput, options) {
|
|
32211
|
-
return tslib.__awaiter(this,
|
|
32211
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32212
32212
|
const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, storageClassificationName, storageClassificationMappingName, pairingInput, options);
|
|
32213
32213
|
return poller.pollUntilDone();
|
|
32214
32214
|
});
|
|
@@ -32224,17 +32224,17 @@ class ReplicationStorageClassificationMappingsImpl {
|
|
|
32224
32224
|
* @param options The options parameters.
|
|
32225
32225
|
*/
|
|
32226
32226
|
beginDelete(resourceName, resourceGroupName, fabricName, storageClassificationName, storageClassificationMappingName, options) {
|
|
32227
|
-
return tslib.__awaiter(this,
|
|
32228
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
32227
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32228
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32229
32229
|
return this.client.sendOperationRequest(args, spec);
|
|
32230
32230
|
});
|
|
32231
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
32231
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32232
32232
|
var _a;
|
|
32233
32233
|
let currentRawResponse = undefined;
|
|
32234
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
32234
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
32235
32235
|
const callback = (rawResponse, flatResponse) => {
|
|
32236
32236
|
currentRawResponse = rawResponse;
|
|
32237
|
-
providedCallback === null || providedCallback ===
|
|
32237
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
32238
32238
|
};
|
|
32239
32239
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
32240
32240
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -32260,8 +32260,8 @@ class ReplicationStorageClassificationMappingsImpl {
|
|
|
32260
32260
|
spec: deleteOperationSpec$3,
|
|
32261
32261
|
});
|
|
32262
32262
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
32263
|
-
restoreFrom: options === null || options ===
|
|
32264
|
-
intervalInMs: options === null || options ===
|
|
32263
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
32264
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
32265
32265
|
});
|
|
32266
32266
|
yield poller.poll();
|
|
32267
32267
|
return poller;
|
|
@@ -32278,7 +32278,7 @@ class ReplicationStorageClassificationMappingsImpl {
|
|
|
32278
32278
|
* @param options The options parameters.
|
|
32279
32279
|
*/
|
|
32280
32280
|
beginDeleteAndWait(resourceName, resourceGroupName, fabricName, storageClassificationName, storageClassificationMappingName, options) {
|
|
32281
|
-
return tslib.__awaiter(this,
|
|
32281
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32282
32282
|
const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, storageClassificationName, storageClassificationMappingName, options);
|
|
32283
32283
|
return poller.pollUntilDone();
|
|
32284
32284
|
});
|
|
@@ -32509,7 +32509,7 @@ class ReplicationvCentersImpl {
|
|
|
32509
32509
|
return this;
|
|
32510
32510
|
},
|
|
32511
32511
|
byPage: (settings) => {
|
|
32512
|
-
if (settings === null || settings ===
|
|
32512
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
32513
32513
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
32514
32514
|
}
|
|
32515
32515
|
return this.listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings);
|
|
@@ -32519,7 +32519,7 @@ class ReplicationvCentersImpl {
|
|
|
32519
32519
|
listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings) {
|
|
32520
32520
|
return tslib.__asyncGenerator(this, arguments, function* listByReplicationFabricsPagingPage_1() {
|
|
32521
32521
|
let result;
|
|
32522
|
-
let continuationToken = settings === null || settings ===
|
|
32522
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
32523
32523
|
if (!continuationToken) {
|
|
32524
32524
|
result = yield tslib.__await(this._listByReplicationFabrics(resourceName, resourceGroupName, fabricName, options));
|
|
32525
32525
|
let page = result.value || [];
|
|
@@ -32573,7 +32573,7 @@ class ReplicationvCentersImpl {
|
|
|
32573
32573
|
return this;
|
|
32574
32574
|
},
|
|
32575
32575
|
byPage: (settings) => {
|
|
32576
|
-
if (settings === null || settings ===
|
|
32576
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
32577
32577
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
32578
32578
|
}
|
|
32579
32579
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -32583,7 +32583,7 @@ class ReplicationvCentersImpl {
|
|
|
32583
32583
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
32584
32584
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
32585
32585
|
let result;
|
|
32586
|
-
let continuationToken = settings === null || settings ===
|
|
32586
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
32587
32587
|
if (!continuationToken) {
|
|
32588
32588
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
32589
32589
|
let page = result.value || [];
|
|
@@ -32654,17 +32654,17 @@ class ReplicationvCentersImpl {
|
|
|
32654
32654
|
* @param options The options parameters.
|
|
32655
32655
|
*/
|
|
32656
32656
|
beginCreate(resourceName, resourceGroupName, fabricName, vcenterName, addVCenterRequest, options) {
|
|
32657
|
-
return tslib.__awaiter(this,
|
|
32658
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
32657
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32658
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32659
32659
|
return this.client.sendOperationRequest(args, spec);
|
|
32660
32660
|
});
|
|
32661
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
32661
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32662
32662
|
var _a;
|
|
32663
32663
|
let currentRawResponse = undefined;
|
|
32664
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
32664
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
32665
32665
|
const callback = (rawResponse, flatResponse) => {
|
|
32666
32666
|
currentRawResponse = rawResponse;
|
|
32667
|
-
providedCallback === null || providedCallback ===
|
|
32667
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
32668
32668
|
};
|
|
32669
32669
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
32670
32670
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -32690,8 +32690,8 @@ class ReplicationvCentersImpl {
|
|
|
32690
32690
|
spec: createOperationSpec$4,
|
|
32691
32691
|
});
|
|
32692
32692
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
32693
|
-
restoreFrom: options === null || options ===
|
|
32694
|
-
intervalInMs: options === null || options ===
|
|
32693
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
32694
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
32695
32695
|
});
|
|
32696
32696
|
yield poller.poll();
|
|
32697
32697
|
return poller;
|
|
@@ -32708,7 +32708,7 @@ class ReplicationvCentersImpl {
|
|
|
32708
32708
|
* @param options The options parameters.
|
|
32709
32709
|
*/
|
|
32710
32710
|
beginCreateAndWait(resourceName, resourceGroupName, fabricName, vcenterName, addVCenterRequest, options) {
|
|
32711
|
-
return tslib.__awaiter(this,
|
|
32711
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32712
32712
|
const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, vcenterName, addVCenterRequest, options);
|
|
32713
32713
|
return poller.pollUntilDone();
|
|
32714
32714
|
});
|
|
@@ -32723,17 +32723,17 @@ class ReplicationvCentersImpl {
|
|
|
32723
32723
|
* @param options The options parameters.
|
|
32724
32724
|
*/
|
|
32725
32725
|
beginDelete(resourceName, resourceGroupName, fabricName, vcenterName, options) {
|
|
32726
|
-
return tslib.__awaiter(this,
|
|
32727
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
32726
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32727
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32728
32728
|
return this.client.sendOperationRequest(args, spec);
|
|
32729
32729
|
});
|
|
32730
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
32730
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32731
32731
|
var _a;
|
|
32732
32732
|
let currentRawResponse = undefined;
|
|
32733
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
32733
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
32734
32734
|
const callback = (rawResponse, flatResponse) => {
|
|
32735
32735
|
currentRawResponse = rawResponse;
|
|
32736
|
-
providedCallback === null || providedCallback ===
|
|
32736
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
32737
32737
|
};
|
|
32738
32738
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
32739
32739
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -32758,8 +32758,8 @@ class ReplicationvCentersImpl {
|
|
|
32758
32758
|
spec: deleteOperationSpec$2,
|
|
32759
32759
|
});
|
|
32760
32760
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
32761
|
-
restoreFrom: options === null || options ===
|
|
32762
|
-
intervalInMs: options === null || options ===
|
|
32761
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
32762
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
32763
32763
|
});
|
|
32764
32764
|
yield poller.poll();
|
|
32765
32765
|
return poller;
|
|
@@ -32775,7 +32775,7 @@ class ReplicationvCentersImpl {
|
|
|
32775
32775
|
* @param options The options parameters.
|
|
32776
32776
|
*/
|
|
32777
32777
|
beginDeleteAndWait(resourceName, resourceGroupName, fabricName, vcenterName, options) {
|
|
32778
|
-
return tslib.__awaiter(this,
|
|
32778
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32779
32779
|
const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, vcenterName, options);
|
|
32780
32780
|
return poller.pollUntilDone();
|
|
32781
32781
|
});
|
|
@@ -32791,17 +32791,17 @@ class ReplicationvCentersImpl {
|
|
|
32791
32791
|
* @param options The options parameters.
|
|
32792
32792
|
*/
|
|
32793
32793
|
beginUpdate(resourceName, resourceGroupName, fabricName, vcenterName, updateVCenterRequest, options) {
|
|
32794
|
-
return tslib.__awaiter(this,
|
|
32795
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
32794
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32795
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32796
32796
|
return this.client.sendOperationRequest(args, spec);
|
|
32797
32797
|
});
|
|
32798
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
32798
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32799
32799
|
var _a;
|
|
32800
32800
|
let currentRawResponse = undefined;
|
|
32801
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
32801
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
32802
32802
|
const callback = (rawResponse, flatResponse) => {
|
|
32803
32803
|
currentRawResponse = rawResponse;
|
|
32804
|
-
providedCallback === null || providedCallback ===
|
|
32804
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
32805
32805
|
};
|
|
32806
32806
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
32807
32807
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -32827,8 +32827,8 @@ class ReplicationvCentersImpl {
|
|
|
32827
32827
|
spec: updateOperationSpec$2,
|
|
32828
32828
|
});
|
|
32829
32829
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
32830
|
-
restoreFrom: options === null || options ===
|
|
32831
|
-
intervalInMs: options === null || options ===
|
|
32830
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
32831
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
32832
32832
|
});
|
|
32833
32833
|
yield poller.poll();
|
|
32834
32834
|
return poller;
|
|
@@ -32845,7 +32845,7 @@ class ReplicationvCentersImpl {
|
|
|
32845
32845
|
* @param options The options parameters.
|
|
32846
32846
|
*/
|
|
32847
32847
|
beginUpdateAndWait(resourceName, resourceGroupName, fabricName, vcenterName, updateVCenterRequest, options) {
|
|
32848
|
-
return tslib.__awaiter(this,
|
|
32848
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32849
32849
|
const poller = yield this.beginUpdate(resourceName, resourceGroupName, fabricName, vcenterName, updateVCenterRequest, options);
|
|
32850
32850
|
return poller.pollUntilDone();
|
|
32851
32851
|
});
|
|
@@ -33093,7 +33093,7 @@ class ReplicationJobsImpl {
|
|
|
33093
33093
|
return this;
|
|
33094
33094
|
},
|
|
33095
33095
|
byPage: (settings) => {
|
|
33096
|
-
if (settings === null || settings ===
|
|
33096
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
33097
33097
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
33098
33098
|
}
|
|
33099
33099
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -33103,7 +33103,7 @@ class ReplicationJobsImpl {
|
|
|
33103
33103
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
33104
33104
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
33105
33105
|
let result;
|
|
33106
|
-
let continuationToken = settings === null || settings ===
|
|
33106
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
33107
33107
|
if (!continuationToken) {
|
|
33108
33108
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
33109
33109
|
let page = result.value || [];
|
|
@@ -33170,17 +33170,17 @@ class ReplicationJobsImpl {
|
|
|
33170
33170
|
* @param options The options parameters.
|
|
33171
33171
|
*/
|
|
33172
33172
|
beginCancel(resourceName, resourceGroupName, jobName, options) {
|
|
33173
|
-
return tslib.__awaiter(this,
|
|
33174
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
33173
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33174
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33175
33175
|
return this.client.sendOperationRequest(args, spec);
|
|
33176
33176
|
});
|
|
33177
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
33177
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33178
33178
|
var _a;
|
|
33179
33179
|
let currentRawResponse = undefined;
|
|
33180
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
33180
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
33181
33181
|
const callback = (rawResponse, flatResponse) => {
|
|
33182
33182
|
currentRawResponse = rawResponse;
|
|
33183
|
-
providedCallback === null || providedCallback ===
|
|
33183
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
33184
33184
|
};
|
|
33185
33185
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
33186
33186
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -33199,8 +33199,8 @@ class ReplicationJobsImpl {
|
|
|
33199
33199
|
spec: cancelOperationSpec,
|
|
33200
33200
|
});
|
|
33201
33201
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
33202
|
-
restoreFrom: options === null || options ===
|
|
33203
|
-
intervalInMs: options === null || options ===
|
|
33202
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
33203
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
33204
33204
|
});
|
|
33205
33205
|
yield poller.poll();
|
|
33206
33206
|
return poller;
|
|
@@ -33215,7 +33215,7 @@ class ReplicationJobsImpl {
|
|
|
33215
33215
|
* @param options The options parameters.
|
|
33216
33216
|
*/
|
|
33217
33217
|
beginCancelAndWait(resourceName, resourceGroupName, jobName, options) {
|
|
33218
|
-
return tslib.__awaiter(this,
|
|
33218
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33219
33219
|
const poller = yield this.beginCancel(resourceName, resourceGroupName, jobName, options);
|
|
33220
33220
|
return poller.pollUntilDone();
|
|
33221
33221
|
});
|
|
@@ -33229,17 +33229,17 @@ class ReplicationJobsImpl {
|
|
|
33229
33229
|
* @param options The options parameters.
|
|
33230
33230
|
*/
|
|
33231
33231
|
beginRestart(resourceName, resourceGroupName, jobName, options) {
|
|
33232
|
-
return tslib.__awaiter(this,
|
|
33233
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
33232
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33233
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33234
33234
|
return this.client.sendOperationRequest(args, spec);
|
|
33235
33235
|
});
|
|
33236
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
33236
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33237
33237
|
var _a;
|
|
33238
33238
|
let currentRawResponse = undefined;
|
|
33239
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
33239
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
33240
33240
|
const callback = (rawResponse, flatResponse) => {
|
|
33241
33241
|
currentRawResponse = rawResponse;
|
|
33242
|
-
providedCallback === null || providedCallback ===
|
|
33242
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
33243
33243
|
};
|
|
33244
33244
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
33245
33245
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -33258,8 +33258,8 @@ class ReplicationJobsImpl {
|
|
|
33258
33258
|
spec: restartOperationSpec,
|
|
33259
33259
|
});
|
|
33260
33260
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
33261
|
-
restoreFrom: options === null || options ===
|
|
33262
|
-
intervalInMs: options === null || options ===
|
|
33261
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
33262
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
33263
33263
|
});
|
|
33264
33264
|
yield poller.poll();
|
|
33265
33265
|
return poller;
|
|
@@ -33274,7 +33274,7 @@ class ReplicationJobsImpl {
|
|
|
33274
33274
|
* @param options The options parameters.
|
|
33275
33275
|
*/
|
|
33276
33276
|
beginRestartAndWait(resourceName, resourceGroupName, jobName, options) {
|
|
33277
|
-
return tslib.__awaiter(this,
|
|
33277
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33278
33278
|
const poller = yield this.beginRestart(resourceName, resourceGroupName, jobName, options);
|
|
33279
33279
|
return poller.pollUntilDone();
|
|
33280
33280
|
});
|
|
@@ -33289,17 +33289,17 @@ class ReplicationJobsImpl {
|
|
|
33289
33289
|
* @param options The options parameters.
|
|
33290
33290
|
*/
|
|
33291
33291
|
beginResume(resourceName, resourceGroupName, jobName, resumeJobParams, options) {
|
|
33292
|
-
return tslib.__awaiter(this,
|
|
33293
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
33292
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33293
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33294
33294
|
return this.client.sendOperationRequest(args, spec);
|
|
33295
33295
|
});
|
|
33296
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
33296
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33297
33297
|
var _a;
|
|
33298
33298
|
let currentRawResponse = undefined;
|
|
33299
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
33299
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
33300
33300
|
const callback = (rawResponse, flatResponse) => {
|
|
33301
33301
|
currentRawResponse = rawResponse;
|
|
33302
|
-
providedCallback === null || providedCallback ===
|
|
33302
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
33303
33303
|
};
|
|
33304
33304
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
33305
33305
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -33324,8 +33324,8 @@ class ReplicationJobsImpl {
|
|
|
33324
33324
|
spec: resumeOperationSpec,
|
|
33325
33325
|
});
|
|
33326
33326
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
33327
|
-
restoreFrom: options === null || options ===
|
|
33328
|
-
intervalInMs: options === null || options ===
|
|
33327
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
33328
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
33329
33329
|
});
|
|
33330
33330
|
yield poller.poll();
|
|
33331
33331
|
return poller;
|
|
@@ -33341,7 +33341,7 @@ class ReplicationJobsImpl {
|
|
|
33341
33341
|
* @param options The options parameters.
|
|
33342
33342
|
*/
|
|
33343
33343
|
beginResumeAndWait(resourceName, resourceGroupName, jobName, resumeJobParams, options) {
|
|
33344
|
-
return tslib.__awaiter(this,
|
|
33344
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33345
33345
|
const poller = yield this.beginResume(resourceName, resourceGroupName, jobName, resumeJobParams, options);
|
|
33346
33346
|
return poller.pollUntilDone();
|
|
33347
33347
|
});
|
|
@@ -33355,17 +33355,17 @@ class ReplicationJobsImpl {
|
|
|
33355
33355
|
* @param options The options parameters.
|
|
33356
33356
|
*/
|
|
33357
33357
|
beginExport(resourceName, resourceGroupName, jobQueryParameter, options) {
|
|
33358
|
-
return tslib.__awaiter(this,
|
|
33359
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
33358
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33359
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33360
33360
|
return this.client.sendOperationRequest(args, spec);
|
|
33361
33361
|
});
|
|
33362
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
33362
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33363
33363
|
var _a;
|
|
33364
33364
|
let currentRawResponse = undefined;
|
|
33365
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
33365
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
33366
33366
|
const callback = (rawResponse, flatResponse) => {
|
|
33367
33367
|
currentRawResponse = rawResponse;
|
|
33368
|
-
providedCallback === null || providedCallback ===
|
|
33368
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
33369
33369
|
};
|
|
33370
33370
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
33371
33371
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -33384,8 +33384,8 @@ class ReplicationJobsImpl {
|
|
|
33384
33384
|
spec: exportOperationSpec,
|
|
33385
33385
|
});
|
|
33386
33386
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
33387
|
-
restoreFrom: options === null || options ===
|
|
33388
|
-
intervalInMs: options === null || options ===
|
|
33387
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
33388
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
33389
33389
|
});
|
|
33390
33390
|
yield poller.poll();
|
|
33391
33391
|
return poller;
|
|
@@ -33400,7 +33400,7 @@ class ReplicationJobsImpl {
|
|
|
33400
33400
|
* @param options The options parameters.
|
|
33401
33401
|
*/
|
|
33402
33402
|
beginExportAndWait(resourceName, resourceGroupName, jobQueryParameter, options) {
|
|
33403
|
-
return tslib.__awaiter(this,
|
|
33403
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33404
33404
|
const poller = yield this.beginExport(resourceName, resourceGroupName, jobQueryParameter, options);
|
|
33405
33405
|
return poller.pollUntilDone();
|
|
33406
33406
|
});
|
|
@@ -33624,7 +33624,7 @@ class ReplicationPoliciesImpl {
|
|
|
33624
33624
|
return this;
|
|
33625
33625
|
},
|
|
33626
33626
|
byPage: (settings) => {
|
|
33627
|
-
if (settings === null || settings ===
|
|
33627
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
33628
33628
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
33629
33629
|
}
|
|
33630
33630
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -33634,7 +33634,7 @@ class ReplicationPoliciesImpl {
|
|
|
33634
33634
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
33635
33635
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
33636
33636
|
let result;
|
|
33637
|
-
let continuationToken = settings === null || settings ===
|
|
33637
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
33638
33638
|
if (!continuationToken) {
|
|
33639
33639
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
33640
33640
|
let page = result.value || [];
|
|
@@ -33702,17 +33702,17 @@ class ReplicationPoliciesImpl {
|
|
|
33702
33702
|
* @param options The options parameters.
|
|
33703
33703
|
*/
|
|
33704
33704
|
beginCreate(resourceName, resourceGroupName, policyName, input, options) {
|
|
33705
|
-
return tslib.__awaiter(this,
|
|
33706
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
33705
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33706
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33707
33707
|
return this.client.sendOperationRequest(args, spec);
|
|
33708
33708
|
});
|
|
33709
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
33709
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33710
33710
|
var _a;
|
|
33711
33711
|
let currentRawResponse = undefined;
|
|
33712
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
33712
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
33713
33713
|
const callback = (rawResponse, flatResponse) => {
|
|
33714
33714
|
currentRawResponse = rawResponse;
|
|
33715
|
-
providedCallback === null || providedCallback ===
|
|
33715
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
33716
33716
|
};
|
|
33717
33717
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
33718
33718
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -33731,8 +33731,8 @@ class ReplicationPoliciesImpl {
|
|
|
33731
33731
|
spec: createOperationSpec$3,
|
|
33732
33732
|
});
|
|
33733
33733
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
33734
|
-
restoreFrom: options === null || options ===
|
|
33735
|
-
intervalInMs: options === null || options ===
|
|
33734
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
33735
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
33736
33736
|
});
|
|
33737
33737
|
yield poller.poll();
|
|
33738
33738
|
return poller;
|
|
@@ -33748,7 +33748,7 @@ class ReplicationPoliciesImpl {
|
|
|
33748
33748
|
* @param options The options parameters.
|
|
33749
33749
|
*/
|
|
33750
33750
|
beginCreateAndWait(resourceName, resourceGroupName, policyName, input, options) {
|
|
33751
|
-
return tslib.__awaiter(this,
|
|
33751
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33752
33752
|
const poller = yield this.beginCreate(resourceName, resourceGroupName, policyName, input, options);
|
|
33753
33753
|
return poller.pollUntilDone();
|
|
33754
33754
|
});
|
|
@@ -33762,17 +33762,17 @@ class ReplicationPoliciesImpl {
|
|
|
33762
33762
|
* @param options The options parameters.
|
|
33763
33763
|
*/
|
|
33764
33764
|
beginDelete(resourceName, resourceGroupName, policyName, options) {
|
|
33765
|
-
return tslib.__awaiter(this,
|
|
33766
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
33765
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33766
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33767
33767
|
return this.client.sendOperationRequest(args, spec);
|
|
33768
33768
|
});
|
|
33769
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
33769
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33770
33770
|
var _a;
|
|
33771
33771
|
let currentRawResponse = undefined;
|
|
33772
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
33772
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
33773
33773
|
const callback = (rawResponse, flatResponse) => {
|
|
33774
33774
|
currentRawResponse = rawResponse;
|
|
33775
|
-
providedCallback === null || providedCallback ===
|
|
33775
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
33776
33776
|
};
|
|
33777
33777
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
33778
33778
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -33791,8 +33791,8 @@ class ReplicationPoliciesImpl {
|
|
|
33791
33791
|
spec: deleteOperationSpec$1,
|
|
33792
33792
|
});
|
|
33793
33793
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
33794
|
-
restoreFrom: options === null || options ===
|
|
33795
|
-
intervalInMs: options === null || options ===
|
|
33794
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
33795
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
33796
33796
|
});
|
|
33797
33797
|
yield poller.poll();
|
|
33798
33798
|
return poller;
|
|
@@ -33807,7 +33807,7 @@ class ReplicationPoliciesImpl {
|
|
|
33807
33807
|
* @param options The options parameters.
|
|
33808
33808
|
*/
|
|
33809
33809
|
beginDeleteAndWait(resourceName, resourceGroupName, policyName, options) {
|
|
33810
|
-
return tslib.__awaiter(this,
|
|
33810
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33811
33811
|
const poller = yield this.beginDelete(resourceName, resourceGroupName, policyName, options);
|
|
33812
33812
|
return poller.pollUntilDone();
|
|
33813
33813
|
});
|
|
@@ -33822,17 +33822,17 @@ class ReplicationPoliciesImpl {
|
|
|
33822
33822
|
* @param options The options parameters.
|
|
33823
33823
|
*/
|
|
33824
33824
|
beginUpdate(resourceName, resourceGroupName, policyName, input, options) {
|
|
33825
|
-
return tslib.__awaiter(this,
|
|
33826
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
33825
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33826
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33827
33827
|
return this.client.sendOperationRequest(args, spec);
|
|
33828
33828
|
});
|
|
33829
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
33829
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33830
33830
|
var _a;
|
|
33831
33831
|
let currentRawResponse = undefined;
|
|
33832
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
33832
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
33833
33833
|
const callback = (rawResponse, flatResponse) => {
|
|
33834
33834
|
currentRawResponse = rawResponse;
|
|
33835
|
-
providedCallback === null || providedCallback ===
|
|
33835
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
33836
33836
|
};
|
|
33837
33837
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
33838
33838
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -33851,8 +33851,8 @@ class ReplicationPoliciesImpl {
|
|
|
33851
33851
|
spec: updateOperationSpec$1,
|
|
33852
33852
|
});
|
|
33853
33853
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
33854
|
-
restoreFrom: options === null || options ===
|
|
33855
|
-
intervalInMs: options === null || options ===
|
|
33854
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
33855
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
33856
33856
|
});
|
|
33857
33857
|
yield poller.poll();
|
|
33858
33858
|
return poller;
|
|
@@ -33868,7 +33868,7 @@ class ReplicationPoliciesImpl {
|
|
|
33868
33868
|
* @param options The options parameters.
|
|
33869
33869
|
*/
|
|
33870
33870
|
beginUpdateAndWait(resourceName, resourceGroupName, policyName, input, options) {
|
|
33871
|
-
return tslib.__awaiter(this,
|
|
33871
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33872
33872
|
const poller = yield this.beginUpdate(resourceName, resourceGroupName, policyName, input, options);
|
|
33873
33873
|
return poller.pollUntilDone();
|
|
33874
33874
|
});
|
|
@@ -34051,7 +34051,7 @@ class ReplicationProtectionIntentsImpl {
|
|
|
34051
34051
|
return this;
|
|
34052
34052
|
},
|
|
34053
34053
|
byPage: (settings) => {
|
|
34054
|
-
if (settings === null || settings ===
|
|
34054
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
34055
34055
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
34056
34056
|
}
|
|
34057
34057
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -34061,7 +34061,7 @@ class ReplicationProtectionIntentsImpl {
|
|
|
34061
34061
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
34062
34062
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
34063
34063
|
let result;
|
|
34064
|
-
let continuationToken = settings === null || settings ===
|
|
34064
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
34065
34065
|
if (!continuationToken) {
|
|
34066
34066
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
34067
34067
|
let page = result.value || [];
|
|
@@ -34260,7 +34260,7 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34260
34260
|
return this;
|
|
34261
34261
|
},
|
|
34262
34262
|
byPage: (settings) => {
|
|
34263
|
-
if (settings === null || settings ===
|
|
34263
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
34264
34264
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
34265
34265
|
}
|
|
34266
34266
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -34270,7 +34270,7 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34270
34270
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
34271
34271
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
34272
34272
|
let result;
|
|
34273
|
-
let continuationToken = settings === null || settings ===
|
|
34273
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
34274
34274
|
if (!continuationToken) {
|
|
34275
34275
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
34276
34276
|
let page = result.value || [];
|
|
@@ -34338,17 +34338,17 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34338
34338
|
* @param options The options parameters.
|
|
34339
34339
|
*/
|
|
34340
34340
|
beginCreate(resourceName, resourceGroupName, recoveryPlanName, input, options) {
|
|
34341
|
-
return tslib.__awaiter(this,
|
|
34342
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
34341
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34342
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34343
34343
|
return this.client.sendOperationRequest(args, spec);
|
|
34344
34344
|
});
|
|
34345
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
34345
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34346
34346
|
var _a;
|
|
34347
34347
|
let currentRawResponse = undefined;
|
|
34348
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
34348
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
34349
34349
|
const callback = (rawResponse, flatResponse) => {
|
|
34350
34350
|
currentRawResponse = rawResponse;
|
|
34351
|
-
providedCallback === null || providedCallback ===
|
|
34351
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
34352
34352
|
};
|
|
34353
34353
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
34354
34354
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -34373,8 +34373,8 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34373
34373
|
spec: createOperationSpec$1,
|
|
34374
34374
|
});
|
|
34375
34375
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
34376
|
-
restoreFrom: options === null || options ===
|
|
34377
|
-
intervalInMs: options === null || options ===
|
|
34376
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
34377
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
34378
34378
|
});
|
|
34379
34379
|
yield poller.poll();
|
|
34380
34380
|
return poller;
|
|
@@ -34390,7 +34390,7 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34390
34390
|
* @param options The options parameters.
|
|
34391
34391
|
*/
|
|
34392
34392
|
beginCreateAndWait(resourceName, resourceGroupName, recoveryPlanName, input, options) {
|
|
34393
|
-
return tslib.__awaiter(this,
|
|
34393
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34394
34394
|
const poller = yield this.beginCreate(resourceName, resourceGroupName, recoveryPlanName, input, options);
|
|
34395
34395
|
return poller.pollUntilDone();
|
|
34396
34396
|
});
|
|
@@ -34404,17 +34404,17 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34404
34404
|
* @param options The options parameters.
|
|
34405
34405
|
*/
|
|
34406
34406
|
beginDelete(resourceName, resourceGroupName, recoveryPlanName, options) {
|
|
34407
|
-
return tslib.__awaiter(this,
|
|
34408
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
34407
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34408
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34409
34409
|
return this.client.sendOperationRequest(args, spec);
|
|
34410
34410
|
});
|
|
34411
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
34411
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34412
34412
|
var _a;
|
|
34413
34413
|
let currentRawResponse = undefined;
|
|
34414
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
34414
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
34415
34415
|
const callback = (rawResponse, flatResponse) => {
|
|
34416
34416
|
currentRawResponse = rawResponse;
|
|
34417
|
-
providedCallback === null || providedCallback ===
|
|
34417
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
34418
34418
|
};
|
|
34419
34419
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
34420
34420
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -34433,8 +34433,8 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34433
34433
|
spec: deleteOperationSpec,
|
|
34434
34434
|
});
|
|
34435
34435
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
34436
|
-
restoreFrom: options === null || options ===
|
|
34437
|
-
intervalInMs: options === null || options ===
|
|
34436
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
34437
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
34438
34438
|
});
|
|
34439
34439
|
yield poller.poll();
|
|
34440
34440
|
return poller;
|
|
@@ -34449,7 +34449,7 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34449
34449
|
* @param options The options parameters.
|
|
34450
34450
|
*/
|
|
34451
34451
|
beginDeleteAndWait(resourceName, resourceGroupName, recoveryPlanName, options) {
|
|
34452
|
-
return tslib.__awaiter(this,
|
|
34452
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34453
34453
|
const poller = yield this.beginDelete(resourceName, resourceGroupName, recoveryPlanName, options);
|
|
34454
34454
|
return poller.pollUntilDone();
|
|
34455
34455
|
});
|
|
@@ -34464,17 +34464,17 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34464
34464
|
* @param options The options parameters.
|
|
34465
34465
|
*/
|
|
34466
34466
|
beginUpdate(resourceName, resourceGroupName, recoveryPlanName, input, options) {
|
|
34467
|
-
return tslib.__awaiter(this,
|
|
34468
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
34467
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34468
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34469
34469
|
return this.client.sendOperationRequest(args, spec);
|
|
34470
34470
|
});
|
|
34471
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
34471
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34472
34472
|
var _a;
|
|
34473
34473
|
let currentRawResponse = undefined;
|
|
34474
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
34474
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
34475
34475
|
const callback = (rawResponse, flatResponse) => {
|
|
34476
34476
|
currentRawResponse = rawResponse;
|
|
34477
|
-
providedCallback === null || providedCallback ===
|
|
34477
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
34478
34478
|
};
|
|
34479
34479
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
34480
34480
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -34499,8 +34499,8 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34499
34499
|
spec: updateOperationSpec,
|
|
34500
34500
|
});
|
|
34501
34501
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
34502
|
-
restoreFrom: options === null || options ===
|
|
34503
|
-
intervalInMs: options === null || options ===
|
|
34502
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
34503
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
34504
34504
|
});
|
|
34505
34505
|
yield poller.poll();
|
|
34506
34506
|
return poller;
|
|
@@ -34516,7 +34516,7 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34516
34516
|
* @param options The options parameters.
|
|
34517
34517
|
*/
|
|
34518
34518
|
beginUpdateAndWait(resourceName, resourceGroupName, recoveryPlanName, input, options) {
|
|
34519
|
-
return tslib.__awaiter(this,
|
|
34519
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34520
34520
|
const poller = yield this.beginUpdate(resourceName, resourceGroupName, recoveryPlanName, input, options);
|
|
34521
34521
|
return poller.pollUntilDone();
|
|
34522
34522
|
});
|
|
@@ -34530,17 +34530,17 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34530
34530
|
* @param options The options parameters.
|
|
34531
34531
|
*/
|
|
34532
34532
|
beginFailoverCancel(resourceName, resourceGroupName, recoveryPlanName, options) {
|
|
34533
|
-
return tslib.__awaiter(this,
|
|
34534
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
34533
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34534
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34535
34535
|
return this.client.sendOperationRequest(args, spec);
|
|
34536
34536
|
});
|
|
34537
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
34537
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34538
34538
|
var _a;
|
|
34539
34539
|
let currentRawResponse = undefined;
|
|
34540
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
34540
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
34541
34541
|
const callback = (rawResponse, flatResponse) => {
|
|
34542
34542
|
currentRawResponse = rawResponse;
|
|
34543
|
-
providedCallback === null || providedCallback ===
|
|
34543
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
34544
34544
|
};
|
|
34545
34545
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
34546
34546
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -34559,8 +34559,8 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34559
34559
|
spec: failoverCancelOperationSpec,
|
|
34560
34560
|
});
|
|
34561
34561
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
34562
|
-
restoreFrom: options === null || options ===
|
|
34563
|
-
intervalInMs: options === null || options ===
|
|
34562
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
34563
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
34564
34564
|
});
|
|
34565
34565
|
yield poller.poll();
|
|
34566
34566
|
return poller;
|
|
@@ -34575,7 +34575,7 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34575
34575
|
* @param options The options parameters.
|
|
34576
34576
|
*/
|
|
34577
34577
|
beginFailoverCancelAndWait(resourceName, resourceGroupName, recoveryPlanName, options) {
|
|
34578
|
-
return tslib.__awaiter(this,
|
|
34578
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34579
34579
|
const poller = yield this.beginFailoverCancel(resourceName, resourceGroupName, recoveryPlanName, options);
|
|
34580
34580
|
return poller.pollUntilDone();
|
|
34581
34581
|
});
|
|
@@ -34589,17 +34589,17 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34589
34589
|
* @param options The options parameters.
|
|
34590
34590
|
*/
|
|
34591
34591
|
beginFailoverCommit(resourceName, resourceGroupName, recoveryPlanName, options) {
|
|
34592
|
-
return tslib.__awaiter(this,
|
|
34593
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
34592
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34593
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34594
34594
|
return this.client.sendOperationRequest(args, spec);
|
|
34595
34595
|
});
|
|
34596
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
34596
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34597
34597
|
var _a;
|
|
34598
34598
|
let currentRawResponse = undefined;
|
|
34599
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
34599
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
34600
34600
|
const callback = (rawResponse, flatResponse) => {
|
|
34601
34601
|
currentRawResponse = rawResponse;
|
|
34602
|
-
providedCallback === null || providedCallback ===
|
|
34602
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
34603
34603
|
};
|
|
34604
34604
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
34605
34605
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -34618,8 +34618,8 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34618
34618
|
spec: failoverCommitOperationSpec,
|
|
34619
34619
|
});
|
|
34620
34620
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
34621
|
-
restoreFrom: options === null || options ===
|
|
34622
|
-
intervalInMs: options === null || options ===
|
|
34621
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
34622
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
34623
34623
|
});
|
|
34624
34624
|
yield poller.poll();
|
|
34625
34625
|
return poller;
|
|
@@ -34634,7 +34634,7 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34634
34634
|
* @param options The options parameters.
|
|
34635
34635
|
*/
|
|
34636
34636
|
beginFailoverCommitAndWait(resourceName, resourceGroupName, recoveryPlanName, options) {
|
|
34637
|
-
return tslib.__awaiter(this,
|
|
34637
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34638
34638
|
const poller = yield this.beginFailoverCommit(resourceName, resourceGroupName, recoveryPlanName, options);
|
|
34639
34639
|
return poller.pollUntilDone();
|
|
34640
34640
|
});
|
|
@@ -34649,17 +34649,17 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34649
34649
|
* @param options The options parameters.
|
|
34650
34650
|
*/
|
|
34651
34651
|
beginPlannedFailover(resourceName, resourceGroupName, recoveryPlanName, input, options) {
|
|
34652
|
-
return tslib.__awaiter(this,
|
|
34653
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
34652
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34653
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34654
34654
|
return this.client.sendOperationRequest(args, spec);
|
|
34655
34655
|
});
|
|
34656
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
34656
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34657
34657
|
var _a;
|
|
34658
34658
|
let currentRawResponse = undefined;
|
|
34659
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
34659
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
34660
34660
|
const callback = (rawResponse, flatResponse) => {
|
|
34661
34661
|
currentRawResponse = rawResponse;
|
|
34662
|
-
providedCallback === null || providedCallback ===
|
|
34662
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
34663
34663
|
};
|
|
34664
34664
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
34665
34665
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -34684,8 +34684,8 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34684
34684
|
spec: plannedFailoverOperationSpec,
|
|
34685
34685
|
});
|
|
34686
34686
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
34687
|
-
restoreFrom: options === null || options ===
|
|
34688
|
-
intervalInMs: options === null || options ===
|
|
34687
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
34688
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
34689
34689
|
});
|
|
34690
34690
|
yield poller.poll();
|
|
34691
34691
|
return poller;
|
|
@@ -34701,7 +34701,7 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34701
34701
|
* @param options The options parameters.
|
|
34702
34702
|
*/
|
|
34703
34703
|
beginPlannedFailoverAndWait(resourceName, resourceGroupName, recoveryPlanName, input, options) {
|
|
34704
|
-
return tslib.__awaiter(this,
|
|
34704
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34705
34705
|
const poller = yield this.beginPlannedFailover(resourceName, resourceGroupName, recoveryPlanName, input, options);
|
|
34706
34706
|
return poller.pollUntilDone();
|
|
34707
34707
|
});
|
|
@@ -34715,17 +34715,17 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34715
34715
|
* @param options The options parameters.
|
|
34716
34716
|
*/
|
|
34717
34717
|
beginReprotect(resourceName, resourceGroupName, recoveryPlanName, options) {
|
|
34718
|
-
return tslib.__awaiter(this,
|
|
34719
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
34718
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34719
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34720
34720
|
return this.client.sendOperationRequest(args, spec);
|
|
34721
34721
|
});
|
|
34722
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
34722
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34723
34723
|
var _a;
|
|
34724
34724
|
let currentRawResponse = undefined;
|
|
34725
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
34725
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
34726
34726
|
const callback = (rawResponse, flatResponse) => {
|
|
34727
34727
|
currentRawResponse = rawResponse;
|
|
34728
|
-
providedCallback === null || providedCallback ===
|
|
34728
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
34729
34729
|
};
|
|
34730
34730
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
34731
34731
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -34744,8 +34744,8 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34744
34744
|
spec: reprotectOperationSpec,
|
|
34745
34745
|
});
|
|
34746
34746
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
34747
|
-
restoreFrom: options === null || options ===
|
|
34748
|
-
intervalInMs: options === null || options ===
|
|
34747
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
34748
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
34749
34749
|
});
|
|
34750
34750
|
yield poller.poll();
|
|
34751
34751
|
return poller;
|
|
@@ -34760,7 +34760,7 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34760
34760
|
* @param options The options parameters.
|
|
34761
34761
|
*/
|
|
34762
34762
|
beginReprotectAndWait(resourceName, resourceGroupName, recoveryPlanName, options) {
|
|
34763
|
-
return tslib.__awaiter(this,
|
|
34763
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34764
34764
|
const poller = yield this.beginReprotect(resourceName, resourceGroupName, recoveryPlanName, options);
|
|
34765
34765
|
return poller.pollUntilDone();
|
|
34766
34766
|
});
|
|
@@ -34775,17 +34775,17 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34775
34775
|
* @param options The options parameters.
|
|
34776
34776
|
*/
|
|
34777
34777
|
beginTestFailover(resourceName, resourceGroupName, recoveryPlanName, input, options) {
|
|
34778
|
-
return tslib.__awaiter(this,
|
|
34779
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
34778
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34779
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34780
34780
|
return this.client.sendOperationRequest(args, spec);
|
|
34781
34781
|
});
|
|
34782
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
34782
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34783
34783
|
var _a;
|
|
34784
34784
|
let currentRawResponse = undefined;
|
|
34785
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
34785
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
34786
34786
|
const callback = (rawResponse, flatResponse) => {
|
|
34787
34787
|
currentRawResponse = rawResponse;
|
|
34788
|
-
providedCallback === null || providedCallback ===
|
|
34788
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
34789
34789
|
};
|
|
34790
34790
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
34791
34791
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -34810,8 +34810,8 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34810
34810
|
spec: testFailoverOperationSpec,
|
|
34811
34811
|
});
|
|
34812
34812
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
34813
|
-
restoreFrom: options === null || options ===
|
|
34814
|
-
intervalInMs: options === null || options ===
|
|
34813
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
34814
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
34815
34815
|
});
|
|
34816
34816
|
yield poller.poll();
|
|
34817
34817
|
return poller;
|
|
@@ -34827,7 +34827,7 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34827
34827
|
* @param options The options parameters.
|
|
34828
34828
|
*/
|
|
34829
34829
|
beginTestFailoverAndWait(resourceName, resourceGroupName, recoveryPlanName, input, options) {
|
|
34830
|
-
return tslib.__awaiter(this,
|
|
34830
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34831
34831
|
const poller = yield this.beginTestFailover(resourceName, resourceGroupName, recoveryPlanName, input, options);
|
|
34832
34832
|
return poller.pollUntilDone();
|
|
34833
34833
|
});
|
|
@@ -34842,17 +34842,17 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34842
34842
|
* @param options The options parameters.
|
|
34843
34843
|
*/
|
|
34844
34844
|
beginTestFailoverCleanup(resourceName, resourceGroupName, recoveryPlanName, input, options) {
|
|
34845
|
-
return tslib.__awaiter(this,
|
|
34846
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
34845
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34846
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34847
34847
|
return this.client.sendOperationRequest(args, spec);
|
|
34848
34848
|
});
|
|
34849
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
34849
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34850
34850
|
var _a;
|
|
34851
34851
|
let currentRawResponse = undefined;
|
|
34852
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
34852
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
34853
34853
|
const callback = (rawResponse, flatResponse) => {
|
|
34854
34854
|
currentRawResponse = rawResponse;
|
|
34855
|
-
providedCallback === null || providedCallback ===
|
|
34855
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
34856
34856
|
};
|
|
34857
34857
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
34858
34858
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -34877,8 +34877,8 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34877
34877
|
spec: testFailoverCleanupOperationSpec,
|
|
34878
34878
|
});
|
|
34879
34879
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
34880
|
-
restoreFrom: options === null || options ===
|
|
34881
|
-
intervalInMs: options === null || options ===
|
|
34880
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
34881
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
34882
34882
|
});
|
|
34883
34883
|
yield poller.poll();
|
|
34884
34884
|
return poller;
|
|
@@ -34894,7 +34894,7 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34894
34894
|
* @param options The options parameters.
|
|
34895
34895
|
*/
|
|
34896
34896
|
beginTestFailoverCleanupAndWait(resourceName, resourceGroupName, recoveryPlanName, input, options) {
|
|
34897
|
-
return tslib.__awaiter(this,
|
|
34897
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34898
34898
|
const poller = yield this.beginTestFailoverCleanup(resourceName, resourceGroupName, recoveryPlanName, input, options);
|
|
34899
34899
|
return poller.pollUntilDone();
|
|
34900
34900
|
});
|
|
@@ -34909,17 +34909,17 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34909
34909
|
* @param options The options parameters.
|
|
34910
34910
|
*/
|
|
34911
34911
|
beginUnplannedFailover(resourceName, resourceGroupName, recoveryPlanName, input, options) {
|
|
34912
|
-
return tslib.__awaiter(this,
|
|
34913
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
34912
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34913
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34914
34914
|
return this.client.sendOperationRequest(args, spec);
|
|
34915
34915
|
});
|
|
34916
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
34916
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34917
34917
|
var _a;
|
|
34918
34918
|
let currentRawResponse = undefined;
|
|
34919
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
34919
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
34920
34920
|
const callback = (rawResponse, flatResponse) => {
|
|
34921
34921
|
currentRawResponse = rawResponse;
|
|
34922
|
-
providedCallback === null || providedCallback ===
|
|
34922
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
34923
34923
|
};
|
|
34924
34924
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
34925
34925
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -34944,8 +34944,8 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34944
34944
|
spec: unplannedFailoverOperationSpec,
|
|
34945
34945
|
});
|
|
34946
34946
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
34947
|
-
restoreFrom: options === null || options ===
|
|
34948
|
-
intervalInMs: options === null || options ===
|
|
34947
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
34948
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
34949
34949
|
});
|
|
34950
34950
|
yield poller.poll();
|
|
34951
34951
|
return poller;
|
|
@@ -34961,7 +34961,7 @@ class ReplicationRecoveryPlansImpl {
|
|
|
34961
34961
|
* @param options The options parameters.
|
|
34962
34962
|
*/
|
|
34963
34963
|
beginUnplannedFailoverAndWait(resourceName, resourceGroupName, recoveryPlanName, input, options) {
|
|
34964
|
-
return tslib.__awaiter(this,
|
|
34964
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34965
34965
|
const poller = yield this.beginUnplannedFailover(resourceName, resourceGroupName, recoveryPlanName, input, options);
|
|
34966
34966
|
return poller.pollUntilDone();
|
|
34967
34967
|
});
|
|
@@ -35396,17 +35396,17 @@ class ReplicationVaultHealthImpl {
|
|
|
35396
35396
|
* @param options The options parameters.
|
|
35397
35397
|
*/
|
|
35398
35398
|
beginRefresh(resourceName, resourceGroupName, options) {
|
|
35399
|
-
return tslib.__awaiter(this,
|
|
35400
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
35399
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
35400
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
35401
35401
|
return this.client.sendOperationRequest(args, spec);
|
|
35402
35402
|
});
|
|
35403
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
35403
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
35404
35404
|
var _a;
|
|
35405
35405
|
let currentRawResponse = undefined;
|
|
35406
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
35406
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
35407
35407
|
const callback = (rawResponse, flatResponse) => {
|
|
35408
35408
|
currentRawResponse = rawResponse;
|
|
35409
|
-
providedCallback === null || providedCallback ===
|
|
35409
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
35410
35410
|
};
|
|
35411
35411
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
35412
35412
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -35425,8 +35425,8 @@ class ReplicationVaultHealthImpl {
|
|
|
35425
35425
|
spec: refreshOperationSpec,
|
|
35426
35426
|
});
|
|
35427
35427
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
35428
|
-
restoreFrom: options === null || options ===
|
|
35429
|
-
intervalInMs: options === null || options ===
|
|
35428
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
35429
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
35430
35430
|
});
|
|
35431
35431
|
yield poller.poll();
|
|
35432
35432
|
return poller;
|
|
@@ -35440,7 +35440,7 @@ class ReplicationVaultHealthImpl {
|
|
|
35440
35440
|
* @param options The options parameters.
|
|
35441
35441
|
*/
|
|
35442
35442
|
beginRefreshAndWait(resourceName, resourceGroupName, options) {
|
|
35443
|
-
return tslib.__awaiter(this,
|
|
35443
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
35444
35444
|
const poller = yield this.beginRefresh(resourceName, resourceGroupName, options);
|
|
35445
35445
|
return poller.pollUntilDone();
|
|
35446
35446
|
});
|
|
@@ -35528,7 +35528,7 @@ class ReplicationVaultSettingImpl {
|
|
|
35528
35528
|
return this;
|
|
35529
35529
|
},
|
|
35530
35530
|
byPage: (settings) => {
|
|
35531
|
-
if (settings === null || settings ===
|
|
35531
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
35532
35532
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
35533
35533
|
}
|
|
35534
35534
|
return this.listPagingPage(resourceName, resourceGroupName, options, settings);
|
|
@@ -35538,7 +35538,7 @@ class ReplicationVaultSettingImpl {
|
|
|
35538
35538
|
listPagingPage(resourceName, resourceGroupName, options, settings) {
|
|
35539
35539
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
35540
35540
|
let result;
|
|
35541
|
-
let continuationToken = settings === null || settings ===
|
|
35541
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
35542
35542
|
if (!continuationToken) {
|
|
35543
35543
|
result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
|
|
35544
35544
|
let page = result.value || [];
|
|
@@ -35606,17 +35606,17 @@ class ReplicationVaultSettingImpl {
|
|
|
35606
35606
|
* @param options The options parameters.
|
|
35607
35607
|
*/
|
|
35608
35608
|
beginCreate(resourceName, resourceGroupName, vaultSettingName, input, options) {
|
|
35609
|
-
return tslib.__awaiter(this,
|
|
35610
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
35609
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
35610
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
35611
35611
|
return this.client.sendOperationRequest(args, spec);
|
|
35612
35612
|
});
|
|
35613
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
35613
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
35614
35614
|
var _a;
|
|
35615
35615
|
let currentRawResponse = undefined;
|
|
35616
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
35616
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
35617
35617
|
const callback = (rawResponse, flatResponse) => {
|
|
35618
35618
|
currentRawResponse = rawResponse;
|
|
35619
|
-
providedCallback === null || providedCallback ===
|
|
35619
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
35620
35620
|
};
|
|
35621
35621
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
35622
35622
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -35641,8 +35641,8 @@ class ReplicationVaultSettingImpl {
|
|
|
35641
35641
|
spec: createOperationSpec,
|
|
35642
35642
|
});
|
|
35643
35643
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
35644
|
-
restoreFrom: options === null || options ===
|
|
35645
|
-
intervalInMs: options === null || options ===
|
|
35644
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
35645
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
35646
35646
|
});
|
|
35647
35647
|
yield poller.poll();
|
|
35648
35648
|
return poller;
|
|
@@ -35658,7 +35658,7 @@ class ReplicationVaultSettingImpl {
|
|
|
35658
35658
|
* @param options The options parameters.
|
|
35659
35659
|
*/
|
|
35660
35660
|
beginCreateAndWait(resourceName, resourceGroupName, vaultSettingName, input, options) {
|
|
35661
|
-
return tslib.__awaiter(this,
|
|
35661
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
35662
35662
|
const poller = yield this.beginCreate(resourceName, resourceGroupName, vaultSettingName, input, options);
|
|
35663
35663
|
return poller.pollUntilDone();
|
|
35664
35664
|
});
|
|
@@ -35799,10 +35799,10 @@ class SiteRecoveryManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
35799
35799
|
: `${packageDetails}`;
|
|
35800
35800
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
35801
35801
|
userAgentPrefix,
|
|
35802
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
35802
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
35803
35803
|
super(optionsWithDefaults);
|
|
35804
35804
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
35805
|
-
if ((options === null || options ===
|
|
35805
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
35806
35806
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
35807
35807
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
35808
35808
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -35816,7 +35816,7 @@ class SiteRecoveryManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
35816
35816
|
});
|
|
35817
35817
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
35818
35818
|
credential: credentials,
|
|
35819
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
35819
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
35820
35820
|
challengeCallbacks: {
|
|
35821
35821
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
35822
35822
|
},
|
|
@@ -35872,7 +35872,7 @@ class SiteRecoveryManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
35872
35872
|
const apiVersionPolicy = {
|
|
35873
35873
|
name: "CustomApiVersionPolicy",
|
|
35874
35874
|
sendRequest(request, next) {
|
|
35875
|
-
return tslib.__awaiter(this,
|
|
35875
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
35876
35876
|
const param = request.url.split("?");
|
|
35877
35877
|
if (param.length > 1) {
|
|
35878
35878
|
const newParams = param[1].split("&").map((item) => {
|