@azure/arm-storage 18.3.1-alpha.20250103.1 → 18.3.1-alpha.20250106.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
47
47
  if (typeof page !== "object" || page === null) {
48
48
  return undefined;
49
49
  }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
51
51
  }
52
52
  function setContinuationToken(page, continuationToken) {
53
53
  var _a;
54
54
  if (typeof page !== "object" || page === null || !continuationToken) {
55
55
  return;
56
56
  }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -8427,7 +8427,7 @@ class BlobServicesImpl {
8427
8427
  return this;
8428
8428
  },
8429
8429
  byPage: (settings) => {
8430
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8430
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8431
8431
  throw new Error("maxPageSize is not supported by this operation.");
8432
8432
  }
8433
8433
  return this.listPagingPage(resourceGroupName, accountName, options, settings);
@@ -8578,7 +8578,7 @@ function createLroSpec(inputs) {
8578
8578
  sendInitialRequest: () => sendOperationFn(args, spec),
8579
8579
  sendPollRequest: (path, options) => {
8580
8580
  const restSpec = tslib.__rest(spec, ["requestBody"]);
8581
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
8581
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
8582
8582
  },
8583
8583
  };
8584
8584
  }
@@ -8620,7 +8620,7 @@ class BlobContainersImpl {
8620
8620
  return this;
8621
8621
  },
8622
8622
  byPage: (settings) => {
8623
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8623
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8624
8624
  throw new Error("maxPageSize is not supported by this operation.");
8625
8625
  }
8626
8626
  return this.listPagingPage(resourceGroupName, accountName, options, settings);
