@azure/arm-hybridcompute 4.1.0-alpha.20250103.1 → 4.1.0-alpha.20250106.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
47
47
  if (typeof page !== "object" || page === null) {
48
48
  return undefined;
49
49
  }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
51
51
  }
52
52
  function setContinuationToken(page, continuationToken) {
53
53
  var _a;
54
54
  if (typeof page !== "object" || page === null || !continuationToken) {
55
55
  return;
56
56
  }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -514,7 +514,7 @@ function createLroSpec(inputs) {
514
514
  sendInitialRequest: () => sendOperationFn(args, spec),
515
515
  sendPollRequest: (path, options) => {
516
516
  const restSpec = tslib.__rest(spec, ["requestBody"]);
517
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
517
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
518
518
  },
519
519
  };
520
520
  }
@@ -5607,7 +5607,7 @@ class LicensesImpl {
5607
5607
  return this;
5608
5608
  },
5609
5609
  byPage: (settings) => {
5610
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5610
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5611
5611
  throw new Error("maxPageSize is not supported by this operation.");
5612
5612
  }
5613
5613
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -5617,7 +5617,7 @@ class LicensesImpl {
5617
5617
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
5618
5618
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
5619
5619
  let result;
5620
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5620
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5621
5621
  if (!continuationToken) {
5622
5622
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
5623
5623
  let page = result.value || [];
@@ -5668,7 +5668,7 @@ class LicensesImpl {
5668
5668
  return this;
5669
5669
  },
5670
5670
  byPage: (settings) => {
5671
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5671
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5672
5672
  throw new Error("maxPageSize is not supported by this operation.");
5673
5673
  }
5674
5674
  return this.listBySubscriptionPagingPage(options, settings);
@@ -5678,7 +5678,7 @@ class LicensesImpl {
5678
5678
  listBySubscriptionPagingPage(options, settings) {
5679
5679
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
5680
5680
  let result;
5681
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5681
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5682
5682
  if (!continuationToken) {
5683
5683
  result = yield tslib.__await(this._listBySubscription(options));
5684
5684
  let page = result.value || [];
@@ -5721,17 +5721,17 @@ class LicensesImpl {
5721
5721
  * @param options The options parameters.
5722
5722
  */
5723
5723
  beginValidateLicense(parameters, options) {
5724
- return tslib.__awaiter(this, void 0, void 0, function* () {
5725
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5724
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5725
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5726
5726
  return this.client.sendOperationRequest(args, spec);
5727
5727
  });
5728
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5728
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5729
5729
  var _a;
5730
5730
  let currentRawResponse = undefined;
5731
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5731
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5732
5732
  const callback = (rawResponse, flatResponse) => {
5733
5733
  currentRawResponse = rawResponse;
5734
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5734
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5735
5735
  };
5736
5736
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5737
5737
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5750,8 +5750,8 @@ class LicensesImpl {
5750
5750
  spec: validateLicenseOperationSpec,
5751
5751
  });
5752
5752
  const poller = yield coreLro.createHttpPoller(lro, {
5753
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5754
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5753
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5754
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
5755
5755
  });
5756
5756
  yield poller.poll();
5757
5757
  return poller;
@@ -5763,7 +5763,7 @@ class LicensesImpl {
5763
5763
  * @param options The options parameters.
5764
5764
  */
5765
5765
  beginValidateLicenseAndWait(parameters, options) {
5766
- return tslib.__awaiter(this, void 0, void 0, function* () {
5766
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5767
5767
  const poller = yield this.beginValidateLicense(parameters, options);
5768
5768
  return poller.pollUntilDone();
5769
5769
  });
@@ -5776,17 +5776,17 @@ class LicensesImpl {
5776
5776
  * @param options The options parameters.
5777
5777
  */
5778
5778
  beginCreateOrUpdate(resourceGroupName, licenseName, parameters, options) {
5779
- return tslib.__awaiter(this, void 0, void 0, function* () {
5780
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5779
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5780
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5781
5781
  return this.client.sendOperationRequest(args, spec);
5782
5782
  });
5783
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5783
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5784
5784
  var _a;
5785
5785
  let currentRawResponse = undefined;
5786
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5786
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5787
5787
  const callback = (rawResponse, flatResponse) => {
5788
5788
  currentRawResponse = rawResponse;
5789
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5789
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5790
5790
  };
5791
5791
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5792
5792
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5805,8 +5805,8 @@ class LicensesImpl {
5805
5805
  spec: createOrUpdateOperationSpec$6,
5806
5806
  });
5807
5807
  const poller = yield coreLro.createHttpPoller(lro, {
5808
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5809
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5808
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5809
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
5810
5810
  });
5811
5811
  yield poller.poll();
5812
5812
  return poller;
@@ -5820,7 +5820,7 @@ class LicensesImpl {
5820
5820
  * @param options The options parameters.
5821
5821
  */
5822
5822
  beginCreateOrUpdateAndWait(resourceGroupName, licenseName, parameters, options) {
5823
- return tslib.__awaiter(this, void 0, void 0, function* () {
5823
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5824
5824
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, licenseName, parameters, options);
5825
5825
  return poller.pollUntilDone();
5826
5826
  });
@@ -5833,17 +5833,17 @@ class LicensesImpl {
5833
5833
  * @param options The options parameters.
5834
5834
  */
5835
5835
  beginUpdate(resourceGroupName, licenseName, parameters, options) {
5836
- return tslib.__awaiter(this, void 0, void 0, function* () {
5837
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5836
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5837
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5838
5838
  return this.client.sendOperationRequest(args, spec);
5839
5839
  });
5840
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5840
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5841
5841
  var _a;
5842
5842
  let currentRawResponse = undefined;
5843
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5843
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5844
5844
  const callback = (rawResponse, flatResponse) => {
5845
5845
  currentRawResponse = rawResponse;
5846
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5846
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5847
5847
  };
5848
5848
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5849
5849
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5862,8 +5862,8 @@ class LicensesImpl {
5862
5862
  spec: updateOperationSpec$4,
5863
5863
  });
5864
5864
  const poller = yield coreLro.createHttpPoller(lro, {
5865
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5866
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5865
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5866
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
5867
5867
  });
5868
5868
  yield poller.poll();
5869
5869
  return poller;
@@ -5877,7 +5877,7 @@ class LicensesImpl {
5877
5877
  * @param options The options parameters.
5878
5878
  */
5879
5879
  beginUpdateAndWait(resourceGroupName, licenseName, parameters, options) {
5880
- return tslib.__awaiter(this, void 0, void 0, function* () {
5880
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5881
5881
  const poller = yield this.beginUpdate(resourceGroupName, licenseName, parameters, options);
5882
5882
  return poller.pollUntilDone();
5883
5883
  });
@@ -5898,17 +5898,17 @@ class LicensesImpl {
5898
5898
  * @param options The options parameters.
5899
5899
  */
5900
5900
  beginDelete(resourceGroupName, licenseName, options) {
5901
- return tslib.__awaiter(this, void 0, void 0, function* () {
5902
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5901
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5902
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5903
5903
  return this.client.sendOperationRequest(args, spec);
5904
5904
  });
5905
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5905
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5906
5906
  var _a;
5907
5907
  let currentRawResponse = undefined;
5908
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5908
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5909
5909
  const callback = (rawResponse, flatResponse) => {
5910
5910
  currentRawResponse = rawResponse;
5911
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5911
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5912
5912
  };
5913
5913
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5914
5914
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5927,8 +5927,8 @@ class LicensesImpl {
5927
5927
  spec: deleteOperationSpec$7,
5928
5928
  });
5929
5929
  const poller = yield coreLro.createHttpPoller(lro, {
5930
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5931
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5930
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5931
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
5932
5932
  });
5933
5933
  yield poller.poll();
5934
5934
  return poller;
@@ -5941,7 +5941,7 @@ class LicensesImpl {
5941
5941
  * @param options The options parameters.
5942
5942
  */
5943
5943
  beginDeleteAndWait(resourceGroupName, licenseName, options) {
5944
- return tslib.__awaiter(this, void 0, void 0, function* () {
5944
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5945
5945
  const poller = yield this.beginDelete(resourceGroupName, licenseName, options);
5946
5946
  return poller.pollUntilDone();
5947
5947
  });
@@ -6224,7 +6224,7 @@ class MachinesImpl {
6224
6224
  return this;
6225
6225
  },
6226
6226
  byPage: (settings) => {
6227
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6227
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6228
6228
  throw new Error("maxPageSize is not supported by this operation.");
6229
6229
  }
6230
6230
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -6234,7 +6234,7 @@ class MachinesImpl {
6234
6234
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
6235
6235
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
6236
6236
  let result;
6237
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6237
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6238
6238
  if (!continuationToken) {
6239
6239
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
6240
6240
  let page = result.value || [];
@@ -6286,7 +6286,7 @@ class MachinesImpl {
6286
6286
  return this;
6287
6287
  },
6288
6288
  byPage: (settings) => {
6289
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6289
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6290
6290
  throw new Error("maxPageSize is not supported by this operation.");
6291
6291
  }
6292
6292
  return this.listBySubscriptionPagingPage(options, settings);
@@ -6296,7 +6296,7 @@ class MachinesImpl {
6296
6296
  listBySubscriptionPagingPage(options, settings) {
6297
6297
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
6298
6298
  let result;
6299
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6299
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6300
6300
  if (!continuationToken) {
6301
6301
  result = yield tslib.__await(this._listBySubscription(options));
6302
6302
  let page = result.value || [];
@@ -6358,17 +6358,17 @@ class MachinesImpl {
6358
6358
  * @param options The options parameters.
6359
6359
  */
6360
6360
  beginAssessPatches(resourceGroupName, name, options) {
6361
- return tslib.__awaiter(this, void 0, void 0, function* () {
6362
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6361
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6362
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6363
6363
  return this.client.sendOperationRequest(args, spec);
6364
6364
  });
6365
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6365
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6366
6366
  var _a;
6367
6367
  let currentRawResponse = undefined;
6368
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6368
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6369
6369
  const callback = (rawResponse, flatResponse) => {
6370
6370
  currentRawResponse = rawResponse;
6371
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6371
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6372
6372
  };
6373
6373
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6374
6374
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6387,8 +6387,8 @@ class MachinesImpl {
6387
6387
  spec: assessPatchesOperationSpec,
6388
6388
  });
6389
6389
  const poller = yield coreLro.createHttpPoller(lro, {
6390
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6391
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
6390
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6391
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
6392
6392
  resourceLocationConfig: "location",
6393
6393
  });
6394
6394
  yield poller.poll();
@@ -6402,7 +6402,7 @@ class MachinesImpl {
6402
6402
  * @param options The options parameters.
6403
6403
  */
6404
6404
  beginAssessPatchesAndWait(resourceGroupName, name, options) {
6405
- return tslib.__awaiter(this, void 0, void 0, function* () {
6405
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6406
6406
  const poller = yield this.beginAssessPatches(resourceGroupName, name, options);
6407
6407
  return poller.pollUntilDone();
6408
6408
  });
@@ -6415,17 +6415,17 @@ class MachinesImpl {
6415
6415
  * @param options The options parameters.
6416
6416
  */
6417
6417
  beginInstallPatches(resourceGroupName, name, installPatchesInput, options) {
6418
- return tslib.__awaiter(this, void 0, void 0, function* () {
6419
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6418
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6419
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6420
6420
  return this.client.sendOperationRequest(args, spec);
6421
6421
  });
6422
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6422
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6423
6423
  var _a;
6424
6424
  let currentRawResponse = undefined;
6425
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6425
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6426
6426
  const callback = (rawResponse, flatResponse) => {
6427
6427
  currentRawResponse = rawResponse;
6428
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6428
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6429
6429
  };
6430
6430
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6431
6431
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6444,8 +6444,8 @@ class MachinesImpl {
6444
6444
  spec: installPatchesOperationSpec,
6445
6445
  });
6446
6446
  const poller = yield coreLro.createHttpPoller(lro, {
6447
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6448
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
6447
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6448
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
6449
6449
  resourceLocationConfig: "location",
6450
6450
  });
6451
6451
  yield poller.poll();
@@ -6460,7 +6460,7 @@ class MachinesImpl {
6460
6460
  * @param options The options parameters.
6461
6461
  */
6462
6462
  beginInstallPatchesAndWait(resourceGroupName, name, installPatchesInput, options) {
6463
- return tslib.__awaiter(this, void 0, void 0, function* () {
6463
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6464
6464
  const poller = yield this.beginInstallPatches(resourceGroupName, name, installPatchesInput, options);
6465
6465
  return poller.pollUntilDone();
6466
6466
  });
@@ -6714,7 +6714,7 @@ class LicenseProfilesImpl {
6714
6714
  return this;
6715
6715
  },
6716
6716
  byPage: (settings) => {
6717
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6717
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6718
6718
  throw new Error("maxPageSize is not supported by this operation.");
6719
6719
  }
6720
6720
  return this.listPagingPage(resourceGroupName, machineName, options, settings);
@@ -6724,7 +6724,7 @@ class LicenseProfilesImpl {
6724
6724
  listPagingPage(resourceGroupName, machineName, options, settings) {
6725
6725
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6726
6726
  let result;
6727
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6727
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6728
6728
  if (!continuationToken) {
6729
6729
  result = yield tslib.__await(this._list(resourceGroupName, machineName, options));
6730
6730
  let page = result.value || [];
@@ -6769,17 +6769,17 @@ class LicenseProfilesImpl {
6769
6769
  * @param options The options parameters.
6770
6770
  */
6771
6771
  beginCreateOrUpdate(resourceGroupName, machineName, parameters, options) {
6772
- return tslib.__awaiter(this, void 0, void 0, function* () {
6773
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6772
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6773
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6774
6774
  return this.client.sendOperationRequest(args, spec);
6775
6775
  });
6776
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6776
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6777
6777
  var _a;
6778
6778
  let currentRawResponse = undefined;
6779
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6779
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6780
6780
  const callback = (rawResponse, flatResponse) => {
6781
6781
  currentRawResponse = rawResponse;
6782
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6782
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6783
6783
  };
6784
6784
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6785
6785
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6798,8 +6798,8 @@ class LicenseProfilesImpl {
6798
6798
  spec: createOrUpdateOperationSpec$5,
6799
6799
  });
6800
6800
  const poller = yield coreLro.createHttpPoller(lro, {
6801
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6802
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
6801
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6802
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
6803
6803
  });
6804
6804
  yield poller.poll();
6805
6805
  return poller;
@@ -6813,7 +6813,7 @@ class LicenseProfilesImpl {
6813
6813
  * @param options The options parameters.
6814
6814
  */
6815
6815
  beginCreateOrUpdateAndWait(resourceGroupName, machineName, parameters, options) {
6816
- return tslib.__awaiter(this, void 0, void 0, function* () {
6816
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6817
6817
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, machineName, parameters, options);
6818
6818
  return poller.pollUntilDone();
6819
6819
  });
@@ -6826,17 +6826,17 @@ class LicenseProfilesImpl {
6826
6826
  * @param options The options parameters.
6827
6827
  */
6828
6828
  beginUpdate(resourceGroupName, machineName, parameters, options) {
6829
- return tslib.__awaiter(this, void 0, void 0, function* () {
6830
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6829
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6830
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6831
6831
  return this.client.sendOperationRequest(args, spec);
6832
6832
  });
6833
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6833
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6834
6834
  var _a;
6835
6835
  let currentRawResponse = undefined;
6836
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6836
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6837
6837
  const callback = (rawResponse, flatResponse) => {
6838
6838
  currentRawResponse = rawResponse;
6839
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6839
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6840
6840
  };
6841
6841
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6842
6842
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6855,8 +6855,8 @@ class LicenseProfilesImpl {
6855
6855
  spec: updateOperationSpec$3,
6856
6856
  });
6857
6857
  const poller = yield coreLro.createHttpPoller(lro, {
6858
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6859
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
6858
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6859
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
6860
6860
  });
6861
6861
  yield poller.poll();
6862
6862
  return poller;
@@ -6870,7 +6870,7 @@ class LicenseProfilesImpl {
6870
6870
  * @param options The options parameters.
6871
6871
  */
6872
6872
  beginUpdateAndWait(resourceGroupName, machineName, parameters, options) {
6873
- return tslib.__awaiter(this, void 0, void 0, function* () {
6873
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6874
6874
  const poller = yield this.beginUpdate(resourceGroupName, machineName, parameters, options);
6875
6875
  return poller.pollUntilDone();
6876
6876
  });
@@ -6891,17 +6891,17 @@ class LicenseProfilesImpl {
6891
6891
  * @param options The options parameters.
6892
6892
  */
6893
6893
  beginDelete(resourceGroupName, machineName, options) {
6894
- return tslib.__awaiter(this, void 0, void 0, function* () {
6895
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6894
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6895
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6896
6896
  return this.client.sendOperationRequest(args, spec);
6897
6897
  });
6898
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6898
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6899
6899
  var _a;
6900
6900
  let currentRawResponse = undefined;
6901
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6901
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6902
6902
  const callback = (rawResponse, flatResponse) => {
6903
6903
  currentRawResponse = rawResponse;
6904
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6904
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6905
6905
  };
6906
6906
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6907
6907
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6920,8 +6920,8 @@ class LicenseProfilesImpl {
6920
6920
  spec: deleteOperationSpec$5,
6921
6921
  });
6922
6922
  const poller = yield coreLro.createHttpPoller(lro, {
6923
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6924
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
6923
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6924
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
6925
6925
  });
6926
6926
  yield poller.poll();
6927
6927
  return poller;
@@ -6934,7 +6934,7 @@ class LicenseProfilesImpl {
6934
6934
  * @param options The options parameters.
6935
6935
  */
6936
6936
  beginDeleteAndWait(resourceGroupName, machineName, options) {
6937
- return tslib.__awaiter(this, void 0, void 0, function* () {
6937
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6938
6938
  const poller = yield this.beginDelete(resourceGroupName, machineName, options);
6939
6939
  return poller.pollUntilDone();
6940
6940
  });
@@ -7156,7 +7156,7 @@ class MachineExtensionsImpl {
7156
7156
  return this;
7157
7157
  },
7158
7158
  byPage: (settings) => {
7159
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7159
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7160
7160
  throw new Error("maxPageSize is not supported by this operation.");
7161
7161
  }
7162
7162
  return this.listPagingPage(resourceGroupName, machineName, options, settings);
@@ -7166,7 +7166,7 @@ class MachineExtensionsImpl {
7166
7166
  listPagingPage(resourceGroupName, machineName, options, settings) {
7167
7167
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7168
7168
  let result;
7169
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7169
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
7170
7170
  if (!continuationToken) {
7171
7171
  result = yield tslib.__await(this._list(resourceGroupName, machineName, options));
7172
7172
  let page = result.value || [];
@@ -7212,17 +7212,17 @@ class MachineExtensionsImpl {
7212
7212
  * @param options The options parameters.
7213
7213
  */
7214
7214
  beginCreateOrUpdate(resourceGroupName, machineName, extensionName, extensionParameters, options) {
7215
- return tslib.__awaiter(this, void 0, void 0, function* () {
7216
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7215
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7216
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7217
7217
  return this.client.sendOperationRequest(args, spec);
7218
7218
  });
7219
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7219
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7220
7220
  var _a;
7221
7221
  let currentRawResponse = undefined;
7222
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7222
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7223
7223
  const callback = (rawResponse, flatResponse) => {
7224
7224
  currentRawResponse = rawResponse;
7225
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7225
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7226
7226
  };
7227
7227
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7228
7228
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7247,8 +7247,8 @@ class MachineExtensionsImpl {
7247
7247
  spec: createOrUpdateOperationSpec$4,
7248
7248
  });
7249
7249
  const poller = yield coreLro.createHttpPoller(lro, {
7250
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7251
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
7250
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7251
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
7252
7252
  });
7253
7253
  yield poller.poll();
7254
7254
  return poller;
@@ -7263,7 +7263,7 @@ class MachineExtensionsImpl {
7263
7263
  * @param options The options parameters.
7264
7264
  */
7265
7265
  beginCreateOrUpdateAndWait(resourceGroupName, machineName, extensionName, extensionParameters, options) {
7266
- return tslib.__awaiter(this, void 0, void 0, function* () {
7266
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7267
7267
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, machineName, extensionName, extensionParameters, options);
7268
7268
  return poller.pollUntilDone();
7269
7269
  });
@@ -7277,17 +7277,17 @@ class MachineExtensionsImpl {
7277
7277
  * @param options The options parameters.
7278
7278
  */
7279
7279
  beginUpdate(resourceGroupName, machineName, extensionName, extensionParameters, options) {
7280
- return tslib.__awaiter(this, void 0, void 0, function* () {
7281
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7280
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7281
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7282
7282
  return this.client.sendOperationRequest(args, spec);
7283
7283
  });
7284
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7284
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7285
7285
  var _a;
7286
7286
  let currentRawResponse = undefined;
7287
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7287
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7288
7288
  const callback = (rawResponse, flatResponse) => {
7289
7289
  currentRawResponse = rawResponse;
7290
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7290
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7291
7291
  };
7292
7292
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7293
7293
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7312,8 +7312,8 @@ class MachineExtensionsImpl {
7312
7312
  spec: updateOperationSpec$2,
7313
7313
  });
7314
7314
  const poller = yield coreLro.createHttpPoller(lro, {
7315
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7316
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
7315
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7316
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
7317
7317
  });
7318
7318
  yield poller.poll();
7319
7319
  return poller;
@@ -7328,7 +7328,7 @@ class MachineExtensionsImpl {
7328
7328
  * @param options The options parameters.
7329
7329
  */
7330
7330
  beginUpdateAndWait(resourceGroupName, machineName, extensionName, extensionParameters, options) {
7331
- return tslib.__awaiter(this, void 0, void 0, function* () {
7331
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7332
7332
  const poller = yield this.beginUpdate(resourceGroupName, machineName, extensionName, extensionParameters, options);
7333
7333
  return poller.pollUntilDone();
7334
7334
  });
@@ -7341,17 +7341,17 @@ class MachineExtensionsImpl {
7341
7341
  * @param options The options parameters.
7342
7342
  */
7343
7343
  beginDelete(resourceGroupName, machineName, extensionName, options) {
7344
- return tslib.__awaiter(this, void 0, void 0, function* () {
7345
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7344
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7345
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7346
7346
  return this.client.sendOperationRequest(args, spec);
7347
7347
  });
7348
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7348
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7349
7349
  var _a;
7350
7350
  let currentRawResponse = undefined;
7351
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7351
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7352
7352
  const callback = (rawResponse, flatResponse) => {
7353
7353
  currentRawResponse = rawResponse;
7354
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7354
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7355
7355
  };
7356
7356
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7357
7357
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7370,8 +7370,8 @@ class MachineExtensionsImpl {
7370
7370
  spec: deleteOperationSpec$4,
7371
7371
  });
7372
7372
  const poller = yield coreLro.createHttpPoller(lro, {
7373
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7374
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
7373
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7374
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
7375
7375
  });
7376
7376
  yield poller.poll();
7377
7377
  return poller;
@@ -7385,7 +7385,7 @@ class MachineExtensionsImpl {
7385
7385
  * @param options The options parameters.
7386
7386
  */
7387
7387
  beginDeleteAndWait(resourceGroupName, machineName, extensionName, options) {
7388
- return tslib.__awaiter(this, void 0, void 0, function* () {
7388
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7389
7389
  const poller = yield this.beginDelete(resourceGroupName, machineName, extensionName, options);
7390
7390
  return poller.pollUntilDone();
7391
7391
  });
@@ -7610,7 +7610,7 @@ class ExtensionMetadataImpl {
7610
7610
  return this;
7611
7611
  },
7612
7612
  byPage: (settings) => {
7613
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7613
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7614
7614
  throw new Error("maxPageSize is not supported by this operation.");
7615
7615
  }
7616
7616
  return this.listPagingPage(location, publisher, extensionType, options, settings);
@@ -7745,7 +7745,7 @@ class OperationsImpl {
7745
7745
  return this;
7746
7746
  },
7747
7747
  byPage: (settings) => {
7748
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7748
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7749
7749
  throw new Error("maxPageSize is not supported by this operation.");
7750
7750
  }
7751
7751
  return this.listPagingPage(options, settings);
@@ -7889,7 +7889,7 @@ class MachineRunCommandsImpl {
7889
7889
  return this;
7890
7890
  },
7891
7891
  byPage: (settings) => {
7892
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7892
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7893
7893
  throw new Error("maxPageSize is not supported by this operation.");
7894
7894
  }
7895
7895
  return this.listPagingPage(resourceGroupName, machineName, options, settings);
@@ -7899,7 +7899,7 @@ class MachineRunCommandsImpl {
7899
7899
  listPagingPage(resourceGroupName, machineName, options, settings) {
7900
7900
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7901
7901
  let result;
7902
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7902
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
7903
7903
  if (!continuationToken) {
7904
7904
  result = yield tslib.__await(this._list(resourceGroupName, machineName, options));
7905
7905
  let page = result.value || [];
@@ -7945,17 +7945,17 @@ class MachineRunCommandsImpl {
7945
7945
  * @param options The options parameters.
7946
7946
  */
7947
7947
  beginCreateOrUpdate(resourceGroupName, machineName, runCommandName, runCommandProperties, options) {
7948
- return tslib.__awaiter(this, void 0, void 0, function* () {
7949
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7948
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7949
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7950
7950
  return this.client.sendOperationRequest(args, spec);
7951
7951
  });
7952
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7952
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7953
7953
  var _a;
7954
7954
  let currentRawResponse = undefined;
7955
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7955
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7956
7956
  const callback = (rawResponse, flatResponse) => {
7957
7957
  currentRawResponse = rawResponse;
7958
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7958
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7959
7959
  };
7960
7960
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7961
7961
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7980,8 +7980,8 @@ class MachineRunCommandsImpl {
7980
7980
  spec: createOrUpdateOperationSpec$3,
7981
7981
  });
7982
7982
  const poller = yield coreLro.createHttpPoller(lro, {
7983
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7984
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
7983
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7984
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
7985
7985
  resourceLocationConfig: "azure-async-operation",
7986
7986
  });
7987
7987
  yield poller.poll();
@@ -7997,7 +7997,7 @@ class MachineRunCommandsImpl {
7997
7997
  * @param options The options parameters.
7998
7998
  */
7999
7999
  beginCreateOrUpdateAndWait(resourceGroupName, machineName, runCommandName, runCommandProperties, options) {
8000
- return tslib.__awaiter(this, void 0, void 0, function* () {
8000
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8001
8001
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, machineName, runCommandName, runCommandProperties, options);
8002
8002
  return poller.pollUntilDone();
8003
8003
  });
@@ -8010,17 +8010,17 @@ class MachineRunCommandsImpl {
8010
8010
  * @param options The options parameters.
8011
8011
  */
8012
8012
  beginDelete(resourceGroupName, machineName, runCommandName, options) {
8013
- return tslib.__awaiter(this, void 0, void 0, function* () {
8014
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8013
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8014
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8015
8015
  return this.client.sendOperationRequest(args, spec);
8016
8016
  });
8017
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8017
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8018
8018
  var _a;
8019
8019
  let currentRawResponse = undefined;
8020
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8020
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8021
8021
  const callback = (rawResponse, flatResponse) => {
8022
8022
  currentRawResponse = rawResponse;
8023
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8023
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8024
8024
  };
8025
8025
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8026
8026
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8039,8 +8039,8 @@ class MachineRunCommandsImpl {
8039
8039
  spec: deleteOperationSpec$3,
8040
8040
  });
8041
8041
  const poller = yield coreLro.createHttpPoller(lro, {
8042
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8043
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
8042
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8043
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
8044
8044
  resourceLocationConfig: "location",
8045
8045
  });
8046
8046
  yield poller.poll();
@@ -8055,7 +8055,7 @@ class MachineRunCommandsImpl {
8055
8055
  * @param options The options parameters.
8056
8056
  */
8057
8057
  beginDeleteAndWait(resourceGroupName, machineName, runCommandName, options) {
8058
- return tslib.__awaiter(this, void 0, void 0, function* () {
8058
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8059
8059
  const poller = yield this.beginDelete(resourceGroupName, machineName, runCommandName, options);
8060
8060
  return poller.pollUntilDone();
8061
8061
  });
@@ -8253,7 +8253,7 @@ class GatewaysImpl {
8253
8253
  return this;
8254
8254
  },
8255
8255
  byPage: (settings) => {
8256
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8256
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8257
8257
  throw new Error("maxPageSize is not supported by this operation.");
8258
8258
  }
8259
8259
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -8263,7 +8263,7 @@ class GatewaysImpl {
8263
8263
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
8264
8264
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
8265
8265
  let result;
8266
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8266
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8267
8267
  if (!continuationToken) {
8268
8268
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
8269
8269
  let page = result.value || [];
@@ -8314,7 +8314,7 @@ class GatewaysImpl {
8314
8314
  return this;
8315
8315
  },
8316
8316
  byPage: (settings) => {
8317
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8317
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8318
8318
  throw new Error("maxPageSize is not supported by this operation.");
8319
8319
  }
8320
8320
  return this.listBySubscriptionPagingPage(options, settings);
@@ -8324,7 +8324,7 @@ class GatewaysImpl {
8324
8324
  listBySubscriptionPagingPage(options, settings) {
8325
8325
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
8326
8326
  let result;
8327
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8327
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8328
8328
  if (!continuationToken) {
8329
8329
  result = yield tslib.__await(this._listBySubscription(options));
8330
8330
  let page = result.value || [];
@@ -8369,17 +8369,17 @@ class GatewaysImpl {
8369
8369
  * @param options The options parameters.
8370
8370
  */
8371
8371
  beginCreateOrUpdate(resourceGroupName, gatewayName, parameters, options) {
8372
- return tslib.__awaiter(this, void 0, void 0, function* () {
8373
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8372
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8373
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8374
8374
  return this.client.sendOperationRequest(args, spec);
8375
8375
  });
8376
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8376
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8377
8377
  var _a;
8378
8378
  let currentRawResponse = undefined;
8379
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8379
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8380
8380
  const callback = (rawResponse, flatResponse) => {
8381
8381
  currentRawResponse = rawResponse;
8382
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8382
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8383
8383
  };
8384
8384
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8385
8385
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8398,8 +8398,8 @@ class GatewaysImpl {
8398
8398
  spec: createOrUpdateOperationSpec$2,
8399
8399
  });
8400
8400
  const poller = yield coreLro.createHttpPoller(lro, {
8401
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8402
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
8401
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8402
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
8403
8403
  });
8404
8404
  yield poller.poll();
8405
8405
  return poller;
@@ -8413,7 +8413,7 @@ class GatewaysImpl {
8413
8413
  * @param options The options parameters.
8414
8414
  */
8415
8415
  beginCreateOrUpdateAndWait(resourceGroupName, gatewayName, parameters, options) {
8416
- return tslib.__awaiter(this, void 0, void 0, function* () {
8416
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8417
8417
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, gatewayName, parameters, options);
8418
8418
  return poller.pollUntilDone();
8419
8419
  });
@@ -8444,17 +8444,17 @@ class GatewaysImpl {
8444
8444
  * @param options The options parameters.
8445
8445
  */
8446
8446
  beginDelete(resourceGroupName, gatewayName, options) {
8447
- return tslib.__awaiter(this, void 0, void 0, function* () {
8448
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8447
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8448
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8449
8449
  return this.client.sendOperationRequest(args, spec);
8450
8450
  });
8451
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8451
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8452
8452
  var _a;
8453
8453
  let currentRawResponse = undefined;
8454
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8454
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8455
8455
  const callback = (rawResponse, flatResponse) => {
8456
8456
  currentRawResponse = rawResponse;
8457
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8457
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8458
8458
  };
8459
8459
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8460
8460
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8473,8 +8473,8 @@ class GatewaysImpl {
8473
8473
  spec: deleteOperationSpec$2,
8474
8474
  });
8475
8475
  const poller = yield coreLro.createHttpPoller(lro, {
8476
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8477
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
8476
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8477
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
8478
8478
  });
8479
8479
  yield poller.poll();
8480
8480
  return poller;
@@ -8487,7 +8487,7 @@ class GatewaysImpl {
8487
8487
  * @param options The options parameters.
8488
8488
  */
8489
8489
  beginDeleteAndWait(resourceGroupName, gatewayName, options) {
8490
- return tslib.__awaiter(this, void 0, void 0, function* () {
8490
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8491
8491
  const poller = yield this.beginDelete(resourceGroupName, gatewayName, options);
8492
8492
  return poller.pollUntilDone();
8493
8493
  });
@@ -8900,7 +8900,7 @@ class PrivateLinkScopesImpl {
8900
8900
  return this;
8901
8901
  },
8902
8902
  byPage: (settings) => {
8903
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8903
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8904
8904
  throw new Error("maxPageSize is not supported by this operation.");
8905
8905
  }
8906
8906
  return this.listPagingPage(options, settings);
@@ -8910,7 +8910,7 @@ class PrivateLinkScopesImpl {
8910
8910
  listPagingPage(options, settings) {
8911
8911
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8912
8912
  let result;
8913
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8913
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8914
8914
  if (!continuationToken) {
8915
8915
  result = yield tslib.__await(this._list(options));
8916
8916
  let page = result.value || [];
@@ -8962,7 +8962,7 @@ class PrivateLinkScopesImpl {
8962
8962
  return this;
8963
8963
  },
8964
8964
  byPage: (settings) => {
8965
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8965
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8966
8966
  throw new Error("maxPageSize is not supported by this operation.");
8967
8967
  }
8968
8968
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -8972,7 +8972,7 @@ class PrivateLinkScopesImpl {
8972
8972
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
8973
8973
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
8974
8974
  let result;
8975
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8975
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8976
8976
  if (!continuationToken) {
8977
8977
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
8978
8978
  let page = result.value || [];
@@ -9031,17 +9031,17 @@ class PrivateLinkScopesImpl {
9031
9031
  * @param options The options parameters.
9032
9032
  */
9033
9033
  beginDelete(resourceGroupName, scopeName, options) {
9034
- return tslib.__awaiter(this, void 0, void 0, function* () {
9035
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9034
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9035
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9036
9036
  return this.client.sendOperationRequest(args, spec);
9037
9037
  });
9038
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9038
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9039
9039
  var _a;
9040
9040
  let currentRawResponse = undefined;
9041
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9041
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9042
9042
  const callback = (rawResponse, flatResponse) => {
9043
9043
  currentRawResponse = rawResponse;
9044
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9044
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9045
9045
  };
9046
9046
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9047
9047
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9060,8 +9060,8 @@ class PrivateLinkScopesImpl {
9060
9060
  spec: deleteOperationSpec$1,
9061
9061
  });
9062
9062
  const poller = yield coreLro.createHttpPoller(lro, {
9063
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9064
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9063
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9064
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9065
9065
  });
9066
9066
  yield poller.poll();
9067
9067
  return poller;
@@ -9074,7 +9074,7 @@ class PrivateLinkScopesImpl {
9074
9074
  * @param options The options parameters.
9075
9075
  */
9076
9076
  beginDeleteAndWait(resourceGroupName, scopeName, options) {
9077
- return tslib.__awaiter(this, void 0, void 0, function* () {
9077
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9078
9078
  const poller = yield this.beginDelete(resourceGroupName, scopeName, options);
9079
9079
  return poller.pollUntilDone();
9080
9080
  });
@@ -9392,7 +9392,7 @@ class PrivateLinkResourcesImpl {
9392
9392
  return this;
9393
9393
  },
9394
9394
  byPage: (settings) => {
9395
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9395
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9396
9396
  throw new Error("maxPageSize is not supported by this operation.");
9397
9397
  }
9398
9398
  return this.listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options, settings);
@@ -9402,7 +9402,7 @@ class PrivateLinkResourcesImpl {
9402
9402
  listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options, settings) {
9403
9403
  return tslib.__asyncGenerator(this, arguments, function* listByPrivateLinkScopePagingPage_1() {
9404
9404
  let result;
9405
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9405
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
9406
9406
  if (!continuationToken) {
9407
9407
  result = yield tslib.__await(this._listByPrivateLinkScope(resourceGroupName, scopeName, options));
9408
9408
  let page = result.value || [];
@@ -9569,7 +9569,7 @@ class PrivateEndpointConnectionsImpl {
9569
9569
  return this;
9570
9570
  },
9571
9571
  byPage: (settings) => {
9572
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9572
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9573
9573
  throw new Error("maxPageSize is not supported by this operation.");
9574
9574
  }
9575
9575
  return this.listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options, settings);
@@ -9579,7 +9579,7 @@ class PrivateEndpointConnectionsImpl {
9579
9579
  listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options, settings) {
9580
9580
  return tslib.__asyncGenerator(this, arguments, function* listByPrivateLinkScopePagingPage_1() {
9581
9581
  let result;
9582
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9582
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
9583
9583
  if (!continuationToken) {
9584
9584
  result = yield tslib.__await(this._listByPrivateLinkScope(resourceGroupName, scopeName, options));
9585
9585
  let page = result.value || [];
@@ -9635,17 +9635,17 @@ class PrivateEndpointConnectionsImpl {
9635
9635
  * @param options The options parameters.
9636
9636
  */
9637
9637
  beginCreateOrUpdate(resourceGroupName, scopeName, privateEndpointConnectionName, parameters, options) {
9638
- return tslib.__awaiter(this, void 0, void 0, function* () {
9639
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9638
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9639
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9640
9640
  return this.client.sendOperationRequest(args, spec);
9641
9641
  });
9642
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9642
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9643
9643
  var _a;
9644
9644
  let currentRawResponse = undefined;
9645
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9645
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9646
9646
  const callback = (rawResponse, flatResponse) => {
9647
9647
  currentRawResponse = rawResponse;
9648
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9648
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9649
9649
  };
9650
9650
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9651
9651
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9670,8 +9670,8 @@ class PrivateEndpointConnectionsImpl {
9670
9670
  spec: createOrUpdateOperationSpec,
9671
9671
  });
9672
9672
  const poller = yield coreLro.createHttpPoller(lro, {
9673
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9674
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9673
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9674
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9675
9675
  });
9676
9676
  yield poller.poll();
9677
9677
  return poller;
@@ -9686,7 +9686,7 @@ class PrivateEndpointConnectionsImpl {
9686
9686
  * @param options The options parameters.
9687
9687
  */
9688
9688
  beginCreateOrUpdateAndWait(resourceGroupName, scopeName, privateEndpointConnectionName, parameters, options) {
9689
- return tslib.__awaiter(this, void 0, void 0, function* () {
9689
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9690
9690
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, scopeName, privateEndpointConnectionName, parameters, options);
9691
9691
  return poller.pollUntilDone();
9692
9692
  });
@@ -9699,17 +9699,17 @@ class PrivateEndpointConnectionsImpl {
9699
9699
  * @param options The options parameters.
9700
9700
  */
9701
9701
  beginDelete(resourceGroupName, scopeName, privateEndpointConnectionName, options) {
9702
- return tslib.__awaiter(this, void 0, void 0, function* () {
9703
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9702
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9703
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9704
9704
  return this.client.sendOperationRequest(args, spec);
9705
9705
  });
9706
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9706
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9707
9707
  var _a;
9708
9708
  let currentRawResponse = undefined;
9709
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9709
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9710
9710
  const callback = (rawResponse, flatResponse) => {
9711
9711
  currentRawResponse = rawResponse;
9712
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9712
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9713
9713
  };
9714
9714
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9715
9715
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9733,8 +9733,8 @@ class PrivateEndpointConnectionsImpl {
9733
9733
  spec: deleteOperationSpec,
9734
9734
  });
9735
9735
  const poller = yield coreLro.createHttpPoller(lro, {
9736
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9737
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9736
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9737
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9738
9738
  });
9739
9739
  yield poller.poll();
9740
9740
  return poller;
@@ -9748,7 +9748,7 @@ class PrivateEndpointConnectionsImpl {
9748
9748
  * @param options The options parameters.
9749
9749
  */
9750
9750
  beginDeleteAndWait(resourceGroupName, scopeName, privateEndpointConnectionName, options) {
9751
- return tslib.__awaiter(this, void 0, void 0, function* () {
9751
+ return tslib.__awaiter(this, undefined, undefined, function* () {
9752
9752
  const poller = yield this.beginDelete(resourceGroupName, scopeName, privateEndpointConnectionName, options);
9753
9753
  return poller.pollUntilDone();
9754
9754
  });
@@ -9929,7 +9929,7 @@ class NetworkSecurityPerimeterConfigurationsImpl {
9929
9929
  return this;
9930
9930
  },
9931
9931
  byPage: (settings) => {
9932
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9932
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9933
9933
  throw new Error("maxPageSize is not supported by this operation.");
9934
9934
  }
9935
9935
  return this.listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options, settings);
@@ -9939,7 +9939,7 @@ class NetworkSecurityPerimeterConfigurationsImpl {
9939
9939
  listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options, settings) {
9940
9940
  return tslib.__asyncGenerator(this, arguments, function* listByPrivateLinkScopePagingPage_1() {
9941
9941
  let result;
9942
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9942
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
9943
9943
  if (!continuationToken) {
9944
9944
  result = yield tslib.__await(this._listByPrivateLinkScope(resourceGroupName, scopeName, options));
9945
9945
  let page = result.value || [];
@@ -10005,17 +10005,17 @@ class NetworkSecurityPerimeterConfigurationsImpl {
10005
10005
  * @param options The options parameters.
10006
10006
  */
10007
10007
  beginReconcileForPrivateLinkScope(resourceGroupName, scopeName, perimeterName, options) {
10008
- return tslib.__awaiter(this, void 0, void 0, function* () {
10009
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10008
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10009
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10010
10010
  return this.client.sendOperationRequest(args, spec);
10011
10011
  });
10012
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10012
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10013
10013
  var _a;
10014
10014
  let currentRawResponse = undefined;
10015
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10015
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10016
10016
  const callback = (rawResponse, flatResponse) => {
10017
10017
  currentRawResponse = rawResponse;
10018
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10018
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10019
10019
  };
10020
10020
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10021
10021
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10034,8 +10034,8 @@ class NetworkSecurityPerimeterConfigurationsImpl {
10034
10034
  spec: reconcileForPrivateLinkScopeOperationSpec,
10035
10035
  });
10036
10036
  const poller = yield coreLro.createHttpPoller(lro, {
10037
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10038
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10037
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10038
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10039
10039
  });
10040
10040
  yield poller.poll();
10041
10041
  return poller;
@@ -10050,7 +10050,7 @@ class NetworkSecurityPerimeterConfigurationsImpl {
10050
10050
  * @param options The options parameters.
10051
10051
  */
10052
10052
  beginReconcileForPrivateLinkScopeAndWait(resourceGroupName, scopeName, perimeterName, options) {
10053
- return tslib.__awaiter(this, void 0, void 0, function* () {
10053
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10054
10054
  const poller = yield this.beginReconcileForPrivateLinkScope(resourceGroupName, scopeName, perimeterName, options);
10055
10055
  return poller.pollUntilDone();
10056
10056
  });
@@ -10200,10 +10200,10 @@ class HybridComputeManagementClient extends coreClient__namespace.ServiceClient
10200
10200
  : `${packageDetails}`;
10201
10201
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
10202
10202
  userAgentPrefix,
10203
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
10203
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
10204
10204
  super(optionsWithDefaults);
10205
10205
  let bearerTokenAuthenticationPolicyFound = false;
10206
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
10206
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
10207
10207
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
10208
10208
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
10209
10209
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -10217,7 +10217,7 @@ class HybridComputeManagementClient extends coreClient__namespace.ServiceClient
10217
10217
  });
10218
10218
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
10219
10219
  credential: credentials,
10220
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
10220
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
10221
10221
  challengeCallbacks: {
10222
10222
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
10223
10223
  },
@@ -10253,7 +10253,7 @@ class HybridComputeManagementClient extends coreClient__namespace.ServiceClient
10253
10253
  const apiVersionPolicy = {
10254
10254
  name: "CustomApiVersionPolicy",
10255
10255
  sendRequest(request, next) {
10256
- return tslib.__awaiter(this, void 0, void 0, function* () {
10256
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10257
10257
  const param = request.url.split("?");
10258
10258
  if (param.length > 1) {
10259
10259
  const newParams = param[1].split("&").map((item) => {
@@ -10280,17 +10280,17 @@ class HybridComputeManagementClient extends coreClient__namespace.ServiceClient
10280
10280
  * @param options The options parameters.
10281
10281
  */
10282
10282
  beginUpgradeExtensions(resourceGroupName, machineName, extensionUpgradeParameters, options) {
10283
- return tslib.__awaiter(this, void 0, void 0, function* () {
10284
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10283
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10284
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10285
10285
  return this.sendOperationRequest(args, spec);
10286
10286
  });
10287
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10287
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10288
10288
  var _a;
10289
10289
  let currentRawResponse = undefined;
10290
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10290
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10291
10291
  const callback = (rawResponse, flatResponse) => {
10292
10292
  currentRawResponse = rawResponse;
10293
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10293
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10294
10294
  };
10295
10295
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10296
10296
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10314,8 +10314,8 @@ class HybridComputeManagementClient extends coreClient__namespace.ServiceClient
10314
10314
  spec: upgradeExtensionsOperationSpec,
10315
10315
  });
10316
10316
  const poller = yield coreLro.createHttpPoller(lro, {
10317
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10318
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10317
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10318
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10319
10319
  });
10320
10320
  yield poller.poll();
10321
10321
  return poller;
@@ -10329,7 +10329,7 @@ class HybridComputeManagementClient extends coreClient__namespace.ServiceClient
10329
10329
  * @param options The options parameters.
10330
10330
  */
10331
10331
  beginUpgradeExtensionsAndWait(resourceGroupName, machineName, extensionUpgradeParameters, options) {
10332
- return tslib.__awaiter(this, void 0, void 0, function* () {
10332
+ return tslib.__awaiter(this, undefined, undefined, function* () {
10333
10333
  const poller = yield this.beginUpgradeExtensions(resourceGroupName, machineName, extensionUpgradeParameters, options);
10334
10334
  return poller.pollUntilDone();
10335
10335
  });