@azure/arm-recoveryservicesbackup 13.1.1-alpha.20250205.1 → 13.1.1-alpha.20250210.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js 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 === undefined ? undefined : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
51
51
  }
52
52
  function setContinuationToken(page, continuationToken) {
53
53
  var _a;
54
54
  if (typeof page !== "object" || page === null || !continuationToken) {
55
55
  return;
56
56
  }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -987,7 +987,7 @@ function createLroSpec(inputs) {
987
987
  sendInitialRequest: () => sendOperationFn(args, spec),
988
988
  sendPollRequest: (path, options) => {
989
989
  const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
990
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
990
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
991
991
  },
992
992
  };
993
993
  }
@@ -11145,7 +11145,7 @@ class BackupProtectionIntentImpl {
11145
11145
  return this;
11146
11146
  },
11147
11147
  byPage: (settings) => {
11148
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
11148
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11149
11149
  throw new Error("maxPageSize is not supported by this operation.");
11150
11150
  }
11151
11151
  return this.listPagingPage(vaultName, resourceGroupName, options, settings);
@@ -11155,7 +11155,7 @@ class BackupProtectionIntentImpl {
11155
11155
  listPagingPage(vaultName, resourceGroupName, options, settings) {
11156
11156
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
11157
11157
  let result;
11158
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
11158
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
11159
11159
  if (!continuationToken) {
11160
11160
  result = yield tslib.__await(this._list(vaultName, resourceGroupName, options));
11161
11161
  let page = result.value || [];
@@ -11291,7 +11291,7 @@ class BackupUsageSummariesImpl {
11291
11291
  return this;
11292
11292
  },
11293
11293
  byPage: (settings) => {
11294
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
11294
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11295
11295
  throw new Error("maxPageSize is not supported by this operation.");
11296
11296
  }
11297
11297
  return this.listPagingPage(vaultName, resourceGroupName, options, settings);
@@ -11392,7 +11392,7 @@ class OperationsImpl {
11392
11392
  return this;
11393
11393
  },
11394
11394
  byPage: (settings) => {
11395
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
11395
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11396
11396
  throw new Error("maxPageSize is not supported by this operation.");
11397
11397
  }
11398
11398
  return this.listPagingPage(options, settings);
@@ -11402,7 +11402,7 @@ class OperationsImpl {
11402
11402
  listPagingPage(options, settings) {
11403
11403
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
11404
11404
  let result;
11405
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
11405
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
11406
11406
  if (!continuationToken) {
11407
11407
  result = yield tslib.__await(this._list(options));
11408
11408
  let page = result.value || [];
@@ -11730,17 +11730,17 @@ class PrivateEndpointConnectionOperationsImpl {
11730
11730
  * @param options The options parameters.
11731
11731
  */
11732
11732
  beginPut(vaultName, resourceGroupName, privateEndpointConnectionName, parameters, options) {
11733
- return tslib.__awaiter(this, undefined, undefined, function* () {
11734
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11733
+ return tslib.__awaiter(this, void 0, void 0, function* () {
11734
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11735
11735
  return this.client.sendOperationRequest(args, spec);
11736
11736
  });
11737
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11737
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11738
11738
  var _a;
11739
11739
  let currentRawResponse = undefined;
11740
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
11740
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
11741
11741
  const callback = (rawResponse, flatResponse) => {
11742
11742
  currentRawResponse = rawResponse;
11743
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
11743
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
11744
11744
  };
11745
11745
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
11746
11746
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -11765,8 +11765,8 @@ class PrivateEndpointConnectionOperationsImpl {
11765
11765
  spec: putOperationSpec$1,
11766
11766
  });
11767
11767
  const poller = yield coreLro.createHttpPoller(lro, {
11768
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
11769
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
11768
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11769
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
11770
11770
  });
11771
11771
  yield poller.poll();
11772
11772
  return poller;
@@ -11782,7 +11782,7 @@ class PrivateEndpointConnectionOperationsImpl {
11782
11782
  * @param options The options parameters.
11783
11783
  */
11784
11784
  beginPutAndWait(vaultName, resourceGroupName, privateEndpointConnectionName, parameters, options) {
11785
- return tslib.__awaiter(this, undefined, undefined, function* () {
11785
+ return tslib.__awaiter(this, void 0, void 0, function* () {
11786
11786
  const poller = yield this.beginPut(vaultName, resourceGroupName, privateEndpointConnectionName, parameters, options);
11787
11787
  return poller.pollUntilDone();
11788
11788
  });
@@ -11796,17 +11796,17 @@ class PrivateEndpointConnectionOperationsImpl {
11796
11796
  * @param options The options parameters.
11797
11797
  */
11798
11798
  beginDelete(vaultName, resourceGroupName, privateEndpointConnectionName, options) {
11799
- return tslib.__awaiter(this, undefined, undefined, function* () {
11800
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11799
+ return tslib.__awaiter(this, void 0, void 0, function* () {
11800
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11801
11801
  return this.client.sendOperationRequest(args, spec);
11802
11802
  });
11803
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11803
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11804
11804
  var _a;
11805
11805
  let currentRawResponse = undefined;
11806
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
11806
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
11807
11807
  const callback = (rawResponse, flatResponse) => {
11808
11808
  currentRawResponse = rawResponse;
11809
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
11809
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
11810
11810
  };
11811
11811
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
11812
11812
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -11830,8 +11830,8 @@ class PrivateEndpointConnectionOperationsImpl {
11830
11830
  spec: deleteOperationSpec$3,
11831
11831
  });
11832
11832
  const poller = yield coreLro.createHttpPoller(lro, {
11833
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
11834
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
11833
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11834
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
11835
11835
  });
11836
11836
  yield poller.poll();
11837
11837
  return poller;
@@ -11846,7 +11846,7 @@ class PrivateEndpointConnectionOperationsImpl {
11846
11846
  * @param options The options parameters.
11847
11847
  */
11848
11848
  beginDeleteAndWait(vaultName, resourceGroupName, privateEndpointConnectionName, options) {
11849
- return tslib.__awaiter(this, undefined, undefined, function* () {
11849
+ return tslib.__awaiter(this, void 0, void 0, function* () {
11850
11850
  const poller = yield this.beginDelete(vaultName, resourceGroupName, privateEndpointConnectionName, options);
11851
11851
  return poller.pollUntilDone();
11852
11852
  });
@@ -12321,7 +12321,7 @@ class RecoveryPointsImpl {
12321
12321
  return this;
12322
12322
  },
12323
12323
  byPage: (settings) => {
12324
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
12324
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12325
12325
  throw new Error("maxPageSize is not supported by this operation.");
12326
12326
  }
12327
12327
  return this.listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, options, settings);
@@ -12331,7 +12331,7 @@ class RecoveryPointsImpl {
12331
12331
  listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, options, settings) {
12332
12332
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
12333
12333
  let result;
12334
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
12334
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
12335
12335
  if (!continuationToken) {
12336
12336
  result = yield tslib.__await(this._list(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, options));
12337
12337
  let page = result.value || [];
@@ -12542,17 +12542,17 @@ class RestoresImpl {
12542
12542
  * @param options The options parameters.
12543
12543
  */
12544
12544
  beginTrigger(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointId, parameters, options) {
12545
- return tslib.__awaiter(this, undefined, undefined, function* () {
12546
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12545
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12546
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12547
12547
  return this.client.sendOperationRequest(args, spec);
12548
12548
  });
12549
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12549
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12550
12550
  var _a;
12551
12551
  let currentRawResponse = undefined;
12552
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
12552
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
12553
12553
  const callback = (rawResponse, flatResponse) => {
12554
12554
  currentRawResponse = rawResponse;
12555
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
12555
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
12556
12556
  };
12557
12557
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
12558
12558
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -12580,8 +12580,8 @@ class RestoresImpl {
12580
12580
  spec: triggerOperationSpec$3,
12581
12581
  });
12582
12582
  const poller = yield coreLro.createHttpPoller(lro, {
12583
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
12584
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
12583
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12584
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
12585
12585
  });
12586
12586
  yield poller.poll();
12587
12587
  return poller;
@@ -12602,7 +12602,7 @@ class RestoresImpl {
12602
12602
  * @param options The options parameters.
12603
12603
  */
12604
12604
  beginTriggerAndWait(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointId, parameters, options) {
12605
- return tslib.__awaiter(this, undefined, undefined, function* () {
12605
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12606
12606
  const poller = yield this.beginTrigger(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointId, parameters, options);
12607
12607
  return poller.pollUntilDone();
12608
12608
  });
@@ -12679,7 +12679,7 @@ class BackupPoliciesImpl {
12679
12679
  return this;
12680
12680
  },
12681
12681
  byPage: (settings) => {
12682
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
12682
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12683
12683
  throw new Error("maxPageSize is not supported by this operation.");
12684
12684
  }
12685
12685
  return this.listPagingPage(vaultName, resourceGroupName, options, settings);
@@ -12689,7 +12689,7 @@ class BackupPoliciesImpl {
12689
12689
  listPagingPage(vaultName, resourceGroupName, options, settings) {
12690
12690
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
12691
12691
  let result;
12692
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
12692
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
12693
12693
  if (!continuationToken) {
12694
12694
  result = yield tslib.__await(this._list(vaultName, resourceGroupName, options));
12695
12695
  let page = result.value || [];
@@ -12849,17 +12849,17 @@ class ProtectionPoliciesImpl {
12849
12849
  * @param options The options parameters.
12850
12850
  */
12851
12851
  beginDelete(vaultName, resourceGroupName, policyName, options) {
12852
- return tslib.__awaiter(this, undefined, undefined, function* () {
12853
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12852
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12853
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12854
12854
  return this.client.sendOperationRequest(args, spec);
12855
12855
  });
12856
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12856
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12857
12857
  var _a;
12858
12858
  let currentRawResponse = undefined;
12859
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
12859
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
12860
12860
  const callback = (rawResponse, flatResponse) => {
12861
12861
  currentRawResponse = rawResponse;
12862
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
12862
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
12863
12863
  };
12864
12864
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
12865
12865
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -12878,8 +12878,8 @@ class ProtectionPoliciesImpl {
12878
12878
  spec: deleteOperationSpec$1,
12879
12879
  });
12880
12880
  const poller = yield coreLro.createHttpPoller(lro, {
12881
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
12882
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
12881
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12882
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
12883
12883
  });
12884
12884
  yield poller.poll();
12885
12885
  return poller;
@@ -12896,7 +12896,7 @@ class ProtectionPoliciesImpl {
12896
12896
  * @param options The options parameters.
12897
12897
  */
12898
12898
  beginDeleteAndWait(vaultName, resourceGroupName, policyName, options) {
12899
- return tslib.__awaiter(this, undefined, undefined, function* () {
12899
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12900
12900
  const poller = yield this.beginDelete(vaultName, resourceGroupName, policyName, options);
12901
12901
  return poller.pollUntilDone();
12902
12902
  });
@@ -13068,7 +13068,7 @@ class BackupJobsImpl {
13068
13068
  return this;
13069
13069
  },
13070
13070
  byPage: (settings) => {
13071
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13071
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13072
13072
  throw new Error("maxPageSize is not supported by this operation.");
13073
13073
  }
13074
13074
  return this.listPagingPage(vaultName, resourceGroupName, options, settings);
@@ -13078,7 +13078,7 @@ class BackupJobsImpl {
13078
13078
  listPagingPage(vaultName, resourceGroupName, options, settings) {
13079
13079
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
13080
13080
  let result;
13081
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
13081
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
13082
13082
  if (!continuationToken) {
13083
13083
  result = yield tslib.__await(this._list(vaultName, resourceGroupName, options));
13084
13084
  let page = result.value || [];
@@ -13488,7 +13488,7 @@ class BackupProtectedItemsImpl {
13488
13488
  return this;
13489
13489
  },
13490
13490
  byPage: (settings) => {
13491
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13491
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13492
13492
  throw new Error("maxPageSize is not supported by this operation.");
13493
13493
  }
13494
13494
  return this.listPagingPage(vaultName, resourceGroupName, options, settings);
@@ -13498,7 +13498,7 @@ class BackupProtectedItemsImpl {
13498
13498
  listPagingPage(vaultName, resourceGroupName, options, settings) {
13499
13499
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
13500
13500
  let result;
13501
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
13501
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
13502
13502
  if (!continuationToken) {
13503
13503
  result = yield tslib.__await(this._list(vaultName, resourceGroupName, options));
13504
13504
  let page = result.value || [];
@@ -13686,17 +13686,17 @@ class ValidateOperationImpl {
13686
13686
  * @param options The options parameters.
13687
13687
  */
13688
13688
  beginTrigger(vaultName, resourceGroupName, parameters, options) {
13689
- return tslib.__awaiter(this, undefined, undefined, function* () {
13690
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13689
+ return tslib.__awaiter(this, void 0, void 0, function* () {
13690
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13691
13691
  return this.client.sendOperationRequest(args, spec);
13692
13692
  });
13693
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13693
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13694
13694
  var _a;
13695
13695
  let currentRawResponse = undefined;
13696
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
13696
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
13697
13697
  const callback = (rawResponse, flatResponse) => {
13698
13698
  currentRawResponse = rawResponse;
13699
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
13699
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
13700
13700
  };
13701
13701
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
13702
13702
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -13715,8 +13715,8 @@ class ValidateOperationImpl {
13715
13715
  spec: triggerOperationSpec$1,
13716
13716
  });
13717
13717
  const poller = yield coreLro.createHttpPoller(lro, {
13718
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
13719
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
13718
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
13719
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
13720
13720
  });
13721
13721
  yield poller.poll();
13722
13722
  return poller;
@@ -13732,7 +13732,7 @@ class ValidateOperationImpl {
13732
13732
  * @param options The options parameters.
13733
13733
  */
13734
13734
  beginTriggerAndWait(vaultName, resourceGroupName, parameters, options) {
13735
- return tslib.__awaiter(this, undefined, undefined, function* () {
13735
+ return tslib.__awaiter(this, void 0, void 0, function* () {
13736
13736
  const poller = yield this.beginTrigger(vaultName, resourceGroupName, parameters, options);
13737
13737
  return poller.pollUntilDone();
13738
13738
  });
@@ -13909,7 +13909,7 @@ class BackupEnginesImpl {
13909
13909
  return this;
13910
13910
  },
13911
13911
  byPage: (settings) => {
13912
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13912
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13913
13913
  throw new Error("maxPageSize is not supported by this operation.");
13914
13914
  }
13915
13915
  return this.listPagingPage(vaultName, resourceGroupName, options, settings);
@@ -13919,7 +13919,7 @@ class BackupEnginesImpl {
13919
13919
  listPagingPage(vaultName, resourceGroupName, options, settings) {
13920
13920
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
13921
13921
  let result;
13922
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
13922
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
13923
13923
  if (!continuationToken) {
13924
13924
  result = yield tslib.__await(this._list(vaultName, resourceGroupName, options));
13925
13925
  let page = result.value || [];
@@ -14153,7 +14153,7 @@ class ProtectableContainersImpl {
14153
14153
  return this;
14154
14154
  },
14155
14155
  byPage: (settings) => {
14156
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14156
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14157
14157
  throw new Error("maxPageSize is not supported by this operation.");
14158
14158
  }
14159
14159
  return this.listPagingPage(vaultName, resourceGroupName, fabricName, options, settings);
@@ -14163,7 +14163,7 @@ class ProtectableContainersImpl {
14163
14163
  listPagingPage(vaultName, resourceGroupName, fabricName, options, settings) {
14164
14164
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
14165
14165
  let result;
14166
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
14166
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14167
14167
  if (!continuationToken) {
14168
14168
  result = yield tslib.__await(this._list(vaultName, resourceGroupName, fabricName, options));
14169
14169
  let page = result.value || [];
@@ -14313,17 +14313,17 @@ class ProtectionContainersImpl {
14313
14313
  * @param options The options parameters.
14314
14314
  */
14315
14315
  beginRegister(vaultName, resourceGroupName, fabricName, containerName, parameters, options) {
14316
- return tslib.__awaiter(this, undefined, undefined, function* () {
14317
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14316
+ return tslib.__awaiter(this, void 0, void 0, function* () {
14317
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14318
14318
  return this.client.sendOperationRequest(args, spec);
14319
14319
  });
14320
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14320
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14321
14321
  var _a;
14322
14322
  let currentRawResponse = undefined;
14323
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
14323
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
14324
14324
  const callback = (rawResponse, flatResponse) => {
14325
14325
  currentRawResponse = rawResponse;
14326
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
14326
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
14327
14327
  };
14328
14328
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
14329
14329
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -14349,8 +14349,8 @@ class ProtectionContainersImpl {
14349
14349
  spec: registerOperationSpec,
14350
14350
  });
14351
14351
  const poller = yield coreLro.createHttpPoller(lro, {
14352
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
14353
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
14352
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
14353
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
14354
14354
  });
14355
14355
  yield poller.poll();
14356
14356
  return poller;
@@ -14370,7 +14370,7 @@ class ProtectionContainersImpl {
14370
14370
  * @param options The options parameters.
14371
14371
  */
14372
14372
  beginRegisterAndWait(vaultName, resourceGroupName, fabricName, containerName, parameters, options) {
14373
- return tslib.__awaiter(this, undefined, undefined, function* () {
14373
+ return tslib.__awaiter(this, void 0, void 0, function* () {
14374
14374
  const poller = yield this.beginRegister(vaultName, resourceGroupName, fabricName, containerName, parameters, options);
14375
14375
  return poller.pollUntilDone();
14376
14376
  });
@@ -14580,7 +14580,7 @@ class BackupWorkloadItemsImpl {
14580
14580
  return this;
14581
14581
  },
14582
14582
  byPage: (settings) => {
14583
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14583
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14584
14584
  throw new Error("maxPageSize is not supported by this operation.");
14585
14585
  }
14586
14586
  return this.listPagingPage(vaultName, resourceGroupName, fabricName, containerName, options, settings);
@@ -14590,7 +14590,7 @@ class BackupWorkloadItemsImpl {
14590
14590
  listPagingPage(vaultName, resourceGroupName, fabricName, containerName, options, settings) {
14591
14591
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
14592
14592
  let result;
14593
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
14593
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14594
14594
  if (!continuationToken) {
14595
14595
  result = yield tslib.__await(this._list(vaultName, resourceGroupName, fabricName, containerName, options));
14596
14596
  let page = result.value || [];
@@ -15255,7 +15255,7 @@ class BackupProtectableItemsImpl {
15255
15255
  return this;
15256
15256
  },
15257
15257
  byPage: (settings) => {
15258
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
15258
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15259
15259
  throw new Error("maxPageSize is not supported by this operation.");
15260
15260
  }
15261
15261
  return this.listPagingPage(vaultName, resourceGroupName, options, settings);
@@ -15265,7 +15265,7 @@ class BackupProtectableItemsImpl {
15265
15265
  listPagingPage(vaultName, resourceGroupName, options, settings) {
15266
15266
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
15267
15267
  let result;
15268
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
15268
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15269
15269
  if (!continuationToken) {
15270
15270
  result = yield tslib.__await(this._list(vaultName, resourceGroupName, options));
15271
15271
  let page = result.value || [];
@@ -15409,7 +15409,7 @@ class BackupProtectionContainersImpl {
15409
15409
  return this;
15410
15410
  },
15411
15411
  byPage: (settings) => {
15412
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
15412
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15413
15413
  throw new Error("maxPageSize is not supported by this operation.");
15414
15414
  }
15415
15415
  return this.listPagingPage(vaultName, resourceGroupName, options, settings);
@@ -15419,7 +15419,7 @@ class BackupProtectionContainersImpl {
15419
15419
  listPagingPage(vaultName, resourceGroupName, options, settings) {
15420
15420
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
15421
15421
  let result;
15422
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
15422
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15423
15423
  if (!continuationToken) {
15424
15424
  result = yield tslib.__await(this._list(vaultName, resourceGroupName, options));
15425
15425
  let page = result.value || [];
@@ -15557,7 +15557,7 @@ class DeletedProtectionContainersImpl {
15557
15557
  return this;
15558
15558
  },
15559
15559
  byPage: (settings) => {
15560
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
15560
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15561
15561
  throw new Error("maxPageSize is not supported by this operation.");
15562
15562
  }
15563
15563
  return this.listPagingPage(resourceGroupName, vaultName, options, settings);
@@ -15567,7 +15567,7 @@ class DeletedProtectionContainersImpl {
15567
15567
  listPagingPage(resourceGroupName, vaultName, options, settings) {
15568
15568
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
15569
15569
  let result;
15570
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
15570
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15571
15571
  if (!continuationToken) {
15572
15572
  result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
15573
15573
  let page = result.value || [];
@@ -15766,7 +15766,7 @@ class RecoveryPointsRecommendedForMoveImpl {
15766
15766
  return this;
15767
15767
  },
15768
15768
  byPage: (settings) => {
15769
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
15769
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15770
15770
  throw new Error("maxPageSize is not supported by this operation.");
15771
15771
  }
15772
15772
  return this.listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters, options, settings);
@@ -15776,7 +15776,7 @@ class RecoveryPointsRecommendedForMoveImpl {
15776
15776
  listPagingPage(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters, options, settings) {
15777
15777
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
15778
15778
  let result;
15779
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
15779
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15780
15780
  if (!continuationToken) {
15781
15781
  result = yield tslib.__await(this._list(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters, options));
15782
15782
  let page = result.value || [];
@@ -15948,7 +15948,7 @@ class ResourceGuardProxiesImpl {
15948
15948
  return this;
15949
15949
  },
15950
15950
  byPage: (settings) => {
15951
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
15951
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15952
15952
  throw new Error("maxPageSize is not supported by this operation.");
15953
15953
  }
15954
15954
  return this.getPagingPage(vaultName, resourceGroupName, options, settings);
@@ -15958,7 +15958,7 @@ class ResourceGuardProxiesImpl {
15958
15958
  getPagingPage(vaultName, resourceGroupName, options, settings) {
15959
15959
  return tslib.__asyncGenerator(this, arguments, function* getPagingPage_1() {
15960
15960
  let result;
15961
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
15961
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15962
15962
  if (!continuationToken) {
15963
15963
  result = yield tslib.__await(this._get(vaultName, resourceGroupName, options));
15964
15964
  let page = result.value || [];
@@ -16259,17 +16259,17 @@ class FetchTieringCostImpl {
16259
16259
  * @param options The options parameters.
16260
16260
  */
16261
16261
  beginPost(resourceGroupName, vaultName, parameters, options) {
16262
- return tslib.__awaiter(this, undefined, undefined, function* () {
16263
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16262
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16263
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16264
16264
  return this.client.sendOperationRequest(args, spec);
16265
16265
  });
16266
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16266
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16267
16267
  var _a;
16268
16268
  let currentRawResponse = undefined;
16269
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16269
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16270
16270
  const callback = (rawResponse, flatResponse) => {
16271
16271
  currentRawResponse = rawResponse;
16272
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16272
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16273
16273
  };
16274
16274
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16275
16275
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16288,8 +16288,8 @@ class FetchTieringCostImpl {
16288
16288
  spec: postOperationSpec,
16289
16289
  });
16290
16290
  const poller = yield coreLro.createHttpPoller(lro, {
16291
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16292
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
16291
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16292
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
16293
16293
  });
16294
16294
  yield poller.poll();
16295
16295
  return poller;
@@ -16306,7 +16306,7 @@ class FetchTieringCostImpl {
16306
16306
  * @param options The options parameters.
16307
16307
  */
16308
16308
  beginPostAndWait(resourceGroupName, vaultName, parameters, options) {
16309
- return tslib.__awaiter(this, undefined, undefined, function* () {
16309
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16310
16310
  const poller = yield this.beginPost(resourceGroupName, vaultName, parameters, options);
16311
16311
  return poller.pollUntilDone();
16312
16312
  });
@@ -16489,10 +16489,10 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
16489
16489
  : `${packageDetails}`;
16490
16490
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
16491
16491
  userAgentPrefix,
16492
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
16492
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
16493
16493
  super(optionsWithDefaults);
16494
16494
  let bearerTokenAuthenticationPolicyFound = false;
16495
- if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
16495
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
16496
16496
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
16497
16497
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
16498
16498
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -16506,7 +16506,7 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
16506
16506
  });
16507
16507
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
16508
16508
  credential: credentials,
16509
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
16509
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
16510
16510
  challengeCallbacks: {
16511
16511
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
16512
16512
  },
@@ -16589,7 +16589,7 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
16589
16589
  const apiVersionPolicy = {
16590
16590
  name: "CustomApiVersionPolicy",
16591
16591
  sendRequest(request, next) {
16592
- return tslib.__awaiter(this, undefined, undefined, function* () {
16592
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16593
16593
  const param = request.url.split("?");
16594
16594
  if (param.length > 1) {
16595
16595
  const newParams = param[1].split("&").map((item) => {
@@ -16628,17 +16628,17 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
16628
16628
  * @param options The options parameters.
16629
16629
  */
16630
16630
  beginBMSPrepareDataMove(vaultName, resourceGroupName, parameters, options) {
16631
- return tslib.__awaiter(this, undefined, undefined, function* () {
16632
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16631
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16632
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16633
16633
  return this.sendOperationRequest(args, spec);
16634
16634
  });
16635
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16635
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16636
16636
  var _a;
16637
16637
  let currentRawResponse = undefined;
16638
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16638
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16639
16639
  const callback = (rawResponse, flatResponse) => {
16640
16640
  currentRawResponse = rawResponse;
16641
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16641
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16642
16642
  };
16643
16643
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16644
16644
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16657,8 +16657,8 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
16657
16657
  spec: bMSPrepareDataMoveOperationSpec,
16658
16658
  });
16659
16659
  const poller = yield coreLro.createHttpPoller(lro, {
16660
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16661
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
16660
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16661
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
16662
16662
  });
16663
16663
  yield poller.poll();
16664
16664
  return poller;
@@ -16673,7 +16673,7 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
16673
16673
  * @param options The options parameters.
16674
16674
  */
16675
16675
  beginBMSPrepareDataMoveAndWait(vaultName, resourceGroupName, parameters, options) {
16676
- return tslib.__awaiter(this, undefined, undefined, function* () {
16676
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16677
16677
  const poller = yield this.beginBMSPrepareDataMove(vaultName, resourceGroupName, parameters, options);
16678
16678
  return poller.pollUntilDone();
16679
16679
  });
@@ -16687,17 +16687,17 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
16687
16687
  * @param options The options parameters.
16688
16688
  */
16689
16689
  beginBMSTriggerDataMove(vaultName, resourceGroupName, parameters, options) {
16690
- return tslib.__awaiter(this, undefined, undefined, function* () {
16691
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16690
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16691
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16692
16692
  return this.sendOperationRequest(args, spec);
16693
16693
  });
16694
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16694
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16695
16695
  var _a;
16696
16696
  let currentRawResponse = undefined;
16697
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16697
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16698
16698
  const callback = (rawResponse, flatResponse) => {
16699
16699
  currentRawResponse = rawResponse;
16700
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16700
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16701
16701
  };
16702
16702
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16703
16703
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16716,8 +16716,8 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
16716
16716
  spec: bMSTriggerDataMoveOperationSpec,
16717
16717
  });
16718
16718
  const poller = yield coreLro.createHttpPoller(lro, {
16719
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16720
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
16719
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16720
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
16721
16721
  });
16722
16722
  yield poller.poll();
16723
16723
  return poller;
@@ -16732,7 +16732,7 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
16732
16732
  * @param options The options parameters.
16733
16733
  */
16734
16734
  beginBMSTriggerDataMoveAndWait(vaultName, resourceGroupName, parameters, options) {
16735
- return tslib.__awaiter(this, undefined, undefined, function* () {
16735
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16736
16736
  const poller = yield this.beginBMSTriggerDataMove(vaultName, resourceGroupName, parameters, options);
16737
16737
  return poller.pollUntilDone();
16738
16738
  });
@@ -16750,17 +16750,17 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
16750
16750
  * @param options The options parameters.
16751
16751
  */
16752
16752
  beginMoveRecoveryPoint(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointId, parameters, options) {
16753
- return tslib.__awaiter(this, undefined, undefined, function* () {
16754
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16753
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16754
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16755
16755
  return this.sendOperationRequest(args, spec);
16756
16756
  });
16757
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16757
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16758
16758
  var _a;
16759
16759
  let currentRawResponse = undefined;
16760
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16760
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16761
16761
  const callback = (rawResponse, flatResponse) => {
16762
16762
  currentRawResponse = rawResponse;
16763
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16763
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16764
16764
  };
16765
16765
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16766
16766
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16788,8 +16788,8 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
16788
16788
  spec: moveRecoveryPointOperationSpec,
16789
16789
  });
16790
16790
  const poller = yield coreLro.createHttpPoller(lro, {
16791
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16792
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
16791
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16792
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
16793
16793
  });
16794
16794
  yield poller.poll();
16795
16795
  return poller;
@@ -16808,7 +16808,7 @@ class RecoveryServicesBackupClient extends coreClient__namespace.ServiceClient {
16808
16808
  * @param options The options parameters.
16809
16809
  */
16810
16810
  beginMoveRecoveryPointAndWait(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointId, parameters, options) {
16811
- return tslib.__awaiter(this, undefined, undefined, function* () {
16811
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16812
16812
  const poller = yield this.beginMoveRecoveryPoint(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointId, parameters, options);
16813
16813
  return poller.pollUntilDone();
16814
16814
  });