@@ -8630,7 +8630,7 @@ class BlobContainersImpl {
8630
8630
  listPagingPage(resourceGroupName, accountName, options, settings) {
8631
8631
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8632
8632
  let result;
8633
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8633
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8634
8634
  if (!continuationToken) {
8635
8635
  result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
8636
8636
  let page = result.value || [];
@@ -8915,17 +8915,17 @@ class BlobContainersImpl {
8915
8915
  * @param options The options parameters.
8916
8916
  */
8917
8917
  beginObjectLevelWorm(resourceGroupName, accountName, containerName, options) {
8918
- return tslib.__awaiter(this, void 0, void 0, function* () {
8919
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8918
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8919
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8920
8920
  return this.client.sendOperationRequest(args, spec);
8921
8921
  });
8922
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8922
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8923
8923
  var _a;
8924
8924
  let currentRawResponse = undefined;
8925
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8925
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8926
8926
  const callback = (rawResponse, flatResponse) => {
8927
8927
  currentRawResponse = rawResponse;
8928
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8928
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8929
8929
  };
8930
8930
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8931
8931
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8944,8 +8944,8 @@ class BlobContainersImpl {
8944
8944
  spec: objectLevelWormOperationSpec,
8945
8945
  });
8946
8946
  const poller = yield coreLro.createHttpPoller(lro, {
8947
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8948
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
8947
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8948
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
8949
8949
  resourceLocationConfig: "location",
8950
8950
  });
8951
8951
  yield poller.poll();
@@ -8969,7 +8969,7 @@ class BlobContainersImpl {
8969
8969
  * @param options The options parameters.
8970
8970
  */
8971
8971
  beginObjectLevelWormAndWait(resourceGroupName, accountName, containerName, options) {
8972
- return tslib.__awaiter(this, void 0, void 0, function* () {
8972
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8973
8973
  const poller = yield this.beginObjectLevelWorm(resourceGroupName, accountName, containerName, options);
8974
8974
  return poller.pollUntilDone();
8975
8975
  });
@@ -9474,7 +9474,7 @@ class FileSharesImpl {
9474
9474
  return this;
9475
9475
  },
9476
9476
  byPage: (settings) => {
9477
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9477
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9478
9478
  throw new Error("maxPageSize is not supported by this operation.");
9479
9479
  }
9480
9480
  return this.listPagingPage(resourceGroupName, accountName, options, settings);
@@ -9484,7 +9484,7 @@ class FileSharesImpl {
9484
9484
  listPagingPage(resourceGroupName, accountName, options, settings) {
9485
9485
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
9486
9486
  let result;
9487
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9487
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
9488
9488
  if (!continuationToken) {
9489
9489
  result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
9490
9490
  let page = result.value || [];
@@ -10002,7 +10002,7 @@ class QueueImpl {
10002
10002
  return this;
10003
10003
  },
10004
10004
  byPage: (settings) => {
10005
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
10005
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
10006
10006
  throw new Error("maxPageSize is not supported by this operation.");
10007
10007
  }
10008
10008
  return this.listPagingPage(resourceGroupName, accountName, options, settings);
@@ -10012,7 +10012,7 @@ class QueueImpl {
10012
10012
  listPagingPage(resourceGroupName, accountName, options, settings) {
10013
10013
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
10014
10014
  let result;
10015
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
10015
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
10016
10016
  if (!continuationToken) {
10017
10017
  result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
10018
10018
  let page = result.value || [];
@@ -10307,7 +10307,7 @@ class OperationsImpl {
10307
10307
  return this;
10308
10308
  },
10309
10309
  byPage: (settings) => {
10310
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
10310
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
10311
10311
  throw new Error("maxPageSize is not supported by this operation.");
10312
10312
  }
10313
10313
  return this.listPagingPage(options, settings);
@@ -10396,7 +10396,7 @@ class SkusImpl {
10396
10396
  return this;
10397
10397
  },
10398
10398
  byPage: (settings) => {
10399
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
10399
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
10400
10400
  throw new Error("maxPageSize is not supported by this operation.");
10401
10401
  }
10402
10402
  return this.listPagingPage(options, settings);
@@ -10486,7 +10486,7 @@ class StorageAccountsImpl {
10486
10486
  return this;
10487
10487
  },
10488
10488
  byPage: (settings) => {
10489
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
10489
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
10490
10490
  throw new Error("maxPageSize is not supported by this operation.");
10491
10491
  }
10492
10492
  return this.listPagingPage(options, settings);
@@ -10496,7 +10496,7 @@ class StorageAccountsImpl {
10496
10496
  listPagingPage(options, settings) {
10497
10497
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
10498
10498
  let result;
10499
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
10499
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
10500
10500
  if (!continuationToken) {
10501
10501
  result = yield tslib.__await(this._list(options));
10502
10502
  let page = result.value || [];
@@ -10550,7 +10550,7 @@ class StorageAccountsImpl {
10550
10550
  return this;
10551
10551
  },
10552
10552
  byPage: (settings) => {
10553
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
10553
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
10554
10554
  throw new Error("maxPageSize is not supported by this operation.");
10555
10555
  }
10556
10556
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -10560,7 +10560,7 @@ class StorageAccountsImpl {
10560
10560
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
10561
10561
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
10562
10562
  let result;
10563
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
10563
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
10564
10564
  if (!continuationToken) {
10565
10565
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
10566
10566
  let page = result.value || [];
@@ -10621,17 +10621,17 @@ class StorageAccountsImpl {
10621
10621
  * @param options The options parameters.
10622
10622
  */
10623
10623
  beginCreate(resourceGroupName, accountName, parameters, options) {
10624
- return tslib.__awaiter(this, void 0, void 0, function* () {
10625
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10624
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10625
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10626
10626
  return this.client.sendOperationRequest(args, spec);
10627
10627
  });
10628
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10628
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10629
10629
  var _a;
10630
10630
  let currentRawResponse = undefined;
10631
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10631
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10632
10632
  const callback = (rawResponse, flatResponse) => {
10633
10633
  currentRawResponse = rawResponse;
10634
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10634
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10635
10635
  };
10636
10636
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10637
10637
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10650,8 +10650,8 @@ class StorageAccountsImpl {
10650
10650
  spec: createOperationSpec$2,
10651
10651
  });
10652
10652
  const poller = yield coreLro.createHttpPoller(lro, {
10653
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10654
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10653
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10654
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10655
10655
  });
10656
10656
  yield poller.poll();
10657
10657
  return poller;
@@ -10671,7 +10671,7 @@ class StorageAccountsImpl {
10671
10671
  * @param options The options parameters.
10672
10672
  */
10673
10673
  beginCreateAndWait(resourceGroupName, accountName, parameters, options) {
10674
- return tslib.__awaiter(this, void 0, void 0, function* () {
10674
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10675
10675
  const poller = yield this.beginCreate(resourceGroupName, accountName, parameters, options);
10676
10676
  return poller.pollUntilDone();
10677
10677
  });
@@ -10810,17 +10810,17 @@ class StorageAccountsImpl {
10810
10810
  * @param options The options parameters.
10811
10811
  */
10812
10812
  beginFailover(resourceGroupName, accountName, options) {
10813
- return tslib.__awaiter(this, void 0, void 0, function* () {
10814
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10813
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10814
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10815
10815
  return this.client.sendOperationRequest(args, spec);
10816
10816
  });
10817
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10817
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10818
10818
  var _a;
10819
10819
  let currentRawResponse = undefined;
10820
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10820
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10821
10821
  const callback = (rawResponse, flatResponse) => {
10822
10822
  currentRawResponse = rawResponse;
10823
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10823
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10824
10824
  };
10825
10825
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10826
10826
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10839,8 +10839,8 @@ class StorageAccountsImpl {
10839
10839
  spec: failoverOperationSpec,
10840
10840
  });
10841
10841
  const poller = yield coreLro.createHttpPoller(lro, {
10842
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10843
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10842
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10843
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10844
10844
  resourceLocationConfig: "location",
10845
10845
  });
10846
10846
  yield poller.poll();
@@ -10866,7 +10866,7 @@ class StorageAccountsImpl {
10866
10866
  * @param options The options parameters.
10867
10867
  */
10868
10868
  beginFailoverAndWait(resourceGroupName, accountName, options) {
10869
- return tslib.__awaiter(this, void 0, void 0, function* () {
10869
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10870
10870
  const poller = yield this.beginFailover(resourceGroupName, accountName, options);
10871
10871
  return poller.pollUntilDone();
10872
10872
  });
@@ -10885,17 +10885,17 @@ class StorageAccountsImpl {
10885
10885
  * @param options The options parameters.
10886
10886
  */
10887
10887
  beginHierarchicalNamespaceMigration(resourceGroupName, accountName, requestType, options) {
10888
- return tslib.__awaiter(this, void 0, void 0, function* () {
10889
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10888
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10889
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10890
10890
  return this.client.sendOperationRequest(args, spec);
10891
10891
  });
10892
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10892
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10893
10893
  var _a;
10894
10894
  let currentRawResponse = undefined;
10895
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10895
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10896
10896
  const callback = (rawResponse, flatResponse) => {
10897
10897
  currentRawResponse = rawResponse;
10898
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10898
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10899
10899
  };
10900
10900
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10901
10901
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10914,8 +10914,8 @@ class StorageAccountsImpl {
10914
10914
  spec: hierarchicalNamespaceMigrationOperationSpec,
10915
10915
  });
10916
10916
  const poller = yield coreLro.createHttpPoller(lro, {
10917
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10918
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10917
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10918
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10919
10919
  resourceLocationConfig: "location",
10920
10920
  });
10921
10921
  yield poller.poll();
@@ -10936,7 +10936,7 @@ class StorageAccountsImpl {
10936
10936
  * @param options The options parameters.
10937
10937
  */
10938
10938
  beginHierarchicalNamespaceMigrationAndWait(resourceGroupName, accountName, requestType, options) {
10939
- return tslib.__awaiter(this, void 0, void 0, function* () {
10939
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10940
10940
  const poller = yield this.beginHierarchicalNamespaceMigration(resourceGroupName, accountName, requestType, options);
10941
10941
  return poller.pollUntilDone();
10942
10942
  });
@@ -10951,17 +10951,17 @@ class StorageAccountsImpl {
10951
10951
  * @param options The options parameters.
10952
10952
  */
10953
10953
  beginAbortHierarchicalNamespaceMigration(resourceGroupName, accountName, options) {
10954
- return tslib.__awaiter(this, void 0, void 0, function* () {
10955
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10954
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10955
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10956
10956
  return this.client.sendOperationRequest(args, spec);
10957
10957
  });
10958
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10958
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10959
10959
  var _a;
10960
10960
  let currentRawResponse = undefined;
10961
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10961
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10962
10962
  const callback = (rawResponse, flatResponse) => {
10963
10963
  currentRawResponse = rawResponse;
10964
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10964
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10965
10965
  };
10966
10966
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10967
10967
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10980,8 +10980,8 @@ class StorageAccountsImpl {
10980
10980
  spec: abortHierarchicalNamespaceMigrationOperationSpec,
10981
10981
  });
10982
10982
  const poller = yield coreLro.createHttpPoller(lro, {
10983
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10984
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10983
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10984
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10985
10985
  resourceLocationConfig: "location",
10986
10986
  });
10987
10987
  yield poller.poll();
@@ -10998,7 +10998,7 @@ class StorageAccountsImpl {
10998
10998
  * @param options The options parameters.
10999
10999
  */
11000
11000
  beginAbortHierarchicalNamespaceMigrationAndWait(resourceGroupName, accountName, options) {
11001
- return tslib.__awaiter(this, void 0, void 0, function* () {
11001
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11002
11002
  const poller = yield this.beginAbortHierarchicalNamespaceMigration(resourceGroupName, accountName, options);
11003
11003
  return poller.pollUntilDone();
11004
11004
  });
@@ -11017,17 +11017,17 @@ class StorageAccountsImpl {
11017
11017
  * @param options The options parameters.
11018
11018
  */
11019
11019
  beginCustomerInitiatedMigration(resourceGroupName, accountName, parameters, options) {
11020
- return tslib.__awaiter(this, void 0, void 0, function* () {
11021
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11020
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11021
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11022
11022
  return this.client.sendOperationRequest(args, spec);
11023
11023
  });
11024
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11024
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11025
11025
  var _a;
11026
11026
  let currentRawResponse = undefined;
11027
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
11027
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
11028
11028
  const callback = (rawResponse, flatResponse) => {
11029
11029
  currentRawResponse = rawResponse;
11030
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
11030
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
11031
11031
  };
11032
11032
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
11033
11033
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -11046,8 +11046,8 @@ class StorageAccountsImpl {
11046
11046
  spec: customerInitiatedMigrationOperationSpec,
11047
11047
  });
11048
11048
  const poller = yield coreLro.createHttpPoller(lro, {
11049
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11050
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
11049
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
11050
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
11051
11051
  resourceLocationConfig: "location",
11052
11052
  });
11053
11053
  yield poller.poll();
@@ -11068,7 +11068,7 @@ class StorageAccountsImpl {
11068
11068
  * @param options The options parameters.
11069
11069
  */
11070
11070
  beginCustomerInitiatedMigrationAndWait(resourceGroupName, accountName, parameters, options) {
11071
- return tslib.__awaiter(this, void 0, void 0, function* () {
11071
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11072
11072
  const poller = yield this.beginCustomerInitiatedMigration(resourceGroupName, accountName, parameters, options);
11073
11073
  return poller.pollUntilDone();
11074
11074
  });
@@ -11097,17 +11097,17 @@ class StorageAccountsImpl {
11097
11097
  * @param options The options parameters.
11098
11098
  */
11099
11099
  beginRestoreBlobRanges(resourceGroupName, accountName, parameters, options) {
11100
- return tslib.__awaiter(this, void 0, void 0, function* () {
11101
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11100
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11101
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11102
11102
  return this.client.sendOperationRequest(args, spec);
11103
11103
  });
11104
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11104
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11105
11105
  var _a;
11106
11106
  let currentRawResponse = undefined;
11107
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
11107
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
11108
11108
  const callback = (rawResponse, flatResponse) => {
11109
11109
  currentRawResponse = rawResponse;
11110
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
11110
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
11111
11111
  };
11112
11112
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
11113
11113
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -11126,8 +11126,8 @@ class StorageAccountsImpl {
11126
11126
  spec: restoreBlobRangesOperationSpec,
11127
11127
  });
11128
11128
  const poller = yield coreLro.createHttpPoller(lro, {
11129
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11130
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
11129
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
11130
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
11131
11131
  resourceLocationConfig: "location",
11132
11132
  });
11133
11133
  yield poller.poll();
@@ -11145,7 +11145,7 @@ class StorageAccountsImpl {
11145
11145
  * @param options The options parameters.
11146
11146
  */
11147
11147
  beginRestoreBlobRangesAndWait(resourceGroupName, accountName, parameters, options) {
11148
- return tslib.__awaiter(this, void 0, void 0, function* () {
11148
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11149
11149
  const poller = yield this.beginRestoreBlobRanges(resourceGroupName, accountName, parameters, options);
11150
11150
  return poller.pollUntilDone();
11151
11151
  });
@@ -11596,7 +11596,7 @@ class DeletedAccountsImpl {
11596
11596
  return this;
11597
11597
  },
11598
11598
  byPage: (settings) => {
11599
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11599
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
11600
11600
  throw new Error("maxPageSize is not supported by this operation.");
11601
11601
  }
11602
11602
  return this.listPagingPage(options, settings);
@@ -11606,7 +11606,7 @@ class DeletedAccountsImpl {
11606
11606
  listPagingPage(options, settings) {
11607
11607
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
11608
11608
  let result;
11609
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
11609
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
11610
11610
  if (!continuationToken) {
11611
11611
  result = yield tslib.__await(this._list(options));
11612
11612
  let page = result.value || [];
@@ -11759,7 +11759,7 @@ class UsagesImpl {
11759
11759
  return this;
11760
11760
  },
11761
11761
  byPage: (settings) => {
11762
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11762
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
11763
11763
  throw new Error("maxPageSize is not supported by this operation.");
11764
11764
  }
11765
11765
  return this.listByLocationPagingPage(location, options, settings);
@@ -11981,7 +11981,7 @@ class BlobInventoryPoliciesImpl {
11981
11981
  return this;
11982
11982
  },
11983
11983
  byPage: (settings) => {
11984
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11984
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
11985
11985
  throw new Error("maxPageSize is not supported by this operation.");
11986
11986
  }
11987
11987
  return this.listPagingPage(resourceGroupName, accountName, options, settings);
@@ -12204,7 +12204,7 @@ class PrivateEndpointConnectionsImpl {
12204
12204
  return this;
12205
12205
  },
12206
12206
  byPage: (settings) => {
12207
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12207
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
12208
12208
  throw new Error("maxPageSize is not supported by this operation.");
12209
12209
  }
12210
12210
  return this.listPagingPage(resourceGroupName, accountName, options, settings);
@@ -12484,7 +12484,7 @@ class ObjectReplicationPoliciesOperationsImpl {
12484
12484
  return this;
12485
12485
  },
12486
12486
  byPage: (settings) => {
12487
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12487
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
12488
12488
  throw new Error("maxPageSize is not supported by this operation.");
12489
12489
  }
12490
12490
  return this.listPagingPage(resourceGroupName, accountName, options, settings);
@@ -12714,7 +12714,7 @@ class LocalUsersOperationsImpl {
12714
12714
  return this;
12715
12715
  },
12716
12716
  byPage: (settings) => {
12717
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12717
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
12718
12718
  throw new Error("maxPageSize is not supported by this operation.");
12719
12719
  }
12720
12720
  return this.listPagingPage(resourceGroupName, accountName, options, settings);
@@ -13009,7 +13009,7 @@ class EncryptionScopesImpl {
13009
13009
  return this;
13010
13010
  },
13011
13011
  byPage: (settings) => {
13012
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13012
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13013
13013
  throw new Error("maxPageSize is not supported by this operation.");
13014
13014
  }
13015
13015
  return this.listPagingPage(resourceGroupName, accountName, options, settings);
@@ -13019,7 +13019,7 @@ class EncryptionScopesImpl {
13019
13019
  listPagingPage(resourceGroupName, accountName, options, settings) {
13020
13020
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
13021
13021
  let result;
13022
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
13022
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
13023
13023
  if (!continuationToken) {
13024
13024
  result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
13025
13025
  let page = result.value || [];
@@ -13427,7 +13427,7 @@ class TableOperationsImpl {
13427
13427
  return this;
13428
13428
  },
13429
13429
  byPage: (settings) => {
13430
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13430
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13431
13431
  throw new Error("maxPageSize is not supported by this operation.");
13432
13432
  }
13433
13433
  return this.listPagingPage(resourceGroupName, accountName, options, settings);
@@ -13437,7 +13437,7 @@ class TableOperationsImpl {
13437
13437
  listPagingPage(resourceGroupName, accountName, options, settings) {
13438
13438
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
13439
13439
  let result;
13440
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
13440
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
13441
13441
  if (!continuationToken) {
13442
13442
  result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
13443
13443
  let page = result.value || [];
@@ -13731,7 +13731,7 @@ class NetworkSecurityPerimeterConfigurationsImpl {
13731
13731
  return this;
13732
13732
  },
13733
13733
  byPage: (settings) => {
13734
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13734
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13735
13735
  throw new Error("maxPageSize is not supported by this operation.");
13736
13736
  }
13737
13737
  return this.listPagingPage(resourceGroupName, accountName, options, settings);
@@ -13808,17 +13808,17 @@ class NetworkSecurityPerimeterConfigurationsImpl {
13808
13808
  * @param options The options parameters.
13809
13809
  */
13810
13810
  beginReconcile(resourceGroupName, accountName, networkSecurityPerimeterConfigurationName, options) {
13811
- return tslib.__awaiter(this, void 0, void 0, function* () {
13812
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13811
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13812
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13813
13813
  return this.client.sendOperationRequest(args, spec);
13814
13814
  });
13815
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13815
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13816
13816
  var _a;
13817
13817
  let currentRawResponse = undefined;
13818
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
13818
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
13819
13819
  const callback = (rawResponse, flatResponse) => {
13820
13820
  currentRawResponse = rawResponse;
13821
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
13821
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
13822
13822
  };
13823
13823
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
13824
13824
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -13842,8 +13842,8 @@ class NetworkSecurityPerimeterConfigurationsImpl {
13842
13842
  spec: reconcileOperationSpec,
13843
13843
  });
13844
13844
  const poller = yield coreLro.createHttpPoller(lro, {
13845
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
13846
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
13845
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
13846
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
13847
13847
  resourceLocationConfig: "location",
13848
13848
  });
13849
13849
  yield poller.poll();
@@ -13862,7 +13862,7 @@ class NetworkSecurityPerimeterConfigurationsImpl {
13862
13862
  * @param options The options parameters.
13863
13863
  */
13864
13864
  beginReconcileAndWait(resourceGroupName, accountName, networkSecurityPerimeterConfigurationName, options) {
13865
- return tslib.__awaiter(this, void 0, void 0, function* () {
13865
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13866
13866
  const poller = yield this.beginReconcile(resourceGroupName, accountName, networkSecurityPerimeterConfigurationName, options);
13867
13867
  return poller.pollUntilDone();
13868
13868
  });
@@ -13980,7 +13980,7 @@ class StorageTaskAssignmentsImpl {
13980
13980
  return this;
13981
13981
  },
13982
13982
  byPage: (settings) => {
13983
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13983
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13984
13984
  throw new Error("maxPageSize is not supported by this operation.");
13985
13985
  }
13986
13986
  return this.listPagingPage(resourceGroupName, accountName, options, settings);
@@ -13990,7 +13990,7 @@ class StorageTaskAssignmentsImpl {
13990
13990
  listPagingPage(resourceGroupName, accountName, options, settings) {
13991
13991
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
13992
13992
  let result;
13993
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
13993
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
13994
13994
  if (!continuationToken) {
13995
13995
  result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
13996
13996
  let page = result.value || [];
@@ -14044,17 +14044,17 @@ class StorageTaskAssignmentsImpl {
14044
14044
  * @param options The options parameters.
14045
14045
  */
14046
14046
  beginCreate(resourceGroupName, accountName, storageTaskAssignmentName, parameters, options) {
14047
- return tslib.__awaiter(this, void 0, void 0, function* () {
14048
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14047
+ return tslib.__awaiter(this, undefined, undefined, function* () {
14048
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14049
14049
  return this.client.sendOperationRequest(args, spec);
14050
14050
  });
14051
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14051
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14052
14052
  var _a;
14053
14053
  let currentRawResponse = undefined;
14054
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
14054
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
14055
14055
  const callback = (rawResponse, flatResponse) => {
14056
14056
  currentRawResponse = rawResponse;
14057
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
14057
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
14058
14058
  };
14059
14059
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
14060
14060
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -14079,8 +14079,8 @@ class StorageTaskAssignmentsImpl {
14079
14079
  spec: createOperationSpec,
14080
14080
  });
14081
14081
  const poller = yield coreLro.createHttpPoller(lro, {
14082
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
14083
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
14082
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
14083
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
14084
14084
  resourceLocationConfig: "location",
14085
14085
  });
14086
14086
  yield poller.poll();
@@ -14104,7 +14104,7 @@ class StorageTaskAssignmentsImpl {
14104
14104
  * @param options The options parameters.
14105
14105
  */
14106
14106
  beginCreateAndWait(resourceGroupName, accountName, storageTaskAssignmentName, parameters, options) {
14107
- return tslib.__awaiter(this, void 0, void 0, function* () {
14107
+ return tslib.__awaiter(this, undefined, undefined, function* () {
14108
14108
  const poller = yield this.beginCreate(resourceGroupName, accountName, storageTaskAssignmentName, parameters, options);
14109
14109
  return poller.pollUntilDone();
14110
14110
  });
@@ -14122,17 +14122,17 @@ class StorageTaskAssignmentsImpl {
14122
14122
  * @param options The options parameters.
14123
14123
  */
14124
14124
  beginUpdate(resourceGroupName, accountName, storageTaskAssignmentName, parameters, options) {
14125
- return tslib.__awaiter(this, void 0, void 0, function* () {
14126
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14125
+ return tslib.__awaiter(this, undefined, undefined, function* () {
14126
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14127
14127
  return this.client.sendOperationRequest(args, spec);
14128
14128
  });
14129
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14129
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14130
14130
  var _a;
14131
14131
  let currentRawResponse = undefined;
14132
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
14132
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
14133
14133
  const callback = (rawResponse, flatResponse) => {
14134
14134
  currentRawResponse = rawResponse;
14135
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
14135
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
14136
14136
  };
14137
14137
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
14138
14138
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -14157,8 +14157,8 @@ class StorageTaskAssignmentsImpl {
14157
14157
  spec: updateOperationSpec,
14158
14158
  });
14159
14159
  const poller = yield coreLro.createHttpPoller(lro, {
14160
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
14161
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
14160
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
14161
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
14162
14162
  resourceLocationConfig: "location",
14163
14163
  });
14164
14164
  yield poller.poll();
@@ -14178,7 +14178,7 @@ class StorageTaskAssignmentsImpl {
14178
14178
  * @param options The options parameters.
14179
14179
  */
14180
14180
  beginUpdateAndWait(resourceGroupName, accountName, storageTaskAssignmentName, parameters, options) {
14181
- return tslib.__awaiter(this, void 0, void 0, function* () {
14181
+ return tslib.__awaiter(this, undefined, undefined, function* () {
14182
14182
  const poller = yield this.beginUpdate(resourceGroupName, accountName, storageTaskAssignmentName, parameters, options);
14183
14183
  return poller.pollUntilDone();
14184
14184
  });
@@ -14209,17 +14209,17 @@ class StorageTaskAssignmentsImpl {
14209
14209
  * @param options The options parameters.
14210
14210
  */
14211
14211
  beginDelete(resourceGroupName, accountName, storageTaskAssignmentName, options) {
14212
- return tslib.__awaiter(this, void 0, void 0, function* () {
14213
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14212
+ return tslib.__awaiter(this, undefined, undefined, function* () {
14213
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14214
14214
  return this.client.sendOperationRequest(args, spec);
14215
14215
  });
14216
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14216
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14217
14217
  var _a;
14218
14218
  let currentRawResponse = undefined;
14219
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
14219
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
14220
14220
  const callback = (rawResponse, flatResponse) => {
14221
14221
  currentRawResponse = rawResponse;
14222
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
14222
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
14223
14223
  };
14224
14224
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
14225
14225
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -14243,8 +14243,8 @@ class StorageTaskAssignmentsImpl {
14243
14243
  spec: deleteOperationSpec,
14244
14244
  });
14245
14245
  const poller = yield coreLro.createHttpPoller(lro, {
14246
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
14247
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
14246
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
14247
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
14248
14248
  resourceLocationConfig: "location",
14249
14249
  });
14250
14250
  yield poller.poll();
@@ -14263,7 +14263,7 @@ class StorageTaskAssignmentsImpl {
14263
14263
  * @param options The options parameters.
14264
14264
  */
14265
14265
  beginDeleteAndWait(resourceGroupName, accountName, storageTaskAssignmentName, options) {
14266
- return tslib.__awaiter(this, void 0, void 0, function* () {
14266
+ return tslib.__awaiter(this, undefined, undefined, function* () {
14267
14267
  const poller = yield this.beginDelete(resourceGroupName, accountName, storageTaskAssignmentName, options);
14268
14268
  return poller.pollUntilDone();
14269
14269
  });
@@ -14491,7 +14491,7 @@ class StorageTaskAssignmentsInstancesReportImpl {
14491
14491
  return this;
14492
14492
  },
14493
14493
  byPage: (settings) => {
14494
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14494
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14495
14495
  throw new Error("maxPageSize is not supported by this operation.");
14496
14496
  }
14497
14497
  return this.listPagingPage(resourceGroupName, accountName, options, settings);
@@ -14501,7 +14501,7 @@ class StorageTaskAssignmentsInstancesReportImpl {
14501
14501
  listPagingPage(resourceGroupName, accountName, options, settings) {
14502
14502
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
14503
14503
  let result;
14504
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14504
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
14505
14505
  if (!continuationToken) {
14506
14506
  result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
14507
14507
  let page = result.value || [];
@@ -14649,7 +14649,7 @@ class StorageTaskAssignmentInstancesReportImpl {
14649
14649
  return this;
14650
14650
  },
14651
14651
  byPage: (settings) => {
14652
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14652
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14653
14653
  throw new Error("maxPageSize is not supported by this operation.");
14654
14654
  }
14655
14655
  return this.listPagingPage(resourceGroupName, accountName, storageTaskAssignmentName, options, settings);
@@ -14659,7 +14659,7 @@ class StorageTaskAssignmentInstancesReportImpl {
14659
14659
  listPagingPage(resourceGroupName, accountName, storageTaskAssignmentName, options, settings) {
14660
14660
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
14661
14661
  let result;
14662
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14662
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
14663
14663
  if (!continuationToken) {
14664
14664
  result = yield tslib.__await(this._list(resourceGroupName, accountName, storageTaskAssignmentName, options));
14665
14665
  let page = result.value || [];
@@ -14819,10 +14819,10 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
14819
14819
  : `${packageDetails}`;
14820
14820
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
14821
14821
  userAgentPrefix,
14822
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
14822
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
14823
14823
  super(optionsWithDefaults);
14824
14824
  let bearerTokenAuthenticationPolicyFound = false;
14825
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
14825
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
14826
14826
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
14827
14827
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
14828
14828
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -14836,7 +14836,7 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
14836
14836
  });
14837
14837
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
14838
14838
  credential: credentials,
14839
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
14839
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
14840
14840
  challengeCallbacks: {
14841
14841
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
14842
14842
  },
@@ -14885,7 +14885,7 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
14885
14885
  const apiVersionPolicy = {
14886
14886
  name: "CustomApiVersionPolicy",
14887
14887
  sendRequest(request, next) {
14888
- return tslib.__awaiter(this, void 0, void 0, function* () {
14888
+ return tslib.__awaiter(this, undefined, undefined, function* () {
14889
14889
  const param = request.url.split("?");
14890
14890
  if (param.length > 1) {
14891
14891
  const newParams = param[1].split("&").map((item) => {