@azure/arm-recoveryservices-siterecovery 5.2.1-alpha.20250102.1 → 5.2.1-alpha.20250106.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js 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 === void 0 ? void 0 : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
51
51
  }
52
52
  function setContinuationToken(page, continuationToken) {
53
53
  var _a;
54
54
  if (typeof page !== "object" || page === null || !continuationToken) {
55
55
  return;
56
56
  }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -22531,7 +22531,7 @@ class OperationsImpl {
22531
22531
  return this;
22532
22532
  },
22533
22533
  byPage: (settings) => {
22534
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
22534
+ if (settings === null || settings === undefined ? undefined : 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 === void 0 ? void 0 : settings.continuationToken;
22544
+ let continuationToken = settings === null || settings === undefined ? undefined : 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 === void 0 ? void 0 : settings.maxPageSize) {
22672
+ if (settings === null || settings === undefined ? undefined : 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 === void 0 ? void 0 : settings.continuationToken;
22682
+ let continuationToken = settings === null || settings === undefined ? undefined : 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 === void 0 ? void 0 : settings.maxPageSize) {
22877
+ if (settings === null || settings === undefined ? undefined : 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 === void 0 ? void 0 : settings.continuationToken;
22887
+ let continuationToken = settings === null || settings === undefined ? undefined : 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 === void 0 ? void 0 : settings.maxPageSize) {
23095
+ if (settings === null || settings === undefined ? undefined : 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 === void 0 ? void 0 : settings.continuationToken;
23105
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
23106
23106
  if (!continuationToken) {
23107
23107
  result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
23108
23108
  let page = result.value || [];
@@ -23245,7 +23245,7 @@ function createLroSpec(inputs) {
23245
23245
  sendInitialRequest: () => sendOperationFn(args, spec),
23246
23246
  sendPollRequest: (path, options) => {
23247
23247
  const restSpec = tslib.__rest(spec, ["requestBody"]);
23248
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
23248
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
23249
23249
  },
23250
23250
  };
23251
23251
  }
@@ -23284,7 +23284,7 @@ class ReplicationFabricsImpl {
23284
23284
  return this;
23285
23285
  },
23286
23286
  byPage: (settings) => {
23287
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
23287
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
23288
23288
  throw new Error("maxPageSize is not supported by this operation.");
23289
23289
  }
23290
23290
  return this.listPagingPage(resourceName, resourceGroupName, options, settings);
@@ -23294,7 +23294,7 @@ class ReplicationFabricsImpl {
23294
23294
  listPagingPage(resourceName, resourceGroupName, options, settings) {
23295
23295
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
23296
23296
  let result;
23297
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
23297
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
23298
23298
  if (!continuationToken) {
23299
23299
  result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
23300
23300
  let page = result.value || [];
@@ -23362,17 +23362,17 @@ class ReplicationFabricsImpl {
23362
23362
  * @param options The options parameters.
23363
23363
  */
23364
23364
  beginCreate(resourceName, resourceGroupName, fabricName, input, options) {
23365
- return tslib.__awaiter(this, void 0, void 0, function* () {
23366
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23365
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23366
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23367
23367
  return this.client.sendOperationRequest(args, spec);
23368
23368
  });
23369
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23369
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23370
23370
  var _a;
23371
23371
  let currentRawResponse = undefined;
23372
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
23372
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
23373
23373
  const callback = (rawResponse, flatResponse) => {
23374
23374
  currentRawResponse = rawResponse;
23375
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
23375
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
23376
23376
  };
23377
23377
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
23378
23378
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -23391,8 +23391,8 @@ class ReplicationFabricsImpl {
23391
23391
  spec: createOperationSpec$c,
23392
23392
  });
23393
23393
  const poller = yield coreLro.createHttpPoller(lro, {
23394
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23395
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
23394
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
23395
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
23396
23396
  });
23397
23397
  yield poller.poll();
23398
23398
  return poller;
@@ -23408,7 +23408,7 @@ class ReplicationFabricsImpl {
23408
23408
  * @param options The options parameters.
23409
23409
  */
23410
23410
  beginCreateAndWait(resourceName, resourceGroupName, fabricName, input, options) {
23411
- return tslib.__awaiter(this, void 0, void 0, function* () {
23411
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23412
23412
  const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, input, options);
23413
23413
  return poller.pollUntilDone();
23414
23414
  });
@@ -23422,17 +23422,17 @@ class ReplicationFabricsImpl {
23422
23422
  * @param options The options parameters.
23423
23423
  */
23424
23424
  beginPurge(resourceName, resourceGroupName, fabricName, options) {
23425
- return tslib.__awaiter(this, void 0, void 0, function* () {
23426
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23425
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23426
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23427
23427
  return this.client.sendOperationRequest(args, spec);
23428
23428
  });
23429
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23429
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23430
23430
  var _a;
23431
23431
  let currentRawResponse = undefined;
23432
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
23432
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
23433
23433
  const callback = (rawResponse, flatResponse) => {
23434
23434
  currentRawResponse = rawResponse;
23435
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
23435
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
23436
23436
  };
23437
23437
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
23438
23438
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -23451,8 +23451,8 @@ class ReplicationFabricsImpl {
23451
23451
  spec: purgeOperationSpec$3,
23452
23452
  });
23453
23453
  const poller = yield coreLro.createHttpPoller(lro, {
23454
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23455
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
23454
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
23455
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
23456
23456
  });
23457
23457
  yield poller.poll();
23458
23458
  return poller;
@@ -23467,7 +23467,7 @@ class ReplicationFabricsImpl {
23467
23467
  * @param options The options parameters.
23468
23468
  */
23469
23469
  beginPurgeAndWait(resourceName, resourceGroupName, fabricName, options) {
23470
- return tslib.__awaiter(this, void 0, void 0, function* () {
23470
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23471
23471
  const poller = yield this.beginPurge(resourceName, resourceGroupName, fabricName, options);
23472
23472
  return poller.pollUntilDone();
23473
23473
  });
@@ -23481,17 +23481,17 @@ class ReplicationFabricsImpl {
23481
23481
  * @param options The options parameters.
23482
23482
  */
23483
23483
  beginCheckConsistency(resourceName, resourceGroupName, fabricName, options) {
23484
- return tslib.__awaiter(this, void 0, void 0, function* () {
23485
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23484
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23485
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23486
23486
  return this.client.sendOperationRequest(args, spec);
23487
23487
  });
23488
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23488
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23489
23489
  var _a;
23490
23490
  let currentRawResponse = undefined;
23491
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
23491
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
23492
23492
  const callback = (rawResponse, flatResponse) => {
23493
23493
  currentRawResponse = rawResponse;
23494
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
23494
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
23495
23495
  };
23496
23496
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
23497
23497
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -23510,8 +23510,8 @@ class ReplicationFabricsImpl {
23510
23510
  spec: checkConsistencyOperationSpec,
23511
23511
  });
23512
23512
  const poller = yield coreLro.createHttpPoller(lro, {
23513
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23514
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
23513
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
23514
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
23515
23515
  });
23516
23516
  yield poller.poll();
23517
23517
  return poller;
@@ -23526,7 +23526,7 @@ class ReplicationFabricsImpl {
23526
23526
  * @param options The options parameters.
23527
23527
  */
23528
23528
  beginCheckConsistencyAndWait(resourceName, resourceGroupName, fabricName, options) {
23529
- return tslib.__awaiter(this, void 0, void 0, function* () {
23529
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23530
23530
  const poller = yield this.beginCheckConsistency(resourceName, resourceGroupName, fabricName, options);
23531
23531
  return poller.pollUntilDone();
23532
23532
  });
@@ -23540,17 +23540,17 @@ class ReplicationFabricsImpl {
23540
23540
  * @param options The options parameters.
23541
23541
  */
23542
23542
  beginMigrateToAad(resourceName, resourceGroupName, fabricName, options) {
23543
- return tslib.__awaiter(this, void 0, void 0, function* () {
23544
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23543
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23544
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23545
23545
  return this.client.sendOperationRequest(args, spec);
23546
23546
  });
23547
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23547
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23548
23548
  var _a;
23549
23549
  let currentRawResponse = undefined;
23550
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
23550
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
23551
23551
  const callback = (rawResponse, flatResponse) => {
23552
23552
  currentRawResponse = rawResponse;
23553
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
23553
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
23554
23554
  };
23555
23555
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
23556
23556
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -23569,8 +23569,8 @@ class ReplicationFabricsImpl {
23569
23569
  spec: migrateToAadOperationSpec,
23570
23570
  });
23571
23571
  const poller = yield coreLro.createHttpPoller(lro, {
23572
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23573
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
23572
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
23573
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
23574
23574
  });
23575
23575
  yield poller.poll();
23576
23576
  return poller;
@@ -23585,7 +23585,7 @@ class ReplicationFabricsImpl {
23585
23585
  * @param options The options parameters.
23586
23586
  */
23587
23587
  beginMigrateToAadAndWait(resourceName, resourceGroupName, fabricName, options) {
23588
- return tslib.__awaiter(this, void 0, void 0, function* () {
23588
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23589
23589
  const poller = yield this.beginMigrateToAad(resourceName, resourceGroupName, fabricName, options);
23590
23590
  return poller.pollUntilDone();
23591
23591
  });
@@ -23600,17 +23600,17 @@ class ReplicationFabricsImpl {
23600
23600
  * @param options The options parameters.
23601
23601
  */
23602
23602
  beginReassociateGateway(resourceName, resourceGroupName, fabricName, failoverProcessServerRequest, options) {
23603
- return tslib.__awaiter(this, void 0, void 0, function* () {
23604
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23603
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23604
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23605
23605
  return this.client.sendOperationRequest(args, spec);
23606
23606
  });
23607
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23607
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23608
23608
  var _a;
23609
23609
  let currentRawResponse = undefined;
23610
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
23610
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
23611
23611
  const callback = (rawResponse, flatResponse) => {
23612
23612
  currentRawResponse = rawResponse;
23613
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
23613
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
23614
23614
  };
23615
23615
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
23616
23616
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -23635,8 +23635,8 @@ class ReplicationFabricsImpl {
23635
23635
  spec: reassociateGatewayOperationSpec,
23636
23636
  });
23637
23637
  const poller = yield coreLro.createHttpPoller(lro, {
23638
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23639
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
23638
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
23639
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
23640
23640
  });
23641
23641
  yield poller.poll();
23642
23642
  return poller;
@@ -23652,7 +23652,7 @@ class ReplicationFabricsImpl {
23652
23652
  * @param options The options parameters.
23653
23653
  */
23654
23654
  beginReassociateGatewayAndWait(resourceName, resourceGroupName, fabricName, failoverProcessServerRequest, options) {
23655
- return tslib.__awaiter(this, void 0, void 0, function* () {
23655
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23656
23656
  const poller = yield this.beginReassociateGateway(resourceName, resourceGroupName, fabricName, failoverProcessServerRequest, options);
23657
23657
  return poller.pollUntilDone();
23658
23658
  });
@@ -23666,17 +23666,17 @@ class ReplicationFabricsImpl {
23666
23666
  * @param options The options parameters.
23667
23667
  */
23668
23668
  beginDelete(resourceName, resourceGroupName, fabricName, options) {
23669
- return tslib.__awaiter(this, void 0, void 0, function* () {
23670
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23669
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23670
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23671
23671
  return this.client.sendOperationRequest(args, spec);
23672
23672
  });
23673
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23673
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23674
23674
  var _a;
23675
23675
  let currentRawResponse = undefined;
23676
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
23676
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
23677
23677
  const callback = (rawResponse, flatResponse) => {
23678
23678
  currentRawResponse = rawResponse;
23679
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
23679
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
23680
23680
  };
23681
23681
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
23682
23682
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -23695,8 +23695,8 @@ class ReplicationFabricsImpl {
23695
23695
  spec: deleteOperationSpec$a,
23696
23696
  });
23697
23697
  const poller = yield coreLro.createHttpPoller(lro, {
23698
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23699
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
23698
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
23699
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
23700
23700
  });
23701
23701
  yield poller.poll();
23702
23702
  return poller;
@@ -23711,7 +23711,7 @@ class ReplicationFabricsImpl {
23711
23711
  * @param options The options parameters.
23712
23712
  */
23713
23713
  beginDeleteAndWait(resourceName, resourceGroupName, fabricName, options) {
23714
- return tslib.__awaiter(this, void 0, void 0, function* () {
23714
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23715
23715
  const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, options);
23716
23716
  return poller.pollUntilDone();
23717
23717
  });
@@ -23726,17 +23726,17 @@ class ReplicationFabricsImpl {
23726
23726
  * @param options The options parameters.
23727
23727
  */
23728
23728
  beginRenewCertificate(resourceName, resourceGroupName, fabricName, renewCertificate, options) {
23729
- return tslib.__awaiter(this, void 0, void 0, function* () {
23730
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23729
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23730
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23731
23731
  return this.client.sendOperationRequest(args, spec);
23732
23732
  });
23733
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23733
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23734
23734
  var _a;
23735
23735
  let currentRawResponse = undefined;
23736
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
23736
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
23737
23737
  const callback = (rawResponse, flatResponse) => {
23738
23738
  currentRawResponse = rawResponse;
23739
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
23739
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
23740
23740
  };
23741
23741
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
23742
23742
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -23761,8 +23761,8 @@ class ReplicationFabricsImpl {
23761
23761
  spec: renewCertificateOperationSpec,
23762
23762
  });
23763
23763
  const poller = yield coreLro.createHttpPoller(lro, {
23764
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23765
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
23764
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
23765
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
23766
23766
  });
23767
23767
  yield poller.poll();
23768
23768
  return poller;
@@ -23778,7 +23778,7 @@ class ReplicationFabricsImpl {
23778
23778
  * @param options The options parameters.
23779
23779
  */
23780
23780
  beginRenewCertificateAndWait(resourceName, resourceGroupName, fabricName, renewCertificate, options) {
23781
- return tslib.__awaiter(this, void 0, void 0, function* () {
23781
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23782
23782
  const poller = yield this.beginRenewCertificate(resourceName, resourceGroupName, fabricName, renewCertificate, options);
23783
23783
  return poller.pollUntilDone();
23784
23784
  });
@@ -23792,17 +23792,17 @@ class ReplicationFabricsImpl {
23792
23792
  * @param options The options parameters.
23793
23793
  */
23794
23794
  beginRemoveInfra(resourceGroupName, resourceName, fabricName, options) {
23795
- return tslib.__awaiter(this, void 0, void 0, function* () {
23796
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23795
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23796
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23797
23797
  return this.client.sendOperationRequest(args, spec);
23798
23798
  });
23799
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23799
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23800
23800
  var _a;
23801
23801
  let currentRawResponse = undefined;
23802
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
23802
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
23803
23803
  const callback = (rawResponse, flatResponse) => {
23804
23804
  currentRawResponse = rawResponse;
23805
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
23805
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
23806
23806
  };
23807
23807
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
23808
23808
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -23821,8 +23821,8 @@ class ReplicationFabricsImpl {
23821
23821
  spec: removeInfraOperationSpec,
23822
23822
  });
23823
23823
  const poller = yield coreLro.createHttpPoller(lro, {
23824
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23825
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
23824
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
23825
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
23826
23826
  });
23827
23827
  yield poller.poll();
23828
23828
  return poller;
@@ -23837,7 +23837,7 @@ class ReplicationFabricsImpl {
23837
23837
  * @param options The options parameters.
23838
23838
  */
23839
23839
  beginRemoveInfraAndWait(resourceGroupName, resourceName, fabricName, options) {
23840
- return tslib.__awaiter(this, void 0, void 0, function* () {
23840
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23841
23841
  const poller = yield this.beginRemoveInfra(resourceGroupName, resourceName, fabricName, options);
23842
23842
  return poller.pollUntilDone();
23843
23843
  });
@@ -24138,7 +24138,7 @@ class ReplicationLogicalNetworksImpl {
24138
24138
  return this;
24139
24139
  },
24140
24140
  byPage: (settings) => {
24141
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
24141
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
24142
24142
  throw new Error("maxPageSize is not supported by this operation.");
24143
24143
  }
24144
24144
  return this.listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings);
@@ -24148,7 +24148,7 @@ class ReplicationLogicalNetworksImpl {
24148
24148
  listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings) {
24149
24149
  return tslib.__asyncGenerator(this, arguments, function* listByReplicationFabricsPagingPage_1() {
24150
24150
  let result;
24151
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
24151
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
24152
24152
  if (!continuationToken) {
24153
24153
  result = yield tslib.__await(this._listByReplicationFabrics(resourceName, resourceGroupName, fabricName, options));
24154
24154
  let page = result.value || [];
@@ -24324,7 +24324,7 @@ class ReplicationNetworksImpl {
24324
24324
  return this;
24325
24325
  },
24326
24326
  byPage: (settings) => {
24327
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
24327
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
24328
24328
  throw new Error("maxPageSize is not supported by this operation.");
24329
24329
  }
24330
24330
  return this.listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings);
@@ -24334,7 +24334,7 @@ class ReplicationNetworksImpl {
24334
24334
  listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings) {
24335
24335
  return tslib.__asyncGenerator(this, arguments, function* listByReplicationFabricsPagingPage_1() {
24336
24336
  let result;
24337
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
24337
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
24338
24338
  if (!continuationToken) {
24339
24339
  result = yield tslib.__await(this._listByReplicationFabrics(resourceName, resourceGroupName, fabricName, options));
24340
24340
  let page = result.value || [];
@@ -24388,7 +24388,7 @@ class ReplicationNetworksImpl {
24388
24388
  return this;
24389
24389
  },
24390
24390
  byPage: (settings) => {
24391
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
24391
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
24392
24392
  throw new Error("maxPageSize is not supported by this operation.");
24393
24393
  }
24394
24394
  return this.listPagingPage(resourceName, resourceGroupName, options, settings);
@@ -24398,7 +24398,7 @@ class ReplicationNetworksImpl {
24398
24398
  listPagingPage(resourceName, resourceGroupName, options, settings) {
24399
24399
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
24400
24400
  let result;
24401
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
24401
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
24402
24402
  if (!continuationToken) {
24403
24403
  result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
24404
24404
  let page = result.value || [];
@@ -24626,7 +24626,7 @@ class ReplicationNetworkMappingsImpl {
24626
24626
  return this;
24627
24627
  },
24628
24628
  byPage: (settings) => {
24629
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
24629
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
24630
24630
  throw new Error("maxPageSize is not supported by this operation.");
24631
24631
  }
24632
24632
  return this.listByReplicationNetworksPagingPage(resourceName, resourceGroupName, fabricName, networkName, options, settings);
@@ -24636,7 +24636,7 @@ class ReplicationNetworkMappingsImpl {
24636
24636
  listByReplicationNetworksPagingPage(resourceName, resourceGroupName, fabricName, networkName, options, settings) {
24637
24637
  return tslib.__asyncGenerator(this, arguments, function* listByReplicationNetworksPagingPage_1() {
24638
24638
  let result;
24639
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
24639
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
24640
24640
  if (!continuationToken) {
24641
24641
  result = yield tslib.__await(this._listByReplicationNetworks(resourceName, resourceGroupName, fabricName, networkName, options));
24642
24642
  let page = result.value || [];
@@ -24690,7 +24690,7 @@ class ReplicationNetworkMappingsImpl {
24690
24690
  return this;
24691
24691
  },
24692
24692
  byPage: (settings) => {
24693
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
24693
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
24694
24694
  throw new Error("maxPageSize is not supported by this operation.");
24695
24695
  }
24696
24696
  return this.listPagingPage(resourceName, resourceGroupName, options, settings);
@@ -24700,7 +24700,7 @@ class ReplicationNetworkMappingsImpl {
24700
24700
  listPagingPage(resourceName, resourceGroupName, options, settings) {
24701
24701
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
24702
24702
  let result;
24703
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
24703
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
24704
24704
  if (!continuationToken) {
24705
24705
  result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
24706
24706
  let page = result.value || [];
@@ -24781,17 +24781,17 @@ class ReplicationNetworkMappingsImpl {
24781
24781
  * @param options The options parameters.
24782
24782
  */
24783
24783
  beginCreate(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, options) {
24784
- return tslib.__awaiter(this, void 0, void 0, function* () {
24785
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24784
+ return tslib.__awaiter(this, undefined, undefined, function* () {
24785
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
24786
24786
  return this.client.sendOperationRequest(args, spec);
24787
24787
  });
24788
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24788
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
24789
24789
  var _a;
24790
24790
  let currentRawResponse = undefined;
24791
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
24791
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
24792
24792
  const callback = (rawResponse, flatResponse) => {
24793
24793
  currentRawResponse = rawResponse;
24794
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
24794
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
24795
24795
  };
24796
24796
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
24797
24797
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -24818,8 +24818,8 @@ class ReplicationNetworkMappingsImpl {
24818
24818
  spec: createOperationSpec$b,
24819
24819
  });
24820
24820
  const poller = yield coreLro.createHttpPoller(lro, {
24821
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
24822
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
24821
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
24822
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
24823
24823
  });
24824
24824
  yield poller.poll();
24825
24825
  return poller;
@@ -24837,7 +24837,7 @@ class ReplicationNetworkMappingsImpl {
24837
24837
  * @param options The options parameters.
24838
24838
  */
24839
24839
  beginCreateAndWait(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, options) {
24840
- return tslib.__awaiter(this, void 0, void 0, function* () {
24840
+ return tslib.__awaiter(this, undefined, undefined, function* () {
24841
24841
  const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, options);
24842
24842
  return poller.pollUntilDone();
24843
24843
  });
@@ -24853,17 +24853,17 @@ class ReplicationNetworkMappingsImpl {
24853
24853
  * @param options The options parameters.
24854
24854
  */
24855
24855
  beginDelete(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, options) {
24856
- return tslib.__awaiter(this, void 0, void 0, function* () {
24857
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24856
+ return tslib.__awaiter(this, undefined, undefined, function* () {
24857
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
24858
24858
  return this.client.sendOperationRequest(args, spec);
24859
24859
  });
24860
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24860
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
24861
24861
  var _a;
24862
24862
  let currentRawResponse = undefined;
24863
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
24863
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
24864
24864
  const callback = (rawResponse, flatResponse) => {
24865
24865
  currentRawResponse = rawResponse;
24866
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
24866
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
24867
24867
  };
24868
24868
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
24869
24869
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -24889,8 +24889,8 @@ class ReplicationNetworkMappingsImpl {
24889
24889
  spec: deleteOperationSpec$9,
24890
24890
  });
24891
24891
  const poller = yield coreLro.createHttpPoller(lro, {
24892
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
24893
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
24892
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
24893
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
24894
24894
  });
24895
24895
  yield poller.poll();
24896
24896
  return poller;
@@ -24907,7 +24907,7 @@ class ReplicationNetworkMappingsImpl {
24907
24907
  * @param options The options parameters.
24908
24908
  */
24909
24909
  beginDeleteAndWait(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, options) {
24910
- return tslib.__awaiter(this, void 0, void 0, function* () {
24910
+ return tslib.__awaiter(this, undefined, undefined, function* () {
24911
24911
  const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, options);
24912
24912
  return poller.pollUntilDone();
24913
24913
  });
@@ -24924,17 +24924,17 @@ class ReplicationNetworkMappingsImpl {
24924
24924
  * @param options The options parameters.
24925
24925
  */
24926
24926
  beginUpdate(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, options) {
24927
- return tslib.__awaiter(this, void 0, void 0, function* () {
24928
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24927
+ return tslib.__awaiter(this, undefined, undefined, function* () {
24928
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
24929
24929
  return this.client.sendOperationRequest(args, spec);
24930
24930
  });
24931
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24931
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
24932
24932
  var _a;
24933
24933
  let currentRawResponse = undefined;
24934
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
24934
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
24935
24935
  const callback = (rawResponse, flatResponse) => {
24936
24936
  currentRawResponse = rawResponse;
24937
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
24937
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
24938
24938
  };
24939
24939
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
24940
24940
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -24961,8 +24961,8 @@ class ReplicationNetworkMappingsImpl {
24961
24961
  spec: updateOperationSpec$6,
24962
24962
  });
24963
24963
  const poller = yield coreLro.createHttpPoller(lro, {
24964
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
24965
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
24964
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
24965
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
24966
24966
  });
24967
24967
  yield poller.poll();
24968
24968
  return poller;
@@ -24980,7 +24980,7 @@ class ReplicationNetworkMappingsImpl {
24980
24980
  * @param options The options parameters.
24981
24981
  */
24982
24982
  beginUpdateAndWait(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, options) {
24983
- return tslib.__awaiter(this, void 0, void 0, function* () {
24983
+ return tslib.__awaiter(this, undefined, undefined, function* () {
24984
24984
  const poller = yield this.beginUpdate(resourceName, resourceGroupName, fabricName, networkName, networkMappingName, input, options);
24985
24985
  return poller.pollUntilDone();
24986
24986
  });
@@ -25243,7 +25243,7 @@ class ReplicationProtectionContainersImpl {
25243
25243
  return this;
25244
25244
  },
25245
25245
  byPage: (settings) => {
25246
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
25246
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
25247
25247
  throw new Error("maxPageSize is not supported by this operation.");
25248
25248
  }
25249
25249
  return this.listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings);
@@ -25253,7 +25253,7 @@ class ReplicationProtectionContainersImpl {
25253
25253
  listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings) {
25254
25254
  return tslib.__asyncGenerator(this, arguments, function* listByReplicationFabricsPagingPage_1() {
25255
25255
  let result;
25256
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
25256
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
25257
25257
  if (!continuationToken) {
25258
25258
  result = yield tslib.__await(this._listByReplicationFabrics(resourceName, resourceGroupName, fabricName, options));
25259
25259
  let page = result.value || [];
@@ -25307,7 +25307,7 @@ class ReplicationProtectionContainersImpl {
25307
25307
  return this;
25308
25308
  },
25309
25309
  byPage: (settings) => {
25310
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
25310
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
25311
25311
  throw new Error("maxPageSize is not supported by this operation.");
25312
25312
  }
25313
25313
  return this.listPagingPage(resourceName, resourceGroupName, options, settings);
@@ -25317,7 +25317,7 @@ class ReplicationProtectionContainersImpl {
25317
25317
  listPagingPage(resourceName, resourceGroupName, options, settings) {
25318
25318
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
25319
25319
  let result;
25320
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
25320
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
25321
25321
  if (!continuationToken) {
25322
25322
  result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
25323
25323
  let page = result.value || [];
@@ -25394,17 +25394,17 @@ class ReplicationProtectionContainersImpl {
25394
25394
  * @param options The options parameters.
25395
25395
  */
25396
25396
  beginCreate(resourceName, resourceGroupName, fabricName, protectionContainerName, creationInput, options) {
25397
- return tslib.__awaiter(this, void 0, void 0, function* () {
25398
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25397
+ return tslib.__awaiter(this, undefined, undefined, function* () {
25398
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
25399
25399
  return this.client.sendOperationRequest(args, spec);
25400
25400
  });
25401
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25401
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
25402
25402
  var _a;
25403
25403
  let currentRawResponse = undefined;
25404
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
25404
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
25405
25405
  const callback = (rawResponse, flatResponse) => {
25406
25406
  currentRawResponse = rawResponse;
25407
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
25407
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
25408
25408
  };
25409
25409
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
25410
25410
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -25430,8 +25430,8 @@ class ReplicationProtectionContainersImpl {
25430
25430
  spec: createOperationSpec$a,
25431
25431
  });
25432
25432
  const poller = yield coreLro.createHttpPoller(lro, {
25433
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25434
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
25433
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
25434
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
25435
25435
  });
25436
25436
  yield poller.poll();
25437
25437
  return poller;
@@ -25448,7 +25448,7 @@ class ReplicationProtectionContainersImpl {
25448
25448
  * @param options The options parameters.
25449
25449
  */
25450
25450
  beginCreateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, creationInput, options) {
25451
- return tslib.__awaiter(this, void 0, void 0, function* () {
25451
+ return tslib.__awaiter(this, undefined, undefined, function* () {
25452
25452
  const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, protectionContainerName, creationInput, options);
25453
25453
  return poller.pollUntilDone();
25454
25454
  });
@@ -25464,17 +25464,17 @@ class ReplicationProtectionContainersImpl {
25464
25464
  * @param options The options parameters.
25465
25465
  */
25466
25466
  beginDiscoverProtectableItem(resourceName, resourceGroupName, fabricName, protectionContainerName, discoverProtectableItemRequest, options) {
25467
- return tslib.__awaiter(this, void 0, void 0, function* () {
25468
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25467
+ return tslib.__awaiter(this, undefined, undefined, function* () {
25468
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
25469
25469
  return this.client.sendOperationRequest(args, spec);
25470
25470
  });
25471
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25471
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
25472
25472
  var _a;
25473
25473
  let currentRawResponse = undefined;
25474
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
25474
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
25475
25475
  const callback = (rawResponse, flatResponse) => {
25476
25476
  currentRawResponse = rawResponse;
25477
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
25477
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
25478
25478
  };
25479
25479
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
25480
25480
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -25500,8 +25500,8 @@ class ReplicationProtectionContainersImpl {
25500
25500
  spec: discoverProtectableItemOperationSpec,
25501
25501
  });
25502
25502
  const poller = yield coreLro.createHttpPoller(lro, {
25503
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25504
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
25503
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
25504
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
25505
25505
  });
25506
25506
  yield poller.poll();
25507
25507
  return poller;
@@ -25518,7 +25518,7 @@ class ReplicationProtectionContainersImpl {
25518
25518
  * @param options The options parameters.
25519
25519
  */
25520
25520
  beginDiscoverProtectableItemAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, discoverProtectableItemRequest, options) {
25521
- return tslib.__awaiter(this, void 0, void 0, function* () {
25521
+ return tslib.__awaiter(this, undefined, undefined, function* () {
25522
25522
  const poller = yield this.beginDiscoverProtectableItem(resourceName, resourceGroupName, fabricName, protectionContainerName, discoverProtectableItemRequest, options);
25523
25523
  return poller.pollUntilDone();
25524
25524
  });
@@ -25533,17 +25533,17 @@ class ReplicationProtectionContainersImpl {
25533
25533
  * @param options The options parameters.
25534
25534
  */
25535
25535
  beginDelete(resourceName, resourceGroupName, fabricName, protectionContainerName, options) {
25536
- return tslib.__awaiter(this, void 0, void 0, function* () {
25537
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25536
+ return tslib.__awaiter(this, undefined, undefined, function* () {
25537
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
25538
25538
  return this.client.sendOperationRequest(args, spec);
25539
25539
  });
25540
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25540
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
25541
25541
  var _a;
25542
25542
  let currentRawResponse = undefined;
25543
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
25543
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
25544
25544
  const callback = (rawResponse, flatResponse) => {
25545
25545
  currentRawResponse = rawResponse;
25546
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
25546
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
25547
25547
  };
25548
25548
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
25549
25549
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -25568,8 +25568,8 @@ class ReplicationProtectionContainersImpl {
25568
25568
  spec: deleteOperationSpec$8,
25569
25569
  });
25570
25570
  const poller = yield coreLro.createHttpPoller(lro, {
25571
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25572
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
25571
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
25572
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
25573
25573
  });
25574
25574
  yield poller.poll();
25575
25575
  return poller;
@@ -25585,7 +25585,7 @@ class ReplicationProtectionContainersImpl {
25585
25585
  * @param options The options parameters.
25586
25586
  */
25587
25587
  beginDeleteAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, options) {
25588
- return tslib.__awaiter(this, void 0, void 0, function* () {
25588
+ return tslib.__awaiter(this, undefined, undefined, function* () {
25589
25589
  const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, protectionContainerName, options);
25590
25590
  return poller.pollUntilDone();
25591
25591
  });
@@ -25601,17 +25601,17 @@ class ReplicationProtectionContainersImpl {
25601
25601
  * @param options The options parameters.
25602
25602
  */
25603
25603
  beginSwitchProtection(resourceName, resourceGroupName, fabricName, protectionContainerName, switchInput, options) {
25604
- return tslib.__awaiter(this, void 0, void 0, function* () {
25605
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25604
+ return tslib.__awaiter(this, undefined, undefined, function* () {
25605
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
25606
25606
  return this.client.sendOperationRequest(args, spec);
25607
25607
  });
25608
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25608
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
25609
25609
  var _a;
25610
25610
  let currentRawResponse = undefined;
25611
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
25611
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
25612
25612
  const callback = (rawResponse, flatResponse) => {
25613
25613
  currentRawResponse = rawResponse;
25614
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
25614
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
25615
25615
  };
25616
25616
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
25617
25617
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -25637,8 +25637,8 @@ class ReplicationProtectionContainersImpl {
25637
25637
  spec: switchProtectionOperationSpec,
25638
25638
  });
25639
25639
  const poller = yield coreLro.createHttpPoller(lro, {
25640
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25641
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
25640
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
25641
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
25642
25642
  });
25643
25643
  yield poller.poll();
25644
25644
  return poller;
@@ -25655,7 +25655,7 @@ class ReplicationProtectionContainersImpl {
25655
25655
  * @param options The options parameters.
25656
25656
  */
25657
25657
  beginSwitchProtectionAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, switchInput, options) {
25658
- return tslib.__awaiter(this, void 0, void 0, function* () {
25658
+ return tslib.__awaiter(this, undefined, undefined, function* () {
25659
25659
  const poller = yield this.beginSwitchProtection(resourceName, resourceGroupName, fabricName, protectionContainerName, switchInput, options);
25660
25660
  return poller.pollUntilDone();
25661
25661
  });
@@ -25936,7 +25936,7 @@ class ReplicationMigrationItemsImpl {
25936
25936
  return this;
25937
25937
  },
25938
25938
  byPage: (settings) => {
25939
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
25939
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
25940
25940
  throw new Error("maxPageSize is not supported by this operation.");
25941
25941
  }
25942
25942
  return this.listByReplicationProtectionContainersPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, options, settings);
@@ -25946,7 +25946,7 @@ class ReplicationMigrationItemsImpl {
25946
25946
  listByReplicationProtectionContainersPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, options, settings) {
25947
25947
  return tslib.__asyncGenerator(this, arguments, function* listByReplicationProtectionContainersPagingPage_1() {
25948
25948
  let result;
25949
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
25949
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
25950
25950
  if (!continuationToken) {
25951
25951
  result = yield tslib.__await(this._listByReplicationProtectionContainers(resourceName, resourceGroupName, fabricName, protectionContainerName, options));
25952
25952
  let page = result.value || [];
@@ -26000,7 +26000,7 @@ class ReplicationMigrationItemsImpl {
26000
26000
  return this;
26001
26001
  },
26002
26002
  byPage: (settings) => {
26003
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
26003
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
26004
26004
  throw new Error("maxPageSize is not supported by this operation.");
26005
26005
  }
26006
26006
  return this.listPagingPage(resourceName, resourceGroupName, options, settings);
@@ -26010,7 +26010,7 @@ class ReplicationMigrationItemsImpl {
26010
26010
  listPagingPage(resourceName, resourceGroupName, options, settings) {
26011
26011
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
26012
26012
  let result;
26013
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
26013
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
26014
26014
  if (!continuationToken) {
26015
26015
  result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
26016
26016
  let page = result.value || [];
@@ -26097,17 +26097,17 @@ class ReplicationMigrationItemsImpl {
26097
26097
  * @param options The options parameters.
26098
26098
  */
26099
26099
  beginCreate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options) {
26100
- return tslib.__awaiter(this, void 0, void 0, function* () {
26101
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26100
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26101
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26102
26102
  return this.client.sendOperationRequest(args, spec);
26103
26103
  });
26104
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26104
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26105
26105
  var _a;
26106
26106
  let currentRawResponse = undefined;
26107
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
26107
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
26108
26108
  const callback = (rawResponse, flatResponse) => {
26109
26109
  currentRawResponse = rawResponse;
26110
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
26110
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
26111
26111
  };
26112
26112
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
26113
26113
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -26134,8 +26134,8 @@ class ReplicationMigrationItemsImpl {
26134
26134
  spec: createOperationSpec$9,
26135
26135
  });
26136
26136
  const poller = yield coreLro.createHttpPoller(lro, {
26137
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26138
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
26137
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
26138
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
26139
26139
  });
26140
26140
  yield poller.poll();
26141
26141
  return poller;
@@ -26153,7 +26153,7 @@ class ReplicationMigrationItemsImpl {
26153
26153
  * @param options The options parameters.
26154
26154
  */
26155
26155
  beginCreateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options) {
26156
- return tslib.__awaiter(this, void 0, void 0, function* () {
26156
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26157
26157
  const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options);
26158
26158
  return poller.pollUntilDone();
26159
26159
  });
@@ -26169,17 +26169,17 @@ class ReplicationMigrationItemsImpl {
26169
26169
  * @param options The options parameters.
26170
26170
  */
26171
26171
  beginDelete(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, options) {
26172
- return tslib.__awaiter(this, void 0, void 0, function* () {
26173
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26172
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26173
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26174
26174
  return this.client.sendOperationRequest(args, spec);
26175
26175
  });
26176
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26176
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26177
26177
  var _a;
26178
26178
  let currentRawResponse = undefined;
26179
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
26179
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
26180
26180
  const callback = (rawResponse, flatResponse) => {
26181
26181
  currentRawResponse = rawResponse;
26182
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
26182
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
26183
26183
  };
26184
26184
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
26185
26185
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -26205,8 +26205,8 @@ class ReplicationMigrationItemsImpl {
26205
26205
  spec: deleteOperationSpec$7,
26206
26206
  });
26207
26207
  const poller = yield coreLro.createHttpPoller(lro, {
26208
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26209
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
26208
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
26209
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
26210
26210
  });
26211
26211
  yield poller.poll();
26212
26212
  return poller;
@@ -26223,7 +26223,7 @@ class ReplicationMigrationItemsImpl {
26223
26223
  * @param options The options parameters.
26224
26224
  */
26225
26225
  beginDeleteAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, options) {
26226
- return tslib.__awaiter(this, void 0, void 0, function* () {
26226
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26227
26227
  const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, options);
26228
26228
  return poller.pollUntilDone();
26229
26229
  });
@@ -26240,17 +26240,17 @@ class ReplicationMigrationItemsImpl {
26240
26240
  * @param options The options parameters.
26241
26241
  */
26242
26242
  beginUpdate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options) {
26243
- return tslib.__awaiter(this, void 0, void 0, function* () {
26244
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26243
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26244
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26245
26245
  return this.client.sendOperationRequest(args, spec);
26246
26246
  });
26247
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26247
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26248
26248
  var _a;
26249
26249
  let currentRawResponse = undefined;
26250
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
26250
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
26251
26251
  const callback = (rawResponse, flatResponse) => {
26252
26252
  currentRawResponse = rawResponse;
26253
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
26253
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
26254
26254
  };
26255
26255
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
26256
26256
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -26277,8 +26277,8 @@ class ReplicationMigrationItemsImpl {
26277
26277
  spec: updateOperationSpec$5,
26278
26278
  });
26279
26279
  const poller = yield coreLro.createHttpPoller(lro, {
26280
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26281
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
26280
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
26281
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
26282
26282
  });
26283
26283
  yield poller.poll();
26284
26284
  return poller;
@@ -26296,7 +26296,7 @@ class ReplicationMigrationItemsImpl {
26296
26296
  * @param options The options parameters.
26297
26297
  */
26298
26298
  beginUpdateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options) {
26299
- return tslib.__awaiter(this, void 0, void 0, function* () {
26299
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26300
26300
  const poller = yield this.beginUpdate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options);
26301
26301
  return poller.pollUntilDone();
26302
26302
  });
@@ -26313,17 +26313,17 @@ class ReplicationMigrationItemsImpl {
26313
26313
  * @param options The options parameters.
26314
26314
  */
26315
26315
  beginMigrate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, migrateInput, options) {
26316
- return tslib.__awaiter(this, void 0, void 0, function* () {
26317
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26316
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26317
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26318
26318
  return this.client.sendOperationRequest(args, spec);
26319
26319
  });
26320
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26320
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26321
26321
  var _a;
26322
26322
  let currentRawResponse = undefined;
26323
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
26323
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
26324
26324
  const callback = (rawResponse, flatResponse) => {
26325
26325
  currentRawResponse = rawResponse;
26326
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
26326
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
26327
26327
  };
26328
26328
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
26329
26329
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -26350,8 +26350,8 @@ class ReplicationMigrationItemsImpl {
26350
26350
  spec: migrateOperationSpec,
26351
26351
  });
26352
26352
  const poller = yield coreLro.createHttpPoller(lro, {
26353
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26354
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
26353
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
26354
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
26355
26355
  });
26356
26356
  yield poller.poll();
26357
26357
  return poller;
@@ -26369,7 +26369,7 @@ class ReplicationMigrationItemsImpl {
26369
26369
  * @param options The options parameters.
26370
26370
  */
26371
26371
  beginMigrateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, migrateInput, options) {
26372
- return tslib.__awaiter(this, void 0, void 0, function* () {
26372
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26373
26373
  const poller = yield this.beginMigrate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, migrateInput, options);
26374
26374
  return poller.pollUntilDone();
26375
26375
  });
@@ -26386,17 +26386,17 @@ class ReplicationMigrationItemsImpl {
26386
26386
  * @param options The options parameters.
26387
26387
  */
26388
26388
  beginPauseReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput, options) {
26389
- return tslib.__awaiter(this, void 0, void 0, function* () {
26390
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26389
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26390
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26391
26391
  return this.client.sendOperationRequest(args, spec);
26392
26392
  });
26393
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26393
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26394
26394
  var _a;
26395
26395
  let currentRawResponse = undefined;
26396
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
26396
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
26397
26397
  const callback = (rawResponse, flatResponse) => {
26398
26398
  currentRawResponse = rawResponse;
26399
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
26399
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
26400
26400
  };
26401
26401
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
26402
26402
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -26423,8 +26423,8 @@ class ReplicationMigrationItemsImpl {
26423
26423
  spec: pauseReplicationOperationSpec,
26424
26424
  });
26425
26425
  const poller = yield coreLro.createHttpPoller(lro, {
26426
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26427
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
26426
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
26427
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
26428
26428
  });
26429
26429
  yield poller.poll();
26430
26430
  return poller;
@@ -26442,7 +26442,7 @@ class ReplicationMigrationItemsImpl {
26442
26442
  * @param options The options parameters.
26443
26443
  */
26444
26444
  beginPauseReplicationAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput, options) {
26445
- return tslib.__awaiter(this, void 0, void 0, function* () {
26445
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26446
26446
  const poller = yield this.beginPauseReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, pauseReplicationInput, options);
26447
26447
  return poller.pollUntilDone();
26448
26448
  });
@@ -26459,17 +26459,17 @@ class ReplicationMigrationItemsImpl {
26459
26459
  * @param options The options parameters.
26460
26460
  */
26461
26461
  beginResumeReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput, options) {
26462
- return tslib.__awaiter(this, void 0, void 0, function* () {
26463
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26462
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26463
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26464
26464
  return this.client.sendOperationRequest(args, spec);
26465
26465
  });
26466
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26466
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26467
26467
  var _a;
26468
26468
  let currentRawResponse = undefined;
26469
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
26469
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
26470
26470
  const callback = (rawResponse, flatResponse) => {
26471
26471
  currentRawResponse = rawResponse;
26472
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
26472
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
26473
26473
  };
26474
26474
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
26475
26475
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -26496,8 +26496,8 @@ class ReplicationMigrationItemsImpl {
26496
26496
  spec: resumeReplicationOperationSpec,
26497
26497
  });
26498
26498
  const poller = yield coreLro.createHttpPoller(lro, {
26499
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26500
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
26499
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
26500
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
26501
26501
  });
26502
26502
  yield poller.poll();
26503
26503
  return poller;
@@ -26515,7 +26515,7 @@ class ReplicationMigrationItemsImpl {
26515
26515
  * @param options The options parameters.
26516
26516
  */
26517
26517
  beginResumeReplicationAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput, options) {
26518
- return tslib.__awaiter(this, void 0, void 0, function* () {
26518
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26519
26519
  const poller = yield this.beginResumeReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, resumeReplicationInput, options);
26520
26520
  return poller.pollUntilDone();
26521
26521
  });
@@ -26532,17 +26532,17 @@ class ReplicationMigrationItemsImpl {
26532
26532
  * @param options The options parameters.
26533
26533
  */
26534
26534
  beginResync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options) {
26535
- return tslib.__awaiter(this, void 0, void 0, function* () {
26536
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26535
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26536
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26537
26537
  return this.client.sendOperationRequest(args, spec);
26538
26538
  });
26539
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26539
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26540
26540
  var _a;
26541
26541
  let currentRawResponse = undefined;
26542
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
26542
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
26543
26543
  const callback = (rawResponse, flatResponse) => {
26544
26544
  currentRawResponse = rawResponse;
26545
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
26545
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
26546
26546
  };
26547
26547
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
26548
26548
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -26569,8 +26569,8 @@ class ReplicationMigrationItemsImpl {
26569
26569
  spec: resyncOperationSpec,
26570
26570
  });
26571
26571
  const poller = yield coreLro.createHttpPoller(lro, {
26572
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26573
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
26572
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
26573
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
26574
26574
  });
26575
26575
  yield poller.poll();
26576
26576
  return poller;
@@ -26588,7 +26588,7 @@ class ReplicationMigrationItemsImpl {
26588
26588
  * @param options The options parameters.
26589
26589
  */
26590
26590
  beginResyncAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options) {
26591
- return tslib.__awaiter(this, void 0, void 0, function* () {
26591
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26592
26592
  const poller = yield this.beginResync(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, input, options);
26593
26593
  return poller.pollUntilDone();
26594
26594
  });
@@ -26605,17 +26605,17 @@ class ReplicationMigrationItemsImpl {
26605
26605
  * @param options The options parameters.
26606
26606
  */
26607
26607
  beginTestMigrate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, testMigrateInput, options) {
26608
- return tslib.__awaiter(this, void 0, void 0, function* () {
26609
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26608
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26609
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26610
26610
  return this.client.sendOperationRequest(args, spec);
26611
26611
  });
26612
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26612
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26613
26613
  var _a;
26614
26614
  let currentRawResponse = undefined;
26615
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
26615
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
26616
26616
  const callback = (rawResponse, flatResponse) => {
26617
26617
  currentRawResponse = rawResponse;
26618
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
26618
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
26619
26619
  };
26620
26620
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
26621
26621
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -26642,8 +26642,8 @@ class ReplicationMigrationItemsImpl {
26642
26642
  spec: testMigrateOperationSpec,
26643
26643
  });
26644
26644
  const poller = yield coreLro.createHttpPoller(lro, {
26645
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26646
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
26645
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
26646
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
26647
26647
  });
26648
26648
  yield poller.poll();
26649
26649
  return poller;
@@ -26661,7 +26661,7 @@ class ReplicationMigrationItemsImpl {
26661
26661
  * @param options The options parameters.
26662
26662
  */
26663
26663
  beginTestMigrateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, testMigrateInput, options) {
26664
- return tslib.__awaiter(this, void 0, void 0, function* () {
26664
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26665
26665
  const poller = yield this.beginTestMigrate(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, testMigrateInput, options);
26666
26666
  return poller.pollUntilDone();
26667
26667
  });
@@ -26678,17 +26678,17 @@ class ReplicationMigrationItemsImpl {
26678
26678
  * @param options The options parameters.
26679
26679
  */
26680
26680
  beginTestMigrateCleanup(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput, options) {
26681
- return tslib.__awaiter(this, void 0, void 0, function* () {
26682
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26681
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26682
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26683
26683
  return this.client.sendOperationRequest(args, spec);
26684
26684
  });
26685
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26685
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26686
26686
  var _a;
26687
26687
  let currentRawResponse = undefined;
26688
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
26688
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
26689
26689
  const callback = (rawResponse, flatResponse) => {
26690
26690
  currentRawResponse = rawResponse;
26691
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
26691
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
26692
26692
  };
26693
26693
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
26694
26694
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -26715,8 +26715,8 @@ class ReplicationMigrationItemsImpl {
26715
26715
  spec: testMigrateCleanupOperationSpec,
26716
26716
  });
26717
26717
  const poller = yield coreLro.createHttpPoller(lro, {
26718
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26719
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
26718
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
26719
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
26720
26720
  });
26721
26721
  yield poller.poll();
26722
26722
  return poller;
@@ -26734,7 +26734,7 @@ class ReplicationMigrationItemsImpl {
26734
26734
  * @param options The options parameters.
26735
26735
  */
26736
26736
  beginTestMigrateCleanupAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput, options) {
26737
- return tslib.__awaiter(this, void 0, void 0, function* () {
26737
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26738
26738
  const poller = yield this.beginTestMigrateCleanup(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, testMigrateCleanupInput, options);
26739
26739
  return poller.pollUntilDone();
26740
26740
  });
@@ -27201,7 +27201,7 @@ class MigrationRecoveryPointsImpl {
27201
27201
  return this;
27202
27202
  },
27203
27203
  byPage: (settings) => {
27204
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
27204
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
27205
27205
  throw new Error("maxPageSize is not supported by this operation.");
27206
27206
  }
27207
27207
  return this.listByReplicationMigrationItemsPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, options, settings);
@@ -27211,7 +27211,7 @@ class MigrationRecoveryPointsImpl {
27211
27211
  listByReplicationMigrationItemsPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, options, settings) {
27212
27212
  return tslib.__asyncGenerator(this, arguments, function* listByReplicationMigrationItemsPagingPage_1() {
27213
27213
  let result;
27214
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
27214
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
27215
27215
  if (!continuationToken) {
27216
27216
  result = yield tslib.__await(this._listByReplicationMigrationItems(resourceName, resourceGroupName, fabricName, protectionContainerName, migrationItemName, options));
27217
27217
  let page = result.value || [];
@@ -27417,7 +27417,7 @@ class ReplicationProtectableItemsImpl {
27417
27417
  return this;
27418
27418
  },
27419
27419
  byPage: (settings) => {
27420
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
27420
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
27421
27421
  throw new Error("maxPageSize is not supported by this operation.");
27422
27422
  }
27423
27423
  return this.listByReplicationProtectionContainersPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, options, settings);
@@ -27427,7 +27427,7 @@ class ReplicationProtectableItemsImpl {
27427
27427
  listByReplicationProtectionContainersPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, options, settings) {
27428
27428
  return tslib.__asyncGenerator(this, arguments, function* listByReplicationProtectionContainersPagingPage_1() {
27429
27429
  let result;
27430
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
27430
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
27431
27431
  if (!continuationToken) {
27432
27432
  result = yield tslib.__await(this._listByReplicationProtectionContainers(resourceName, resourceGroupName, fabricName, protectionContainerName, options));
27433
27433
  let page = result.value || [];
@@ -27629,7 +27629,7 @@ class ReplicationProtectedItemsImpl {
27629
27629
  return this;
27630
27630
  },
27631
27631
  byPage: (settings) => {
27632
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
27632
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
27633
27633
  throw new Error("maxPageSize is not supported by this operation.");
27634
27634
  }
27635
27635
  return this.listByReplicationProtectionContainersPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, options, settings);
@@ -27639,7 +27639,7 @@ class ReplicationProtectedItemsImpl {
27639
27639
  listByReplicationProtectionContainersPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, options, settings) {
27640
27640
  return tslib.__asyncGenerator(this, arguments, function* listByReplicationProtectionContainersPagingPage_1() {
27641
27641
  let result;
27642
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
27642
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
27643
27643
  if (!continuationToken) {
27644
27644
  result = yield tslib.__await(this._listByReplicationProtectionContainers(resourceName, resourceGroupName, fabricName, protectionContainerName, options));
27645
27645
  let page = result.value || [];
@@ -27693,7 +27693,7 @@ class ReplicationProtectedItemsImpl {
27693
27693
  return this;
27694
27694
  },
27695
27695
  byPage: (settings) => {
27696
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
27696
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
27697
27697
  throw new Error("maxPageSize is not supported by this operation.");
27698
27698
  }
27699
27699
  return this.listPagingPage(resourceName, resourceGroupName, options, settings);
@@ -27703,7 +27703,7 @@ class ReplicationProtectedItemsImpl {
27703
27703
  listPagingPage(resourceName, resourceGroupName, options, settings) {
27704
27704
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
27705
27705
  let result;
27706
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
27706
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
27707
27707
  if (!continuationToken) {
27708
27708
  result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
27709
27709
  let page = result.value || [];
@@ -27790,17 +27790,17 @@ class ReplicationProtectedItemsImpl {
27790
27790
  * @param options The options parameters.
27791
27791
  */
27792
27792
  beginCreate(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, input, options) {
27793
- return tslib.__awaiter(this, void 0, void 0, function* () {
27794
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27793
+ return tslib.__awaiter(this, undefined, undefined, function* () {
27794
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
27795
27795
  return this.client.sendOperationRequest(args, spec);
27796
27796
  });
27797
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27797
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
27798
27798
  var _a;
27799
27799
  let currentRawResponse = undefined;
27800
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
27800
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
27801
27801
  const callback = (rawResponse, flatResponse) => {
27802
27802
  currentRawResponse = rawResponse;
27803
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
27803
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
27804
27804
  };
27805
27805
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
27806
27806
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -27827,8 +27827,8 @@ class ReplicationProtectedItemsImpl {
27827
27827
  spec: createOperationSpec$8,
27828
27828
  });
27829
27829
  const poller = yield coreLro.createHttpPoller(lro, {
27830
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27831
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
27830
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
27831
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
27832
27832
  });
27833
27833
  yield poller.poll();
27834
27834
  return poller;
@@ -27846,7 +27846,7 @@ class ReplicationProtectedItemsImpl {
27846
27846
  * @param options The options parameters.
27847
27847
  */
27848
27848
  beginCreateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, input, options) {
27849
- return tslib.__awaiter(this, void 0, void 0, function* () {
27849
+ return tslib.__awaiter(this, undefined, undefined, function* () {
27850
27850
  const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, input, options);
27851
27851
  return poller.pollUntilDone();
27852
27852
  });
@@ -27864,17 +27864,17 @@ class ReplicationProtectedItemsImpl {
27864
27864
  * @param options The options parameters.
27865
27865
  */
27866
27866
  beginPurge(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options) {
27867
- return tslib.__awaiter(this, void 0, void 0, function* () {
27868
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27867
+ return tslib.__awaiter(this, undefined, undefined, function* () {
27868
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
27869
27869
  return this.client.sendOperationRequest(args, spec);
27870
27870
  });
27871
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27871
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
27872
27872
  var _a;
27873
27873
  let currentRawResponse = undefined;
27874
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
27874
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
27875
27875
  const callback = (rawResponse, flatResponse) => {
27876
27876
  currentRawResponse = rawResponse;
27877
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
27877
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
27878
27878
  };
27879
27879
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
27880
27880
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -27900,8 +27900,8 @@ class ReplicationProtectedItemsImpl {
27900
27900
  spec: purgeOperationSpec$2,
27901
27901
  });
27902
27902
  const poller = yield coreLro.createHttpPoller(lro, {
27903
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27904
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
27903
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
27904
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
27905
27905
  });
27906
27906
  yield poller.poll();
27907
27907
  return poller;
@@ -27920,7 +27920,7 @@ class ReplicationProtectedItemsImpl {
27920
27920
  * @param options The options parameters.
27921
27921
  */
27922
27922
  beginPurgeAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options) {
27923
- return tslib.__awaiter(this, void 0, void 0, function* () {
27923
+ return tslib.__awaiter(this, undefined, undefined, function* () {
27924
27924
  const poller = yield this.beginPurge(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options);
27925
27925
  return poller.pollUntilDone();
27926
27926
  });
@@ -27937,17 +27937,17 @@ class ReplicationProtectedItemsImpl {
27937
27937
  * @param options The options parameters.
27938
27938
  */
27939
27939
  beginUpdate(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, options) {
27940
- return tslib.__awaiter(this, void 0, void 0, function* () {
27941
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27940
+ return tslib.__awaiter(this, undefined, undefined, function* () {
27941
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
27942
27942
  return this.client.sendOperationRequest(args, spec);
27943
27943
  });
27944
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27944
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
27945
27945
  var _a;
27946
27946
  let currentRawResponse = undefined;
27947
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
27947
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
27948
27948
  const callback = (rawResponse, flatResponse) => {
27949
27949
  currentRawResponse = rawResponse;
27950
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
27950
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
27951
27951
  };
27952
27952
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
27953
27953
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -27974,8 +27974,8 @@ class ReplicationProtectedItemsImpl {
27974
27974
  spec: updateOperationSpec$4,
27975
27975
  });
27976
27976
  const poller = yield coreLro.createHttpPoller(lro, {
27977
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27978
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
27977
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
27978
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
27979
27979
  });
27980
27980
  yield poller.poll();
27981
27981
  return poller;
@@ -27993,7 +27993,7 @@ class ReplicationProtectedItemsImpl {
27993
27993
  * @param options The options parameters.
27994
27994
  */
27995
27995
  beginUpdateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, options) {
27996
- return tslib.__awaiter(this, void 0, void 0, function* () {
27996
+ return tslib.__awaiter(this, undefined, undefined, function* () {
27997
27997
  const poller = yield this.beginUpdate(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, options);
27998
27998
  return poller.pollUntilDone();
27999
27999
  });
@@ -28010,17 +28010,17 @@ class ReplicationProtectedItemsImpl {
28010
28010
  * @param options The options parameters.
28011
28011
  */
28012
28012
  beginAddDisks(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, options) {
28013
- return tslib.__awaiter(this, void 0, void 0, function* () {
28014
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28013
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28014
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28015
28015
  return this.client.sendOperationRequest(args, spec);
28016
28016
  });
28017
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28017
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28018
28018
  var _a;
28019
28019
  let currentRawResponse = undefined;
28020
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
28020
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
28021
28021
  const callback = (rawResponse, flatResponse) => {
28022
28022
  currentRawResponse = rawResponse;
28023
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
28023
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
28024
28024
  };
28025
28025
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
28026
28026
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -28047,8 +28047,8 @@ class ReplicationProtectedItemsImpl {
28047
28047
  spec: addDisksOperationSpec,
28048
28048
  });
28049
28049
  const poller = yield coreLro.createHttpPoller(lro, {
28050
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28051
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
28050
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
28051
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
28052
28052
  });
28053
28053
  yield poller.poll();
28054
28054
  return poller;
@@ -28066,7 +28066,7 @@ class ReplicationProtectedItemsImpl {
28066
28066
  * @param options The options parameters.
28067
28067
  */
28068
28068
  beginAddDisksAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, options) {
28069
- return tslib.__awaiter(this, void 0, void 0, function* () {
28069
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28070
28070
  const poller = yield this.beginAddDisks(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, options);
28071
28071
  return poller.pollUntilDone();
28072
28072
  });
@@ -28083,17 +28083,17 @@ class ReplicationProtectedItemsImpl {
28083
28083
  * @param options The options parameters.
28084
28084
  */
28085
28085
  beginApplyRecoveryPoint(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, options) {
28086
- return tslib.__awaiter(this, void 0, void 0, function* () {
28087
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28086
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28087
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28088
28088
  return this.client.sendOperationRequest(args, spec);
28089
28089
  });
28090
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28090
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28091
28091
  var _a;
28092
28092
  let currentRawResponse = undefined;
28093
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
28093
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
28094
28094
  const callback = (rawResponse, flatResponse) => {
28095
28095
  currentRawResponse = rawResponse;
28096
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
28096
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
28097
28097
  };
28098
28098
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
28099
28099
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -28120,8 +28120,8 @@ class ReplicationProtectedItemsImpl {
28120
28120
  spec: applyRecoveryPointOperationSpec,
28121
28121
  });
28122
28122
  const poller = yield coreLro.createHttpPoller(lro, {
28123
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28124
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
28123
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
28124
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
28125
28125
  });
28126
28126
  yield poller.poll();
28127
28127
  return poller;
@@ -28139,7 +28139,7 @@ class ReplicationProtectedItemsImpl {
28139
28139
  * @param options The options parameters.
28140
28140
  */
28141
28141
  beginApplyRecoveryPointAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, options) {
28142
- return tslib.__awaiter(this, void 0, void 0, function* () {
28142
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28143
28143
  const poller = yield this.beginApplyRecoveryPoint(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, options);
28144
28144
  return poller.pollUntilDone();
28145
28145
  });
@@ -28155,17 +28155,17 @@ class ReplicationProtectedItemsImpl {
28155
28155
  * @param options The options parameters.
28156
28156
  */
28157
28157
  beginFailoverCancel(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options) {
28158
- return tslib.__awaiter(this, void 0, void 0, function* () {
28159
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28158
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28159
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28160
28160
  return this.client.sendOperationRequest(args, spec);
28161
28161
  });
28162
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28162
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28163
28163
  var _a;
28164
28164
  let currentRawResponse = undefined;
28165
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
28165
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
28166
28166
  const callback = (rawResponse, flatResponse) => {
28167
28167
  currentRawResponse = rawResponse;
28168
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
28168
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
28169
28169
  };
28170
28170
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
28171
28171
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -28191,8 +28191,8 @@ class ReplicationProtectedItemsImpl {
28191
28191
  spec: failoverCancelOperationSpec$1,
28192
28192
  });
28193
28193
  const poller = yield coreLro.createHttpPoller(lro, {
28194
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28195
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
28194
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
28195
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
28196
28196
  });
28197
28197
  yield poller.poll();
28198
28198
  return poller;
@@ -28209,7 +28209,7 @@ class ReplicationProtectedItemsImpl {
28209
28209
  * @param options The options parameters.
28210
28210
  */
28211
28211
  beginFailoverCancelAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options) {
28212
- return tslib.__awaiter(this, void 0, void 0, function* () {
28212
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28213
28213
  const poller = yield this.beginFailoverCancel(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options);
28214
28214
  return poller.pollUntilDone();
28215
28215
  });
@@ -28225,17 +28225,17 @@ class ReplicationProtectedItemsImpl {
28225
28225
  * @param options The options parameters.
28226
28226
  */
28227
28227
  beginFailoverCommit(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options) {
28228
- return tslib.__awaiter(this, void 0, void 0, function* () {
28229
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28228
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28229
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28230
28230
  return this.client.sendOperationRequest(args, spec);
28231
28231
  });
28232
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28232
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28233
28233
  var _a;
28234
28234
  let currentRawResponse = undefined;
28235
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
28235
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
28236
28236
  const callback = (rawResponse, flatResponse) => {
28237
28237
  currentRawResponse = rawResponse;
28238
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
28238
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
28239
28239
  };
28240
28240
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
28241
28241
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -28261,8 +28261,8 @@ class ReplicationProtectedItemsImpl {
28261
28261
  spec: failoverCommitOperationSpec$1,
28262
28262
  });
28263
28263
  const poller = yield coreLro.createHttpPoller(lro, {
28264
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28265
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
28264
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
28265
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
28266
28266
  });
28267
28267
  yield poller.poll();
28268
28268
  return poller;
@@ -28279,7 +28279,7 @@ class ReplicationProtectedItemsImpl {
28279
28279
  * @param options The options parameters.
28280
28280
  */
28281
28281
  beginFailoverCommitAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options) {
28282
- return tslib.__awaiter(this, void 0, void 0, function* () {
28282
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28283
28283
  const poller = yield this.beginFailoverCommit(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options);
28284
28284
  return poller.pollUntilDone();
28285
28285
  });
@@ -28296,17 +28296,17 @@ class ReplicationProtectedItemsImpl {
28296
28296
  * @param options The options parameters.
28297
28297
  */
28298
28298
  beginPlannedFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options) {
28299
- return tslib.__awaiter(this, void 0, void 0, function* () {
28300
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28299
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28300
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28301
28301
  return this.client.sendOperationRequest(args, spec);
28302
28302
  });
28303
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28303
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28304
28304
  var _a;
28305
28305
  let currentRawResponse = undefined;
28306
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
28306
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
28307
28307
  const callback = (rawResponse, flatResponse) => {
28308
28308
  currentRawResponse = rawResponse;
28309
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
28309
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
28310
28310
  };
28311
28311
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
28312
28312
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -28333,8 +28333,8 @@ class ReplicationProtectedItemsImpl {
28333
28333
  spec: plannedFailoverOperationSpec$1,
28334
28334
  });
28335
28335
  const poller = yield coreLro.createHttpPoller(lro, {
28336
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28337
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
28336
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
28337
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
28338
28338
  });
28339
28339
  yield poller.poll();
28340
28340
  return poller;
@@ -28352,7 +28352,7 @@ class ReplicationProtectedItemsImpl {
28352
28352
  * @param options The options parameters.
28353
28353
  */
28354
28354
  beginPlannedFailoverAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options) {
28355
- return tslib.__awaiter(this, void 0, void 0, function* () {
28355
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28356
28356
  const poller = yield this.beginPlannedFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options);
28357
28357
  return poller.pollUntilDone();
28358
28358
  });
@@ -28370,17 +28370,17 @@ class ReplicationProtectedItemsImpl {
28370
28370
  * @param options The options parameters.
28371
28371
  */
28372
28372
  beginDelete(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, options) {
28373
- return tslib.__awaiter(this, void 0, void 0, function* () {
28374
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28373
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28374
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28375
28375
  return this.client.sendOperationRequest(args, spec);
28376
28376
  });
28377
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28377
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28378
28378
  var _a;
28379
28379
  let currentRawResponse = undefined;
28380
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
28380
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
28381
28381
  const callback = (rawResponse, flatResponse) => {
28382
28382
  currentRawResponse = rawResponse;
28383
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
28383
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
28384
28384
  };
28385
28385
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
28386
28386
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -28407,8 +28407,8 @@ class ReplicationProtectedItemsImpl {
28407
28407
  spec: deleteOperationSpec$6,
28408
28408
  });
28409
28409
  const poller = yield coreLro.createHttpPoller(lro, {
28410
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28411
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
28410
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
28411
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
28412
28412
  });
28413
28413
  yield poller.poll();
28414
28414
  return poller;
@@ -28427,7 +28427,7 @@ class ReplicationProtectedItemsImpl {
28427
28427
  * @param options The options parameters.
28428
28428
  */
28429
28429
  beginDeleteAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, options) {
28430
- return tslib.__awaiter(this, void 0, void 0, function* () {
28430
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28431
28431
  const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, options);
28432
28432
  return poller.pollUntilDone();
28433
28433
  });
@@ -28444,17 +28444,17 @@ class ReplicationProtectedItemsImpl {
28444
28444
  * @param options The options parameters.
28445
28445
  */
28446
28446
  beginRemoveDisks(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, options) {
28447
- return tslib.__awaiter(this, void 0, void 0, function* () {
28448
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28447
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28448
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28449
28449
  return this.client.sendOperationRequest(args, spec);
28450
28450
  });
28451
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28451
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28452
28452
  var _a;
28453
28453
  let currentRawResponse = undefined;
28454
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
28454
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
28455
28455
  const callback = (rawResponse, flatResponse) => {
28456
28456
  currentRawResponse = rawResponse;
28457
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
28457
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
28458
28458
  };
28459
28459
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
28460
28460
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -28481,8 +28481,8 @@ class ReplicationProtectedItemsImpl {
28481
28481
  spec: removeDisksOperationSpec,
28482
28482
  });
28483
28483
  const poller = yield coreLro.createHttpPoller(lro, {
28484
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28485
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
28484
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
28485
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
28486
28486
  });
28487
28487
  yield poller.poll();
28488
28488
  return poller;
@@ -28500,7 +28500,7 @@ class ReplicationProtectedItemsImpl {
28500
28500
  * @param options The options parameters.
28501
28501
  */
28502
28502
  beginRemoveDisksAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, options) {
28503
- return tslib.__awaiter(this, void 0, void 0, function* () {
28503
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28504
28504
  const poller = yield this.beginRemoveDisks(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, options);
28505
28505
  return poller.pollUntilDone();
28506
28506
  });
@@ -28517,17 +28517,17 @@ class ReplicationProtectedItemsImpl {
28517
28517
  * @param options The options parameters.
28518
28518
  */
28519
28519
  beginRepairReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options) {
28520
- return tslib.__awaiter(this, void 0, void 0, function* () {
28521
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28520
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28521
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28522
28522
  return this.client.sendOperationRequest(args, spec);
28523
28523
  });
28524
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28524
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28525
28525
  var _a;
28526
28526
  let currentRawResponse = undefined;
28527
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
28527
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
28528
28528
  const callback = (rawResponse, flatResponse) => {
28529
28529
  currentRawResponse = rawResponse;
28530
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
28530
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
28531
28531
  };
28532
28532
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
28533
28533
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -28553,8 +28553,8 @@ class ReplicationProtectedItemsImpl {
28553
28553
  spec: repairReplicationOperationSpec,
28554
28554
  });
28555
28555
  const poller = yield coreLro.createHttpPoller(lro, {
28556
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28557
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
28556
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
28557
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
28558
28558
  });
28559
28559
  yield poller.poll();
28560
28560
  return poller;
@@ -28572,7 +28572,7 @@ class ReplicationProtectedItemsImpl {
28572
28572
  * @param options The options parameters.
28573
28573
  */
28574
28574
  beginRepairReplicationAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options) {
28575
- return tslib.__awaiter(this, void 0, void 0, function* () {
28575
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28576
28576
  const poller = yield this.beginRepairReplication(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options);
28577
28577
  return poller.pollUntilDone();
28578
28578
  });
@@ -28589,17 +28589,17 @@ class ReplicationProtectedItemsImpl {
28589
28589
  * @param options The options parameters.
28590
28590
  */
28591
28591
  beginReprotect(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, options) {
28592
- return tslib.__awaiter(this, void 0, void 0, function* () {
28593
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28592
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28593
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28594
28594
  return this.client.sendOperationRequest(args, spec);
28595
28595
  });
28596
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28596
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28597
28597
  var _a;
28598
28598
  let currentRawResponse = undefined;
28599
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
28599
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
28600
28600
  const callback = (rawResponse, flatResponse) => {
28601
28601
  currentRawResponse = rawResponse;
28602
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
28602
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
28603
28603
  };
28604
28604
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
28605
28605
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -28626,8 +28626,8 @@ class ReplicationProtectedItemsImpl {
28626
28626
  spec: reprotectOperationSpec$1,
28627
28627
  });
28628
28628
  const poller = yield coreLro.createHttpPoller(lro, {
28629
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28630
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
28629
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
28630
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
28631
28631
  });
28632
28632
  yield poller.poll();
28633
28633
  return poller;
@@ -28645,7 +28645,7 @@ class ReplicationProtectedItemsImpl {
28645
28645
  * @param options The options parameters.
28646
28646
  */
28647
28647
  beginReprotectAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, options) {
28648
- return tslib.__awaiter(this, void 0, void 0, function* () {
28648
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28649
28649
  const poller = yield this.beginReprotect(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, options);
28650
28650
  return poller.pollUntilDone();
28651
28651
  });
@@ -28662,17 +28662,17 @@ class ReplicationProtectedItemsImpl {
28662
28662
  * @param options The options parameters.
28663
28663
  */
28664
28664
  beginResolveHealthErrors(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, options) {
28665
- return tslib.__awaiter(this, void 0, void 0, function* () {
28666
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28665
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28666
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28667
28667
  return this.client.sendOperationRequest(args, spec);
28668
28668
  });
28669
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28669
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28670
28670
  var _a;
28671
28671
  let currentRawResponse = undefined;
28672
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
28672
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
28673
28673
  const callback = (rawResponse, flatResponse) => {
28674
28674
  currentRawResponse = rawResponse;
28675
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
28675
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
28676
28676
  };
28677
28677
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
28678
28678
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -28699,8 +28699,8 @@ class ReplicationProtectedItemsImpl {
28699
28699
  spec: resolveHealthErrorsOperationSpec,
28700
28700
  });
28701
28701
  const poller = yield coreLro.createHttpPoller(lro, {
28702
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28703
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
28702
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
28703
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
28704
28704
  });
28705
28705
  yield poller.poll();
28706
28706
  return poller;
@@ -28718,7 +28718,7 @@ class ReplicationProtectedItemsImpl {
28718
28718
  * @param options The options parameters.
28719
28719
  */
28720
28720
  beginResolveHealthErrorsAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, options) {
28721
- return tslib.__awaiter(this, void 0, void 0, function* () {
28721
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28722
28722
  const poller = yield this.beginResolveHealthErrors(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, options);
28723
28723
  return poller.pollUntilDone();
28724
28724
  });
@@ -28735,17 +28735,17 @@ class ReplicationProtectedItemsImpl {
28735
28735
  * @param options The options parameters.
28736
28736
  */
28737
28737
  beginSwitchProvider(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput, options) {
28738
- return tslib.__awaiter(this, void 0, void 0, function* () {
28739
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28738
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28739
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28740
28740
  return this.client.sendOperationRequest(args, spec);
28741
28741
  });
28742
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28742
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28743
28743
  var _a;
28744
28744
  let currentRawResponse = undefined;
28745
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
28745
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
28746
28746
  const callback = (rawResponse, flatResponse) => {
28747
28747
  currentRawResponse = rawResponse;
28748
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
28748
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
28749
28749
  };
28750
28750
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
28751
28751
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -28772,8 +28772,8 @@ class ReplicationProtectedItemsImpl {
28772
28772
  spec: switchProviderOperationSpec,
28773
28773
  });
28774
28774
  const poller = yield coreLro.createHttpPoller(lro, {
28775
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28776
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
28775
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
28776
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
28777
28777
  resourceLocationConfig: "azure-async-operation",
28778
28778
  });
28779
28779
  yield poller.poll();
@@ -28792,7 +28792,7 @@ class ReplicationProtectedItemsImpl {
28792
28792
  * @param options The options parameters.
28793
28793
  */
28794
28794
  beginSwitchProviderAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput, options) {
28795
- return tslib.__awaiter(this, void 0, void 0, function* () {
28795
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28796
28796
  const poller = yield this.beginSwitchProvider(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput, options);
28797
28797
  return poller.pollUntilDone();
28798
28798
  });
@@ -28809,17 +28809,17 @@ class ReplicationProtectedItemsImpl {
28809
28809
  * @param options The options parameters.
28810
28810
  */
28811
28811
  beginTestFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, options) {
28812
- return tslib.__awaiter(this, void 0, void 0, function* () {
28813
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28812
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28813
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28814
28814
  return this.client.sendOperationRequest(args, spec);
28815
28815
  });
28816
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28816
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28817
28817
  var _a;
28818
28818
  let currentRawResponse = undefined;
28819
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
28819
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
28820
28820
  const callback = (rawResponse, flatResponse) => {
28821
28821
  currentRawResponse = rawResponse;
28822
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
28822
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
28823
28823
  };
28824
28824
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
28825
28825
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -28846,8 +28846,8 @@ class ReplicationProtectedItemsImpl {
28846
28846
  spec: testFailoverOperationSpec$1,
28847
28847
  });
28848
28848
  const poller = yield coreLro.createHttpPoller(lro, {
28849
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28850
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
28849
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
28850
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
28851
28851
  });
28852
28852
  yield poller.poll();
28853
28853
  return poller;
@@ -28865,7 +28865,7 @@ class ReplicationProtectedItemsImpl {
28865
28865
  * @param options The options parameters.
28866
28866
  */
28867
28867
  beginTestFailoverAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, options) {
28868
- return tslib.__awaiter(this, void 0, void 0, function* () {
28868
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28869
28869
  const poller = yield this.beginTestFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, options);
28870
28870
  return poller.pollUntilDone();
28871
28871
  });
@@ -28882,17 +28882,17 @@ class ReplicationProtectedItemsImpl {
28882
28882
  * @param options The options parameters.
28883
28883
  */
28884
28884
  beginTestFailoverCleanup(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, options) {
28885
- return tslib.__awaiter(this, void 0, void 0, function* () {
28886
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28885
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28886
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28887
28887
  return this.client.sendOperationRequest(args, spec);
28888
28888
  });
28889
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28889
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28890
28890
  var _a;
28891
28891
  let currentRawResponse = undefined;
28892
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
28892
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
28893
28893
  const callback = (rawResponse, flatResponse) => {
28894
28894
  currentRawResponse = rawResponse;
28895
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
28895
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
28896
28896
  };
28897
28897
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
28898
28898
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -28919,8 +28919,8 @@ class ReplicationProtectedItemsImpl {
28919
28919
  spec: testFailoverCleanupOperationSpec$1,
28920
28920
  });
28921
28921
  const poller = yield coreLro.createHttpPoller(lro, {
28922
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28923
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
28922
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
28923
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
28924
28924
  });
28925
28925
  yield poller.poll();
28926
28926
  return poller;
@@ -28938,7 +28938,7 @@ class ReplicationProtectedItemsImpl {
28938
28938
  * @param options The options parameters.
28939
28939
  */
28940
28940
  beginTestFailoverCleanupAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, options) {
28941
- return tslib.__awaiter(this, void 0, void 0, function* () {
28941
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28942
28942
  const poller = yield this.beginTestFailoverCleanup(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, options);
28943
28943
  return poller.pollUntilDone();
28944
28944
  });
@@ -28955,17 +28955,17 @@ class ReplicationProtectedItemsImpl {
28955
28955
  * @param options The options parameters.
28956
28956
  */
28957
28957
  beginUnplannedFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options) {
28958
- return tslib.__awaiter(this, void 0, void 0, function* () {
28959
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28958
+ return tslib.__awaiter(this, undefined, undefined, function* () {
28959
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28960
28960
  return this.client.sendOperationRequest(args, spec);
28961
28961
  });
28962
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28962
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
28963
28963
  var _a;
28964
28964
  let currentRawResponse = undefined;
28965
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
28965
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
28966
28966
  const callback = (rawResponse, flatResponse) => {
28967
28967
  currentRawResponse = rawResponse;
28968
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
28968
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
28969
28969
  };
28970
28970
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
28971
28971
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -28992,8 +28992,8 @@ class ReplicationProtectedItemsImpl {
28992
28992
  spec: unplannedFailoverOperationSpec$1,
28993
28993
  });
28994
28994
  const poller = yield coreLro.createHttpPoller(lro, {
28995
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28996
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
28995
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
28996
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
28997
28997
  });
28998
28998
  yield poller.poll();
28999
28999
  return poller;
@@ -29011,7 +29011,7 @@ class ReplicationProtectedItemsImpl {
29011
29011
  * @param options The options parameters.
29012
29012
  */
29013
29013
  beginUnplannedFailoverAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options) {
29014
- return tslib.__awaiter(this, void 0, void 0, function* () {
29014
+ return tslib.__awaiter(this, undefined, undefined, function* () {
29015
29015
  const poller = yield this.beginUnplannedFailover(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options);
29016
29016
  return poller.pollUntilDone();
29017
29017
  });
@@ -29028,17 +29028,17 @@ class ReplicationProtectedItemsImpl {
29028
29028
  * @param options The options parameters.
29029
29029
  */
29030
29030
  beginUpdateAppliance(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, options) {
29031
- return tslib.__awaiter(this, void 0, void 0, function* () {
29032
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
29031
+ return tslib.__awaiter(this, undefined, undefined, function* () {
29032
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
29033
29033
  return this.client.sendOperationRequest(args, spec);
29034
29034
  });
29035
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
29035
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
29036
29036
  var _a;
29037
29037
  let currentRawResponse = undefined;
29038
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
29038
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
29039
29039
  const callback = (rawResponse, flatResponse) => {
29040
29040
  currentRawResponse = rawResponse;
29041
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
29041
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
29042
29042
  };
29043
29043
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
29044
29044
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -29065,8 +29065,8 @@ class ReplicationProtectedItemsImpl {
29065
29065
  spec: updateApplianceOperationSpec,
29066
29066
  });
29067
29067
  const poller = yield coreLro.createHttpPoller(lro, {
29068
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
29069
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
29068
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
29069
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
29070
29070
  });
29071
29071
  yield poller.poll();
29072
29072
  return poller;
@@ -29084,7 +29084,7 @@ class ReplicationProtectedItemsImpl {
29084
29084
  * @param options The options parameters.
29085
29085
  */
29086
29086
  beginUpdateApplianceAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, options) {
29087
- return tslib.__awaiter(this, void 0, void 0, function* () {
29087
+ return tslib.__awaiter(this, undefined, undefined, function* () {
29088
29088
  const poller = yield this.beginUpdateAppliance(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, options);
29089
29089
  return poller.pollUntilDone();
29090
29090
  });
@@ -29103,17 +29103,17 @@ class ReplicationProtectedItemsImpl {
29103
29103
  * @param options The options parameters.
29104
29104
  */
29105
29105
  beginUpdateMobilityService(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest, options) {
29106
- return tslib.__awaiter(this, void 0, void 0, function* () {
29107
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
29106
+ return tslib.__awaiter(this, undefined, undefined, function* () {
29107
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
29108
29108
  return this.client.sendOperationRequest(args, spec);
29109
29109
  });
29110
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
29110
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
29111
29111
  var _a;
29112
29112
  let currentRawResponse = undefined;
29113
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
29113
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
29114
29114
  const callback = (rawResponse, flatResponse) => {
29115
29115
  currentRawResponse = rawResponse;
29116
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
29116
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
29117
29117
  };
29118
29118
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
29119
29119
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -29140,8 +29140,8 @@ class ReplicationProtectedItemsImpl {
29140
29140
  spec: updateMobilityServiceOperationSpec,
29141
29141
  });
29142
29142
  const poller = yield coreLro.createHttpPoller(lro, {
29143
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
29144
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
29143
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
29144
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
29145
29145
  resourceLocationConfig: "location",
29146
29146
  });
29147
29147
  yield poller.poll();
@@ -29162,7 +29162,7 @@ class ReplicationProtectedItemsImpl {
29162
29162
  * @param options The options parameters.
29163
29163
  */
29164
29164
  beginUpdateMobilityServiceAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest, options) {
29165
- return tslib.__awaiter(this, void 0, void 0, function* () {
29165
+ return tslib.__awaiter(this, undefined, undefined, function* () {
29166
29166
  const poller = yield this.beginUpdateMobilityService(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, updateMobilityServiceRequest, options);
29167
29167
  return poller.pollUntilDone();
29168
29168
  });
@@ -29924,7 +29924,7 @@ class RecoveryPointsImpl {
29924
29924
  return this;
29925
29925
  },
29926
29926
  byPage: (settings) => {
29927
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
29927
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
29928
29928
  throw new Error("maxPageSize is not supported by this operation.");
29929
29929
  }
29930
29930
  return this.listByReplicationProtectedItemsPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options, settings);
@@ -29934,7 +29934,7 @@ class RecoveryPointsImpl {
29934
29934
  listByReplicationProtectedItemsPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options, settings) {
29935
29935
  return tslib.__asyncGenerator(this, arguments, function* listByReplicationProtectedItemsPagingPage_1() {
29936
29936
  let result;
29937
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
29937
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
29938
29938
  if (!continuationToken) {
29939
29939
  result = yield tslib.__await(this._listByReplicationProtectedItems(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options));
29940
29940
  let page = result.value || [];
@@ -30141,7 +30141,7 @@ class TargetComputeSizesImpl {
30141
30141
  return this;
30142
30142
  },
30143
30143
  byPage: (settings) => {
30144
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
30144
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
30145
30145
  throw new Error("maxPageSize is not supported by this operation.");
30146
30146
  }
30147
30147
  return this.listByReplicationProtectedItemsPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options, settings);
@@ -30151,7 +30151,7 @@ class TargetComputeSizesImpl {
30151
30151
  listByReplicationProtectedItemsPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options, settings) {
30152
30152
  return tslib.__asyncGenerator(this, arguments, function* listByReplicationProtectedItemsPagingPage_1() {
30153
30153
  let result;
30154
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
30154
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
30155
30155
  if (!continuationToken) {
30156
30156
  result = yield tslib.__await(this._listByReplicationProtectedItems(resourceName, resourceGroupName, fabricName, protectionContainerName, replicatedProtectedItemName, options));
30157
30157
  let page = result.value || [];
@@ -30313,7 +30313,7 @@ class ReplicationProtectionContainerMappingsImpl {
30313
30313
  return this;
30314
30314
  },
30315
30315
  byPage: (settings) => {
30316
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
30316
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
30317
30317
  throw new Error("maxPageSize is not supported by this operation.");
30318
30318
  }
30319
30319
  return this.listByReplicationProtectionContainersPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, options, settings);
@@ -30323,7 +30323,7 @@ class ReplicationProtectionContainerMappingsImpl {
30323
30323
  listByReplicationProtectionContainersPagingPage(resourceName, resourceGroupName, fabricName, protectionContainerName, options, settings) {
30324
30324
  return tslib.__asyncGenerator(this, arguments, function* listByReplicationProtectionContainersPagingPage_1() {
30325
30325
  let result;
30326
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
30326
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
30327
30327
  if (!continuationToken) {
30328
30328
  result = yield tslib.__await(this._listByReplicationProtectionContainers(resourceName, resourceGroupName, fabricName, protectionContainerName, options));
30329
30329
  let page = result.value || [];
@@ -30377,7 +30377,7 @@ class ReplicationProtectionContainerMappingsImpl {
30377
30377
  return this;
30378
30378
  },
30379
30379
  byPage: (settings) => {
30380
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
30380
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
30381
30381
  throw new Error("maxPageSize is not supported by this operation.");
30382
30382
  }
30383
30383
  return this.listPagingPage(resourceName, resourceGroupName, options, settings);
@@ -30387,7 +30387,7 @@ class ReplicationProtectionContainerMappingsImpl {
30387
30387
  listPagingPage(resourceName, resourceGroupName, options, settings) {
30388
30388
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
30389
30389
  let result;
30390
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
30390
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
30391
30391
  if (!continuationToken) {
30392
30392
  result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
30393
30393
  let page = result.value || [];
@@ -30474,17 +30474,17 @@ class ReplicationProtectionContainerMappingsImpl {
30474
30474
  * @param options The options parameters.
30475
30475
  */
30476
30476
  beginCreate(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, creationInput, options) {
30477
- return tslib.__awaiter(this, void 0, void 0, function* () {
30478
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30477
+ return tslib.__awaiter(this, undefined, undefined, function* () {
30478
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
30479
30479
  return this.client.sendOperationRequest(args, spec);
30480
30480
  });
30481
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30481
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
30482
30482
  var _a;
30483
30483
  let currentRawResponse = undefined;
30484
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
30484
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
30485
30485
  const callback = (rawResponse, flatResponse) => {
30486
30486
  currentRawResponse = rawResponse;
30487
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
30487
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
30488
30488
  };
30489
30489
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
30490
30490
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -30511,8 +30511,8 @@ class ReplicationProtectionContainerMappingsImpl {
30511
30511
  spec: createOperationSpec$7,
30512
30512
  });
30513
30513
  const poller = yield coreLro.createHttpPoller(lro, {
30514
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
30515
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
30514
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
30515
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
30516
30516
  });
30517
30517
  yield poller.poll();
30518
30518
  return poller;
@@ -30530,7 +30530,7 @@ class ReplicationProtectionContainerMappingsImpl {
30530
30530
  * @param options The options parameters.
30531
30531
  */
30532
30532
  beginCreateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, creationInput, options) {
30533
- return tslib.__awaiter(this, void 0, void 0, function* () {
30533
+ return tslib.__awaiter(this, undefined, undefined, function* () {
30534
30534
  const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, creationInput, options);
30535
30535
  return poller.pollUntilDone();
30536
30536
  });
@@ -30546,17 +30546,17 @@ class ReplicationProtectionContainerMappingsImpl {
30546
30546
  * @param options The options parameters.
30547
30547
  */
30548
30548
  beginPurge(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, options) {
30549
- return tslib.__awaiter(this, void 0, void 0, function* () {
30550
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30549
+ return tslib.__awaiter(this, undefined, undefined, function* () {
30550
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
30551
30551
  return this.client.sendOperationRequest(args, spec);
30552
30552
  });
30553
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30553
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
30554
30554
  var _a;
30555
30555
  let currentRawResponse = undefined;
30556
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
30556
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
30557
30557
  const callback = (rawResponse, flatResponse) => {
30558
30558
  currentRawResponse = rawResponse;
30559
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
30559
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
30560
30560
  };
30561
30561
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
30562
30562
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -30582,8 +30582,8 @@ class ReplicationProtectionContainerMappingsImpl {
30582
30582
  spec: purgeOperationSpec$1,
30583
30583
  });
30584
30584
  const poller = yield coreLro.createHttpPoller(lro, {
30585
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
30586
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
30585
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
30586
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
30587
30587
  });
30588
30588
  yield poller.poll();
30589
30589
  return poller;
@@ -30600,7 +30600,7 @@ class ReplicationProtectionContainerMappingsImpl {
30600
30600
  * @param options The options parameters.
30601
30601
  */
30602
30602
  beginPurgeAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, options) {
30603
- return tslib.__awaiter(this, void 0, void 0, function* () {
30603
+ return tslib.__awaiter(this, undefined, undefined, function* () {
30604
30604
  const poller = yield this.beginPurge(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, options);
30605
30605
  return poller.pollUntilDone();
30606
30606
  });
@@ -30617,17 +30617,17 @@ class ReplicationProtectionContainerMappingsImpl {
30617
30617
  * @param options The options parameters.
30618
30618
  */
30619
30619
  beginUpdate(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, updateInput, options) {
30620
- return tslib.__awaiter(this, void 0, void 0, function* () {
30621
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30620
+ return tslib.__awaiter(this, undefined, undefined, function* () {
30621
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
30622
30622
  return this.client.sendOperationRequest(args, spec);
30623
30623
  });
30624
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30624
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
30625
30625
  var _a;
30626
30626
  let currentRawResponse = undefined;
30627
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
30627
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
30628
30628
  const callback = (rawResponse, flatResponse) => {
30629
30629
  currentRawResponse = rawResponse;
30630
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
30630
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
30631
30631
  };
30632
30632
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
30633
30633
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -30654,8 +30654,8 @@ class ReplicationProtectionContainerMappingsImpl {
30654
30654
  spec: updateOperationSpec$3,
30655
30655
  });
30656
30656
  const poller = yield coreLro.createHttpPoller(lro, {
30657
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
30658
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
30657
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
30658
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
30659
30659
  });
30660
30660
  yield poller.poll();
30661
30661
  return poller;
@@ -30673,7 +30673,7 @@ class ReplicationProtectionContainerMappingsImpl {
30673
30673
  * @param options The options parameters.
30674
30674
  */
30675
30675
  beginUpdateAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, updateInput, options) {
30676
- return tslib.__awaiter(this, void 0, void 0, function* () {
30676
+ return tslib.__awaiter(this, undefined, undefined, function* () {
30677
30677
  const poller = yield this.beginUpdate(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, updateInput, options);
30678
30678
  return poller.pollUntilDone();
30679
30679
  });
@@ -30690,17 +30690,17 @@ class ReplicationProtectionContainerMappingsImpl {
30690
30690
  * @param options The options parameters.
30691
30691
  */
30692
30692
  beginDelete(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, removalInput, options) {
30693
- return tslib.__awaiter(this, void 0, void 0, function* () {
30694
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30693
+ return tslib.__awaiter(this, undefined, undefined, function* () {
30694
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
30695
30695
  return this.client.sendOperationRequest(args, spec);
30696
30696
  });
30697
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30697
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
30698
30698
  var _a;
30699
30699
  let currentRawResponse = undefined;
30700
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
30700
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
30701
30701
  const callback = (rawResponse, flatResponse) => {
30702
30702
  currentRawResponse = rawResponse;
30703
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
30703
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
30704
30704
  };
30705
30705
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
30706
30706
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -30727,8 +30727,8 @@ class ReplicationProtectionContainerMappingsImpl {
30727
30727
  spec: deleteOperationSpec$5,
30728
30728
  });
30729
30729
  const poller = yield coreLro.createHttpPoller(lro, {
30730
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
30731
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
30730
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
30731
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
30732
30732
  });
30733
30733
  yield poller.poll();
30734
30734
  return poller;
@@ -30746,7 +30746,7 @@ class ReplicationProtectionContainerMappingsImpl {
30746
30746
  * @param options The options parameters.
30747
30747
  */
30748
30748
  beginDeleteAndWait(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, removalInput, options) {
30749
- return tslib.__awaiter(this, void 0, void 0, function* () {
30749
+ return tslib.__awaiter(this, undefined, undefined, function* () {
30750
30750
  const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, protectionContainerName, mappingName, removalInput, options);
30751
30751
  return poller.pollUntilDone();
30752
30752
  });
@@ -31028,7 +31028,7 @@ class ReplicationRecoveryServicesProvidersImpl {
31028
31028
  return this;
31029
31029
  },
31030
31030
  byPage: (settings) => {
31031
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
31031
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
31032
31032
  throw new Error("maxPageSize is not supported by this operation.");
31033
31033
  }
31034
31034
  return this.listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings);
@@ -31038,7 +31038,7 @@ class ReplicationRecoveryServicesProvidersImpl {
31038
31038
  listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings) {
31039
31039
  return tslib.__asyncGenerator(this, arguments, function* listByReplicationFabricsPagingPage_1() {
31040
31040
  let result;
31041
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
31041
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
31042
31042
  if (!continuationToken) {
31043
31043
  result = yield tslib.__await(this._listByReplicationFabrics(resourceName, resourceGroupName, fabricName, options));
31044
31044
  let page = result.value || [];
@@ -31092,7 +31092,7 @@ class ReplicationRecoveryServicesProvidersImpl {
31092
31092
  return this;
31093
31093
  },
31094
31094
  byPage: (settings) => {
31095
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
31095
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
31096
31096
  throw new Error("maxPageSize is not supported by this operation.");
31097
31097
  }
31098
31098
  return this.listPagingPage(resourceName, resourceGroupName, options, settings);
@@ -31102,7 +31102,7 @@ class ReplicationRecoveryServicesProvidersImpl {
31102
31102
  listPagingPage(resourceName, resourceGroupName, options, settings) {
31103
31103
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
31104
31104
  let result;
31105
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
31105
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
31106
31106
  if (!continuationToken) {
31107
31107
  result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
31108
31108
  let page = result.value || [];
@@ -31173,17 +31173,17 @@ class ReplicationRecoveryServicesProvidersImpl {
31173
31173
  * @param options The options parameters.
31174
31174
  */
31175
31175
  beginCreate(resourceName, resourceGroupName, fabricName, providerName, addProviderInput, options) {
31176
- return tslib.__awaiter(this, void 0, void 0, function* () {
31177
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31176
+ return tslib.__awaiter(this, undefined, undefined, function* () {
31177
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
31178
31178
  return this.client.sendOperationRequest(args, spec);
31179
31179
  });
31180
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31180
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
31181
31181
  var _a;
31182
31182
  let currentRawResponse = undefined;
31183
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
31183
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
31184
31184
  const callback = (rawResponse, flatResponse) => {
31185
31185
  currentRawResponse = rawResponse;
31186
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
31186
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
31187
31187
  };
31188
31188
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
31189
31189
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -31209,8 +31209,8 @@ class ReplicationRecoveryServicesProvidersImpl {
31209
31209
  spec: createOperationSpec$6,
31210
31210
  });
31211
31211
  const poller = yield coreLro.createHttpPoller(lro, {
31212
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
31213
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
31212
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
31213
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
31214
31214
  });
31215
31215
  yield poller.poll();
31216
31216
  return poller;
@@ -31227,7 +31227,7 @@ class ReplicationRecoveryServicesProvidersImpl {
31227
31227
  * @param options The options parameters.
31228
31228
  */
31229
31229
  beginCreateAndWait(resourceName, resourceGroupName, fabricName, providerName, addProviderInput, options) {
31230
- return tslib.__awaiter(this, void 0, void 0, function* () {
31230
+ return tslib.__awaiter(this, undefined, undefined, function* () {
31231
31231
  const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, providerName, addProviderInput, options);
31232
31232
  return poller.pollUntilDone();
31233
31233
  });
@@ -31242,17 +31242,17 @@ class ReplicationRecoveryServicesProvidersImpl {
31242
31242
  * @param options The options parameters.
31243
31243
  */
31244
31244
  beginPurge(resourceName, resourceGroupName, fabricName, providerName, options) {
31245
- return tslib.__awaiter(this, void 0, void 0, function* () {
31246
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31245
+ return tslib.__awaiter(this, undefined, undefined, function* () {
31246
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
31247
31247
  return this.client.sendOperationRequest(args, spec);
31248
31248
  });
31249
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31249
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
31250
31250
  var _a;
31251
31251
  let currentRawResponse = undefined;
31252
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
31252
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
31253
31253
  const callback = (rawResponse, flatResponse) => {
31254
31254
  currentRawResponse = rawResponse;
31255
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
31255
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
31256
31256
  };
31257
31257
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
31258
31258
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -31277,8 +31277,8 @@ class ReplicationRecoveryServicesProvidersImpl {
31277
31277
  spec: purgeOperationSpec,
31278
31278
  });
31279
31279
  const poller = yield coreLro.createHttpPoller(lro, {
31280
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
31281
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
31280
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
31281
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
31282
31282
  });
31283
31283
  yield poller.poll();
31284
31284
  return poller;
@@ -31294,7 +31294,7 @@ class ReplicationRecoveryServicesProvidersImpl {
31294
31294
  * @param options The options parameters.
31295
31295
  */
31296
31296
  beginPurgeAndWait(resourceName, resourceGroupName, fabricName, providerName, options) {
31297
- return tslib.__awaiter(this, void 0, void 0, function* () {
31297
+ return tslib.__awaiter(this, undefined, undefined, function* () {
31298
31298
  const poller = yield this.beginPurge(resourceName, resourceGroupName, fabricName, providerName, options);
31299
31299
  return poller.pollUntilDone();
31300
31300
  });
@@ -31309,17 +31309,17 @@ class ReplicationRecoveryServicesProvidersImpl {
31309
31309
  * @param options The options parameters.
31310
31310
  */
31311
31311
  beginRefreshProvider(resourceName, resourceGroupName, fabricName, providerName, options) {
31312
- return tslib.__awaiter(this, void 0, void 0, function* () {
31313
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31312
+ return tslib.__awaiter(this, undefined, undefined, function* () {
31313
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
31314
31314
  return this.client.sendOperationRequest(args, spec);
31315
31315
  });
31316
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31316
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
31317
31317
  var _a;
31318
31318
  let currentRawResponse = undefined;
31319
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
31319
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
31320
31320
  const callback = (rawResponse, flatResponse) => {
31321
31321
  currentRawResponse = rawResponse;
31322
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
31322
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
31323
31323
  };
31324
31324
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
31325
31325
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -31344,8 +31344,8 @@ class ReplicationRecoveryServicesProvidersImpl {
31344
31344
  spec: refreshProviderOperationSpec,
31345
31345
  });
31346
31346
  const poller = yield coreLro.createHttpPoller(lro, {
31347
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
31348
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
31347
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
31348
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
31349
31349
  });
31350
31350
  yield poller.poll();
31351
31351
  return poller;
@@ -31361,7 +31361,7 @@ class ReplicationRecoveryServicesProvidersImpl {
31361
31361
  * @param options The options parameters.
31362
31362
  */
31363
31363
  beginRefreshProviderAndWait(resourceName, resourceGroupName, fabricName, providerName, options) {
31364
- return tslib.__awaiter(this, void 0, void 0, function* () {
31364
+ return tslib.__awaiter(this, undefined, undefined, function* () {
31365
31365
  const poller = yield this.beginRefreshProvider(resourceName, resourceGroupName, fabricName, providerName, options);
31366
31366
  return poller.pollUntilDone();
31367
31367
  });
@@ -31376,17 +31376,17 @@ class ReplicationRecoveryServicesProvidersImpl {
31376
31376
  * @param options The options parameters.
31377
31377
  */
31378
31378
  beginDelete(resourceName, resourceGroupName, fabricName, providerName, options) {
31379
- return tslib.__awaiter(this, void 0, void 0, function* () {
31380
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31379
+ return tslib.__awaiter(this, undefined, undefined, function* () {
31380
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
31381
31381
  return this.client.sendOperationRequest(args, spec);
31382
31382
  });
31383
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31383
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
31384
31384
  var _a;
31385
31385
  let currentRawResponse = undefined;
31386
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
31386
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
31387
31387
  const callback = (rawResponse, flatResponse) => {
31388
31388
  currentRawResponse = rawResponse;
31389
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
31389
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
31390
31390
  };
31391
31391
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
31392
31392
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -31411,8 +31411,8 @@ class ReplicationRecoveryServicesProvidersImpl {
31411
31411
  spec: deleteOperationSpec$4,
31412
31412
  });
31413
31413
  const poller = yield coreLro.createHttpPoller(lro, {
31414
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
31415
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
31414
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
31415
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
31416
31416
  });
31417
31417
  yield poller.poll();
31418
31418
  return poller;
@@ -31428,7 +31428,7 @@ class ReplicationRecoveryServicesProvidersImpl {
31428
31428
  * @param options The options parameters.
31429
31429
  */
31430
31430
  beginDeleteAndWait(resourceName, resourceGroupName, fabricName, providerName, options) {
31431
- return tslib.__awaiter(this, void 0, void 0, function* () {
31431
+ return tslib.__awaiter(this, undefined, undefined, function* () {
31432
31432
  const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, providerName, options);
31433
31433
  return poller.pollUntilDone();
31434
31434
  });
@@ -31690,7 +31690,7 @@ class ReplicationStorageClassificationsImpl {
31690
31690
  return this;
31691
31691
  },
31692
31692
  byPage: (settings) => {
31693
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
31693
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
31694
31694
  throw new Error("maxPageSize is not supported by this operation.");
31695
31695
  }
31696
31696
  return this.listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings);
@@ -31700,7 +31700,7 @@ class ReplicationStorageClassificationsImpl {
31700
31700
  listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings) {
31701
31701
  return tslib.__asyncGenerator(this, arguments, function* listByReplicationFabricsPagingPage_1() {
31702
31702
  let result;
31703
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
31703
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
31704
31704
  if (!continuationToken) {
31705
31705
  result = yield tslib.__await(this._listByReplicationFabrics(resourceName, resourceGroupName, fabricName, options));
31706
31706
  let page = result.value || [];
@@ -31754,7 +31754,7 @@ class ReplicationStorageClassificationsImpl {
31754
31754
  return this;
31755
31755
  },
31756
31756
  byPage: (settings) => {
31757
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
31757
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
31758
31758
  throw new Error("maxPageSize is not supported by this operation.");
31759
31759
  }
31760
31760
  return this.listPagingPage(resourceName, resourceGroupName, options, settings);
@@ -31764,7 +31764,7 @@ class ReplicationStorageClassificationsImpl {
31764
31764
  listPagingPage(resourceName, resourceGroupName, options, settings) {
31765
31765
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
31766
31766
  let result;
31767
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
31767
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
31768
31768
  if (!continuationToken) {
31769
31769
  result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
31770
31770
  let page = result.value || [];
@@ -31998,7 +31998,7 @@ class ReplicationStorageClassificationMappingsImpl {
31998
31998
  return this;
31999
31999
  },
32000
32000
  byPage: (settings) => {
32001
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
32001
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
32002
32002
  throw new Error("maxPageSize is not supported by this operation.");
32003
32003
  }
32004
32004
  return this.listByReplicationStorageClassificationsPagingPage(resourceName, resourceGroupName, fabricName, storageClassificationName, options, settings);
@@ -32008,7 +32008,7 @@ class ReplicationStorageClassificationMappingsImpl {
32008
32008
  listByReplicationStorageClassificationsPagingPage(resourceName, resourceGroupName, fabricName, storageClassificationName, options, settings) {
32009
32009
  return tslib.__asyncGenerator(this, arguments, function* listByReplicationStorageClassificationsPagingPage_1() {
32010
32010
  let result;
32011
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
32011
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
32012
32012
  if (!continuationToken) {
32013
32013
  result = yield tslib.__await(this._listByReplicationStorageClassifications(resourceName, resourceGroupName, fabricName, storageClassificationName, options));
32014
32014
  let page = result.value || [];
@@ -32062,7 +32062,7 @@ class ReplicationStorageClassificationMappingsImpl {
32062
32062
  return this;
32063
32063
  },
32064
32064
  byPage: (settings) => {
32065
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
32065
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
32066
32066
  throw new Error("maxPageSize is not supported by this operation.");
32067
32067
  }
32068
32068
  return this.listPagingPage(resourceName, resourceGroupName, options, settings);
@@ -32072,7 +32072,7 @@ class ReplicationStorageClassificationMappingsImpl {
32072
32072
  listPagingPage(resourceName, resourceGroupName, options, settings) {
32073
32073
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
32074
32074
  let result;
32075
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
32075
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
32076
32076
  if (!continuationToken) {
32077
32077
  result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
32078
32078
  let page = result.value || [];
@@ -32159,17 +32159,17 @@ class ReplicationStorageClassificationMappingsImpl {
32159
32159
  * @param options The options parameters.
32160
32160
  */
32161
32161
  beginCreate(resourceName, resourceGroupName, fabricName, storageClassificationName, storageClassificationMappingName, pairingInput, options) {
32162
- return tslib.__awaiter(this, void 0, void 0, function* () {
32163
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32162
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32163
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32164
32164
  return this.client.sendOperationRequest(args, spec);
32165
32165
  });
32166
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32166
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32167
32167
  var _a;
32168
32168
  let currentRawResponse = undefined;
32169
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
32169
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
32170
32170
  const callback = (rawResponse, flatResponse) => {
32171
32171
  currentRawResponse = rawResponse;
32172
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
32172
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
32173
32173
  };
32174
32174
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
32175
32175
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -32196,8 +32196,8 @@ class ReplicationStorageClassificationMappingsImpl {
32196
32196
  spec: createOperationSpec$5,
32197
32197
  });
32198
32198
  const poller = yield coreLro.createHttpPoller(lro, {
32199
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32200
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
32199
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
32200
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
32201
32201
  });
32202
32202
  yield poller.poll();
32203
32203
  return poller;
@@ -32215,7 +32215,7 @@ class ReplicationStorageClassificationMappingsImpl {
32215
32215
  * @param options The options parameters.
32216
32216
  */
32217
32217
  beginCreateAndWait(resourceName, resourceGroupName, fabricName, storageClassificationName, storageClassificationMappingName, pairingInput, options) {
32218
- return tslib.__awaiter(this, void 0, void 0, function* () {
32218
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32219
32219
  const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, storageClassificationName, storageClassificationMappingName, pairingInput, options);
32220
32220
  return poller.pollUntilDone();
32221
32221
  });
@@ -32231,17 +32231,17 @@ class ReplicationStorageClassificationMappingsImpl {
32231
32231
  * @param options The options parameters.
32232
32232
  */
32233
32233
  beginDelete(resourceName, resourceGroupName, fabricName, storageClassificationName, storageClassificationMappingName, options) {
32234
- return tslib.__awaiter(this, void 0, void 0, function* () {
32235
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32234
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32235
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32236
32236
  return this.client.sendOperationRequest(args, spec);
32237
32237
  });
32238
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32238
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32239
32239
  var _a;
32240
32240
  let currentRawResponse = undefined;
32241
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
32241
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
32242
32242
  const callback = (rawResponse, flatResponse) => {
32243
32243
  currentRawResponse = rawResponse;
32244
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
32244
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
32245
32245
  };
32246
32246
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
32247
32247
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -32267,8 +32267,8 @@ class ReplicationStorageClassificationMappingsImpl {
32267
32267
  spec: deleteOperationSpec$3,
32268
32268
  });
32269
32269
  const poller = yield coreLro.createHttpPoller(lro, {
32270
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32271
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
32270
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
32271
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
32272
32272
  });
32273
32273
  yield poller.poll();
32274
32274
  return poller;
@@ -32285,7 +32285,7 @@ class ReplicationStorageClassificationMappingsImpl {
32285
32285
  * @param options The options parameters.
32286
32286
  */
32287
32287
  beginDeleteAndWait(resourceName, resourceGroupName, fabricName, storageClassificationName, storageClassificationMappingName, options) {
32288
- return tslib.__awaiter(this, void 0, void 0, function* () {
32288
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32289
32289
  const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, storageClassificationName, storageClassificationMappingName, options);
32290
32290
  return poller.pollUntilDone();
32291
32291
  });
@@ -32516,7 +32516,7 @@ class ReplicationvCentersImpl {
32516
32516
  return this;
32517
32517
  },
32518
32518
  byPage: (settings) => {
32519
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
32519
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
32520
32520
  throw new Error("maxPageSize is not supported by this operation.");
32521
32521
  }
32522
32522
  return this.listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings);
@@ -32526,7 +32526,7 @@ class ReplicationvCentersImpl {
32526
32526
  listByReplicationFabricsPagingPage(resourceName, resourceGroupName, fabricName, options, settings) {
32527
32527
  return tslib.__asyncGenerator(this, arguments, function* listByReplicationFabricsPagingPage_1() {
32528
32528
  let result;
32529
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
32529
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
32530
32530
  if (!continuationToken) {
32531
32531
  result = yield tslib.__await(this._listByReplicationFabrics(resourceName, resourceGroupName, fabricName, options));
32532
32532
  let page = result.value || [];
@@ -32580,7 +32580,7 @@ class ReplicationvCentersImpl {
32580
32580
  return this;
32581
32581
  },
32582
32582
  byPage: (settings) => {
32583
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
32583
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
32584
32584
  throw new Error("maxPageSize is not supported by this operation.");
32585
32585
  }
32586
32586
  return this.listPagingPage(resourceName, resourceGroupName, options, settings);
@@ -32590,7 +32590,7 @@ class ReplicationvCentersImpl {
32590
32590
  listPagingPage(resourceName, resourceGroupName, options, settings) {
32591
32591
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
32592
32592
  let result;
32593
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
32593
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
32594
32594
  if (!continuationToken) {
32595
32595
  result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
32596
32596
  let page = result.value || [];
@@ -32661,17 +32661,17 @@ class ReplicationvCentersImpl {
32661
32661
  * @param options The options parameters.
32662
32662
  */
32663
32663
  beginCreate(resourceName, resourceGroupName, fabricName, vcenterName, addVCenterRequest, options) {
32664
- return tslib.__awaiter(this, void 0, void 0, function* () {
32665
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32664
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32665
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32666
32666
  return this.client.sendOperationRequest(args, spec);
32667
32667
  });
32668
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32668
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32669
32669
  var _a;
32670
32670
  let currentRawResponse = undefined;
32671
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
32671
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
32672
32672
  const callback = (rawResponse, flatResponse) => {
32673
32673
  currentRawResponse = rawResponse;
32674
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
32674
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
32675
32675
  };
32676
32676
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
32677
32677
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -32697,8 +32697,8 @@ class ReplicationvCentersImpl {
32697
32697
  spec: createOperationSpec$4,
32698
32698
  });
32699
32699
  const poller = yield coreLro.createHttpPoller(lro, {
32700
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32701
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
32700
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
32701
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
32702
32702
  });
32703
32703
  yield poller.poll();
32704
32704
  return poller;
@@ -32715,7 +32715,7 @@ class ReplicationvCentersImpl {
32715
32715
  * @param options The options parameters.
32716
32716
  */
32717
32717
  beginCreateAndWait(resourceName, resourceGroupName, fabricName, vcenterName, addVCenterRequest, options) {
32718
- return tslib.__awaiter(this, void 0, void 0, function* () {
32718
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32719
32719
  const poller = yield this.beginCreate(resourceName, resourceGroupName, fabricName, vcenterName, addVCenterRequest, options);
32720
32720
  return poller.pollUntilDone();
32721
32721
  });
@@ -32730,17 +32730,17 @@ class ReplicationvCentersImpl {
32730
32730
  * @param options The options parameters.
32731
32731
  */
32732
32732
  beginDelete(resourceName, resourceGroupName, fabricName, vcenterName, options) {
32733
- return tslib.__awaiter(this, void 0, void 0, function* () {
32734
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32733
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32734
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32735
32735
  return this.client.sendOperationRequest(args, spec);
32736
32736
  });
32737
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32737
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32738
32738
  var _a;
32739
32739
  let currentRawResponse = undefined;
32740
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
32740
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
32741
32741
  const callback = (rawResponse, flatResponse) => {
32742
32742
  currentRawResponse = rawResponse;
32743
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
32743
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
32744
32744
  };
32745
32745
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
32746
32746
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -32765,8 +32765,8 @@ class ReplicationvCentersImpl {
32765
32765
  spec: deleteOperationSpec$2,
32766
32766
  });
32767
32767
  const poller = yield coreLro.createHttpPoller(lro, {
32768
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32769
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
32768
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
32769
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
32770
32770
  });
32771
32771
  yield poller.poll();
32772
32772
  return poller;
@@ -32782,7 +32782,7 @@ class ReplicationvCentersImpl {
32782
32782
  * @param options The options parameters.
32783
32783
  */
32784
32784
  beginDeleteAndWait(resourceName, resourceGroupName, fabricName, vcenterName, options) {
32785
- return tslib.__awaiter(this, void 0, void 0, function* () {
32785
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32786
32786
  const poller = yield this.beginDelete(resourceName, resourceGroupName, fabricName, vcenterName, options);
32787
32787
  return poller.pollUntilDone();
32788
32788
  });
@@ -32798,17 +32798,17 @@ class ReplicationvCentersImpl {
32798
32798
  * @param options The options parameters.
32799
32799
  */
32800
32800
  beginUpdate(resourceName, resourceGroupName, fabricName, vcenterName, updateVCenterRequest, options) {
32801
- return tslib.__awaiter(this, void 0, void 0, function* () {
32802
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32801
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32802
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32803
32803
  return this.client.sendOperationRequest(args, spec);
32804
32804
  });
32805
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32805
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32806
32806
  var _a;
32807
32807
  let currentRawResponse = undefined;
32808
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
32808
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
32809
32809
  const callback = (rawResponse, flatResponse) => {
32810
32810
  currentRawResponse = rawResponse;
32811
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
32811
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
32812
32812
  };
32813
32813
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
32814
32814
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -32834,8 +32834,8 @@ class ReplicationvCentersImpl {
32834
32834
  spec: updateOperationSpec$2,
32835
32835
  });
32836
32836
  const poller = yield coreLro.createHttpPoller(lro, {
32837
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32838
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
32837
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
32838
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
32839
32839
  });
32840
32840
  yield poller.poll();
32841
32841
  return poller;
@@ -32852,7 +32852,7 @@ class ReplicationvCentersImpl {
32852
32852
  * @param options The options parameters.
32853
32853
  */
32854
32854
  beginUpdateAndWait(resourceName, resourceGroupName, fabricName, vcenterName, updateVCenterRequest, options) {
32855
- return tslib.__awaiter(this, void 0, void 0, function* () {
32855
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32856
32856
  const poller = yield this.beginUpdate(resourceName, resourceGroupName, fabricName, vcenterName, updateVCenterRequest, options);
32857
32857
  return poller.pollUntilDone();
32858
32858
  });
@@ -33100,7 +33100,7 @@ class ReplicationJobsImpl {
33100
33100
  return this;
33101
33101
  },
33102
33102
  byPage: (settings) => {
33103
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
33103
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
33104
33104
  throw new Error("maxPageSize is not supported by this operation.");
33105
33105
  }
33106
33106
  return this.listPagingPage(resourceName, resourceGroupName, options, settings);
@@ -33110,7 +33110,7 @@ class ReplicationJobsImpl {
33110
33110
  listPagingPage(resourceName, resourceGroupName, options, settings) {
33111
33111
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
33112
33112
  let result;
33113
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
33113
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
33114
33114
  if (!continuationToken) {
33115
33115
  result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
33116
33116
  let page = result.value || [];
@@ -33177,17 +33177,17 @@ class ReplicationJobsImpl {
33177
33177
  * @param options The options parameters.
33178
33178
  */
33179
33179
  beginCancel(resourceName, resourceGroupName, jobName, options) {
33180
- return tslib.__awaiter(this, void 0, void 0, function* () {
33181
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33180
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33181
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33182
33182
  return this.client.sendOperationRequest(args, spec);
33183
33183
  });
33184
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33184
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33185
33185
  var _a;
33186
33186
  let currentRawResponse = undefined;
33187
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
33187
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
33188
33188
  const callback = (rawResponse, flatResponse) => {
33189
33189
  currentRawResponse = rawResponse;
33190
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
33190
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
33191
33191
  };
33192
33192
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
33193
33193
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -33206,8 +33206,8 @@ class ReplicationJobsImpl {
33206
33206
  spec: cancelOperationSpec,
33207
33207
  });
33208
33208
  const poller = yield coreLro.createHttpPoller(lro, {
33209
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33210
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
33209
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
33210
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
33211
33211
  });
33212
33212
  yield poller.poll();
33213
33213
  return poller;
@@ -33222,7 +33222,7 @@ class ReplicationJobsImpl {
33222
33222
  * @param options The options parameters.
33223
33223
  */
33224
33224
  beginCancelAndWait(resourceName, resourceGroupName, jobName, options) {
33225
- return tslib.__awaiter(this, void 0, void 0, function* () {
33225
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33226
33226
  const poller = yield this.beginCancel(resourceName, resourceGroupName, jobName, options);
33227
33227
  return poller.pollUntilDone();
33228
33228
  });
@@ -33236,17 +33236,17 @@ class ReplicationJobsImpl {
33236
33236
  * @param options The options parameters.
33237
33237
  */
33238
33238
  beginRestart(resourceName, resourceGroupName, jobName, options) {
33239
- return tslib.__awaiter(this, void 0, void 0, function* () {
33240
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33239
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33240
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33241
33241
  return this.client.sendOperationRequest(args, spec);
33242
33242
  });
33243
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33243
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33244
33244
  var _a;
33245
33245
  let currentRawResponse = undefined;
33246
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
33246
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
33247
33247
  const callback = (rawResponse, flatResponse) => {
33248
33248
  currentRawResponse = rawResponse;
33249
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
33249
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
33250
33250
  };
33251
33251
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
33252
33252
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -33265,8 +33265,8 @@ class ReplicationJobsImpl {
33265
33265
  spec: restartOperationSpec,
33266
33266
  });
33267
33267
  const poller = yield coreLro.createHttpPoller(lro, {
33268
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33269
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
33268
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
33269
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
33270
33270
  });
33271
33271
  yield poller.poll();
33272
33272
  return poller;
@@ -33281,7 +33281,7 @@ class ReplicationJobsImpl {
33281
33281
  * @param options The options parameters.
33282
33282
  */
33283
33283
  beginRestartAndWait(resourceName, resourceGroupName, jobName, options) {
33284
- return tslib.__awaiter(this, void 0, void 0, function* () {
33284
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33285
33285
  const poller = yield this.beginRestart(resourceName, resourceGroupName, jobName, options);
33286
33286
  return poller.pollUntilDone();
33287
33287
  });
@@ -33296,17 +33296,17 @@ class ReplicationJobsImpl {
33296
33296
  * @param options The options parameters.
33297
33297
  */
33298
33298
  beginResume(resourceName, resourceGroupName, jobName, resumeJobParams, options) {
33299
- return tslib.__awaiter(this, void 0, void 0, function* () {
33300
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33299
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33300
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33301
33301
  return this.client.sendOperationRequest(args, spec);
33302
33302
  });
33303
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33303
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33304
33304
  var _a;
33305
33305
  let currentRawResponse = undefined;
33306
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
33306
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
33307
33307
  const callback = (rawResponse, flatResponse) => {
33308
33308
  currentRawResponse = rawResponse;
33309
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
33309
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
33310
33310
  };
33311
33311
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
33312
33312
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -33331,8 +33331,8 @@ class ReplicationJobsImpl {
33331
33331
  spec: resumeOperationSpec,
33332
33332
  });
33333
33333
  const poller = yield coreLro.createHttpPoller(lro, {
33334
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33335
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
33334
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
33335
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
33336
33336
  });
33337
33337
  yield poller.poll();
33338
33338
  return poller;
@@ -33348,7 +33348,7 @@ class ReplicationJobsImpl {
33348
33348
  * @param options The options parameters.
33349
33349
  */
33350
33350
  beginResumeAndWait(resourceName, resourceGroupName, jobName, resumeJobParams, options) {
33351
- return tslib.__awaiter(this, void 0, void 0, function* () {
33351
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33352
33352
  const poller = yield this.beginResume(resourceName, resourceGroupName, jobName, resumeJobParams, options);
33353
33353
  return poller.pollUntilDone();
33354
33354
  });
@@ -33362,17 +33362,17 @@ class ReplicationJobsImpl {
33362
33362
  * @param options The options parameters.
33363
33363
  */
33364
33364
  beginExport(resourceName, resourceGroupName, jobQueryParameter, options) {
33365
- return tslib.__awaiter(this, void 0, void 0, function* () {
33366
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33365
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33366
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33367
33367
  return this.client.sendOperationRequest(args, spec);
33368
33368
  });
33369
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33369
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33370
33370
  var _a;
33371
33371
  let currentRawResponse = undefined;
33372
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
33372
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
33373
33373
  const callback = (rawResponse, flatResponse) => {
33374
33374
  currentRawResponse = rawResponse;
33375
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
33375
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
33376
33376
  };
33377
33377
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
33378
33378
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -33391,8 +33391,8 @@ class ReplicationJobsImpl {
33391
33391
  spec: exportOperationSpec,
33392
33392
  });
33393
33393
  const poller = yield coreLro.createHttpPoller(lro, {
33394
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33395
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
33394
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
33395
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
33396
33396
  });
33397
33397
  yield poller.poll();
33398
33398
  return poller;
@@ -33407,7 +33407,7 @@ class ReplicationJobsImpl {
33407
33407
  * @param options The options parameters.
33408
33408
  */
33409
33409
  beginExportAndWait(resourceName, resourceGroupName, jobQueryParameter, options) {
33410
- return tslib.__awaiter(this, void 0, void 0, function* () {
33410
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33411
33411
  const poller = yield this.beginExport(resourceName, resourceGroupName, jobQueryParameter, options);
33412
33412
  return poller.pollUntilDone();
33413
33413
  });
@@ -33631,7 +33631,7 @@ class ReplicationPoliciesImpl {
33631
33631
  return this;
33632
33632
  },
33633
33633
  byPage: (settings) => {
33634
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
33634
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
33635
33635
  throw new Error("maxPageSize is not supported by this operation.");
33636
33636
  }
33637
33637
  return this.listPagingPage(resourceName, resourceGroupName, options, settings);
@@ -33641,7 +33641,7 @@ class ReplicationPoliciesImpl {
33641
33641
  listPagingPage(resourceName, resourceGroupName, options, settings) {
33642
33642
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
33643
33643
  let result;
33644
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
33644
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
33645
33645
  if (!continuationToken) {
33646
33646
  result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
33647
33647
  let page = result.value || [];
@@ -33709,17 +33709,17 @@ class ReplicationPoliciesImpl {
33709
33709
  * @param options The options parameters.
33710
33710
  */
33711
33711
  beginCreate(resourceName, resourceGroupName, policyName, input, options) {
33712
- return tslib.__awaiter(this, void 0, void 0, function* () {
33713
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33712
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33713
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33714
33714
  return this.client.sendOperationRequest(args, spec);
33715
33715
  });
33716
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33716
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33717
33717
  var _a;
33718
33718
  let currentRawResponse = undefined;
33719
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
33719
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
33720
33720
  const callback = (rawResponse, flatResponse) => {
33721
33721
  currentRawResponse = rawResponse;
33722
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
33722
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
33723
33723
  };
33724
33724
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
33725
33725
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -33738,8 +33738,8 @@ class ReplicationPoliciesImpl {
33738
33738
  spec: createOperationSpec$3,
33739
33739
  });
33740
33740
  const poller = yield coreLro.createHttpPoller(lro, {
33741
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33742
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
33741
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
33742
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
33743
33743
  });
33744
33744
  yield poller.poll();
33745
33745
  return poller;
@@ -33755,7 +33755,7 @@ class ReplicationPoliciesImpl {
33755
33755
  * @param options The options parameters.
33756
33756
  */
33757
33757
  beginCreateAndWait(resourceName, resourceGroupName, policyName, input, options) {
33758
- return tslib.__awaiter(this, void 0, void 0, function* () {
33758
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33759
33759
  const poller = yield this.beginCreate(resourceName, resourceGroupName, policyName, input, options);
33760
33760
  return poller.pollUntilDone();
33761
33761
  });
@@ -33769,17 +33769,17 @@ class ReplicationPoliciesImpl {
33769
33769
  * @param options The options parameters.
33770
33770
  */
33771
33771
  beginDelete(resourceName, resourceGroupName, policyName, options) {
33772
- return tslib.__awaiter(this, void 0, void 0, function* () {
33773
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33772
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33773
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33774
33774
  return this.client.sendOperationRequest(args, spec);
33775
33775
  });
33776
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33776
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33777
33777
  var _a;
33778
33778
  let currentRawResponse = undefined;
33779
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
33779
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
33780
33780
  const callback = (rawResponse, flatResponse) => {
33781
33781
  currentRawResponse = rawResponse;
33782
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
33782
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
33783
33783
  };
33784
33784
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
33785
33785
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -33798,8 +33798,8 @@ class ReplicationPoliciesImpl {
33798
33798
  spec: deleteOperationSpec$1,
33799
33799
  });
33800
33800
  const poller = yield coreLro.createHttpPoller(lro, {
33801
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33802
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
33801
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
33802
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
33803
33803
  });
33804
33804
  yield poller.poll();
33805
33805
  return poller;
@@ -33814,7 +33814,7 @@ class ReplicationPoliciesImpl {
33814
33814
  * @param options The options parameters.
33815
33815
  */
33816
33816
  beginDeleteAndWait(resourceName, resourceGroupName, policyName, options) {
33817
- return tslib.__awaiter(this, void 0, void 0, function* () {
33817
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33818
33818
  const poller = yield this.beginDelete(resourceName, resourceGroupName, policyName, options);
33819
33819
  return poller.pollUntilDone();
33820
33820
  });
@@ -33829,17 +33829,17 @@ class ReplicationPoliciesImpl {
33829
33829
  * @param options The options parameters.
33830
33830
  */
33831
33831
  beginUpdate(resourceName, resourceGroupName, policyName, input, options) {
33832
- return tslib.__awaiter(this, void 0, void 0, function* () {
33833
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33832
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33833
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33834
33834
  return this.client.sendOperationRequest(args, spec);
33835
33835
  });
33836
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33836
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
33837
33837
  var _a;
33838
33838
  let currentRawResponse = undefined;
33839
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
33839
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
33840
33840
  const callback = (rawResponse, flatResponse) => {
33841
33841
  currentRawResponse = rawResponse;
33842
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
33842
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
33843
33843
  };
33844
33844
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
33845
33845
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -33858,8 +33858,8 @@ class ReplicationPoliciesImpl {
33858
33858
  spec: updateOperationSpec$1,
33859
33859
  });
33860
33860
  const poller = yield coreLro.createHttpPoller(lro, {
33861
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33862
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
33861
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
33862
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
33863
33863
  });
33864
33864
  yield poller.poll();
33865
33865
  return poller;
@@ -33875,7 +33875,7 @@ class ReplicationPoliciesImpl {
33875
33875
  * @param options The options parameters.
33876
33876
  */
33877
33877
  beginUpdateAndWait(resourceName, resourceGroupName, policyName, input, options) {
33878
- return tslib.__awaiter(this, void 0, void 0, function* () {
33878
+ return tslib.__awaiter(this, undefined, undefined, function* () {
33879
33879
  const poller = yield this.beginUpdate(resourceName, resourceGroupName, policyName, input, options);
33880
33880
  return poller.pollUntilDone();
33881
33881
  });
@@ -34058,7 +34058,7 @@ class ReplicationProtectionIntentsImpl {
34058
34058
  return this;
34059
34059
  },
34060
34060
  byPage: (settings) => {
34061
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
34061
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
34062
34062
  throw new Error("maxPageSize is not supported by this operation.");
34063
34063
  }
34064
34064
  return this.listPagingPage(resourceName, resourceGroupName, options, settings);
@@ -34068,7 +34068,7 @@ class ReplicationProtectionIntentsImpl {
34068
34068
  listPagingPage(resourceName, resourceGroupName, options, settings) {
34069
34069
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
34070
34070
  let result;
34071
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
34071
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
34072
34072
  if (!continuationToken) {
34073
34073
  result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
34074
34074
  let page = result.value || [];
@@ -34267,7 +34267,7 @@ class ReplicationRecoveryPlansImpl {
34267
34267
  return this;
34268
34268
  },
34269
34269
  byPage: (settings) => {
34270
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
34270
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
34271
34271
  throw new Error("maxPageSize is not supported by this operation.");
34272
34272
  }
34273
34273
  return this.listPagingPage(resourceName, resourceGroupName, options, settings);
@@ -34277,7 +34277,7 @@ class ReplicationRecoveryPlansImpl {
34277
34277
  listPagingPage(resourceName, resourceGroupName, options, settings) {
34278
34278
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
34279
34279
  let result;
34280
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
34280
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
34281
34281
  if (!continuationToken) {
34282
34282
  result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
34283
34283
  let page = result.value || [];
@@ -34345,17 +34345,17 @@ class ReplicationRecoveryPlansImpl {
34345
34345
  * @param options The options parameters.
34346
34346
  */
34347
34347
  beginCreate(resourceName, resourceGroupName, recoveryPlanName, input, options) {
34348
- return tslib.__awaiter(this, void 0, void 0, function* () {
34349
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34348
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34349
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34350
34350
  return this.client.sendOperationRequest(args, spec);
34351
34351
  });
34352
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34352
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34353
34353
  var _a;
34354
34354
  let currentRawResponse = undefined;
34355
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
34355
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
34356
34356
  const callback = (rawResponse, flatResponse) => {
34357
34357
  currentRawResponse = rawResponse;
34358
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
34358
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
34359
34359
  };
34360
34360
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
34361
34361
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -34380,8 +34380,8 @@ class ReplicationRecoveryPlansImpl {
34380
34380
  spec: createOperationSpec$1,
34381
34381
  });
34382
34382
  const poller = yield coreLro.createHttpPoller(lro, {
34383
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34384
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
34383
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
34384
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
34385
34385
  });
34386
34386
  yield poller.poll();
34387
34387
  return poller;
@@ -34397,7 +34397,7 @@ class ReplicationRecoveryPlansImpl {
34397
34397
  * @param options The options parameters.
34398
34398
  */
34399
34399
  beginCreateAndWait(resourceName, resourceGroupName, recoveryPlanName, input, options) {
34400
- return tslib.__awaiter(this, void 0, void 0, function* () {
34400
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34401
34401
  const poller = yield this.beginCreate(resourceName, resourceGroupName, recoveryPlanName, input, options);
34402
34402
  return poller.pollUntilDone();
34403
34403
  });
@@ -34411,17 +34411,17 @@ class ReplicationRecoveryPlansImpl {
34411
34411
  * @param options The options parameters.
34412
34412
  */
34413
34413
  beginDelete(resourceName, resourceGroupName, recoveryPlanName, options) {
34414
- return tslib.__awaiter(this, void 0, void 0, function* () {
34415
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34414
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34415
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34416
34416
  return this.client.sendOperationRequest(args, spec);
34417
34417
  });
34418
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34418
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34419
34419
  var _a;
34420
34420
  let currentRawResponse = undefined;
34421
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
34421
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
34422
34422
  const callback = (rawResponse, flatResponse) => {
34423
34423
  currentRawResponse = rawResponse;
34424
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
34424
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
34425
34425
  };
34426
34426
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
34427
34427
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -34440,8 +34440,8 @@ class ReplicationRecoveryPlansImpl {
34440
34440
  spec: deleteOperationSpec,
34441
34441
  });
34442
34442
  const poller = yield coreLro.createHttpPoller(lro, {
34443
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34444
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
34443
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
34444
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
34445
34445
  });
34446
34446
  yield poller.poll();
34447
34447
  return poller;
@@ -34456,7 +34456,7 @@ class ReplicationRecoveryPlansImpl {
34456
34456
  * @param options The options parameters.
34457
34457
  */
34458
34458
  beginDeleteAndWait(resourceName, resourceGroupName, recoveryPlanName, options) {
34459
- return tslib.__awaiter(this, void 0, void 0, function* () {
34459
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34460
34460
  const poller = yield this.beginDelete(resourceName, resourceGroupName, recoveryPlanName, options);
34461
34461
  return poller.pollUntilDone();
34462
34462
  });
@@ -34471,17 +34471,17 @@ class ReplicationRecoveryPlansImpl {
34471
34471
  * @param options The options parameters.
34472
34472
  */
34473
34473
  beginUpdate(resourceName, resourceGroupName, recoveryPlanName, input, options) {
34474
- return tslib.__awaiter(this, void 0, void 0, function* () {
34475
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34474
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34475
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34476
34476
  return this.client.sendOperationRequest(args, spec);
34477
34477
  });
34478
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34478
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34479
34479
  var _a;
34480
34480
  let currentRawResponse = undefined;
34481
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
34481
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
34482
34482
  const callback = (rawResponse, flatResponse) => {
34483
34483
  currentRawResponse = rawResponse;
34484
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
34484
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
34485
34485
  };
34486
34486
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
34487
34487
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -34506,8 +34506,8 @@ class ReplicationRecoveryPlansImpl {
34506
34506
  spec: updateOperationSpec,
34507
34507
  });
34508
34508
  const poller = yield coreLro.createHttpPoller(lro, {
34509
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34510
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
34509
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
34510
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
34511
34511
  });
34512
34512
  yield poller.poll();
34513
34513
  return poller;
@@ -34523,7 +34523,7 @@ class ReplicationRecoveryPlansImpl {
34523
34523
  * @param options The options parameters.
34524
34524
  */
34525
34525
  beginUpdateAndWait(resourceName, resourceGroupName, recoveryPlanName, input, options) {
34526
- return tslib.__awaiter(this, void 0, void 0, function* () {
34526
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34527
34527
  const poller = yield this.beginUpdate(resourceName, resourceGroupName, recoveryPlanName, input, options);
34528
34528
  return poller.pollUntilDone();
34529
34529
  });
@@ -34537,17 +34537,17 @@ class ReplicationRecoveryPlansImpl {
34537
34537
  * @param options The options parameters.
34538
34538
  */
34539
34539
  beginFailoverCancel(resourceName, resourceGroupName, recoveryPlanName, options) {
34540
- return tslib.__awaiter(this, void 0, void 0, function* () {
34541
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34540
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34541
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34542
34542
  return this.client.sendOperationRequest(args, spec);
34543
34543
  });
34544
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34544
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34545
34545
  var _a;
34546
34546
  let currentRawResponse = undefined;
34547
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
34547
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
34548
34548
  const callback = (rawResponse, flatResponse) => {
34549
34549
  currentRawResponse = rawResponse;
34550
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
34550
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
34551
34551
  };
34552
34552
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
34553
34553
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -34566,8 +34566,8 @@ class ReplicationRecoveryPlansImpl {
34566
34566
  spec: failoverCancelOperationSpec,
34567
34567
  });
34568
34568
  const poller = yield coreLro.createHttpPoller(lro, {
34569
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34570
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
34569
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
34570
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
34571
34571
  });
34572
34572
  yield poller.poll();
34573
34573
  return poller;
@@ -34582,7 +34582,7 @@ class ReplicationRecoveryPlansImpl {
34582
34582
  * @param options The options parameters.
34583
34583
  */
34584
34584
  beginFailoverCancelAndWait(resourceName, resourceGroupName, recoveryPlanName, options) {
34585
- return tslib.__awaiter(this, void 0, void 0, function* () {
34585
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34586
34586
  const poller = yield this.beginFailoverCancel(resourceName, resourceGroupName, recoveryPlanName, options);
34587
34587
  return poller.pollUntilDone();
34588
34588
  });
@@ -34596,17 +34596,17 @@ class ReplicationRecoveryPlansImpl {
34596
34596
  * @param options The options parameters.
34597
34597
  */
34598
34598
  beginFailoverCommit(resourceName, resourceGroupName, recoveryPlanName, options) {
34599
- return tslib.__awaiter(this, void 0, void 0, function* () {
34600
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34599
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34600
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34601
34601
  return this.client.sendOperationRequest(args, spec);
34602
34602
  });
34603
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34603
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34604
34604
  var _a;
34605
34605
  let currentRawResponse = undefined;
34606
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
34606
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
34607
34607
  const callback = (rawResponse, flatResponse) => {
34608
34608
  currentRawResponse = rawResponse;
34609
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
34609
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
34610
34610
  };
34611
34611
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
34612
34612
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -34625,8 +34625,8 @@ class ReplicationRecoveryPlansImpl {
34625
34625
  spec: failoverCommitOperationSpec,
34626
34626
  });
34627
34627
  const poller = yield coreLro.createHttpPoller(lro, {
34628
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34629
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
34628
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
34629
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
34630
34630
  });
34631
34631
  yield poller.poll();
34632
34632
  return poller;
@@ -34641,7 +34641,7 @@ class ReplicationRecoveryPlansImpl {
34641
34641
  * @param options The options parameters.
34642
34642
  */
34643
34643
  beginFailoverCommitAndWait(resourceName, resourceGroupName, recoveryPlanName, options) {
34644
- return tslib.__awaiter(this, void 0, void 0, function* () {
34644
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34645
34645
  const poller = yield this.beginFailoverCommit(resourceName, resourceGroupName, recoveryPlanName, options);
34646
34646
  return poller.pollUntilDone();
34647
34647
  });
@@ -34656,17 +34656,17 @@ class ReplicationRecoveryPlansImpl {
34656
34656
  * @param options The options parameters.
34657
34657
  */
34658
34658
  beginPlannedFailover(resourceName, resourceGroupName, recoveryPlanName, input, options) {
34659
- return tslib.__awaiter(this, void 0, void 0, function* () {
34660
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34659
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34660
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34661
34661
  return this.client.sendOperationRequest(args, spec);
34662
34662
  });
34663
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34663
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34664
34664
  var _a;
34665
34665
  let currentRawResponse = undefined;
34666
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
34666
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
34667
34667
  const callback = (rawResponse, flatResponse) => {
34668
34668
  currentRawResponse = rawResponse;
34669
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
34669
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
34670
34670
  };
34671
34671
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
34672
34672
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -34691,8 +34691,8 @@ class ReplicationRecoveryPlansImpl {
34691
34691
  spec: plannedFailoverOperationSpec,
34692
34692
  });
34693
34693
  const poller = yield coreLro.createHttpPoller(lro, {
34694
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34695
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
34694
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
34695
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
34696
34696
  });
34697
34697
  yield poller.poll();
34698
34698
  return poller;
@@ -34708,7 +34708,7 @@ class ReplicationRecoveryPlansImpl {
34708
34708
  * @param options The options parameters.
34709
34709
  */
34710
34710
  beginPlannedFailoverAndWait(resourceName, resourceGroupName, recoveryPlanName, input, options) {
34711
- return tslib.__awaiter(this, void 0, void 0, function* () {
34711
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34712
34712
  const poller = yield this.beginPlannedFailover(resourceName, resourceGroupName, recoveryPlanName, input, options);
34713
34713
  return poller.pollUntilDone();
34714
34714
  });
@@ -34722,17 +34722,17 @@ class ReplicationRecoveryPlansImpl {
34722
34722
  * @param options The options parameters.
34723
34723
  */
34724
34724
  beginReprotect(resourceName, resourceGroupName, recoveryPlanName, options) {
34725
- return tslib.__awaiter(this, void 0, void 0, function* () {
34726
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34725
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34726
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34727
34727
  return this.client.sendOperationRequest(args, spec);
34728
34728
  });
34729
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34729
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34730
34730
  var _a;
34731
34731
  let currentRawResponse = undefined;
34732
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
34732
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
34733
34733
  const callback = (rawResponse, flatResponse) => {
34734
34734
  currentRawResponse = rawResponse;
34735
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
34735
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
34736
34736
  };
34737
34737
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
34738
34738
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -34751,8 +34751,8 @@ class ReplicationRecoveryPlansImpl {
34751
34751
  spec: reprotectOperationSpec,
34752
34752
  });
34753
34753
  const poller = yield coreLro.createHttpPoller(lro, {
34754
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34755
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
34754
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
34755
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
34756
34756
  });
34757
34757
  yield poller.poll();
34758
34758
  return poller;
@@ -34767,7 +34767,7 @@ class ReplicationRecoveryPlansImpl {
34767
34767
  * @param options The options parameters.
34768
34768
  */
34769
34769
  beginReprotectAndWait(resourceName, resourceGroupName, recoveryPlanName, options) {
34770
- return tslib.__awaiter(this, void 0, void 0, function* () {
34770
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34771
34771
  const poller = yield this.beginReprotect(resourceName, resourceGroupName, recoveryPlanName, options);
34772
34772
  return poller.pollUntilDone();
34773
34773
  });
@@ -34782,17 +34782,17 @@ class ReplicationRecoveryPlansImpl {
34782
34782
  * @param options The options parameters.
34783
34783
  */
34784
34784
  beginTestFailover(resourceName, resourceGroupName, recoveryPlanName, input, options) {
34785
- return tslib.__awaiter(this, void 0, void 0, function* () {
34786
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34785
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34786
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34787
34787
  return this.client.sendOperationRequest(args, spec);
34788
34788
  });
34789
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34789
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34790
34790
  var _a;
34791
34791
  let currentRawResponse = undefined;
34792
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
34792
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
34793
34793
  const callback = (rawResponse, flatResponse) => {
34794
34794
  currentRawResponse = rawResponse;
34795
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
34795
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
34796
34796
  };
34797
34797
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
34798
34798
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -34817,8 +34817,8 @@ class ReplicationRecoveryPlansImpl {
34817
34817
  spec: testFailoverOperationSpec,
34818
34818
  });
34819
34819
  const poller = yield coreLro.createHttpPoller(lro, {
34820
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34821
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
34820
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
34821
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
34822
34822
  });
34823
34823
  yield poller.poll();
34824
34824
  return poller;
@@ -34834,7 +34834,7 @@ class ReplicationRecoveryPlansImpl {
34834
34834
  * @param options The options parameters.
34835
34835
  */
34836
34836
  beginTestFailoverAndWait(resourceName, resourceGroupName, recoveryPlanName, input, options) {
34837
- return tslib.__awaiter(this, void 0, void 0, function* () {
34837
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34838
34838
  const poller = yield this.beginTestFailover(resourceName, resourceGroupName, recoveryPlanName, input, options);
34839
34839
  return poller.pollUntilDone();
34840
34840
  });
@@ -34849,17 +34849,17 @@ class ReplicationRecoveryPlansImpl {
34849
34849
  * @param options The options parameters.
34850
34850
  */
34851
34851
  beginTestFailoverCleanup(resourceName, resourceGroupName, recoveryPlanName, input, options) {
34852
- return tslib.__awaiter(this, void 0, void 0, function* () {
34853
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34852
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34853
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34854
34854
  return this.client.sendOperationRequest(args, spec);
34855
34855
  });
34856
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34856
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34857
34857
  var _a;
34858
34858
  let currentRawResponse = undefined;
34859
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
34859
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
34860
34860
  const callback = (rawResponse, flatResponse) => {
34861
34861
  currentRawResponse = rawResponse;
34862
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
34862
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
34863
34863
  };
34864
34864
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
34865
34865
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -34884,8 +34884,8 @@ class ReplicationRecoveryPlansImpl {
34884
34884
  spec: testFailoverCleanupOperationSpec,
34885
34885
  });
34886
34886
  const poller = yield coreLro.createHttpPoller(lro, {
34887
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34888
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
34887
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
34888
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
34889
34889
  });
34890
34890
  yield poller.poll();
34891
34891
  return poller;
@@ -34901,7 +34901,7 @@ class ReplicationRecoveryPlansImpl {
34901
34901
  * @param options The options parameters.
34902
34902
  */
34903
34903
  beginTestFailoverCleanupAndWait(resourceName, resourceGroupName, recoveryPlanName, input, options) {
34904
- return tslib.__awaiter(this, void 0, void 0, function* () {
34904
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34905
34905
  const poller = yield this.beginTestFailoverCleanup(resourceName, resourceGroupName, recoveryPlanName, input, options);
34906
34906
  return poller.pollUntilDone();
34907
34907
  });
@@ -34916,17 +34916,17 @@ class ReplicationRecoveryPlansImpl {
34916
34916
  * @param options The options parameters.
34917
34917
  */
34918
34918
  beginUnplannedFailover(resourceName, resourceGroupName, recoveryPlanName, input, options) {
34919
- return tslib.__awaiter(this, void 0, void 0, function* () {
34920
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34919
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34920
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34921
34921
  return this.client.sendOperationRequest(args, spec);
34922
34922
  });
34923
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34923
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
34924
34924
  var _a;
34925
34925
  let currentRawResponse = undefined;
34926
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
34926
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
34927
34927
  const callback = (rawResponse, flatResponse) => {
34928
34928
  currentRawResponse = rawResponse;
34929
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
34929
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
34930
34930
  };
34931
34931
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
34932
34932
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -34951,8 +34951,8 @@ class ReplicationRecoveryPlansImpl {
34951
34951
  spec: unplannedFailoverOperationSpec,
34952
34952
  });
34953
34953
  const poller = yield coreLro.createHttpPoller(lro, {
34954
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34955
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
34954
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
34955
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
34956
34956
  });
34957
34957
  yield poller.poll();
34958
34958
  return poller;
@@ -34968,7 +34968,7 @@ class ReplicationRecoveryPlansImpl {
34968
34968
  * @param options The options parameters.
34969
34969
  */
34970
34970
  beginUnplannedFailoverAndWait(resourceName, resourceGroupName, recoveryPlanName, input, options) {
34971
- return tslib.__awaiter(this, void 0, void 0, function* () {
34971
+ return tslib.__awaiter(this, undefined, undefined, function* () {
34972
34972
  const poller = yield this.beginUnplannedFailover(resourceName, resourceGroupName, recoveryPlanName, input, options);
34973
34973
  return poller.pollUntilDone();
34974
34974
  });
@@ -35403,17 +35403,17 @@ class ReplicationVaultHealthImpl {
35403
35403
  * @param options The options parameters.
35404
35404
  */
35405
35405
  beginRefresh(resourceName, resourceGroupName, options) {
35406
- return tslib.__awaiter(this, void 0, void 0, function* () {
35407
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
35406
+ return tslib.__awaiter(this, undefined, undefined, function* () {
35407
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
35408
35408
  return this.client.sendOperationRequest(args, spec);
35409
35409
  });
35410
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
35410
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
35411
35411
  var _a;
35412
35412
  let currentRawResponse = undefined;
35413
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
35413
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
35414
35414
  const callback = (rawResponse, flatResponse) => {
35415
35415
  currentRawResponse = rawResponse;
35416
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
35416
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
35417
35417
  };
35418
35418
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
35419
35419
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -35432,8 +35432,8 @@ class ReplicationVaultHealthImpl {
35432
35432
  spec: refreshOperationSpec,
35433
35433
  });
35434
35434
  const poller = yield coreLro.createHttpPoller(lro, {
35435
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
35436
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
35435
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
35436
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
35437
35437
  });
35438
35438
  yield poller.poll();
35439
35439
  return poller;
@@ -35447,7 +35447,7 @@ class ReplicationVaultHealthImpl {
35447
35447
  * @param options The options parameters.
35448
35448
  */
35449
35449
  beginRefreshAndWait(resourceName, resourceGroupName, options) {
35450
- return tslib.__awaiter(this, void 0, void 0, function* () {
35450
+ return tslib.__awaiter(this, undefined, undefined, function* () {
35451
35451
  const poller = yield this.beginRefresh(resourceName, resourceGroupName, options);
35452
35452
  return poller.pollUntilDone();
35453
35453
  });
@@ -35535,7 +35535,7 @@ class ReplicationVaultSettingImpl {
35535
35535
  return this;
35536
35536
  },
35537
35537
  byPage: (settings) => {
35538
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
35538
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
35539
35539
  throw new Error("maxPageSize is not supported by this operation.");
35540
35540
  }
35541
35541
  return this.listPagingPage(resourceName, resourceGroupName, options, settings);
@@ -35545,7 +35545,7 @@ class ReplicationVaultSettingImpl {
35545
35545
  listPagingPage(resourceName, resourceGroupName, options, settings) {
35546
35546
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
35547
35547
  let result;
35548
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
35548
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
35549
35549
  if (!continuationToken) {
35550
35550
  result = yield tslib.__await(this._list(resourceName, resourceGroupName, options));
35551
35551
  let page = result.value || [];
@@ -35613,17 +35613,17 @@ class ReplicationVaultSettingImpl {
35613
35613
  * @param options The options parameters.
35614
35614
  */
35615
35615
  beginCreate(resourceName, resourceGroupName, vaultSettingName, input, options) {
35616
- return tslib.__awaiter(this, void 0, void 0, function* () {
35617
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
35616
+ return tslib.__awaiter(this, undefined, undefined, function* () {
35617
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
35618
35618
  return this.client.sendOperationRequest(args, spec);
35619
35619
  });
35620
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
35620
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
35621
35621
  var _a;
35622
35622
  let currentRawResponse = undefined;
35623
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
35623
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
35624
35624
  const callback = (rawResponse, flatResponse) => {
35625
35625
  currentRawResponse = rawResponse;
35626
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
35626
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
35627
35627
  };
35628
35628
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
35629
35629
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -35648,8 +35648,8 @@ class ReplicationVaultSettingImpl {
35648
35648
  spec: createOperationSpec,
35649
35649
  });
35650
35650
  const poller = yield coreLro.createHttpPoller(lro, {
35651
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
35652
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
35651
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
35652
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
35653
35653
  });
35654
35654
  yield poller.poll();
35655
35655
  return poller;
@@ -35665,7 +35665,7 @@ class ReplicationVaultSettingImpl {
35665
35665
  * @param options The options parameters.
35666
35666
  */
35667
35667
  beginCreateAndWait(resourceName, resourceGroupName, vaultSettingName, input, options) {
35668
- return tslib.__awaiter(this, void 0, void 0, function* () {
35668
+ return tslib.__awaiter(this, undefined, undefined, function* () {
35669
35669
  const poller = yield this.beginCreate(resourceName, resourceGroupName, vaultSettingName, input, options);
35670
35670
  return poller.pollUntilDone();
35671
35671
  });
@@ -35806,10 +35806,10 @@ class SiteRecoveryManagementClient extends coreClient__namespace.ServiceClient {
35806
35806
  : `${packageDetails}`;
35807
35807
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
35808
35808
  userAgentPrefix,
35809
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
35809
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
35810
35810
  super(optionsWithDefaults);
35811
35811
  let bearerTokenAuthenticationPolicyFound = false;
35812
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
35812
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
35813
35813
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
35814
35814
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
35815
35815
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -35823,7 +35823,7 @@ class SiteRecoveryManagementClient extends coreClient__namespace.ServiceClient {
35823
35823
  });
35824
35824
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
35825
35825
  credential: credentials,
35826
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
35826
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
35827
35827
  challengeCallbacks: {
35828
35828
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
35829
35829
  },
@@ -35879,7 +35879,7 @@ class SiteRecoveryManagementClient extends coreClient__namespace.ServiceClient {
35879
35879
  const apiVersionPolicy = {
35880
35880
  name: "CustomApiVersionPolicy",
35881
35881
  sendRequest(request, next) {
35882
- return tslib.__awaiter(this, void 0, void 0, function* () {
35882
+ return tslib.__awaiter(this, undefined, undefined, function* () {
35883
35883
  const param = request.url.split("?");
35884
35884
  if (param.length > 1) {
35885
35885
  const newParams = param[1].split("&").map((item) => {