@azure/arm-storsimple8000series 2.1.1-alpha.20250103.1 → 2.1.1-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
  }
@@ -4465,7 +4465,7 @@ class OperationsImpl {
4465
4465
  return this;
4466
4466
  },
4467
4467
  byPage: (settings) => {
4468
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4468
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4469
4469
  throw new Error("maxPageSize is not supported by this operation.");
4470
4470
  }
4471
4471
  return this.listPagingPage(options, settings);
@@ -4475,7 +4475,7 @@ class OperationsImpl {
4475
4475
  listPagingPage(options, settings) {
4476
4476
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4477
4477
  let result;
4478
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4478
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4479
4479
  if (!continuationToken) {
4480
4480
  result = yield tslib.__await(this._list(options));
4481
4481
  let page = result.value || [];
@@ -4587,7 +4587,7 @@ class ManagersImpl {
4587
4587
  return this;
4588
4588
  },
4589
4589
  byPage: (settings) => {
4590
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4590
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4591
4591
  throw new Error("maxPageSize is not supported by this operation.");
4592
4592
  }
4593
4593
  return this.listPagingPage(options, settings);
@@ -4636,7 +4636,7 @@ class ManagersImpl {
4636
4636
  return this;
4637
4637
  },
4638
4638
  byPage: (settings) => {
4639
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4639
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4640
4640
  throw new Error("maxPageSize is not supported by this operation.");
4641
4641
  }
4642
4642
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -4686,7 +4686,7 @@ class ManagersImpl {
4686
4686
  return this;
4687
4687
  },
4688
4688
  byPage: (settings) => {
4689
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4689
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4690
4690
  throw new Error("maxPageSize is not supported by this operation.");
4691
4691
  }
4692
4692
  return this.listFeatureSupportStatusPagingPage(resourceGroupName, managerName, options, settings);
@@ -4737,7 +4737,7 @@ class ManagersImpl {
4737
4737
  return this;
4738
4738
  },
4739
4739
  byPage: (settings) => {
4740
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4740
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4741
4741
  throw new Error("maxPageSize is not supported by this operation.");
4742
4742
  }
4743
4743
  return this.listMetricsPagingPage(resourceGroupName, managerName, filter, options, settings);
@@ -4787,7 +4787,7 @@ class ManagersImpl {
4787
4787
  return this;
4788
4788
  },
4789
4789
  byPage: (settings) => {
4790
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4790
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4791
4791
  throw new Error("maxPageSize is not supported by this operation.");
4792
4792
  }
4793
4793
  return this.listMetricDefinitionPagingPage(resourceGroupName, managerName, options, settings);
@@ -5331,12 +5331,12 @@ class LroImpl {
5331
5331
  this.requestMethod = requestMethod;
5332
5332
  }
5333
5333
  sendInitialRequest() {
5334
- return tslib.__awaiter(this, void 0, void 0, function* () {
5334
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5335
5335
  return this.sendOperationFn(this.args, this.spec);
5336
5336
  });
5337
5337
  }
5338
5338
  sendPollRequest(path) {
5339
- return tslib.__awaiter(this, void 0, void 0, function* () {
5339
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5340
5340
  const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
5341
5341
  return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
5342
5342
  });
@@ -5376,7 +5376,7 @@ class AccessControlRecordsImpl {
5376
5376
  return this;
5377
5377
  },
5378
5378
  byPage: (settings) => {
5379
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5379
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5380
5380
  throw new Error("maxPageSize is not supported by this operation.");
5381
5381
  }
5382
5382
  return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
@@ -5438,17 +5438,17 @@ class AccessControlRecordsImpl {
5438
5438
  * @param options The options parameters.
5439
5439
  */
5440
5440
  beginCreateOrUpdate(accessControlRecordName, resourceGroupName, managerName, parameters, options) {
5441
- return tslib.__awaiter(this, void 0, void 0, function* () {
5442
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5441
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5442
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5443
5443
  return this.client.sendOperationRequest(args, spec);
5444
5444
  });
5445
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5445
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5446
5446
  var _a;
5447
5447
  let currentRawResponse = undefined;
5448
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5448
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5449
5449
  const callback = (rawResponse, flatResponse) => {
5450
5450
  currentRawResponse = rawResponse;
5451
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5451
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5452
5452
  };
5453
5453
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5454
5454
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5469,8 +5469,8 @@ class AccessControlRecordsImpl {
5469
5469
  options
5470
5470
  }, createOrUpdateOperationSpec$6);
5471
5471
  const poller = new coreLro.LroEngine(lro, {
5472
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5473
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5472
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5473
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5474
5474
  });
5475
5475
  yield poller.poll();
5476
5476
  return poller;
@@ -5485,7 +5485,7 @@ class AccessControlRecordsImpl {
5485
5485
  * @param options The options parameters.
5486
5486
  */
5487
5487
  beginCreateOrUpdateAndWait(accessControlRecordName, resourceGroupName, managerName, parameters, options) {
5488
- return tslib.__awaiter(this, void 0, void 0, function* () {
5488
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5489
5489
  const poller = yield this.beginCreateOrUpdate(accessControlRecordName, resourceGroupName, managerName, parameters, options);
5490
5490
  return poller.pollUntilDone();
5491
5491
  });
@@ -5498,17 +5498,17 @@ class AccessControlRecordsImpl {
5498
5498
  * @param options The options parameters.
5499
5499
  */
5500
5500
  beginDelete(accessControlRecordName, resourceGroupName, managerName, options) {
5501
- return tslib.__awaiter(this, void 0, void 0, function* () {
5502
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5501
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5502
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5503
5503
  return this.client.sendOperationRequest(args, spec);
5504
5504
  });
5505
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5505
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5506
5506
  var _a;
5507
5507
  let currentRawResponse = undefined;
5508
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5508
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5509
5509
  const callback = (rawResponse, flatResponse) => {
5510
5510
  currentRawResponse = rawResponse;
5511
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5511
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5512
5512
  };
5513
5513
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5514
5514
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5523,8 +5523,8 @@ class AccessControlRecordsImpl {
5523
5523
  });
5524
5524
  const lro = new LroImpl(sendOperation, { accessControlRecordName, resourceGroupName, managerName, options }, deleteOperationSpec$8);
5525
5525
  const poller = new coreLro.LroEngine(lro, {
5526
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5527
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5526
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5527
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5528
5528
  });
5529
5529
  yield poller.poll();
5530
5530
  return poller;
@@ -5538,7 +5538,7 @@ class AccessControlRecordsImpl {
5538
5538
  * @param options The options parameters.
5539
5539
  */
5540
5540
  beginDeleteAndWait(accessControlRecordName, resourceGroupName, managerName, options) {
5541
- return tslib.__awaiter(this, void 0, void 0, function* () {
5541
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5542
5542
  const poller = yield this.beginDelete(accessControlRecordName, resourceGroupName, managerName, options);
5543
5543
  return poller.pollUntilDone();
5544
5544
  });
@@ -5661,7 +5661,7 @@ class AlertsImpl {
5661
5661
  return this;
5662
5662
  },
5663
5663
  byPage: (settings) => {
5664
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5664
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5665
5665
  throw new Error("maxPageSize is not supported by this operation.");
5666
5666
  }
5667
5667
  return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
@@ -5671,7 +5671,7 @@ class AlertsImpl {
5671
5671
  listByManagerPagingPage(resourceGroupName, managerName, options, settings) {
5672
5672
  return tslib.__asyncGenerator(this, arguments, function* listByManagerPagingPage_1() {
5673
5673
  let result;
5674
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5674
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5675
5675
  if (!continuationToken) {
5676
5676
  result = yield tslib.__await(this._listByManager(resourceGroupName, managerName, options));
5677
5677
  let page = result.value || [];
@@ -5854,7 +5854,7 @@ class BandwidthSettingsImpl {
5854
5854
  return this;
5855
5855
  },
5856
5856
  byPage: (settings) => {
5857
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5857
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5858
5858
  throw new Error("maxPageSize is not supported by this operation.");
5859
5859
  }
5860
5860
  return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
@@ -5916,17 +5916,17 @@ class BandwidthSettingsImpl {
5916
5916
  * @param options The options parameters.
5917
5917
  */
5918
5918
  beginCreateOrUpdate(bandwidthSettingName, resourceGroupName, managerName, parameters, options) {
5919
- return tslib.__awaiter(this, void 0, void 0, function* () {
5920
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5919
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5920
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5921
5921
  return this.client.sendOperationRequest(args, spec);
5922
5922
  });
5923
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5923
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5924
5924
  var _a;
5925
5925
  let currentRawResponse = undefined;
5926
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5926
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5927
5927
  const callback = (rawResponse, flatResponse) => {
5928
5928
  currentRawResponse = rawResponse;
5929
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5929
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5930
5930
  };
5931
5931
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5932
5932
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5947,8 +5947,8 @@ class BandwidthSettingsImpl {
5947
5947
  options
5948
5948
  }, createOrUpdateOperationSpec$5);
5949
5949
  const poller = new coreLro.LroEngine(lro, {
5950
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5951
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5950
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5951
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5952
5952
  });
5953
5953
  yield poller.poll();
5954
5954
  return poller;
@@ -5963,7 +5963,7 @@ class BandwidthSettingsImpl {
5963
5963
  * @param options The options parameters.
5964
5964
  */
5965
5965
  beginCreateOrUpdateAndWait(bandwidthSettingName, resourceGroupName, managerName, parameters, options) {
5966
- return tslib.__awaiter(this, void 0, void 0, function* () {
5966
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5967
5967
  const poller = yield this.beginCreateOrUpdate(bandwidthSettingName, resourceGroupName, managerName, parameters, options);
5968
5968
  return poller.pollUntilDone();
5969
5969
  });
@@ -5976,17 +5976,17 @@ class BandwidthSettingsImpl {
5976
5976
  * @param options The options parameters.
5977
5977
  */
5978
5978
  beginDelete(bandwidthSettingName, resourceGroupName, managerName, options) {
5979
- return tslib.__awaiter(this, void 0, void 0, function* () {
5980
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5979
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5980
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5981
5981
  return this.client.sendOperationRequest(args, spec);
5982
5982
  });
5983
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5983
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5984
5984
  var _a;
5985
5985
  let currentRawResponse = undefined;
5986
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5986
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5987
5987
  const callback = (rawResponse, flatResponse) => {
5988
5988
  currentRawResponse = rawResponse;
5989
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5989
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5990
5990
  };
5991
5991
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5992
5992
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6001,8 +6001,8 @@ class BandwidthSettingsImpl {
6001
6001
  });
6002
6002
  const lro = new LroImpl(sendOperation, { bandwidthSettingName, resourceGroupName, managerName, options }, deleteOperationSpec$7);
6003
6003
  const poller = new coreLro.LroEngine(lro, {
6004
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6005
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6004
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6005
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6006
6006
  });
6007
6007
  yield poller.poll();
6008
6008
  return poller;
@@ -6016,7 +6016,7 @@ class BandwidthSettingsImpl {
6016
6016
  * @param options The options parameters.
6017
6017
  */
6018
6018
  beginDeleteAndWait(bandwidthSettingName, resourceGroupName, managerName, options) {
6019
- return tslib.__awaiter(this, void 0, void 0, function* () {
6019
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6020
6020
  const poller = yield this.beginDelete(bandwidthSettingName, resourceGroupName, managerName, options);
6021
6021
  return poller.pollUntilDone();
6022
6022
  });
@@ -6139,7 +6139,7 @@ class CloudAppliancesImpl {
6139
6139
  return this;
6140
6140
  },
6141
6141
  byPage: (settings) => {
6142
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6142
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6143
6143
  throw new Error("maxPageSize is not supported by this operation.");
6144
6144
  }
6145
6145
  return this.listSupportedConfigurationsPagingPage(resourceGroupName, managerName, options, settings);
@@ -6190,17 +6190,17 @@ class CloudAppliancesImpl {
6190
6190
  * @param options The options parameters.
6191
6191
  */
6192
6192
  beginProvision(resourceGroupName, managerName, parameters, options) {
6193
- return tslib.__awaiter(this, void 0, void 0, function* () {
6194
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6193
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6194
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6195
6195
  return this.client.sendOperationRequest(args, spec);
6196
6196
  });
6197
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6197
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6198
6198
  var _a;
6199
6199
  let currentRawResponse = undefined;
6200
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6200
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6201
6201
  const callback = (rawResponse, flatResponse) => {
6202
6202
  currentRawResponse = rawResponse;
6203
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6203
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6204
6204
  };
6205
6205
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6206
6206
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6215,8 +6215,8 @@ class CloudAppliancesImpl {
6215
6215
  });
6216
6216
  const lro = new LroImpl(sendOperation, { resourceGroupName, managerName, parameters, options }, provisionOperationSpec);
6217
6217
  const poller = new coreLro.LroEngine(lro, {
6218
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6219
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6218
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6219
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6220
6220
  });
6221
6221
  yield poller.poll();
6222
6222
  return poller;
@@ -6230,7 +6230,7 @@ class CloudAppliancesImpl {
6230
6230
  * @param options The options parameters.
6231
6231
  */
6232
6232
  beginProvisionAndWait(resourceGroupName, managerName, parameters, options) {
6233
- return tslib.__awaiter(this, void 0, void 0, function* () {
6233
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6234
6234
  const poller = yield this.beginProvision(resourceGroupName, managerName, parameters, options);
6235
6235
  return poller.pollUntilDone();
6236
6236
  });
@@ -6306,7 +6306,7 @@ class DevicesImpl {
6306
6306
  return this;
6307
6307
  },
6308
6308
  byPage: (settings) => {
6309
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6309
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6310
6310
  throw new Error("maxPageSize is not supported by this operation.");
6311
6311
  }
6312
6312
  return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
@@ -6359,7 +6359,7 @@ class DevicesImpl {
6359
6359
  return this;
6360
6360
  },
6361
6361
  byPage: (settings) => {
6362
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6362
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6363
6363
  throw new Error("maxPageSize is not supported by this operation.");
6364
6364
  }
6365
6365
  return this.listFailoverSetsPagingPage(deviceName, resourceGroupName, managerName, options, settings);
@@ -6411,7 +6411,7 @@ class DevicesImpl {
6411
6411
  return this;
6412
6412
  },
6413
6413
  byPage: (settings) => {
6414
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6414
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6415
6415
  throw new Error("maxPageSize is not supported by this operation.");
6416
6416
  }
6417
6417
  return this.listMetricsPagingPage(deviceName, resourceGroupName, managerName, filter, options, settings);
@@ -6462,7 +6462,7 @@ class DevicesImpl {
6462
6462
  return this;
6463
6463
  },
6464
6464
  byPage: (settings) => {
6465
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6465
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6466
6466
  throw new Error("maxPageSize is not supported by this operation.");
6467
6467
  }
6468
6468
  return this.listMetricDefinitionPagingPage(deviceName, resourceGroupName, managerName, options, settings);
@@ -6516,7 +6516,7 @@ class DevicesImpl {
6516
6516
  return this;
6517
6517
  },
6518
6518
  byPage: (settings) => {
6519
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6519
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6520
6520
  throw new Error("maxPageSize is not supported by this operation.");
6521
6521
  }
6522
6522
  return this.listFailoverTargetsPagingPage(sourceDeviceName, resourceGroupName, managerName, parameters, options, settings);
@@ -6558,17 +6558,17 @@ class DevicesImpl {
6558
6558
  * @param options The options parameters.
6559
6559
  */
6560
6560
  beginConfigure(resourceGroupName, managerName, parameters, options) {
6561
- return tslib.__awaiter(this, void 0, void 0, function* () {
6562
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6561
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6562
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6563
6563
  return this.client.sendOperationRequest(args, spec);
6564
6564
  });
6565
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6565
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6566
6566
  var _a;
6567
6567
  let currentRawResponse = undefined;
6568
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6568
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6569
6569
  const callback = (rawResponse, flatResponse) => {
6570
6570
  currentRawResponse = rawResponse;
6571
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6571
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6572
6572
  };
6573
6573
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6574
6574
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6583,8 +6583,8 @@ class DevicesImpl {
6583
6583
  });
6584
6584
  const lro = new LroImpl(sendOperation, { resourceGroupName, managerName, parameters, options }, configureOperationSpec);
6585
6585
  const poller = new coreLro.LroEngine(lro, {
6586
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6587
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6586
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6587
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6588
6588
  });
6589
6589
  yield poller.poll();
6590
6590
  return poller;
@@ -6598,7 +6598,7 @@ class DevicesImpl {
6598
6598
  * @param options The options parameters.
6599
6599
  */
6600
6600
  beginConfigureAndWait(resourceGroupName, managerName, parameters, options) {
6601
- return tslib.__awaiter(this, void 0, void 0, function* () {
6601
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6602
6602
  const poller = yield this.beginConfigure(resourceGroupName, managerName, parameters, options);
6603
6603
  return poller.pollUntilDone();
6604
6604
  });
@@ -6630,17 +6630,17 @@ class DevicesImpl {
6630
6630
  * @param options The options parameters.
6631
6631
  */
6632
6632
  beginDelete(deviceName, resourceGroupName, managerName, options) {
6633
- return tslib.__awaiter(this, void 0, void 0, function* () {
6634
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6633
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6634
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6635
6635
  return this.client.sendOperationRequest(args, spec);
6636
6636
  });
6637
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6637
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6638
6638
  var _a;
6639
6639
  let currentRawResponse = undefined;
6640
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6640
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6641
6641
  const callback = (rawResponse, flatResponse) => {
6642
6642
  currentRawResponse = rawResponse;
6643
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6643
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6644
6644
  };
6645
6645
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6646
6646
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6655,8 +6655,8 @@ class DevicesImpl {
6655
6655
  });
6656
6656
  const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, options }, deleteOperationSpec$6);
6657
6657
  const poller = new coreLro.LroEngine(lro, {
6658
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6659
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6658
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6659
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6660
6660
  });
6661
6661
  yield poller.poll();
6662
6662
  return poller;
@@ -6670,7 +6670,7 @@ class DevicesImpl {
6670
6670
  * @param options The options parameters.
6671
6671
  */
6672
6672
  beginDeleteAndWait(deviceName, resourceGroupName, managerName, options) {
6673
- return tslib.__awaiter(this, void 0, void 0, function* () {
6673
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6674
6674
  const poller = yield this.beginDelete(deviceName, resourceGroupName, managerName, options);
6675
6675
  return poller.pollUntilDone();
6676
6676
  });
@@ -6704,17 +6704,17 @@ class DevicesImpl {
6704
6704
  * @param options The options parameters.
6705
6705
  */
6706
6706
  beginDeactivate(deviceName, resourceGroupName, managerName, options) {
6707
- return tslib.__awaiter(this, void 0, void 0, function* () {
6708
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6707
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6708
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6709
6709
  return this.client.sendOperationRequest(args, spec);
6710
6710
  });
6711
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6711
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6712
6712
  var _a;
6713
6713
  let currentRawResponse = undefined;
6714
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6714
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6715
6715
  const callback = (rawResponse, flatResponse) => {
6716
6716
  currentRawResponse = rawResponse;
6717
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6717
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6718
6718
  };
6719
6719
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6720
6720
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6729,8 +6729,8 @@ class DevicesImpl {
6729
6729
  });
6730
6730
  const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, options }, deactivateOperationSpec);
6731
6731
  const poller = new coreLro.LroEngine(lro, {
6732
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6733
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6732
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6733
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6734
6734
  });
6735
6735
  yield poller.poll();
6736
6736
  return poller;
@@ -6744,7 +6744,7 @@ class DevicesImpl {
6744
6744
  * @param options The options parameters.
6745
6745
  */
6746
6746
  beginDeactivateAndWait(deviceName, resourceGroupName, managerName, options) {
6747
- return tslib.__awaiter(this, void 0, void 0, function* () {
6747
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6748
6748
  const poller = yield this.beginDeactivate(deviceName, resourceGroupName, managerName, options);
6749
6749
  return poller.pollUntilDone();
6750
6750
  });
@@ -6757,17 +6757,17 @@ class DevicesImpl {
6757
6757
  * @param options The options parameters.
6758
6758
  */
6759
6759
  beginInstallUpdates(deviceName, resourceGroupName, managerName, options) {
6760
- return tslib.__awaiter(this, void 0, void 0, function* () {
6761
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6760
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6761
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6762
6762
  return this.client.sendOperationRequest(args, spec);
6763
6763
  });
6764
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6764
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6765
6765
  var _a;
6766
6766
  let currentRawResponse = undefined;
6767
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6767
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6768
6768
  const callback = (rawResponse, flatResponse) => {
6769
6769
  currentRawResponse = rawResponse;
6770
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6770
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6771
6771
  };
6772
6772
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6773
6773
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6782,8 +6782,8 @@ class DevicesImpl {
6782
6782
  });
6783
6783
  const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, options }, installUpdatesOperationSpec);
6784
6784
  const poller = new coreLro.LroEngine(lro, {
6785
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6786
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6785
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6786
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6787
6787
  });
6788
6788
  yield poller.poll();
6789
6789
  return poller;
@@ -6797,7 +6797,7 @@ class DevicesImpl {
6797
6797
  * @param options The options parameters.
6798
6798
  */
6799
6799
  beginInstallUpdatesAndWait(deviceName, resourceGroupName, managerName, options) {
6800
- return tslib.__awaiter(this, void 0, void 0, function* () {
6800
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6801
6801
  const poller = yield this.beginInstallUpdates(deviceName, resourceGroupName, managerName, options);
6802
6802
  return poller.pollUntilDone();
6803
6803
  });
@@ -6843,17 +6843,17 @@ class DevicesImpl {
6843
6843
  * @param options The options parameters.
6844
6844
  */
6845
6845
  beginScanForUpdates(deviceName, resourceGroupName, managerName, options) {
6846
- return tslib.__awaiter(this, void 0, void 0, function* () {
6847
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6846
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6847
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6848
6848
  return this.client.sendOperationRequest(args, spec);
6849
6849
  });
6850
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6850
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6851
6851
  var _a;
6852
6852
  let currentRawResponse = undefined;
6853
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6853
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6854
6854
  const callback = (rawResponse, flatResponse) => {
6855
6855
  currentRawResponse = rawResponse;
6856
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6856
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6857
6857
  };
6858
6858
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6859
6859
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6868,8 +6868,8 @@ class DevicesImpl {
6868
6868
  });
6869
6869
  const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, options }, scanForUpdatesOperationSpec);
6870
6870
  const poller = new coreLro.LroEngine(lro, {
6871
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6872
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6871
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6872
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6873
6873
  });
6874
6874
  yield poller.poll();
6875
6875
  return poller;
@@ -6883,7 +6883,7 @@ class DevicesImpl {
6883
6883
  * @param options The options parameters.
6884
6884
  */
6885
6885
  beginScanForUpdatesAndWait(deviceName, resourceGroupName, managerName, options) {
6886
- return tslib.__awaiter(this, void 0, void 0, function* () {
6886
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6887
6887
  const poller = yield this.beginScanForUpdates(deviceName, resourceGroupName, managerName, options);
6888
6888
  return poller.pollUntilDone();
6889
6889
  });
@@ -6908,17 +6908,17 @@ class DevicesImpl {
6908
6908
  * @param options The options parameters.
6909
6909
  */
6910
6910
  beginFailover(sourceDeviceName, resourceGroupName, managerName, parameters, options) {
6911
- return tslib.__awaiter(this, void 0, void 0, function* () {
6912
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6911
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6912
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6913
6913
  return this.client.sendOperationRequest(args, spec);
6914
6914
  });
6915
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6915
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6916
6916
  var _a;
6917
6917
  let currentRawResponse = undefined;
6918
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6918
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6919
6919
  const callback = (rawResponse, flatResponse) => {
6920
6920
  currentRawResponse = rawResponse;
6921
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6921
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6922
6922
  };
6923
6923
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6924
6924
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6933,8 +6933,8 @@ class DevicesImpl {
6933
6933
  });
6934
6934
  const lro = new LroImpl(sendOperation, { sourceDeviceName, resourceGroupName, managerName, parameters, options }, failoverOperationSpec);
6935
6935
  const poller = new coreLro.LroEngine(lro, {
6936
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6937
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6936
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6937
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6938
6938
  });
6939
6939
  yield poller.poll();
6940
6940
  return poller;
@@ -6950,7 +6950,7 @@ class DevicesImpl {
6950
6950
  * @param options The options parameters.
6951
6951
  */
6952
6952
  beginFailoverAndWait(sourceDeviceName, resourceGroupName, managerName, parameters, options) {
6953
- return tslib.__awaiter(this, void 0, void 0, function* () {
6953
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6954
6954
  const poller = yield this.beginFailover(sourceDeviceName, resourceGroupName, managerName, parameters, options);
6955
6955
  return poller.pollUntilDone();
6956
6956
  });
@@ -7265,17 +7265,17 @@ class DeviceSettingsImpl {
7265
7265
  * @param options The options parameters.
7266
7266
  */
7267
7267
  beginCreateOrUpdateAlertSettings(deviceName, resourceGroupName, managerName, parameters, options) {
7268
- return tslib.__awaiter(this, void 0, void 0, function* () {
7269
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7268
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7269
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7270
7270
  return this.client.sendOperationRequest(args, spec);
7271
7271
  });
7272
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7272
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7273
7273
  var _a;
7274
7274
  let currentRawResponse = undefined;
7275
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7275
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7276
7276
  const callback = (rawResponse, flatResponse) => {
7277
7277
  currentRawResponse = rawResponse;
7278
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7278
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7279
7279
  };
7280
7280
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7281
7281
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7290,8 +7290,8 @@ class DeviceSettingsImpl {
7290
7290
  });
7291
7291
  const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, parameters, options }, createOrUpdateAlertSettingsOperationSpec);
7292
7292
  const poller = new coreLro.LroEngine(lro, {
7293
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7294
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7293
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7294
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7295
7295
  });
7296
7296
  yield poller.poll();
7297
7297
  return poller;
@@ -7306,7 +7306,7 @@ class DeviceSettingsImpl {
7306
7306
  * @param options The options parameters.
7307
7307
  */
7308
7308
  beginCreateOrUpdateAlertSettingsAndWait(deviceName, resourceGroupName, managerName, parameters, options) {
7309
- return tslib.__awaiter(this, void 0, void 0, function* () {
7309
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7310
7310
  const poller = yield this.beginCreateOrUpdateAlertSettings(deviceName, resourceGroupName, managerName, parameters, options);
7311
7311
  return poller.pollUntilDone();
7312
7312
  });
@@ -7330,17 +7330,17 @@ class DeviceSettingsImpl {
7330
7330
  * @param options The options parameters.
7331
7331
  */
7332
7332
  beginUpdateNetworkSettings(deviceName, resourceGroupName, managerName, parameters, options) {
7333
- return tslib.__awaiter(this, void 0, void 0, function* () {
7334
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7333
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7334
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7335
7335
  return this.client.sendOperationRequest(args, spec);
7336
7336
  });
7337
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7337
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7338
7338
  var _a;
7339
7339
  let currentRawResponse = undefined;
7340
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7340
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7341
7341
  const callback = (rawResponse, flatResponse) => {
7342
7342
  currentRawResponse = rawResponse;
7343
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7343
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7344
7344
  };
7345
7345
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7346
7346
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7355,8 +7355,8 @@ class DeviceSettingsImpl {
7355
7355
  });
7356
7356
  const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, parameters, options }, updateNetworkSettingsOperationSpec);
7357
7357
  const poller = new coreLro.LroEngine(lro, {
7358
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7359
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7358
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7359
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7360
7360
  });
7361
7361
  yield poller.poll();
7362
7362
  return poller;
@@ -7371,7 +7371,7 @@ class DeviceSettingsImpl {
7371
7371
  * @param options The options parameters.
7372
7372
  */
7373
7373
  beginUpdateNetworkSettingsAndWait(deviceName, resourceGroupName, managerName, parameters, options) {
7374
- return tslib.__awaiter(this, void 0, void 0, function* () {
7374
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7375
7375
  const poller = yield this.beginUpdateNetworkSettings(deviceName, resourceGroupName, managerName, parameters, options);
7376
7376
  return poller.pollUntilDone();
7377
7377
  });
@@ -7395,17 +7395,17 @@ class DeviceSettingsImpl {
7395
7395
  * @param options The options parameters.
7396
7396
  */
7397
7397
  beginUpdateSecuritySettings(deviceName, resourceGroupName, managerName, parameters, options) {
7398
- return tslib.__awaiter(this, void 0, void 0, function* () {
7399
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7398
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7399
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7400
7400
  return this.client.sendOperationRequest(args, spec);
7401
7401
  });
7402
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7402
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7403
7403
  var _a;
7404
7404
  let currentRawResponse = undefined;
7405
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7405
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7406
7406
  const callback = (rawResponse, flatResponse) => {
7407
7407
  currentRawResponse = rawResponse;
7408
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7408
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7409
7409
  };
7410
7410
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7411
7411
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7420,8 +7420,8 @@ class DeviceSettingsImpl {
7420
7420
  });
7421
7421
  const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, parameters, options }, updateSecuritySettingsOperationSpec);
7422
7422
  const poller = new coreLro.LroEngine(lro, {
7423
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7424
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7423
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7424
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7425
7425
  });
7426
7426
  yield poller.poll();
7427
7427
  return poller;
@@ -7436,7 +7436,7 @@ class DeviceSettingsImpl {
7436
7436
  * @param options The options parameters.
7437
7437
  */
7438
7438
  beginUpdateSecuritySettingsAndWait(deviceName, resourceGroupName, managerName, parameters, options) {
7439
- return tslib.__awaiter(this, void 0, void 0, function* () {
7439
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7440
7440
  const poller = yield this.beginUpdateSecuritySettings(deviceName, resourceGroupName, managerName, parameters, options);
7441
7441
  return poller.pollUntilDone();
7442
7442
  });
@@ -7449,17 +7449,17 @@ class DeviceSettingsImpl {
7449
7449
  * @param options The options parameters.
7450
7450
  */
7451
7451
  beginSyncRemotemanagementCertificate(deviceName, resourceGroupName, managerName, options) {
7452
- return tslib.__awaiter(this, void 0, void 0, function* () {
7453
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7452
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7453
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7454
7454
  return this.client.sendOperationRequest(args, spec);
7455
7455
  });
7456
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7456
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7457
7457
  var _a;
7458
7458
  let currentRawResponse = undefined;
7459
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7459
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7460
7460
  const callback = (rawResponse, flatResponse) => {
7461
7461
  currentRawResponse = rawResponse;
7462
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7462
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7463
7463
  };
7464
7464
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7465
7465
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7474,8 +7474,8 @@ class DeviceSettingsImpl {
7474
7474
  });
7475
7475
  const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, options }, syncRemotemanagementCertificateOperationSpec);
7476
7476
  const poller = new coreLro.LroEngine(lro, {
7477
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7478
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7477
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7478
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7479
7479
  });
7480
7480
  yield poller.poll();
7481
7481
  return poller;
@@ -7489,7 +7489,7 @@ class DeviceSettingsImpl {
7489
7489
  * @param options The options parameters.
7490
7490
  */
7491
7491
  beginSyncRemotemanagementCertificateAndWait(deviceName, resourceGroupName, managerName, options) {
7492
- return tslib.__awaiter(this, void 0, void 0, function* () {
7492
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7493
7493
  const poller = yield this.beginSyncRemotemanagementCertificate(deviceName, resourceGroupName, managerName, options);
7494
7494
  return poller.pollUntilDone();
7495
7495
  });
@@ -7513,17 +7513,17 @@ class DeviceSettingsImpl {
7513
7513
  * @param options The options parameters.
7514
7514
  */
7515
7515
  beginCreateOrUpdateTimeSettings(deviceName, resourceGroupName, managerName, parameters, options) {
7516
- return tslib.__awaiter(this, void 0, void 0, function* () {
7517
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7516
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7517
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7518
7518
  return this.client.sendOperationRequest(args, spec);
7519
7519
  });
7520
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7520
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7521
7521
  var _a;
7522
7522
  let currentRawResponse = undefined;
7523
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7523
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7524
7524
  const callback = (rawResponse, flatResponse) => {
7525
7525
  currentRawResponse = rawResponse;
7526
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7526
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7527
7527
  };
7528
7528
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7529
7529
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7538,8 +7538,8 @@ class DeviceSettingsImpl {
7538
7538
  });
7539
7539
  const lro = new LroImpl(sendOperation, { deviceName, resourceGroupName, managerName, parameters, options }, createOrUpdateTimeSettingsOperationSpec);
7540
7540
  const poller = new coreLro.LroEngine(lro, {
7541
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7542
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7541
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7542
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7543
7543
  });
7544
7544
  yield poller.poll();
7545
7545
  return poller;
@@ -7554,7 +7554,7 @@ class DeviceSettingsImpl {
7554
7554
  * @param options The options parameters.
7555
7555
  */
7556
7556
  beginCreateOrUpdateTimeSettingsAndWait(deviceName, resourceGroupName, managerName, parameters, options) {
7557
- return tslib.__awaiter(this, void 0, void 0, function* () {
7557
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7558
7558
  const poller = yield this.beginCreateOrUpdateTimeSettings(deviceName, resourceGroupName, managerName, parameters, options);
7559
7559
  return poller.pollUntilDone();
7560
7560
  });
@@ -7807,7 +7807,7 @@ class BackupPoliciesImpl {
7807
7807
  return this;
7808
7808
  },
7809
7809
  byPage: (settings) => {
7810
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7810
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7811
7811
  throw new Error("maxPageSize is not supported by this operation.");
7812
7812
  }
7813
7813
  return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
@@ -7872,17 +7872,17 @@ class BackupPoliciesImpl {
7872
7872
  * @param options The options parameters.
7873
7873
  */
7874
7874
  beginCreateOrUpdate(deviceName, backupPolicyName, resourceGroupName, managerName, parameters, options) {
7875
- return tslib.__awaiter(this, void 0, void 0, function* () {
7876
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7875
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7876
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7877
7877
  return this.client.sendOperationRequest(args, spec);
7878
7878
  });
7879
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7879
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7880
7880
  var _a;
7881
7881
  let currentRawResponse = undefined;
7882
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7882
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7883
7883
  const callback = (rawResponse, flatResponse) => {
7884
7884
  currentRawResponse = rawResponse;
7885
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7885
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7886
7886
  };
7887
7887
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7888
7888
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7904,8 +7904,8 @@ class BackupPoliciesImpl {
7904
7904
  options
7905
7905
  }, createOrUpdateOperationSpec$4);
7906
7906
  const poller = new coreLro.LroEngine(lro, {
7907
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7908
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7907
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7908
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7909
7909
  });
7910
7910
  yield poller.poll();
7911
7911
  return poller;
@@ -7921,7 +7921,7 @@ class BackupPoliciesImpl {
7921
7921
  * @param options The options parameters.
7922
7922
  */
7923
7923
  beginCreateOrUpdateAndWait(deviceName, backupPolicyName, resourceGroupName, managerName, parameters, options) {
7924
- return tslib.__awaiter(this, void 0, void 0, function* () {
7924
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7925
7925
  const poller = yield this.beginCreateOrUpdate(deviceName, backupPolicyName, resourceGroupName, managerName, parameters, options);
7926
7926
  return poller.pollUntilDone();
7927
7927
  });
@@ -7935,17 +7935,17 @@ class BackupPoliciesImpl {
7935
7935
  * @param options The options parameters.
7936
7936
  */
7937
7937
  beginDelete(deviceName, backupPolicyName, resourceGroupName, managerName, options) {
7938
- return tslib.__awaiter(this, void 0, void 0, function* () {
7939
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7938
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7939
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7940
7940
  return this.client.sendOperationRequest(args, spec);
7941
7941
  });
7942
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7942
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7943
7943
  var _a;
7944
7944
  let currentRawResponse = undefined;
7945
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7945
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7946
7946
  const callback = (rawResponse, flatResponse) => {
7947
7947
  currentRawResponse = rawResponse;
7948
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7948
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7949
7949
  };
7950
7950
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7951
7951
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7960,8 +7960,8 @@ class BackupPoliciesImpl {
7960
7960
  });
7961
7961
  const lro = new LroImpl(sendOperation, { deviceName, backupPolicyName, resourceGroupName, managerName, options }, deleteOperationSpec$5);
7962
7962
  const poller = new coreLro.LroEngine(lro, {
7963
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7964
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7963
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7964
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7965
7965
  });
7966
7966
  yield poller.poll();
7967
7967
  return poller;
@@ -7976,7 +7976,7 @@ class BackupPoliciesImpl {
7976
7976
  * @param options The options parameters.
7977
7977
  */
7978
7978
  beginDeleteAndWait(deviceName, backupPolicyName, resourceGroupName, managerName, options) {
7979
- return tslib.__awaiter(this, void 0, void 0, function* () {
7979
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7980
7980
  const poller = yield this.beginDelete(deviceName, backupPolicyName, resourceGroupName, managerName, options);
7981
7981
  return poller.pollUntilDone();
7982
7982
  });
@@ -7991,17 +7991,17 @@ class BackupPoliciesImpl {
7991
7991
  * @param options The options parameters.
7992
7992
  */
7993
7993
  beginBackupNow(deviceName, backupPolicyName, backupType, resourceGroupName, managerName, options) {
7994
- return tslib.__awaiter(this, void 0, void 0, function* () {
7995
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7994
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7995
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7996
7996
  return this.client.sendOperationRequest(args, spec);
7997
7997
  });
7998
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7998
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7999
7999
  var _a;
8000
8000
  let currentRawResponse = undefined;
8001
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8001
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8002
8002
  const callback = (rawResponse, flatResponse) => {
8003
8003
  currentRawResponse = rawResponse;
8004
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8004
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8005
8005
  };
8006
8006
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8007
8007
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8023,8 +8023,8 @@ class BackupPoliciesImpl {
8023
8023
  options
8024
8024
  }, backupNowOperationSpec);
8025
8025
  const poller = new coreLro.LroEngine(lro, {
8026
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8027
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
8026
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8027
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
8028
8028
  });
8029
8029
  yield poller.poll();
8030
8030
  return poller;
@@ -8040,7 +8040,7 @@ class BackupPoliciesImpl {
8040
8040
  * @param options The options parameters.
8041
8041
  */
8042
8042
  beginBackupNowAndWait(deviceName, backupPolicyName, backupType, resourceGroupName, managerName, options) {
8043
- return tslib.__awaiter(this, void 0, void 0, function* () {
8043
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8044
8044
  const poller = yield this.beginBackupNow(deviceName, backupPolicyName, backupType, resourceGroupName, managerName, options);
8045
8045
  return poller.pollUntilDone();
8046
8046
  });
@@ -8184,7 +8184,7 @@ class BackupSchedulesImpl {
8184
8184
  return this;
8185
8185
  },
8186
8186
  byPage: (settings) => {
8187
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8187
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8188
8188
  throw new Error("maxPageSize is not supported by this operation.");
8189
8189
  }
8190
8190
  return this.listByBackupPolicyPagingPage(deviceName, backupPolicyName, resourceGroupName, managerName, options, settings);
@@ -8259,17 +8259,17 @@ class BackupSchedulesImpl {
8259
8259
  * @param options The options parameters.
8260
8260
  */
8261
8261
  beginCreateOrUpdate(deviceName, backupPolicyName, backupScheduleName, resourceGroupName, managerName, parameters, options) {
8262
- return tslib.__awaiter(this, void 0, void 0, function* () {
8263
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8262
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8263
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8264
8264
  return this.client.sendOperationRequest(args, spec);
8265
8265
  });
8266
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8266
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8267
8267
  var _a;
8268
8268
  let currentRawResponse = undefined;
8269
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8269
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8270
8270
  const callback = (rawResponse, flatResponse) => {
8271
8271
  currentRawResponse = rawResponse;
8272
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8272
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8273
8273
  };
8274
8274
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8275
8275
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8292,8 +8292,8 @@ class BackupSchedulesImpl {
8292
8292
  options
8293
8293
  }, createOrUpdateOperationSpec$3);
8294
8294
  const poller = new coreLro.LroEngine(lro, {
8295
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8296
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
8295
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8296
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
8297
8297
  });
8298
8298
  yield poller.poll();
8299
8299
  return poller;
@@ -8310,7 +8310,7 @@ class BackupSchedulesImpl {
8310
8310
  * @param options The options parameters.
8311
8311
  */
8312
8312
  beginCreateOrUpdateAndWait(deviceName, backupPolicyName, backupScheduleName, resourceGroupName, managerName, parameters, options) {
8313
- return tslib.__awaiter(this, void 0, void 0, function* () {
8313
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8314
8314
  const poller = yield this.beginCreateOrUpdate(deviceName, backupPolicyName, backupScheduleName, resourceGroupName, managerName, parameters, options);
8315
8315
  return poller.pollUntilDone();
8316
8316
  });
@@ -8325,17 +8325,17 @@ class BackupSchedulesImpl {
8325
8325
  * @param options The options parameters.
8326
8326
  */
8327
8327
  beginDelete(deviceName, backupPolicyName, backupScheduleName, resourceGroupName, managerName, options) {
8328
- return tslib.__awaiter(this, void 0, void 0, function* () {
8329
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8328
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8329
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8330
8330
  return this.client.sendOperationRequest(args, spec);
8331
8331
  });
8332
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8332
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8333
8333
  var _a;
8334
8334
  let currentRawResponse = undefined;
8335
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8335
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8336
8336
  const callback = (rawResponse, flatResponse) => {
8337
8337
  currentRawResponse = rawResponse;
8338
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8338
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8339
8339
  };
8340
8340
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8341
8341
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8357,8 +8357,8 @@ class BackupSchedulesImpl {
8357
8357
  options
8358
8358
  }, deleteOperationSpec$4);
8359
8359
  const poller = new coreLro.LroEngine(lro, {
8360
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8361
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
8360
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8361
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
8362
8362
  });
8363
8363
  yield poller.poll();
8364
8364
  return poller;
@@ -8374,7 +8374,7 @@ class BackupSchedulesImpl {
8374
8374
  * @param options The options parameters.
8375
8375
  */
8376
8376
  beginDeleteAndWait(deviceName, backupPolicyName, backupScheduleName, resourceGroupName, managerName, options) {
8377
- return tslib.__awaiter(this, void 0, void 0, function* () {
8377
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8378
8378
  const poller = yield this.beginDelete(deviceName, backupPolicyName, backupScheduleName, resourceGroupName, managerName, options);
8379
8379
  return poller.pollUntilDone();
8380
8380
  });
@@ -8506,7 +8506,7 @@ class BackupsImpl {
8506
8506
  return this;
8507
8507
  },
8508
8508
  byPage: (settings) => {
8509
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8509
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8510
8510
  throw new Error("maxPageSize is not supported by this operation.");
8511
8511
  }
8512
8512
  return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
@@ -8516,7 +8516,7 @@ class BackupsImpl {
8516
8516
  listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
8517
8517
  return tslib.__asyncGenerator(this, arguments, function* listByDevicePagingPage_1() {
8518
8518
  let result;
8519
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8519
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8520
8520
  if (!continuationToken) {
8521
8521
  result = yield tslib.__await(this._listByDevice(deviceName, resourceGroupName, managerName, options));
8522
8522
  let page = result.value || [];
@@ -8572,17 +8572,17 @@ class BackupsImpl {
8572
8572
  * @param options The options parameters.
8573
8573
  */
8574
8574
  beginDelete(deviceName, backupName, resourceGroupName, managerName, options) {
8575
- return tslib.__awaiter(this, void 0, void 0, function* () {
8576
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8575
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8576
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8577
8577
  return this.client.sendOperationRequest(args, spec);
8578
8578
  });
8579
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8579
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8580
8580
  var _a;
8581
8581
  let currentRawResponse = undefined;
8582
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8582
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8583
8583
  const callback = (rawResponse, flatResponse) => {
8584
8584
  currentRawResponse = rawResponse;
8585
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8585
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8586
8586
  };
8587
8587
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8588
8588
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8597,8 +8597,8 @@ class BackupsImpl {
8597
8597
  });
8598
8598
  const lro = new LroImpl(sendOperation, { deviceName, backupName, resourceGroupName, managerName, options }, deleteOperationSpec$3);
8599
8599
  const poller = new coreLro.LroEngine(lro, {
8600
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8601
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
8600
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8601
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
8602
8602
  });
8603
8603
  yield poller.poll();
8604
8604
  return poller;
@@ -8613,7 +8613,7 @@ class BackupsImpl {
8613
8613
  * @param options The options parameters.
8614
8614
  */
8615
8615
  beginDeleteAndWait(deviceName, backupName, resourceGroupName, managerName, options) {
8616
- return tslib.__awaiter(this, void 0, void 0, function* () {
8616
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8617
8617
  const poller = yield this.beginDelete(deviceName, backupName, resourceGroupName, managerName, options);
8618
8618
  return poller.pollUntilDone();
8619
8619
  });
@@ -8629,17 +8629,17 @@ class BackupsImpl {
8629
8629
  * @param options The options parameters.
8630
8630
  */
8631
8631
  beginClone(deviceName, backupName, backupElementName, resourceGroupName, managerName, parameters, options) {
8632
- return tslib.__awaiter(this, void 0, void 0, function* () {
8633
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8632
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8633
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8634
8634
  return this.client.sendOperationRequest(args, spec);
8635
8635
  });
8636
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8636
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8637
8637
  var _a;
8638
8638
  let currentRawResponse = undefined;
8639
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8639
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8640
8640
  const callback = (rawResponse, flatResponse) => {
8641
8641
  currentRawResponse = rawResponse;
8642
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8642
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8643
8643
  };
8644
8644
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8645
8645
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8662,8 +8662,8 @@ class BackupsImpl {
8662
8662
  options
8663
8663
  }, cloneOperationSpec);
8664
8664
  const poller = new coreLro.LroEngine(lro, {
8665
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8666
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
8665
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8666
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
8667
8667
  });
8668
8668
  yield poller.poll();
8669
8669
  return poller;
@@ -8680,7 +8680,7 @@ class BackupsImpl {
8680
8680
  * @param options The options parameters.
8681
8681
  */
8682
8682
  beginCloneAndWait(deviceName, backupName, backupElementName, resourceGroupName, managerName, parameters, options) {
8683
- return tslib.__awaiter(this, void 0, void 0, function* () {
8683
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8684
8684
  const poller = yield this.beginClone(deviceName, backupName, backupElementName, resourceGroupName, managerName, parameters, options);
8685
8685
  return poller.pollUntilDone();
8686
8686
  });
@@ -8694,17 +8694,17 @@ class BackupsImpl {
8694
8694
  * @param options The options parameters.
8695
8695
  */
8696
8696
  beginRestore(deviceName, backupName, resourceGroupName, managerName, options) {
8697
- return tslib.__awaiter(this, void 0, void 0, function* () {
8698
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8697
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8698
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8699
8699
  return this.client.sendOperationRequest(args, spec);
8700
8700
  });
8701
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8701
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8702
8702
  var _a;
8703
8703
  let currentRawResponse = undefined;
8704
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8704
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8705
8705
  const callback = (rawResponse, flatResponse) => {
8706
8706
  currentRawResponse = rawResponse;
8707
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8707
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8708
8708
  };
8709
8709
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8710
8710
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8719,8 +8719,8 @@ class BackupsImpl {
8719
8719
  });
8720
8720
  const lro = new LroImpl(sendOperation, { deviceName, backupName, resourceGroupName, managerName, options }, restoreOperationSpec);
8721
8721
  const poller = new coreLro.LroEngine(lro, {
8722
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8723
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
8722
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8723
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
8724
8724
  });
8725
8725
  yield poller.poll();
8726
8726
  return poller;
@@ -8735,7 +8735,7 @@ class BackupsImpl {
8735
8735
  * @param options The options parameters.
8736
8736
  */
8737
8737
  beginRestoreAndWait(deviceName, backupName, resourceGroupName, managerName, options) {
8738
- return tslib.__awaiter(this, void 0, void 0, function* () {
8738
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8739
8739
  const poller = yield this.beginRestore(deviceName, backupName, resourceGroupName, managerName, options);
8740
8740
  return poller.pollUntilDone();
8741
8741
  });
@@ -8876,7 +8876,7 @@ class HardwareComponentGroupsImpl {
8876
8876
  return this;
8877
8877
  },
8878
8878
  byPage: (settings) => {
8879
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8879
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8880
8880
  throw new Error("maxPageSize is not supported by this operation.");
8881
8881
  }
8882
8882
  return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
@@ -8930,17 +8930,17 @@ class HardwareComponentGroupsImpl {
8930
8930
  * @param options The options parameters.
8931
8931
  */
8932
8932
  beginChangeControllerPowerState(deviceName, hardwareComponentGroupName, resourceGroupName, managerName, parameters, options) {
8933
- return tslib.__awaiter(this, void 0, void 0, function* () {
8934
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8933
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8934
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8935
8935
  return this.client.sendOperationRequest(args, spec);
8936
8936
  });
8937
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8937
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8938
8938
  var _a;
8939
8939
  let currentRawResponse = undefined;
8940
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8940
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8941
8941
  const callback = (rawResponse, flatResponse) => {
8942
8942
  currentRawResponse = rawResponse;
8943
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8943
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8944
8944
  };
8945
8945
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8946
8946
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8962,8 +8962,8 @@ class HardwareComponentGroupsImpl {
8962
8962
  options
8963
8963
  }, changeControllerPowerStateOperationSpec);
8964
8964
  const poller = new coreLro.LroEngine(lro, {
8965
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8966
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
8965
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8966
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
8967
8967
  });
8968
8968
  yield poller.poll();
8969
8969
  return poller;
@@ -8979,7 +8979,7 @@ class HardwareComponentGroupsImpl {
8979
8979
  * @param options The options parameters.
8980
8980
  */
8981
8981
  beginChangeControllerPowerStateAndWait(deviceName, hardwareComponentGroupName, resourceGroupName, managerName, parameters, options) {
8982
- return tslib.__awaiter(this, void 0, void 0, function* () {
8982
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8983
8983
  const poller = yield this.beginChangeControllerPowerState(deviceName, hardwareComponentGroupName, resourceGroupName, managerName, parameters, options);
8984
8984
  return poller.pollUntilDone();
8985
8985
  });
@@ -9060,7 +9060,7 @@ class JobsImpl {
9060
9060
  return this;
9061
9061
  },
9062
9062
  byPage: (settings) => {
9063
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9063
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9064
9064
  throw new Error("maxPageSize is not supported by this operation.");
9065
9065
  }
9066
9066
  return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
@@ -9070,7 +9070,7 @@ class JobsImpl {
9070
9070
  listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings) {
9071
9071
  return tslib.__asyncGenerator(this, arguments, function* listByDevicePagingPage_1() {
9072
9072
  let result;
9073
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9073
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
9074
9074
  if (!continuationToken) {
9075
9075
  result = yield tslib.__await(this._listByDevice(deviceName, resourceGroupName, managerName, options));
9076
9076
  let page = result.value || [];
@@ -9124,7 +9124,7 @@ class JobsImpl {
9124
9124
  return this;
9125
9125
  },
9126
9126
  byPage: (settings) => {
9127
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9127
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9128
9128
  throw new Error("maxPageSize is not supported by this operation.");
9129
9129
  }
9130
9130
  return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
@@ -9134,7 +9134,7 @@ class JobsImpl {
9134
9134
  listByManagerPagingPage(resourceGroupName, managerName, options, settings) {
9135
9135
  return tslib.__asyncGenerator(this, arguments, function* listByManagerPagingPage_1() {
9136
9136
  let result;
9137
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9137
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
9138
9138
  if (!continuationToken) {
9139
9139
  result = yield tslib.__await(this._listByManager(resourceGroupName, managerName, options));
9140
9140
  let page = result.value || [];
@@ -9202,17 +9202,17 @@ class JobsImpl {
9202
9202
  * @param options The options parameters.
9203
9203
  */
9204
9204
  beginCancel(deviceName, jobName, resourceGroupName, managerName, options) {
9205
- return tslib.__awaiter(this, void 0, void 0, function* () {
9206
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9205
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9206
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9207
9207
  return this.client.sendOperationRequest(args, spec);
9208
9208
  });
9209
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9209
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9210
9210
  var _a;
9211
9211
  let currentRawResponse = undefined;
9212
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9212
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9213
9213
  const callback = (rawResponse, flatResponse) => {
9214
9214
  currentRawResponse = rawResponse;
9215
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9215
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9216
9216
  };
9217
9217
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9218
9218
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9227,8 +9227,8 @@ class JobsImpl {
9227
9227
  });
9228
9228
  const lro = new LroImpl(sendOperation, { deviceName, jobName, resourceGroupName, managerName, options }, cancelOperationSpec);
9229
9229
  const poller = new coreLro.LroEngine(lro, {
9230
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9231
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
9230
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9231
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
9232
9232
  });
9233
9233
  yield poller.poll();
9234
9234
  return poller;
@@ -9243,7 +9243,7 @@ class JobsImpl {
9243
9243
  * @param options The options parameters.
9244
9244
  */
9245
9245
  beginCancelAndWait(deviceName, jobName, resourceGroupName, managerName, options) {
9246
- return tslib.__awaiter(this, void 0, void 0, function* () {
9246
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9247
9247
  const poller = yield this.beginCancel(deviceName, jobName, resourceGroupName, managerName, options);
9248
9248
  return poller.pollUntilDone();
9249
9249
  });
@@ -9426,7 +9426,7 @@ class VolumeContainersImpl {
9426
9426
  return this;
9427
9427
  },
9428
9428
  byPage: (settings) => {
9429
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9429
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9430
9430
  throw new Error("maxPageSize is not supported by this operation.");
9431
9431
  }
9432
9432
  return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
@@ -9479,7 +9479,7 @@ class VolumeContainersImpl {
9479
9479
  return this;
9480
9480
  },
9481
9481
  byPage: (settings) => {
9482
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9482
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9483
9483
  throw new Error("maxPageSize is not supported by this operation.");
9484
9484
  }
9485
9485
  return this.listMetricsPagingPage(deviceName, volumeContainerName, resourceGroupName, managerName, filter, options, settings);
@@ -9531,7 +9531,7 @@ class VolumeContainersImpl {
9531
9531
  return this;
9532
9532
  },
9533
9533
  byPage: (settings) => {
9534
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9534
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9535
9535
  throw new Error("maxPageSize is not supported by this operation.");
9536
9536
  }
9537
9537
  return this.listMetricDefinitionPagingPage(deviceName, volumeContainerName, resourceGroupName, managerName, options, settings);
@@ -9602,17 +9602,17 @@ class VolumeContainersImpl {
9602
9602
  * @param options The options parameters.
9603
9603
  */
9604
9604
  beginCreateOrUpdate(deviceName, volumeContainerName, resourceGroupName, managerName, parameters, options) {
9605
- return tslib.__awaiter(this, void 0, void 0, function* () {
9606
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9605
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9606
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9607
9607
  return this.client.sendOperationRequest(args, spec);
9608
9608
  });
9609
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9609
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9610
9610
  var _a;
9611
9611
  let currentRawResponse = undefined;
9612
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9612
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9613
9613
  const callback = (rawResponse, flatResponse) => {
9614
9614
  currentRawResponse = rawResponse;
9615
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9615
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9616
9616
  };
9617
9617
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9618
9618
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9634,8 +9634,8 @@ class VolumeContainersImpl {
9634
9634
  options
9635
9635
  }, createOrUpdateOperationSpec$2);
9636
9636
  const poller = new coreLro.LroEngine(lro, {
9637
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9638
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
9637
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9638
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
9639
9639
  });
9640
9640
  yield poller.poll();
9641
9641
  return poller;
@@ -9651,7 +9651,7 @@ class VolumeContainersImpl {
9651
9651
  * @param options The options parameters.
9652
9652
  */
9653
9653
  beginCreateOrUpdateAndWait(deviceName, volumeContainerName, resourceGroupName, managerName, parameters, options) {
9654
- return tslib.__awaiter(this, void 0, void 0, function* () {
9654
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9655
9655
  const poller = yield this.beginCreateOrUpdate(deviceName, volumeContainerName, resourceGroupName, managerName, parameters, options);
9656
9656
  return poller.pollUntilDone();
9657
9657
  });
@@ -9665,17 +9665,17 @@ class VolumeContainersImpl {
9665
9665
  * @param options The options parameters.
9666
9666
  */
9667
9667
  beginDelete(deviceName, volumeContainerName, resourceGroupName, managerName, options) {
9668
- return tslib.__awaiter(this, void 0, void 0, function* () {
9669
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9668
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9669
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9670
9670
  return this.client.sendOperationRequest(args, spec);
9671
9671
  });
9672
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9672
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9673
9673
  var _a;
9674
9674
  let currentRawResponse = undefined;
9675
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9675
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9676
9676
  const callback = (rawResponse, flatResponse) => {
9677
9677
  currentRawResponse = rawResponse;
9678
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9678
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9679
9679
  };
9680
9680
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9681
9681
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9696,8 +9696,8 @@ class VolumeContainersImpl {
9696
9696
  options
9697
9697
  }, deleteOperationSpec$2);
9698
9698
  const poller = new coreLro.LroEngine(lro, {
9699
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9700
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
9699
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9700
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
9701
9701
  });
9702
9702
  yield poller.poll();
9703
9703
  return poller;
@@ -9712,7 +9712,7 @@ class VolumeContainersImpl {
9712
9712
  * @param options The options parameters.
9713
9713
  */
9714
9714
  beginDeleteAndWait(deviceName, volumeContainerName, resourceGroupName, managerName, options) {
9715
- return tslib.__awaiter(this, void 0, void 0, function* () {
9715
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9716
9716
  const poller = yield this.beginDelete(deviceName, volumeContainerName, resourceGroupName, managerName, options);
9717
9717
  return poller.pollUntilDone();
9718
9718
  });
@@ -9917,7 +9917,7 @@ class VolumesImpl {
9917
9917
  return this;
9918
9918
  },
9919
9919
  byPage: (settings) => {
9920
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9920
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9921
9921
  throw new Error("maxPageSize is not supported by this operation.");
9922
9922
  }
9923
9923
  return this.listByVolumeContainerPagingPage(deviceName, volumeContainerName, resourceGroupName, managerName, options, settings);
@@ -9971,7 +9971,7 @@ class VolumesImpl {
9971
9971
  return this;
9972
9972
  },
9973
9973
  byPage: (settings) => {
9974
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9974
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9975
9975
  throw new Error("maxPageSize is not supported by this operation.");
9976
9976
  }
9977
9977
  return this.listMetricsPagingPage(deviceName, volumeContainerName, volumeName, resourceGroupName, managerName, filter, options, settings);
@@ -10024,7 +10024,7 @@ class VolumesImpl {
10024
10024
  return this;
10025
10025
  },
10026
10026
  byPage: (settings) => {
10027
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
10027
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
10028
10028
  throw new Error("maxPageSize is not supported by this operation.");
10029
10029
  }
10030
10030
  return this.listMetricDefinitionPagingPage(deviceName, volumeContainerName, volumeName, resourceGroupName, managerName, options, settings);
@@ -10075,7 +10075,7 @@ class VolumesImpl {
10075
10075
  return this;
10076
10076
  },
10077
10077
  byPage: (settings) => {
10078
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
10078
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
10079
10079
  throw new Error("maxPageSize is not supported by this operation.");
10080
10080
  }
10081
10081
  return this.listByDevicePagingPage(deviceName, resourceGroupName, managerName, options, settings);
@@ -10156,17 +10156,17 @@ class VolumesImpl {
10156
10156
  * @param options The options parameters.
10157
10157
  */
10158
10158
  beginCreateOrUpdate(deviceName, volumeContainerName, volumeName, resourceGroupName, managerName, parameters, options) {
10159
- return tslib.__awaiter(this, void 0, void 0, function* () {
10160
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10159
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10160
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10161
10161
  return this.client.sendOperationRequest(args, spec);
10162
10162
  });
10163
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10163
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10164
10164
  var _a;
10165
10165
  let currentRawResponse = undefined;
10166
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10166
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10167
10167
  const callback = (rawResponse, flatResponse) => {
10168
10168
  currentRawResponse = rawResponse;
10169
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10169
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10170
10170
  };
10171
10171
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10172
10172
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10189,8 +10189,8 @@ class VolumesImpl {
10189
10189
  options
10190
10190
  }, createOrUpdateOperationSpec$1);
10191
10191
  const poller = new coreLro.LroEngine(lro, {
10192
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10193
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
10192
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10193
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
10194
10194
  });
10195
10195
  yield poller.poll();
10196
10196
  return poller;
@@ -10207,7 +10207,7 @@ class VolumesImpl {
10207
10207
  * @param options The options parameters.
10208
10208
  */
10209
10209
  beginCreateOrUpdateAndWait(deviceName, volumeContainerName, volumeName, resourceGroupName, managerName, parameters, options) {
10210
- return tslib.__awaiter(this, void 0, void 0, function* () {
10210
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10211
10211
  const poller = yield this.beginCreateOrUpdate(deviceName, volumeContainerName, volumeName, resourceGroupName, managerName, parameters, options);
10212
10212
  return poller.pollUntilDone();
10213
10213
  });
@@ -10222,17 +10222,17 @@ class VolumesImpl {
10222
10222
  * @param options The options parameters.
10223
10223
  */
10224
10224
  beginDelete(deviceName, volumeContainerName, volumeName, resourceGroupName, managerName, options) {
10225
- return tslib.__awaiter(this, void 0, void 0, function* () {
10226
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10225
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10226
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10227
10227
  return this.client.sendOperationRequest(args, spec);
10228
10228
  });
10229
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10229
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10230
10230
  var _a;
10231
10231
  let currentRawResponse = undefined;
10232
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10232
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10233
10233
  const callback = (rawResponse, flatResponse) => {
10234
10234
  currentRawResponse = rawResponse;
10235
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10235
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10236
10236
  };
10237
10237
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10238
10238
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10254,8 +10254,8 @@ class VolumesImpl {
10254
10254
  options
10255
10255
  }, deleteOperationSpec$1);
10256
10256
  const poller = new coreLro.LroEngine(lro, {
10257
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10258
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
10257
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10258
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
10259
10259
  });
10260
10260
  yield poller.poll();
10261
10261
  return poller;
@@ -10271,7 +10271,7 @@ class VolumesImpl {
10271
10271
  * @param options The options parameters.
10272
10272
  */
10273
10273
  beginDeleteAndWait(deviceName, volumeContainerName, volumeName, resourceGroupName, managerName, options) {
10274
- return tslib.__awaiter(this, void 0, void 0, function* () {
10274
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10275
10275
  const poller = yield this.beginDelete(deviceName, volumeContainerName, volumeName, resourceGroupName, managerName, options);
10276
10276
  return poller.pollUntilDone();
10277
10277
  });
@@ -10513,7 +10513,7 @@ class StorageAccountCredentialsImpl {
10513
10513
  return this;
10514
10514
  },
10515
10515
  byPage: (settings) => {
10516
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
10516
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
10517
10517
  throw new Error("maxPageSize is not supported by this operation.");
10518
10518
  }
10519
10519
  return this.listByManagerPagingPage(resourceGroupName, managerName, options, settings);
@@ -10575,17 +10575,17 @@ class StorageAccountCredentialsImpl {
10575
10575
  * @param options The options parameters.
10576
10576
  */
10577
10577
  beginCreateOrUpdate(storageAccountCredentialName, resourceGroupName, managerName, parameters, options) {
10578
- return tslib.__awaiter(this, void 0, void 0, function* () {
10579
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10578
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10579
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10580
10580
  return this.client.sendOperationRequest(args, spec);
10581
10581
  });
10582
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10582
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10583
10583
  var _a;
10584
10584
  let currentRawResponse = undefined;
10585
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10585
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10586
10586
  const callback = (rawResponse, flatResponse) => {
10587
10587
  currentRawResponse = rawResponse;
10588
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10588
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10589
10589
  };
10590
10590
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10591
10591
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10606,8 +10606,8 @@ class StorageAccountCredentialsImpl {
10606
10606
  options
10607
10607
  }, createOrUpdateOperationSpec);
10608
10608
  const poller = new coreLro.LroEngine(lro, {
10609
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10610
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
10609
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10610
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
10611
10611
  });
10612
10612
  yield poller.poll();
10613
10613
  return poller;
@@ -10622,7 +10622,7 @@ class StorageAccountCredentialsImpl {
10622
10622
  * @param options The options parameters.
10623
10623
  */
10624
10624
  beginCreateOrUpdateAndWait(storageAccountCredentialName, resourceGroupName, managerName, parameters, options) {
10625
- return tslib.__awaiter(this, void 0, void 0, function* () {
10625
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10626
10626
  const poller = yield this.beginCreateOrUpdate(storageAccountCredentialName, resourceGroupName, managerName, parameters, options);
10627
10627
  return poller.pollUntilDone();
10628
10628
  });
@@ -10635,17 +10635,17 @@ class StorageAccountCredentialsImpl {
10635
10635
  * @param options The options parameters.
10636
10636
  */
10637
10637
  beginDelete(storageAccountCredentialName, resourceGroupName, managerName, options) {
10638
- return tslib.__awaiter(this, void 0, void 0, function* () {
10639
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10638
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10639
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10640
10640
  return this.client.sendOperationRequest(args, spec);
10641
10641
  });
10642
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10642
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10643
10643
  var _a;
10644
10644
  let currentRawResponse = undefined;
10645
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10645
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10646
10646
  const callback = (rawResponse, flatResponse) => {
10647
10647
  currentRawResponse = rawResponse;
10648
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10648
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10649
10649
  };
10650
10650
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10651
10651
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10660,8 +10660,8 @@ class StorageAccountCredentialsImpl {
10660
10660
  });
10661
10661
  const lro = new LroImpl(sendOperation, { storageAccountCredentialName, resourceGroupName, managerName, options }, deleteOperationSpec);
10662
10662
  const poller = new coreLro.LroEngine(lro, {
10663
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10664
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
10663
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10664
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
10665
10665
  });
10666
10666
  yield poller.poll();
10667
10667
  return poller;
@@ -10675,7 +10675,7 @@ class StorageAccountCredentialsImpl {
10675
10675
  * @param options The options parameters.
10676
10676
  */
10677
10677
  beginDeleteAndWait(storageAccountCredentialName, resourceGroupName, managerName, options) {
10678
- return tslib.__awaiter(this, void 0, void 0, function* () {
10678
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10679
10679
  const poller = yield this.beginDelete(storageAccountCredentialName, resourceGroupName, managerName, options);
10680
10680
  return poller.pollUntilDone();
10681
10681
  });
@@ -10801,10 +10801,10 @@ class StorSimple8000SeriesManagementClient extends coreClient__namespace.Service
10801
10801
  : `${packageDetails}`;
10802
10802
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
10803
10803
  userAgentPrefix
10804
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
10804
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
10805
10805
  super(optionsWithDefaults);
10806
10806
  let bearerTokenAuthenticationPolicyFound = false;
10807
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
10807
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
10808
10808
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
10809
10809
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
10810
10810
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -10818,7 +10818,7 @@ class StorSimple8000SeriesManagementClient extends coreClient__namespace.Service
10818
10818
  });
10819
10819
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
10820
10820
  credential: credentials,
10821
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
10821
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
10822
10822
  challengeCallbacks: {
10823
10823
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
10824
10824
  }
@@ -10855,7 +10855,7 @@ class StorSimple8000SeriesManagementClient extends coreClient__namespace.Service
10855
10855
  const apiVersionPolicy = {
10856
10856
  name: "CustomApiVersionPolicy",
10857
10857
  sendRequest(request, next) {
10858
- return tslib.__awaiter(this, void 0, void 0, function* () {
10858
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10859
10859
  const param = request.url.split("?");
10860
10860
  if (param.length > 1) {
10861
10861
  const newParams = param[1].split("&").map((item) => {