@azure/arm-recoveryservicesdatareplication 1.0.0-alpha.20250103.1 → 1.0.0-alpha.20250107.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
  }
@@ -5776,7 +5776,7 @@ function createLroSpec(inputs) {
5776
5776
  sendInitialRequest: () => sendOperationFn(args, spec),
5777
5777
  sendPollRequest: (path, options) => {
5778
5778
  const restSpec = tslib.__rest(spec, ["requestBody"]);
5779
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
5779
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
5780
5780
  }
5781
5781
  };
5782
5782
  }
@@ -5814,7 +5814,7 @@ class DraImpl {
5814
5814
  return this;
5815
5815
  },
5816
5816
  byPage: (settings) => {
5817
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5817
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5818
5818
  throw new Error("maxPageSize is not supported by this operation.");
5819
5819
  }
5820
5820
  return this.listPagingPage(resourceGroupName, fabricName, options, settings);
@@ -5824,7 +5824,7 @@ class DraImpl {
5824
5824
  listPagingPage(resourceGroupName, fabricName, options, settings) {
5825
5825
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
5826
5826
  let result;
5827
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5827
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5828
5828
  if (!continuationToken) {
5829
5829
  result = yield tslib.__await(this._list(resourceGroupName, fabricName, options));
5830
5830
  let page = result.value || [];
@@ -5879,17 +5879,17 @@ class DraImpl {
5879
5879
  * @param options The options parameters.
5880
5880
  */
5881
5881
  beginCreate(resourceGroupName, fabricName, fabricAgentName, options) {
5882
- return tslib.__awaiter(this, void 0, void 0, function* () {
5883
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5882
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5883
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5884
5884
  return this.client.sendOperationRequest(args, spec);
5885
5885
  });
5886
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5886
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5887
5887
  var _a;
5888
5888
  let currentRawResponse = undefined;
5889
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5889
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5890
5890
  const callback = (rawResponse, flatResponse) => {
5891
5891
  currentRawResponse = rawResponse;
5892
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5892
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5893
5893
  };
5894
5894
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5895
5895
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5908,8 +5908,8 @@ class DraImpl {
5908
5908
  spec: createOperationSpec$6
5909
5909
  });
5910
5910
  const poller = yield coreLro.createHttpPoller(lro, {
5911
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5912
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5911
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5912
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
5913
5913
  resourceLocationConfig: "location"
5914
5914
  });
5915
5915
  yield poller.poll();
@@ -5924,7 +5924,7 @@ class DraImpl {
5924
5924
  * @param options The options parameters.
5925
5925
  */
5926
5926
  beginCreateAndWait(resourceGroupName, fabricName, fabricAgentName, options) {
5927
- return tslib.__awaiter(this, void 0, void 0, function* () {
5927
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5928
5928
  const poller = yield this.beginCreate(resourceGroupName, fabricName, fabricAgentName, options);
5929
5929
  return poller.pollUntilDone();
5930
5930
  });
@@ -5937,17 +5937,17 @@ class DraImpl {
5937
5937
  * @param options The options parameters.
5938
5938
  */
5939
5939
  beginDelete(resourceGroupName, fabricName, fabricAgentName, options) {
5940
- return tslib.__awaiter(this, void 0, void 0, function* () {
5941
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5940
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5941
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5942
5942
  return this.client.sendOperationRequest(args, spec);
5943
5943
  });
5944
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5944
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5945
5945
  var _a;
5946
5946
  let currentRawResponse = undefined;
5947
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5947
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5948
5948
  const callback = (rawResponse, flatResponse) => {
5949
5949
  currentRawResponse = rawResponse;
5950
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5950
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5951
5951
  };
5952
5952
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5953
5953
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5966,8 +5966,8 @@ class DraImpl {
5966
5966
  spec: deleteOperationSpec$5
5967
5967
  });
5968
5968
  const poller = yield coreLro.createHttpPoller(lro, {
5969
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5970
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5969
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5970
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
5971
5971
  resourceLocationConfig: "location"
5972
5972
  });
5973
5973
  yield poller.poll();
@@ -5982,7 +5982,7 @@ class DraImpl {
5982
5982
  * @param options The options parameters.
5983
5983
  */
5984
5984
  beginDeleteAndWait(resourceGroupName, fabricName, fabricAgentName, options) {
5985
- return tslib.__awaiter(this, void 0, void 0, function* () {
5985
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5986
5986
  const poller = yield this.beginDelete(resourceGroupName, fabricName, fabricAgentName, options);
5987
5987
  return poller.pollUntilDone();
5988
5988
  });
@@ -6225,7 +6225,7 @@ class EmailConfigurationImpl {
6225
6225
  return this;
6226
6226
  },
6227
6227
  byPage: (settings) => {
6228
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6228
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6229
6229
  throw new Error("maxPageSize is not supported by this operation.");
6230
6230
  }
6231
6231
  return this.listPagingPage(resourceGroupName, vaultName, options, settings);
@@ -6235,7 +6235,7 @@ class EmailConfigurationImpl {
6235
6235
  listPagingPage(resourceGroupName, vaultName, options, settings) {
6236
6236
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6237
6237
  let result;
6238
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6238
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6239
6239
  if (!continuationToken) {
6240
6240
  result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
6241
6241
  let page = result.value || [];
@@ -6439,7 +6439,7 @@ class EventImpl {
6439
6439
  return this;
6440
6440
  },
6441
6441
  byPage: (settings) => {
6442
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6442
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6443
6443
  throw new Error("maxPageSize is not supported by this operation.");
6444
6444
  }
6445
6445
  return this.listPagingPage(resourceGroupName, vaultName, options, settings);
@@ -6449,7 +6449,7 @@ class EventImpl {
6449
6449
  listPagingPage(resourceGroupName, vaultName, options, settings) {
6450
6450
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6451
6451
  let result;
6452
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6452
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6453
6453
  if (!continuationToken) {
6454
6454
  result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
6455
6455
  let page = result.value || [];
@@ -6618,7 +6618,7 @@ class FabricImpl {
6618
6618
  return this;
6619
6619
  },
6620
6620
  byPage: (settings) => {
6621
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6621
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6622
6622
  throw new Error("maxPageSize is not supported by this operation.");
6623
6623
  }
6624
6624
  return this.listBySubscriptionPagingPage(options, settings);
@@ -6628,7 +6628,7 @@ class FabricImpl {
6628
6628
  listBySubscriptionPagingPage(options, settings) {
6629
6629
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
6630
6630
  let result;
6631
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6631
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6632
6632
  if (!continuationToken) {
6633
6633
  result = yield tslib.__await(this._listBySubscription(options));
6634
6634
  let page = result.value || [];
@@ -6680,7 +6680,7 @@ class FabricImpl {
6680
6680
  return this;
6681
6681
  },
6682
6682
  byPage: (settings) => {
6683
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6683
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6684
6684
  throw new Error("maxPageSize is not supported by this operation.");
6685
6685
  }
6686
6686
  return this.listPagingPage(resourceGroupName, options, settings);
@@ -6690,7 +6690,7 @@ class FabricImpl {
6690
6690
  listPagingPage(resourceGroupName, options, settings) {
6691
6691
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6692
6692
  let result;
6693
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6693
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6694
6694
  if (!continuationToken) {
6695
6695
  result = yield tslib.__await(this._list(resourceGroupName, options));
6696
6696
  let page = result.value || [];
@@ -6743,17 +6743,17 @@ class FabricImpl {
6743
6743
  * @param options The options parameters.
6744
6744
  */
6745
6745
  beginCreate(resourceGroupName, fabricName, options) {
6746
- return tslib.__awaiter(this, void 0, void 0, function* () {
6747
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6746
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6747
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6748
6748
  return this.client.sendOperationRequest(args, spec);
6749
6749
  });
6750
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6750
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6751
6751
  var _a;
6752
6752
  let currentRawResponse = undefined;
6753
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6753
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6754
6754
  const callback = (rawResponse, flatResponse) => {
6755
6755
  currentRawResponse = rawResponse;
6756
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6756
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6757
6757
  };
6758
6758
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6759
6759
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6772,8 +6772,8 @@ class FabricImpl {
6772
6772
  spec: createOperationSpec$4
6773
6773
  });
6774
6774
  const poller = yield coreLro.createHttpPoller(lro, {
6775
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6776
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
6775
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6776
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
6777
6777
  resourceLocationConfig: "location"
6778
6778
  });
6779
6779
  yield poller.poll();
@@ -6787,7 +6787,7 @@ class FabricImpl {
6787
6787
  * @param options The options parameters.
6788
6788
  */
6789
6789
  beginCreateAndWait(resourceGroupName, fabricName, options) {
6790
- return tslib.__awaiter(this, void 0, void 0, function* () {
6790
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6791
6791
  const poller = yield this.beginCreate(resourceGroupName, fabricName, options);
6792
6792
  return poller.pollUntilDone();
6793
6793
  });
@@ -6799,17 +6799,17 @@ class FabricImpl {
6799
6799
  * @param options The options parameters.
6800
6800
  */
6801
6801
  beginUpdate(resourceGroupName, fabricName, options) {
6802
- return tslib.__awaiter(this, void 0, void 0, function* () {
6803
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6802
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6803
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6804
6804
  return this.client.sendOperationRequest(args, spec);
6805
6805
  });
6806
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6806
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6807
6807
  var _a;
6808
6808
  let currentRawResponse = undefined;
6809
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6809
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6810
6810
  const callback = (rawResponse, flatResponse) => {
6811
6811
  currentRawResponse = rawResponse;
6812
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6812
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6813
6813
  };
6814
6814
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6815
6815
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6828,8 +6828,8 @@ class FabricImpl {
6828
6828
  spec: updateOperationSpec$1
6829
6829
  });
6830
6830
  const poller = yield coreLro.createHttpPoller(lro, {
6831
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6832
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
6831
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6832
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
6833
6833
  resourceLocationConfig: "location"
6834
6834
  });
6835
6835
  yield poller.poll();
@@ -6843,7 +6843,7 @@ class FabricImpl {
6843
6843
  * @param options The options parameters.
6844
6844
  */
6845
6845
  beginUpdateAndWait(resourceGroupName, fabricName, options) {
6846
- return tslib.__awaiter(this, void 0, void 0, function* () {
6846
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6847
6847
  const poller = yield this.beginUpdate(resourceGroupName, fabricName, options);
6848
6848
  return poller.pollUntilDone();
6849
6849
  });
@@ -6855,17 +6855,17 @@ class FabricImpl {
6855
6855
  * @param options The options parameters.
6856
6856
  */
6857
6857
  beginDelete(resourceGroupName, fabricName, options) {
6858
- return tslib.__awaiter(this, void 0, void 0, function* () {
6859
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6858
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6859
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6860
6860
  return this.client.sendOperationRequest(args, spec);
6861
6861
  });
6862
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6862
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6863
6863
  var _a;
6864
6864
  let currentRawResponse = undefined;
6865
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6865
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6866
6866
  const callback = (rawResponse, flatResponse) => {
6867
6867
  currentRawResponse = rawResponse;
6868
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6868
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6869
6869
  };
6870
6870
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6871
6871
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6884,8 +6884,8 @@ class FabricImpl {
6884
6884
  spec: deleteOperationSpec$4
6885
6885
  });
6886
6886
  const poller = yield coreLro.createHttpPoller(lro, {
6887
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6888
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
6887
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6888
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
6889
6889
  resourceLocationConfig: "location"
6890
6890
  });
6891
6891
  yield poller.poll();
@@ -6899,7 +6899,7 @@ class FabricImpl {
6899
6899
  * @param options The options parameters.
6900
6900
  */
6901
6901
  beginDeleteAndWait(resourceGroupName, fabricName, options) {
6902
- return tslib.__awaiter(this, void 0, void 0, function* () {
6902
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6903
6903
  const poller = yield this.beginDelete(resourceGroupName, fabricName, options);
6904
6904
  return poller.pollUntilDone();
6905
6905
  });
@@ -7215,7 +7215,7 @@ class PolicyImpl {
7215
7215
  return this;
7216
7216
  },
7217
7217
  byPage: (settings) => {
7218
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7218
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7219
7219
  throw new Error("maxPageSize is not supported by this operation.");
7220
7220
  }
7221
7221
  return this.listPagingPage(resourceGroupName, vaultName, options, settings);
@@ -7225,7 +7225,7 @@ class PolicyImpl {
7225
7225
  listPagingPage(resourceGroupName, vaultName, options, settings) {
7226
7226
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7227
7227
  let result;
7228
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7228
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
7229
7229
  if (!continuationToken) {
7230
7230
  result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
7231
7231
  let page = result.value || [];
@@ -7280,17 +7280,17 @@ class PolicyImpl {
7280
7280
  * @param options The options parameters.
7281
7281
  */
7282
7282
  beginCreate(resourceGroupName, vaultName, policyName, options) {
7283
- return tslib.__awaiter(this, void 0, void 0, function* () {
7284
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7283
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7284
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7285
7285
  return this.client.sendOperationRequest(args, spec);
7286
7286
  });
7287
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7287
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7288
7288
  var _a;
7289
7289
  let currentRawResponse = undefined;
7290
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7290
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7291
7291
  const callback = (rawResponse, flatResponse) => {
7292
7292
  currentRawResponse = rawResponse;
7293
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7293
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7294
7294
  };
7295
7295
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7296
7296
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7309,8 +7309,8 @@ class PolicyImpl {
7309
7309
  spec: createOperationSpec$3
7310
7310
  });
7311
7311
  const poller = yield coreLro.createHttpPoller(lro, {
7312
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7313
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
7312
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7313
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
7314
7314
  resourceLocationConfig: "location"
7315
7315
  });
7316
7316
  yield poller.poll();
@@ -7325,7 +7325,7 @@ class PolicyImpl {
7325
7325
  * @param options The options parameters.
7326
7326
  */
7327
7327
  beginCreateAndWait(resourceGroupName, vaultName, policyName, options) {
7328
- return tslib.__awaiter(this, void 0, void 0, function* () {
7328
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7329
7329
  const poller = yield this.beginCreate(resourceGroupName, vaultName, policyName, options);
7330
7330
  return poller.pollUntilDone();
7331
7331
  });
@@ -7338,17 +7338,17 @@ class PolicyImpl {
7338
7338
  * @param options The options parameters.
7339
7339
  */
7340
7340
  beginDelete(resourceGroupName, vaultName, policyName, options) {
7341
- return tslib.__awaiter(this, void 0, void 0, function* () {
7342
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7341
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7342
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7343
7343
  return this.client.sendOperationRequest(args, spec);
7344
7344
  });
7345
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7345
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7346
7346
  var _a;
7347
7347
  let currentRawResponse = undefined;
7348
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7348
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7349
7349
  const callback = (rawResponse, flatResponse) => {
7350
7350
  currentRawResponse = rawResponse;
7351
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7351
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7352
7352
  };
7353
7353
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7354
7354
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7367,8 +7367,8 @@ class PolicyImpl {
7367
7367
  spec: deleteOperationSpec$3
7368
7368
  });
7369
7369
  const poller = yield coreLro.createHttpPoller(lro, {
7370
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7371
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
7370
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7371
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
7372
7372
  resourceLocationConfig: "location"
7373
7373
  });
7374
7374
  yield poller.poll();
@@ -7383,7 +7383,7 @@ class PolicyImpl {
7383
7383
  * @param options The options parameters.
7384
7384
  */
7385
7385
  beginDeleteAndWait(resourceGroupName, vaultName, policyName, options) {
7386
- return tslib.__awaiter(this, void 0, void 0, function* () {
7386
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7387
7387
  const poller = yield this.beginDelete(resourceGroupName, vaultName, policyName, options);
7388
7388
  return poller.pollUntilDone();
7389
7389
  });
@@ -7626,7 +7626,7 @@ class ProtectedItemImpl {
7626
7626
  return this;
7627
7627
  },
7628
7628
  byPage: (settings) => {
7629
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7629
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7630
7630
  throw new Error("maxPageSize is not supported by this operation.");
7631
7631
  }
7632
7632
  return this.listPagingPage(resourceGroupName, vaultName, options, settings);
@@ -7636,7 +7636,7 @@ class ProtectedItemImpl {
7636
7636
  listPagingPage(resourceGroupName, vaultName, options, settings) {
7637
7637
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7638
7638
  let result;
7639
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7639
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
7640
7640
  if (!continuationToken) {
7641
7641
  result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
7642
7642
  let page = result.value || [];
@@ -7691,17 +7691,17 @@ class ProtectedItemImpl {
7691
7691
  * @param options The options parameters.
7692
7692
  */
7693
7693
  beginCreate(resourceGroupName, vaultName, protectedItemName, options) {
7694
- return tslib.__awaiter(this, void 0, void 0, function* () {
7695
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7694
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7695
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7696
7696
  return this.client.sendOperationRequest(args, spec);
7697
7697
  });
7698
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7698
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7699
7699
  var _a;
7700
7700
  let currentRawResponse = undefined;
7701
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7701
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7702
7702
  const callback = (rawResponse, flatResponse) => {
7703
7703
  currentRawResponse = rawResponse;
7704
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7704
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7705
7705
  };
7706
7706
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7707
7707
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7720,8 +7720,8 @@ class ProtectedItemImpl {
7720
7720
  spec: createOperationSpec$2
7721
7721
  });
7722
7722
  const poller = yield coreLro.createHttpPoller(lro, {
7723
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7724
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
7723
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7724
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
7725
7725
  resourceLocationConfig: "location"
7726
7726
  });
7727
7727
  yield poller.poll();
@@ -7736,7 +7736,7 @@ class ProtectedItemImpl {
7736
7736
  * @param options The options parameters.
7737
7737
  */
7738
7738
  beginCreateAndWait(resourceGroupName, vaultName, protectedItemName, options) {
7739
- return tslib.__awaiter(this, void 0, void 0, function* () {
7739
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7740
7740
  const poller = yield this.beginCreate(resourceGroupName, vaultName, protectedItemName, options);
7741
7741
  return poller.pollUntilDone();
7742
7742
  });
@@ -7749,17 +7749,17 @@ class ProtectedItemImpl {
7749
7749
  * @param options The options parameters.
7750
7750
  */
7751
7751
  beginDelete(resourceGroupName, vaultName, protectedItemName, options) {
7752
- return tslib.__awaiter(this, void 0, void 0, function* () {
7753
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7752
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7753
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7754
7754
  return this.client.sendOperationRequest(args, spec);
7755
7755
  });
7756
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7756
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7757
7757
  var _a;
7758
7758
  let currentRawResponse = undefined;
7759
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7759
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7760
7760
  const callback = (rawResponse, flatResponse) => {
7761
7761
  currentRawResponse = rawResponse;
7762
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7762
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7763
7763
  };
7764
7764
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7765
7765
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7778,8 +7778,8 @@ class ProtectedItemImpl {
7778
7778
  spec: deleteOperationSpec$2
7779
7779
  });
7780
7780
  const poller = yield coreLro.createHttpPoller(lro, {
7781
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7782
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
7781
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7782
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
7783
7783
  resourceLocationConfig: "location"
7784
7784
  });
7785
7785
  yield poller.poll();
@@ -7794,7 +7794,7 @@ class ProtectedItemImpl {
7794
7794
  * @param options The options parameters.
7795
7795
  */
7796
7796
  beginDeleteAndWait(resourceGroupName, vaultName, protectedItemName, options) {
7797
- return tslib.__awaiter(this, void 0, void 0, function* () {
7797
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7798
7798
  const poller = yield this.beginDelete(resourceGroupName, vaultName, protectedItemName, options);
7799
7799
  return poller.pollUntilDone();
7800
7800
  });
@@ -7816,17 +7816,17 @@ class ProtectedItemImpl {
7816
7816
  * @param options The options parameters.
7817
7817
  */
7818
7818
  beginPlannedFailover(resourceGroupName, vaultName, protectedItemName, options) {
7819
- return tslib.__awaiter(this, void 0, void 0, function* () {
7820
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7819
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7820
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7821
7821
  return this.client.sendOperationRequest(args, spec);
7822
7822
  });
7823
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7823
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7824
7824
  var _a;
7825
7825
  let currentRawResponse = undefined;
7826
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7826
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7827
7827
  const callback = (rawResponse, flatResponse) => {
7828
7828
  currentRawResponse = rawResponse;
7829
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7829
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7830
7830
  };
7831
7831
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7832
7832
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7845,8 +7845,8 @@ class ProtectedItemImpl {
7845
7845
  spec: plannedFailoverOperationSpec
7846
7846
  });
7847
7847
  const poller = yield coreLro.createHttpPoller(lro, {
7848
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7849
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
7848
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7849
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
7850
7850
  resourceLocationConfig: "location"
7851
7851
  });
7852
7852
  yield poller.poll();
@@ -7861,7 +7861,7 @@ class ProtectedItemImpl {
7861
7861
  * @param options The options parameters.
7862
7862
  */
7863
7863
  beginPlannedFailoverAndWait(resourceGroupName, vaultName, protectedItemName, options) {
7864
- return tslib.__awaiter(this, void 0, void 0, function* () {
7864
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7865
7865
  const poller = yield this.beginPlannedFailover(resourceGroupName, vaultName, protectedItemName, options);
7866
7866
  return poller.pollUntilDone();
7867
7867
  });
@@ -8129,7 +8129,7 @@ class RecoveryPointsImpl {
8129
8129
  return this;
8130
8130
  },
8131
8131
  byPage: (settings) => {
8132
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8132
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8133
8133
  throw new Error("maxPageSize is not supported by this operation.");
8134
8134
  }
8135
8135
  return this.listPagingPage(resourceGroupName, vaultName, protectedItemName, options, settings);
@@ -8139,7 +8139,7 @@ class RecoveryPointsImpl {
8139
8139
  listPagingPage(resourceGroupName, vaultName, protectedItemName, options, settings) {
8140
8140
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8141
8141
  let result;
8142
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8142
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8143
8143
  if (!continuationToken) {
8144
8144
  result = yield tslib.__await(this._list(resourceGroupName, vaultName, protectedItemName, options));
8145
8145
  let page = result.value || [];
@@ -8318,7 +8318,7 @@ class ReplicationExtensionImpl {
8318
8318
  return this;
8319
8319
  },
8320
8320
  byPage: (settings) => {
8321
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8321
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8322
8322
  throw new Error("maxPageSize is not supported by this operation.");
8323
8323
  }
8324
8324
  return this.listPagingPage(resourceGroupName, vaultName, options, settings);
@@ -8328,7 +8328,7 @@ class ReplicationExtensionImpl {
8328
8328
  listPagingPage(resourceGroupName, vaultName, options, settings) {
8329
8329
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8330
8330
  let result;
8331
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8331
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8332
8332
  if (!continuationToken) {
8333
8333
  result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
8334
8334
  let page = result.value || [];
@@ -8383,17 +8383,17 @@ class ReplicationExtensionImpl {
8383
8383
  * @param options The options parameters.
8384
8384
  */
8385
8385
  beginCreate(resourceGroupName, vaultName, replicationExtensionName, options) {
8386
- return tslib.__awaiter(this, void 0, void 0, function* () {
8387
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8386
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8387
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8388
8388
  return this.client.sendOperationRequest(args, spec);
8389
8389
  });
8390
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8390
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8391
8391
  var _a;
8392
8392
  let currentRawResponse = undefined;
8393
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8393
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8394
8394
  const callback = (rawResponse, flatResponse) => {
8395
8395
  currentRawResponse = rawResponse;
8396
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8396
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8397
8397
  };
8398
8398
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8399
8399
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8412,8 +8412,8 @@ class ReplicationExtensionImpl {
8412
8412
  spec: createOperationSpec$1
8413
8413
  });
8414
8414
  const poller = yield coreLro.createHttpPoller(lro, {
8415
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8416
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
8415
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8416
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
8417
8417
  resourceLocationConfig: "location"
8418
8418
  });
8419
8419
  yield poller.poll();
@@ -8428,7 +8428,7 @@ class ReplicationExtensionImpl {
8428
8428
  * @param options The options parameters.
8429
8429
  */
8430
8430
  beginCreateAndWait(resourceGroupName, vaultName, replicationExtensionName, options) {
8431
- return tslib.__awaiter(this, void 0, void 0, function* () {
8431
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8432
8432
  const poller = yield this.beginCreate(resourceGroupName, vaultName, replicationExtensionName, options);
8433
8433
  return poller.pollUntilDone();
8434
8434
  });
@@ -8441,17 +8441,17 @@ class ReplicationExtensionImpl {
8441
8441
  * @param options The options parameters.
8442
8442
  */
8443
8443
  beginDelete(resourceGroupName, vaultName, replicationExtensionName, options) {
8444
- return tslib.__awaiter(this, void 0, void 0, function* () {
8445
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8444
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8445
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8446
8446
  return this.client.sendOperationRequest(args, spec);
8447
8447
  });
8448
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8448
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8449
8449
  var _a;
8450
8450
  let currentRawResponse = undefined;
8451
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8451
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8452
8452
  const callback = (rawResponse, flatResponse) => {
8453
8453
  currentRawResponse = rawResponse;
8454
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8454
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8455
8455
  };
8456
8456
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8457
8457
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8470,8 +8470,8 @@ class ReplicationExtensionImpl {
8470
8470
  spec: deleteOperationSpec$1
8471
8471
  });
8472
8472
  const poller = yield coreLro.createHttpPoller(lro, {
8473
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8474
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
8473
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8474
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
8475
8475
  resourceLocationConfig: "location"
8476
8476
  });
8477
8477
  yield poller.poll();
@@ -8486,7 +8486,7 @@ class ReplicationExtensionImpl {
8486
8486
  * @param options The options parameters.
8487
8487
  */
8488
8488
  beginDeleteAndWait(resourceGroupName, vaultName, replicationExtensionName, options) {
8489
- return tslib.__awaiter(this, void 0, void 0, function* () {
8489
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8490
8490
  const poller = yield this.beginDelete(resourceGroupName, vaultName, replicationExtensionName, options);
8491
8491
  return poller.pollUntilDone();
8492
8492
  });
@@ -8733,7 +8733,7 @@ class OperationsImpl {
8733
8733
  return this;
8734
8734
  },
8735
8735
  byPage: (settings) => {
8736
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8736
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8737
8737
  throw new Error("maxPageSize is not supported by this operation.");
8738
8738
  }
8739
8739
  return this.listPagingPage(options, settings);
@@ -8743,7 +8743,7 @@ class OperationsImpl {
8743
8743
  listPagingPage(options, settings) {
8744
8744
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8745
8745
  let result;
8746
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8746
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8747
8747
  if (!continuationToken) {
8748
8748
  result = yield tslib.__await(this._list(options));
8749
8749
  let page = result.value || [];
@@ -8861,7 +8861,7 @@ class VaultImpl {
8861
8861
  return this;
8862
8862
  },
8863
8863
  byPage: (settings) => {
8864
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8864
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8865
8865
  throw new Error("maxPageSize is not supported by this operation.");
8866
8866
  }
8867
8867
  return this.listBySubscriptionPagingPage(options, settings);
@@ -8871,7 +8871,7 @@ class VaultImpl {
8871
8871
  listBySubscriptionPagingPage(options, settings) {
8872
8872
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
8873
8873
  let result;
8874
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8874
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8875
8875
  if (!continuationToken) {
8876
8876
  result = yield tslib.__await(this._listBySubscription(options));
8877
8877
  let page = result.value || [];
@@ -8923,7 +8923,7 @@ class VaultImpl {
8923
8923
  return this;
8924
8924
  },
8925
8925
  byPage: (settings) => {
8926
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8926
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8927
8927
  throw new Error("maxPageSize is not supported by this operation.");
8928
8928
  }
8929
8929
  return this.listPagingPage(resourceGroupName, options, settings);
@@ -8933,7 +8933,7 @@ class VaultImpl {
8933
8933
  listPagingPage(resourceGroupName, options, settings) {
8934
8934
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8935
8935
  let result;
8936
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8936
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8937
8937
  if (!continuationToken) {
8938
8938
  result = yield tslib.__await(this._list(resourceGroupName, options));
8939
8939
  let page = result.value || [];
@@ -8986,17 +8986,17 @@ class VaultImpl {
8986
8986
  * @param options The options parameters.
8987
8987
  */
8988
8988
  beginCreate(resourceGroupName, vaultName, options) {
8989
- return tslib.__awaiter(this, void 0, void 0, function* () {
8990
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8989
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8990
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8991
8991
  return this.client.sendOperationRequest(args, spec);
8992
8992
  });
8993
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8993
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8994
8994
  var _a;
8995
8995
  let currentRawResponse = undefined;
8996
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8996
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8997
8997
  const callback = (rawResponse, flatResponse) => {
8998
8998
  currentRawResponse = rawResponse;
8999
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8999
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9000
9000
  };
9001
9001
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9002
9002
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9015,8 +9015,8 @@ class VaultImpl {
9015
9015
  spec: createOperationSpec
9016
9016
  });
9017
9017
  const poller = yield coreLro.createHttpPoller(lro, {
9018
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9019
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9018
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9019
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9020
9020
  resourceLocationConfig: "location"
9021
9021
  });
9022
9022
  yield poller.poll();
@@ -9030,7 +9030,7 @@ class VaultImpl {
9030
9030
  * @param options The options parameters.
9031
9031
  */
9032
9032
  beginCreateAndWait(resourceGroupName, vaultName, options) {
9033
- return tslib.__awaiter(this, void 0, void 0, function* () {
9033
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9034
9034
  const poller = yield this.beginCreate(resourceGroupName, vaultName, options);
9035
9035
  return poller.pollUntilDone();
9036
9036
  });
@@ -9042,17 +9042,17 @@ class VaultImpl {
9042
9042
  * @param options The options parameters.
9043
9043
  */
9044
9044
  beginUpdate(resourceGroupName, vaultName, options) {
9045
- return tslib.__awaiter(this, void 0, void 0, function* () {
9046
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9045
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9046
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9047
9047
  return this.client.sendOperationRequest(args, spec);
9048
9048
  });
9049
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9049
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9050
9050
  var _a;
9051
9051
  let currentRawResponse = undefined;
9052
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9052
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9053
9053
  const callback = (rawResponse, flatResponse) => {
9054
9054
  currentRawResponse = rawResponse;
9055
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9055
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9056
9056
  };
9057
9057
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9058
9058
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9071,8 +9071,8 @@ class VaultImpl {
9071
9071
  spec: updateOperationSpec
9072
9072
  });
9073
9073
  const poller = yield coreLro.createHttpPoller(lro, {
9074
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9075
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9074
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9075
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9076
9076
  resourceLocationConfig: "location"
9077
9077
  });
9078
9078
  yield poller.poll();
@@ -9086,7 +9086,7 @@ class VaultImpl {
9086
9086
  * @param options The options parameters.
9087
9087
  */
9088
9088
  beginUpdateAndWait(resourceGroupName, vaultName, options) {
9089
- return tslib.__awaiter(this, void 0, void 0, function* () {
9089
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9090
9090
  const poller = yield this.beginUpdate(resourceGroupName, vaultName, options);
9091
9091
  return poller.pollUntilDone();
9092
9092
  });
@@ -9098,17 +9098,17 @@ class VaultImpl {
9098
9098
  * @param options The options parameters.
9099
9099
  */
9100
9100
  beginDelete(resourceGroupName, vaultName, options) {
9101
- return tslib.__awaiter(this, void 0, void 0, function* () {
9102
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9101
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9102
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9103
9103
  return this.client.sendOperationRequest(args, spec);
9104
9104
  });
9105
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9105
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9106
9106
  var _a;
9107
9107
  let currentRawResponse = undefined;
9108
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9108
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9109
9109
  const callback = (rawResponse, flatResponse) => {
9110
9110
  currentRawResponse = rawResponse;
9111
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9111
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9112
9112
  };
9113
9113
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9114
9114
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9127,8 +9127,8 @@ class VaultImpl {
9127
9127
  spec: deleteOperationSpec
9128
9128
  });
9129
9129
  const poller = yield coreLro.createHttpPoller(lro, {
9130
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9131
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9130
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9131
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9132
9132
  resourceLocationConfig: "location"
9133
9133
  });
9134
9134
  yield poller.poll();
@@ -9142,7 +9142,7 @@ class VaultImpl {
9142
9142
  * @param options The options parameters.
9143
9143
  */
9144
9144
  beginDeleteAndWait(resourceGroupName, vaultName, options) {
9145
- return tslib.__awaiter(this, void 0, void 0, function* () {
9145
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9146
9146
  const poller = yield this.beginDelete(resourceGroupName, vaultName, options);
9147
9147
  return poller.pollUntilDone();
9148
9148
  });
@@ -9458,7 +9458,7 @@ class WorkflowImpl {
9458
9458
  return this;
9459
9459
  },
9460
9460
  byPage: (settings) => {
9461
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9461
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9462
9462
  throw new Error("maxPageSize is not supported by this operation.");
9463
9463
  }
9464
9464
  return this.listPagingPage(resourceGroupName, vaultName, options, settings);
@@ -9468,7 +9468,7 @@ class WorkflowImpl {
9468
9468
  listPagingPage(resourceGroupName, vaultName, options, settings) {
9469
9469
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
9470
9470
  let result;
9471
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9471
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
9472
9472
  if (!continuationToken) {
9473
9473
  result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
9474
9474
  let page = result.value || [];
@@ -9696,10 +9696,10 @@ class AzureSiteRecoveryManagementServiceAPI extends coreClient__namespace.Servic
9696
9696
  : `${packageDetails}`;
9697
9697
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
9698
9698
  userAgentPrefix
9699
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
9699
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
9700
9700
  super(optionsWithDefaults);
9701
9701
  let bearerTokenAuthenticationPolicyFound = false;
9702
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
9702
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
9703
9703
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
9704
9704
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
9705
9705
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -9713,7 +9713,7 @@ class AzureSiteRecoveryManagementServiceAPI extends coreClient__namespace.Servic
9713
9713
  });
9714
9714
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
9715
9715
  credential: credentials,
9716
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
9716
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
9717
9717
  challengeCallbacks: {
9718
9718
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
9719
9719
  }
@@ -9752,7 +9752,7 @@ class AzureSiteRecoveryManagementServiceAPI extends coreClient__namespace.Servic
9752
9752
  const apiVersionPolicy = {
9753
9753
  name: "CustomApiVersionPolicy",
9754
9754
  sendRequest(request, next) {
9755
- return tslib.__awaiter(this, void 0, void 0, function* () {
9755
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9756
9756
  const param = request.url.split("?");
9757
9757
  if (param.length > 1) {
9758
9758
  const newParams = param[1].split("&").map((item) => {