@azure/arm-networkcloud 2.0.0-alpha.20250210.1 → 2.0.0-alpha.20250212.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
47
47
  if (typeof page !== "object" || page === null) {
48
48
  return undefined;
49
49
  }
50
- return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
51
51
  }
52
52
  function setContinuationToken(page, continuationToken) {
53
53
  var _a;
54
54
  if (typeof page !== "object" || page === null || !continuationToken) {
55
55
  return;
56
56
  }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -9441,7 +9441,7 @@ class OperationsImpl {
9441
9441
  return this;
9442
9442
  },
9443
9443
  byPage: (settings) => {
9444
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9444
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9445
9445
  throw new Error("maxPageSize is not supported by this operation.");
9446
9446
  }
9447
9447
  return this.listPagingPage(options, settings);
@@ -9451,7 +9451,7 @@ class OperationsImpl {
9451
9451
  listPagingPage(options, settings) {
9452
9452
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
9453
9453
  let result;
9454
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
9454
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9455
9455
  if (!continuationToken) {
9456
9456
  result = yield tslib.__await(this._list(options));
9457
9457
  let page = result.value || [];
@@ -9547,7 +9547,7 @@ function createLroSpec(inputs) {
9547
9547
  sendInitialRequest: () => sendOperationFn(args, spec),
9548
9548
  sendPollRequest: (path, options) => {
9549
9549
  const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
9550
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
9550
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
9551
9551
  },
9552
9552
  };
9553
9553
  }
@@ -9583,7 +9583,7 @@ class BareMetalMachinesImpl {
9583
9583
  return this;
9584
9584
  },
9585
9585
  byPage: (settings) => {
9586
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9586
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9587
9587
  throw new Error("maxPageSize is not supported by this operation.");
9588
9588
  }
9589
9589
  return this.listBySubscriptionPagingPage(options, settings);
@@ -9593,7 +9593,7 @@ class BareMetalMachinesImpl {
9593
9593
  listBySubscriptionPagingPage(options, settings) {
9594
9594
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
9595
9595
  let result;
9596
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
9596
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9597
9597
  if (!continuationToken) {
9598
9598
  result = yield tslib.__await(this._listBySubscription(options));
9599
9599
  let page = result.value || [];
@@ -9645,7 +9645,7 @@ class BareMetalMachinesImpl {
9645
9645
  return this;
9646
9646
  },
9647
9647
  byPage: (settings) => {
9648
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9648
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9649
9649
  throw new Error("maxPageSize is not supported by this operation.");
9650
9650
  }
9651
9651
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -9655,7 +9655,7 @@ class BareMetalMachinesImpl {
9655
9655
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
9656
9656
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
9657
9657
  let result;
9658
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
9658
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9659
9659
  if (!continuationToken) {
9660
9660
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
9661
9661
  let page = result.value || [];
@@ -9726,17 +9726,17 @@ class BareMetalMachinesImpl {
9726
9726
  * @param options The options parameters.
9727
9727
  */
9728
9728
  beginCreateOrUpdate(resourceGroupName, bareMetalMachineName, bareMetalMachineParameters, options) {
9729
- return tslib.__awaiter(this, undefined, undefined, function* () {
9730
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9729
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9730
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9731
9731
  return this.client.sendOperationRequest(args, spec);
9732
9732
  });
9733
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9733
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9734
9734
  var _a;
9735
9735
  let currentRawResponse = undefined;
9736
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9736
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9737
9737
  const callback = (rawResponse, flatResponse) => {
9738
9738
  currentRawResponse = rawResponse;
9739
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9739
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9740
9740
  };
9741
9741
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9742
9742
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9760,8 +9760,8 @@ class BareMetalMachinesImpl {
9760
9760
  spec: createOrUpdateOperationSpec$h,
9761
9761
  });
9762
9762
  const poller = yield coreLro.createHttpPoller(lro, {
9763
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9764
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9763
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9764
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9765
9765
  resourceLocationConfig: "azure-async-operation",
9766
9766
  });
9767
9767
  yield poller.poll();
@@ -9778,7 +9778,7 @@ class BareMetalMachinesImpl {
9778
9778
  * @param options The options parameters.
9779
9779
  */
9780
9780
  beginCreateOrUpdateAndWait(resourceGroupName, bareMetalMachineName, bareMetalMachineParameters, options) {
9781
- return tslib.__awaiter(this, undefined, undefined, function* () {
9781
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9782
9782
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, bareMetalMachineName, bareMetalMachineParameters, options);
9783
9783
  return poller.pollUntilDone();
9784
9784
  });
@@ -9792,17 +9792,17 @@ class BareMetalMachinesImpl {
9792
9792
  * @param options The options parameters.
9793
9793
  */
9794
9794
  beginDelete(resourceGroupName, bareMetalMachineName, options) {
9795
- return tslib.__awaiter(this, undefined, undefined, function* () {
9796
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9795
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9796
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9797
9797
  return this.client.sendOperationRequest(args, spec);
9798
9798
  });
9799
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9799
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9800
9800
  var _a;
9801
9801
  let currentRawResponse = undefined;
9802
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9802
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9803
9803
  const callback = (rawResponse, flatResponse) => {
9804
9804
  currentRawResponse = rawResponse;
9805
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9805
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9806
9806
  };
9807
9807
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9808
9808
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9821,8 +9821,8 @@ class BareMetalMachinesImpl {
9821
9821
  spec: deleteOperationSpec$h,
9822
9822
  });
9823
9823
  const poller = yield coreLro.createHttpPoller(lro, {
9824
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9825
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9824
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9825
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9826
9826
  resourceLocationConfig: "location",
9827
9827
  });
9828
9828
  yield poller.poll();
@@ -9838,7 +9838,7 @@ class BareMetalMachinesImpl {
9838
9838
  * @param options The options parameters.
9839
9839
  */
9840
9840
  beginDeleteAndWait(resourceGroupName, bareMetalMachineName, options) {
9841
- return tslib.__awaiter(this, undefined, undefined, function* () {
9841
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9842
9842
  const poller = yield this.beginDelete(resourceGroupName, bareMetalMachineName, options);
9843
9843
  return poller.pollUntilDone();
9844
9844
  });
@@ -9851,17 +9851,17 @@ class BareMetalMachinesImpl {
9851
9851
  * @param options The options parameters.
9852
9852
  */
9853
9853
  beginUpdate(resourceGroupName, bareMetalMachineName, options) {
9854
- return tslib.__awaiter(this, undefined, undefined, function* () {
9855
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9854
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9855
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9856
9856
  return this.client.sendOperationRequest(args, spec);
9857
9857
  });
9858
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9858
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9859
9859
  var _a;
9860
9860
  let currentRawResponse = undefined;
9861
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9861
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9862
9862
  const callback = (rawResponse, flatResponse) => {
9863
9863
  currentRawResponse = rawResponse;
9864
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9864
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9865
9865
  };
9866
9866
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9867
9867
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9880,8 +9880,8 @@ class BareMetalMachinesImpl {
9880
9880
  spec: updateOperationSpec$h,
9881
9881
  });
9882
9882
  const poller = yield coreLro.createHttpPoller(lro, {
9883
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9884
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9883
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9884
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9885
9885
  resourceLocationConfig: "azure-async-operation",
9886
9886
  });
9887
9887
  yield poller.poll();
@@ -9896,7 +9896,7 @@ class BareMetalMachinesImpl {
9896
9896
  * @param options The options parameters.
9897
9897
  */
9898
9898
  beginUpdateAndWait(resourceGroupName, bareMetalMachineName, options) {
9899
- return tslib.__awaiter(this, undefined, undefined, function* () {
9899
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9900
9900
  const poller = yield this.beginUpdate(resourceGroupName, bareMetalMachineName, options);
9901
9901
  return poller.pollUntilDone();
9902
9902
  });
@@ -9908,17 +9908,17 @@ class BareMetalMachinesImpl {
9908
9908
  * @param options The options parameters.
9909
9909
  */
9910
9910
  beginCordon(resourceGroupName, bareMetalMachineName, options) {
9911
- return tslib.__awaiter(this, undefined, undefined, function* () {
9912
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9911
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9912
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9913
9913
  return this.client.sendOperationRequest(args, spec);
9914
9914
  });
9915
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9915
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9916
9916
  var _a;
9917
9917
  let currentRawResponse = undefined;
9918
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9918
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9919
9919
  const callback = (rawResponse, flatResponse) => {
9920
9920
  currentRawResponse = rawResponse;
9921
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9921
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9922
9922
  };
9923
9923
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9924
9924
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9937,8 +9937,8 @@ class BareMetalMachinesImpl {
9937
9937
  spec: cordonOperationSpec,
9938
9938
  });
9939
9939
  const poller = yield coreLro.createHttpPoller(lro, {
9940
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9941
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9940
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9941
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9942
9942
  resourceLocationConfig: "location",
9943
9943
  });
9944
9944
  yield poller.poll();
@@ -9952,7 +9952,7 @@ class BareMetalMachinesImpl {
9952
9952
  * @param options The options parameters.
9953
9953
  */
9954
9954
  beginCordonAndWait(resourceGroupName, bareMetalMachineName, options) {
9955
- return tslib.__awaiter(this, undefined, undefined, function* () {
9955
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9956
9956
  const poller = yield this.beginCordon(resourceGroupName, bareMetalMachineName, options);
9957
9957
  return poller.pollUntilDone();
9958
9958
  });
@@ -9964,17 +9964,17 @@ class BareMetalMachinesImpl {
9964
9964
  * @param options The options parameters.
9965
9965
  */
9966
9966
  beginPowerOff(resourceGroupName, bareMetalMachineName, options) {
9967
- return tslib.__awaiter(this, undefined, undefined, function* () {
9968
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9967
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9968
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9969
9969
  return this.client.sendOperationRequest(args, spec);
9970
9970
  });
9971
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
9971
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
9972
9972
  var _a;
9973
9973
  let currentRawResponse = undefined;
9974
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
9974
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
9975
9975
  const callback = (rawResponse, flatResponse) => {
9976
9976
  currentRawResponse = rawResponse;
9977
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
9977
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
9978
9978
  };
9979
9979
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
9980
9980
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -9993,8 +9993,8 @@ class BareMetalMachinesImpl {
9993
9993
  spec: powerOffOperationSpec$1,
9994
9994
  });
9995
9995
  const poller = yield coreLro.createHttpPoller(lro, {
9996
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
9997
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
9996
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
9997
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
9998
9998
  resourceLocationConfig: "location",
9999
9999
  });
10000
10000
  yield poller.poll();
@@ -10008,7 +10008,7 @@ class BareMetalMachinesImpl {
10008
10008
  * @param options The options parameters.
10009
10009
  */
10010
10010
  beginPowerOffAndWait(resourceGroupName, bareMetalMachineName, options) {
10011
- return tslib.__awaiter(this, undefined, undefined, function* () {
10011
+ return tslib.__awaiter(this, void 0, void 0, function* () {
10012
10012
  const poller = yield this.beginPowerOff(resourceGroupName, bareMetalMachineName, options);
10013
10013
  return poller.pollUntilDone();
10014
10014
  });
@@ -10020,17 +10020,17 @@ class BareMetalMachinesImpl {
10020
10020
  * @param options The options parameters.
10021
10021
  */
10022
10022
  beginReimage(resourceGroupName, bareMetalMachineName, options) {
10023
- return tslib.__awaiter(this, undefined, undefined, function* () {
10024
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10023
+ return tslib.__awaiter(this, void 0, void 0, function* () {
10024
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10025
10025
  return this.client.sendOperationRequest(args, spec);
10026
10026
  });
10027
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10027
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10028
10028
  var _a;
10029
10029
  let currentRawResponse = undefined;
10030
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10030
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10031
10031
  const callback = (rawResponse, flatResponse) => {
10032
10032
  currentRawResponse = rawResponse;
10033
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10033
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10034
10034
  };
10035
10035
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10036
10036
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10049,8 +10049,8 @@ class BareMetalMachinesImpl {
10049
10049
  spec: reimageOperationSpec$1,
10050
10050
  });
10051
10051
  const poller = yield coreLro.createHttpPoller(lro, {
10052
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10053
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10052
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10053
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10054
10054
  resourceLocationConfig: "location",
10055
10055
  });
10056
10056
  yield poller.poll();
@@ -10064,7 +10064,7 @@ class BareMetalMachinesImpl {
10064
10064
  * @param options The options parameters.
10065
10065
  */
10066
10066
  beginReimageAndWait(resourceGroupName, bareMetalMachineName, options) {
10067
- return tslib.__awaiter(this, undefined, undefined, function* () {
10067
+ return tslib.__awaiter(this, void 0, void 0, function* () {
10068
10068
  const poller = yield this.beginReimage(resourceGroupName, bareMetalMachineName, options);
10069
10069
  return poller.pollUntilDone();
10070
10070
  });
@@ -10076,17 +10076,17 @@ class BareMetalMachinesImpl {
10076
10076
  * @param options The options parameters.
10077
10077
  */
10078
10078
  beginReplace(resourceGroupName, bareMetalMachineName, options) {
10079
- return tslib.__awaiter(this, undefined, undefined, function* () {
10080
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10079
+ return tslib.__awaiter(this, void 0, void 0, function* () {
10080
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10081
10081
  return this.client.sendOperationRequest(args, spec);
10082
10082
  });
10083
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10083
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10084
10084
  var _a;
10085
10085
  let currentRawResponse = undefined;
10086
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10086
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10087
10087
  const callback = (rawResponse, flatResponse) => {
10088
10088
  currentRawResponse = rawResponse;
10089
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10089
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10090
10090
  };
10091
10091
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10092
10092
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10105,8 +10105,8 @@ class BareMetalMachinesImpl {
10105
10105
  spec: replaceOperationSpec,
10106
10106
  });
10107
10107
  const poller = yield coreLro.createHttpPoller(lro, {
10108
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10109
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10108
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10109
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10110
10110
  resourceLocationConfig: "location",
10111
10111
  });
10112
10112
  yield poller.poll();
@@ -10120,7 +10120,7 @@ class BareMetalMachinesImpl {
10120
10120
  * @param options The options parameters.
10121
10121
  */
10122
10122
  beginReplaceAndWait(resourceGroupName, bareMetalMachineName, options) {
10123
- return tslib.__awaiter(this, undefined, undefined, function* () {
10123
+ return tslib.__awaiter(this, void 0, void 0, function* () {
10124
10124
  const poller = yield this.beginReplace(resourceGroupName, bareMetalMachineName, options);
10125
10125
  return poller.pollUntilDone();
10126
10126
  });
@@ -10132,17 +10132,17 @@ class BareMetalMachinesImpl {
10132
10132
  * @param options The options parameters.
10133
10133
  */
10134
10134
  beginRestart(resourceGroupName, bareMetalMachineName, options) {
10135
- return tslib.__awaiter(this, undefined, undefined, function* () {
10136
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10135
+ return tslib.__awaiter(this, void 0, void 0, function* () {
10136
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10137
10137
  return this.client.sendOperationRequest(args, spec);
10138
10138
  });
10139
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10139
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10140
10140
  var _a;
10141
10141
  let currentRawResponse = undefined;
10142
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10142
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10143
10143
  const callback = (rawResponse, flatResponse) => {
10144
10144
  currentRawResponse = rawResponse;
10145
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10145
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10146
10146
  };
10147
10147
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10148
10148
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10161,8 +10161,8 @@ class BareMetalMachinesImpl {
10161
10161
  spec: restartOperationSpec$1,
10162
10162
  });
10163
10163
  const poller = yield coreLro.createHttpPoller(lro, {
10164
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10165
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10164
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10165
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10166
10166
  resourceLocationConfig: "location",
10167
10167
  });
10168
10168
  yield poller.poll();
@@ -10176,7 +10176,7 @@ class BareMetalMachinesImpl {
10176
10176
  * @param options The options parameters.
10177
10177
  */
10178
10178
  beginRestartAndWait(resourceGroupName, bareMetalMachineName, options) {
10179
- return tslib.__awaiter(this, undefined, undefined, function* () {
10179
+ return tslib.__awaiter(this, void 0, void 0, function* () {
10180
10180
  const poller = yield this.beginRestart(resourceGroupName, bareMetalMachineName, options);
10181
10181
  return poller.pollUntilDone();
10182
10182
  });
@@ -10191,17 +10191,17 @@ class BareMetalMachinesImpl {
10191
10191
  * @param options The options parameters.
10192
10192
  */
10193
10193
  beginRunCommand(resourceGroupName, bareMetalMachineName, bareMetalMachineRunCommandParameters, options) {
10194
- return tslib.__awaiter(this, undefined, undefined, function* () {
10195
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10194
+ return tslib.__awaiter(this, void 0, void 0, function* () {
10195
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10196
10196
  return this.client.sendOperationRequest(args, spec);
10197
10197
  });
10198
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10198
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10199
10199
  var _a;
10200
10200
  let currentRawResponse = undefined;
10201
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10201
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10202
10202
  const callback = (rawResponse, flatResponse) => {
10203
10203
  currentRawResponse = rawResponse;
10204
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10204
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10205
10205
  };
10206
10206
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10207
10207
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10225,8 +10225,8 @@ class BareMetalMachinesImpl {
10225
10225
  spec: runCommandOperationSpec,
10226
10226
  });
10227
10227
  const poller = yield coreLro.createHttpPoller(lro, {
10228
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10229
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10228
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10229
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10230
10230
  resourceLocationConfig: "location",
10231
10231
  });
10232
10232
  yield poller.poll();
@@ -10243,7 +10243,7 @@ class BareMetalMachinesImpl {
10243
10243
  * @param options The options parameters.
10244
10244
  */
10245
10245
  beginRunCommandAndWait(resourceGroupName, bareMetalMachineName, bareMetalMachineRunCommandParameters, options) {
10246
- return tslib.__awaiter(this, undefined, undefined, function* () {
10246
+ return tslib.__awaiter(this, void 0, void 0, function* () {
10247
10247
  const poller = yield this.beginRunCommand(resourceGroupName, bareMetalMachineName, bareMetalMachineRunCommandParameters, options);
10248
10248
  return poller.pollUntilDone();
10249
10249
  });
@@ -10258,17 +10258,17 @@ class BareMetalMachinesImpl {
10258
10258
  * @param options The options parameters.
10259
10259
  */
10260
10260
  beginRunDataExtracts(resourceGroupName, bareMetalMachineName, bareMetalMachineRunDataExtractsParameters, options) {
10261
- return tslib.__awaiter(this, undefined, undefined, function* () {
10262
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10261
+ return tslib.__awaiter(this, void 0, void 0, function* () {
10262
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10263
10263
  return this.client.sendOperationRequest(args, spec);
10264
10264
  });
10265
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10265
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10266
10266
  var _a;
10267
10267
  let currentRawResponse = undefined;
10268
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10268
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10269
10269
  const callback = (rawResponse, flatResponse) => {
10270
10270
  currentRawResponse = rawResponse;
10271
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10271
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10272
10272
  };
10273
10273
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10274
10274
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10292,8 +10292,8 @@ class BareMetalMachinesImpl {
10292
10292
  spec: runDataExtractsOperationSpec,
10293
10293
  });
10294
10294
  const poller = yield coreLro.createHttpPoller(lro, {
10295
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10296
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10295
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10296
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10297
10297
  resourceLocationConfig: "location",
10298
10298
  });
10299
10299
  yield poller.poll();
@@ -10310,7 +10310,7 @@ class BareMetalMachinesImpl {
10310
10310
  * @param options The options parameters.
10311
10311
  */
10312
10312
  beginRunDataExtractsAndWait(resourceGroupName, bareMetalMachineName, bareMetalMachineRunDataExtractsParameters, options) {
10313
- return tslib.__awaiter(this, undefined, undefined, function* () {
10313
+ return tslib.__awaiter(this, void 0, void 0, function* () {
10314
10314
  const poller = yield this.beginRunDataExtracts(resourceGroupName, bareMetalMachineName, bareMetalMachineRunDataExtractsParameters, options);
10315
10315
  return poller.pollUntilDone();
10316
10316
  });
@@ -10325,17 +10325,17 @@ class BareMetalMachinesImpl {
10325
10325
  * @param options The options parameters.
10326
10326
  */
10327
10327
  beginRunReadCommands(resourceGroupName, bareMetalMachineName, bareMetalMachineRunReadCommandsParameters, options) {
10328
- return tslib.__awaiter(this, undefined, undefined, function* () {
10329
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10328
+ return tslib.__awaiter(this, void 0, void 0, function* () {
10329
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10330
10330
  return this.client.sendOperationRequest(args, spec);
10331
10331
  });
10332
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10332
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10333
10333
  var _a;
10334
10334
  let currentRawResponse = undefined;
10335
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10335
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10336
10336
  const callback = (rawResponse, flatResponse) => {
10337
10337
  currentRawResponse = rawResponse;
10338
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10338
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10339
10339
  };
10340
10340
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10341
10341
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10359,8 +10359,8 @@ class BareMetalMachinesImpl {
10359
10359
  spec: runReadCommandsOperationSpec,
10360
10360
  });
10361
10361
  const poller = yield coreLro.createHttpPoller(lro, {
10362
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10363
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10362
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10363
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10364
10364
  resourceLocationConfig: "location",
10365
10365
  });
10366
10366
  yield poller.poll();
@@ -10377,7 +10377,7 @@ class BareMetalMachinesImpl {
10377
10377
  * @param options The options parameters.
10378
10378
  */
10379
10379
  beginRunReadCommandsAndWait(resourceGroupName, bareMetalMachineName, bareMetalMachineRunReadCommandsParameters, options) {
10380
- return tslib.__awaiter(this, undefined, undefined, function* () {
10380
+ return tslib.__awaiter(this, void 0, void 0, function* () {
10381
10381
  const poller = yield this.beginRunReadCommands(resourceGroupName, bareMetalMachineName, bareMetalMachineRunReadCommandsParameters, options);
10382
10382
  return poller.pollUntilDone();
10383
10383
  });
@@ -10389,17 +10389,17 @@ class BareMetalMachinesImpl {
10389
10389
  * @param options The options parameters.
10390
10390
  */
10391
10391
  beginStart(resourceGroupName, bareMetalMachineName, options) {
10392
- return tslib.__awaiter(this, undefined, undefined, function* () {
10393
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10392
+ return tslib.__awaiter(this, void 0, void 0, function* () {
10393
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10394
10394
  return this.client.sendOperationRequest(args, spec);
10395
10395
  });
10396
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10396
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10397
10397
  var _a;
10398
10398
  let currentRawResponse = undefined;
10399
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10399
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10400
10400
  const callback = (rawResponse, flatResponse) => {
10401
10401
  currentRawResponse = rawResponse;
10402
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10402
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10403
10403
  };
10404
10404
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10405
10405
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10418,8 +10418,8 @@ class BareMetalMachinesImpl {
10418
10418
  spec: startOperationSpec$1,
10419
10419
  });
10420
10420
  const poller = yield coreLro.createHttpPoller(lro, {
10421
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10422
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10421
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10422
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10423
10423
  resourceLocationConfig: "location",
10424
10424
  });
10425
10425
  yield poller.poll();
@@ -10433,7 +10433,7 @@ class BareMetalMachinesImpl {
10433
10433
  * @param options The options parameters.
10434
10434
  */
10435
10435
  beginStartAndWait(resourceGroupName, bareMetalMachineName, options) {
10436
- return tslib.__awaiter(this, undefined, undefined, function* () {
10436
+ return tslib.__awaiter(this, void 0, void 0, function* () {
10437
10437
  const poller = yield this.beginStart(resourceGroupName, bareMetalMachineName, options);
10438
10438
  return poller.pollUntilDone();
10439
10439
  });
@@ -10445,17 +10445,17 @@ class BareMetalMachinesImpl {
10445
10445
  * @param options The options parameters.
10446
10446
  */
10447
10447
  beginUncordon(resourceGroupName, bareMetalMachineName, options) {
10448
- return tslib.__awaiter(this, undefined, undefined, function* () {
10449
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10448
+ return tslib.__awaiter(this, void 0, void 0, function* () {
10449
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10450
10450
  return this.client.sendOperationRequest(args, spec);
10451
10451
  });
10452
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
10452
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10453
10453
  var _a;
10454
10454
  let currentRawResponse = undefined;
10455
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
10455
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
10456
10456
  const callback = (rawResponse, flatResponse) => {
10457
10457
  currentRawResponse = rawResponse;
10458
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
10458
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
10459
10459
  };
10460
10460
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
10461
10461
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -10474,8 +10474,8 @@ class BareMetalMachinesImpl {
10474
10474
  spec: uncordonOperationSpec,
10475
10475
  });
10476
10476
  const poller = yield coreLro.createHttpPoller(lro, {
10477
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
10478
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
10477
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10478
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10479
10479
  resourceLocationConfig: "location",
10480
10480
  });
10481
10481
  yield poller.poll();
@@ -10489,7 +10489,7 @@ class BareMetalMachinesImpl {
10489
10489
  * @param options The options parameters.
10490
10490
  */
10491
10491
  beginUncordonAndWait(resourceGroupName, bareMetalMachineName, options) {
10492
- return tslib.__awaiter(this, undefined, undefined, function* () {
10492
+ return tslib.__awaiter(this, void 0, void 0, function* () {
10493
10493
  const poller = yield this.beginUncordon(resourceGroupName, bareMetalMachineName, options);
10494
10494
  return poller.pollUntilDone();
10495
10495
  });
@@ -11048,7 +11048,7 @@ class CloudServicesNetworksImpl {
11048
11048
  return this;
11049
11049
  },
11050
11050
  byPage: (settings) => {
11051
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
11051
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11052
11052
  throw new Error("maxPageSize is not supported by this operation.");
11053
11053
  }
11054
11054
  return this.listBySubscriptionPagingPage(options, settings);
@@ -11058,7 +11058,7 @@ class CloudServicesNetworksImpl {
11058
11058
  listBySubscriptionPagingPage(options, settings) {
11059
11059
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
11060
11060
  let result;
11061
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
11061
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
11062
11062
  if (!continuationToken) {
11063
11063
  result = yield tslib.__await(this._listBySubscription(options));
11064
11064
  let page = result.value || [];
@@ -11110,7 +11110,7 @@ class CloudServicesNetworksImpl {
11110
11110
  return this;
11111
11111
  },
11112
11112
  byPage: (settings) => {
11113
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
11113
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11114
11114
  throw new Error("maxPageSize is not supported by this operation.");
11115
11115
  }
11116
11116
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -11120,7 +11120,7 @@ class CloudServicesNetworksImpl {
11120
11120
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
11121
11121
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
11122
11122
  let result;
11123
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
11123
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
11124
11124
  if (!continuationToken) {
11125
11125
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
11126
11126
  let page = result.value || [];
@@ -11189,17 +11189,17 @@ class CloudServicesNetworksImpl {
11189
11189
  * @param options The options parameters.
11190
11190
  */
11191
11191
  beginCreateOrUpdate(resourceGroupName, cloudServicesNetworkName, cloudServicesNetworkParameters, options) {
11192
- return tslib.__awaiter(this, undefined, undefined, function* () {
11193
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11192
+ return tslib.__awaiter(this, void 0, void 0, function* () {
11193
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11194
11194
  return this.client.sendOperationRequest(args, spec);
11195
11195
  });
11196
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11196
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11197
11197
  var _a;
11198
11198
  let currentRawResponse = undefined;
11199
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
11199
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
11200
11200
  const callback = (rawResponse, flatResponse) => {
11201
11201
  currentRawResponse = rawResponse;
11202
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
11202
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
11203
11203
  };
11204
11204
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
11205
11205
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -11223,8 +11223,8 @@ class CloudServicesNetworksImpl {
11223
11223
  spec: createOrUpdateOperationSpec$g,
11224
11224
  });
11225
11225
  const poller = yield coreLro.createHttpPoller(lro, {
11226
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
11227
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
11226
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11227
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
11228
11228
  resourceLocationConfig: "azure-async-operation",
11229
11229
  });
11230
11230
  yield poller.poll();
@@ -11239,7 +11239,7 @@ class CloudServicesNetworksImpl {
11239
11239
  * @param options The options parameters.
11240
11240
  */
11241
11241
  beginCreateOrUpdateAndWait(resourceGroupName, cloudServicesNetworkName, cloudServicesNetworkParameters, options) {
11242
- return tslib.__awaiter(this, undefined, undefined, function* () {
11242
+ return tslib.__awaiter(this, void 0, void 0, function* () {
11243
11243
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, cloudServicesNetworkName, cloudServicesNetworkParameters, options);
11244
11244
  return poller.pollUntilDone();
11245
11245
  });
@@ -11251,17 +11251,17 @@ class CloudServicesNetworksImpl {
11251
11251
  * @param options The options parameters.
11252
11252
  */
11253
11253
  beginDelete(resourceGroupName, cloudServicesNetworkName, options) {
11254
- return tslib.__awaiter(this, undefined, undefined, function* () {
11255
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11254
+ return tslib.__awaiter(this, void 0, void 0, function* () {
11255
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11256
11256
  return this.client.sendOperationRequest(args, spec);
11257
11257
  });
11258
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11258
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11259
11259
  var _a;
11260
11260
  let currentRawResponse = undefined;
11261
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
11261
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
11262
11262
  const callback = (rawResponse, flatResponse) => {
11263
11263
  currentRawResponse = rawResponse;
11264
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
11264
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
11265
11265
  };
11266
11266
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
11267
11267
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -11280,8 +11280,8 @@ class CloudServicesNetworksImpl {
11280
11280
  spec: deleteOperationSpec$g,
11281
11281
  });
11282
11282
  const poller = yield coreLro.createHttpPoller(lro, {
11283
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
11284
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
11283
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11284
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
11285
11285
  resourceLocationConfig: "location",
11286
11286
  });
11287
11287
  yield poller.poll();
@@ -11295,7 +11295,7 @@ class CloudServicesNetworksImpl {
11295
11295
  * @param options The options parameters.
11296
11296
  */
11297
11297
  beginDeleteAndWait(resourceGroupName, cloudServicesNetworkName, options) {
11298
- return tslib.__awaiter(this, undefined, undefined, function* () {
11298
+ return tslib.__awaiter(this, void 0, void 0, function* () {
11299
11299
  const poller = yield this.beginDelete(resourceGroupName, cloudServicesNetworkName, options);
11300
11300
  return poller.pollUntilDone();
11301
11301
  });
@@ -11308,17 +11308,17 @@ class CloudServicesNetworksImpl {
11308
11308
  * @param options The options parameters.
11309
11309
  */
11310
11310
  beginUpdate(resourceGroupName, cloudServicesNetworkName, options) {
11311
- return tslib.__awaiter(this, undefined, undefined, function* () {
11312
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11311
+ return tslib.__awaiter(this, void 0, void 0, function* () {
11312
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11313
11313
  return this.client.sendOperationRequest(args, spec);
11314
11314
  });
11315
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11315
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11316
11316
  var _a;
11317
11317
  let currentRawResponse = undefined;
11318
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
11318
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
11319
11319
  const callback = (rawResponse, flatResponse) => {
11320
11320
  currentRawResponse = rawResponse;
11321
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
11321
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
11322
11322
  };
11323
11323
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
11324
11324
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -11337,8 +11337,8 @@ class CloudServicesNetworksImpl {
11337
11337
  spec: updateOperationSpec$g,
11338
11338
  });
11339
11339
  const poller = yield coreLro.createHttpPoller(lro, {
11340
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
11341
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
11340
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11341
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
11342
11342
  resourceLocationConfig: "azure-async-operation",
11343
11343
  });
11344
11344
  yield poller.poll();
@@ -11353,7 +11353,7 @@ class CloudServicesNetworksImpl {
11353
11353
  * @param options The options parameters.
11354
11354
  */
11355
11355
  beginUpdateAndWait(resourceGroupName, cloudServicesNetworkName, options) {
11356
- return tslib.__awaiter(this, undefined, undefined, function* () {
11356
+ return tslib.__awaiter(this, void 0, void 0, function* () {
11357
11357
  const poller = yield this.beginUpdate(resourceGroupName, cloudServicesNetworkName, options);
11358
11358
  return poller.pollUntilDone();
11359
11359
  });
@@ -11600,7 +11600,7 @@ class ClusterManagersImpl {
11600
11600
  return this;
11601
11601
  },
11602
11602
  byPage: (settings) => {
11603
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
11603
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11604
11604
  throw new Error("maxPageSize is not supported by this operation.");
11605
11605
  }
11606
11606
  return this.listBySubscriptionPagingPage(options, settings);
@@ -11610,7 +11610,7 @@ class ClusterManagersImpl {
11610
11610
  listBySubscriptionPagingPage(options, settings) {
11611
11611
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
11612
11612
  let result;
11613
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
11613
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
11614
11614
  if (!continuationToken) {
11615
11615
  result = yield tslib.__await(this._listBySubscription(options));
11616
11616
  let page = result.value || [];
@@ -11662,7 +11662,7 @@ class ClusterManagersImpl {
11662
11662
  return this;
11663
11663
  },
11664
11664
  byPage: (settings) => {
11665
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
11665
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11666
11666
  throw new Error("maxPageSize is not supported by this operation.");
11667
11667
  }
11668
11668
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -11672,7 +11672,7 @@ class ClusterManagersImpl {
11672
11672
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
11673
11673
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
11674
11674
  let result;
11675
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
11675
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
11676
11676
  if (!continuationToken) {
11677
11677
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
11678
11678
  let page = result.value || [];
@@ -11741,17 +11741,17 @@ class ClusterManagersImpl {
11741
11741
  * @param options The options parameters.
11742
11742
  */
11743
11743
  beginCreateOrUpdate(resourceGroupName, clusterManagerName, clusterManagerParameters, options) {
11744
- return tslib.__awaiter(this, undefined, undefined, function* () {
11745
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11744
+ return tslib.__awaiter(this, void 0, void 0, function* () {
11745
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11746
11746
  return this.client.sendOperationRequest(args, spec);
11747
11747
  });
11748
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11748
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11749
11749
  var _a;
11750
11750
  let currentRawResponse = undefined;
11751
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
11751
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
11752
11752
  const callback = (rawResponse, flatResponse) => {
11753
11753
  currentRawResponse = rawResponse;
11754
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
11754
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
11755
11755
  };
11756
11756
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
11757
11757
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -11775,8 +11775,8 @@ class ClusterManagersImpl {
11775
11775
  spec: createOrUpdateOperationSpec$f,
11776
11776
  });
11777
11777
  const poller = yield coreLro.createHttpPoller(lro, {
11778
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
11779
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
11778
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11779
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
11780
11780
  resourceLocationConfig: "azure-async-operation",
11781
11781
  });
11782
11782
  yield poller.poll();
@@ -11791,7 +11791,7 @@ class ClusterManagersImpl {
11791
11791
  * @param options The options parameters.
11792
11792
  */
11793
11793
  beginCreateOrUpdateAndWait(resourceGroupName, clusterManagerName, clusterManagerParameters, options) {
11794
- return tslib.__awaiter(this, undefined, undefined, function* () {
11794
+ return tslib.__awaiter(this, void 0, void 0, function* () {
11795
11795
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterManagerName, clusterManagerParameters, options);
11796
11796
  return poller.pollUntilDone();
11797
11797
  });
@@ -11803,17 +11803,17 @@ class ClusterManagersImpl {
11803
11803
  * @param options The options parameters.
11804
11804
  */
11805
11805
  beginDelete(resourceGroupName, clusterManagerName, options) {
11806
- return tslib.__awaiter(this, undefined, undefined, function* () {
11807
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11806
+ return tslib.__awaiter(this, void 0, void 0, function* () {
11807
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11808
11808
  return this.client.sendOperationRequest(args, spec);
11809
11809
  });
11810
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11810
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11811
11811
  var _a;
11812
11812
  let currentRawResponse = undefined;
11813
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
11813
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
11814
11814
  const callback = (rawResponse, flatResponse) => {
11815
11815
  currentRawResponse = rawResponse;
11816
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
11816
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
11817
11817
  };
11818
11818
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
11819
11819
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -11832,8 +11832,8 @@ class ClusterManagersImpl {
11832
11832
  spec: deleteOperationSpec$f,
11833
11833
  });
11834
11834
  const poller = yield coreLro.createHttpPoller(lro, {
11835
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
11836
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
11835
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11836
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
11837
11837
  resourceLocationConfig: "location",
11838
11838
  });
11839
11839
  yield poller.poll();
@@ -11847,7 +11847,7 @@ class ClusterManagersImpl {
11847
11847
  * @param options The options parameters.
11848
11848
  */
11849
11849
  beginDeleteAndWait(resourceGroupName, clusterManagerName, options) {
11850
- return tslib.__awaiter(this, undefined, undefined, function* () {
11850
+ return tslib.__awaiter(this, void 0, void 0, function* () {
11851
11851
  const poller = yield this.beginDelete(resourceGroupName, clusterManagerName, options);
11852
11852
  return poller.pollUntilDone();
11853
11853
  });
@@ -12095,7 +12095,7 @@ class ClustersImpl {
12095
12095
  return this;
12096
12096
  },
12097
12097
  byPage: (settings) => {
12098
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
12098
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12099
12099
  throw new Error("maxPageSize is not supported by this operation.");
12100
12100
  }
12101
12101
  return this.listBySubscriptionPagingPage(options, settings);
@@ -12105,7 +12105,7 @@ class ClustersImpl {
12105
12105
  listBySubscriptionPagingPage(options, settings) {
12106
12106
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
12107
12107
  let result;
12108
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
12108
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
12109
12109
  if (!continuationToken) {
12110
12110
  result = yield tslib.__await(this._listBySubscription(options));
12111
12111
  let page = result.value || [];
@@ -12157,7 +12157,7 @@ class ClustersImpl {
12157
12157
  return this;
12158
12158
  },
12159
12159
  byPage: (settings) => {
12160
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
12160
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12161
12161
  throw new Error("maxPageSize is not supported by this operation.");
12162
12162
  }
12163
12163
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -12167,7 +12167,7 @@ class ClustersImpl {
12167
12167
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
12168
12168
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
12169
12169
  let result;
12170
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
12170
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
12171
12171
  if (!continuationToken) {
12172
12172
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
12173
12173
  let page = result.value || [];
@@ -12236,17 +12236,17 @@ class ClustersImpl {
12236
12236
  * @param options The options parameters.
12237
12237
  */
12238
12238
  beginCreateOrUpdate(resourceGroupName, clusterName, clusterParameters, options) {
12239
- return tslib.__awaiter(this, undefined, undefined, function* () {
12240
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12239
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12240
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12241
12241
  return this.client.sendOperationRequest(args, spec);
12242
12242
  });
12243
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12243
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12244
12244
  var _a;
12245
12245
  let currentRawResponse = undefined;
12246
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
12246
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
12247
12247
  const callback = (rawResponse, flatResponse) => {
12248
12248
  currentRawResponse = rawResponse;
12249
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
12249
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
12250
12250
  };
12251
12251
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
12252
12252
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -12265,8 +12265,8 @@ class ClustersImpl {
12265
12265
  spec: createOrUpdateOperationSpec$e,
12266
12266
  });
12267
12267
  const poller = yield coreLro.createHttpPoller(lro, {
12268
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
12269
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
12268
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12269
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
12270
12270
  resourceLocationConfig: "azure-async-operation",
12271
12271
  });
12272
12272
  yield poller.poll();
@@ -12281,7 +12281,7 @@ class ClustersImpl {
12281
12281
  * @param options The options parameters.
12282
12282
  */
12283
12283
  beginCreateOrUpdateAndWait(resourceGroupName, clusterName, clusterParameters, options) {
12284
- return tslib.__awaiter(this, undefined, undefined, function* () {
12284
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12285
12285
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, clusterParameters, options);
12286
12286
  return poller.pollUntilDone();
12287
12287
  });
@@ -12293,17 +12293,17 @@ class ClustersImpl {
12293
12293
  * @param options The options parameters.
12294
12294
  */
12295
12295
  beginDelete(resourceGroupName, clusterName, options) {
12296
- return tslib.__awaiter(this, undefined, undefined, function* () {
12297
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12296
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12297
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12298
12298
  return this.client.sendOperationRequest(args, spec);
12299
12299
  });
12300
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12300
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12301
12301
  var _a;
12302
12302
  let currentRawResponse = undefined;
12303
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
12303
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
12304
12304
  const callback = (rawResponse, flatResponse) => {
12305
12305
  currentRawResponse = rawResponse;
12306
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
12306
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
12307
12307
  };
12308
12308
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
12309
12309
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -12322,8 +12322,8 @@ class ClustersImpl {
12322
12322
  spec: deleteOperationSpec$e,
12323
12323
  });
12324
12324
  const poller = yield coreLro.createHttpPoller(lro, {
12325
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
12326
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
12325
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12326
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
12327
12327
  resourceLocationConfig: "location",
12328
12328
  });
12329
12329
  yield poller.poll();
@@ -12337,7 +12337,7 @@ class ClustersImpl {
12337
12337
  * @param options The options parameters.
12338
12338
  */
12339
12339
  beginDeleteAndWait(resourceGroupName, clusterName, options) {
12340
- return tslib.__awaiter(this, undefined, undefined, function* () {
12340
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12341
12341
  const poller = yield this.beginDelete(resourceGroupName, clusterName, options);
12342
12342
  return poller.pollUntilDone();
12343
12343
  });
@@ -12350,17 +12350,17 @@ class ClustersImpl {
12350
12350
  * @param options The options parameters.
12351
12351
  */
12352
12352
  beginUpdate(resourceGroupName, clusterName, options) {
12353
- return tslib.__awaiter(this, undefined, undefined, function* () {
12354
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12353
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12354
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12355
12355
  return this.client.sendOperationRequest(args, spec);
12356
12356
  });
12357
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12357
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12358
12358
  var _a;
12359
12359
  let currentRawResponse = undefined;
12360
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
12360
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
12361
12361
  const callback = (rawResponse, flatResponse) => {
12362
12362
  currentRawResponse = rawResponse;
12363
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
12363
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
12364
12364
  };
12365
12365
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
12366
12366
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -12379,8 +12379,8 @@ class ClustersImpl {
12379
12379
  spec: updateOperationSpec$e,
12380
12380
  });
12381
12381
  const poller = yield coreLro.createHttpPoller(lro, {
12382
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
12383
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
12382
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12383
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
12384
12384
  resourceLocationConfig: "azure-async-operation",
12385
12385
  });
12386
12386
  yield poller.poll();
@@ -12395,7 +12395,7 @@ class ClustersImpl {
12395
12395
  * @param options The options parameters.
12396
12396
  */
12397
12397
  beginUpdateAndWait(resourceGroupName, clusterName, options) {
12398
- return tslib.__awaiter(this, undefined, undefined, function* () {
12398
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12399
12399
  const poller = yield this.beginUpdate(resourceGroupName, clusterName, options);
12400
12400
  return poller.pollUntilDone();
12401
12401
  });
@@ -12409,17 +12409,17 @@ class ClustersImpl {
12409
12409
  * @param options The options parameters.
12410
12410
  */
12411
12411
  beginContinueUpdateVersion(resourceGroupName, clusterName, clusterContinueUpdateVersionParameters, options) {
12412
- return tslib.__awaiter(this, undefined, undefined, function* () {
12413
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12412
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12413
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12414
12414
  return this.client.sendOperationRequest(args, spec);
12415
12415
  });
12416
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12416
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12417
12417
  var _a;
12418
12418
  let currentRawResponse = undefined;
12419
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
12419
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
12420
12420
  const callback = (rawResponse, flatResponse) => {
12421
12421
  currentRawResponse = rawResponse;
12422
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
12422
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
12423
12423
  };
12424
12424
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
12425
12425
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -12443,8 +12443,8 @@ class ClustersImpl {
12443
12443
  spec: continueUpdateVersionOperationSpec,
12444
12444
  });
12445
12445
  const poller = yield coreLro.createHttpPoller(lro, {
12446
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
12447
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
12446
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12447
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
12448
12448
  resourceLocationConfig: "location",
12449
12449
  });
12450
12450
  yield poller.poll();
@@ -12460,7 +12460,7 @@ class ClustersImpl {
12460
12460
  * @param options The options parameters.
12461
12461
  */
12462
12462
  beginContinueUpdateVersionAndWait(resourceGroupName, clusterName, clusterContinueUpdateVersionParameters, options) {
12463
- return tslib.__awaiter(this, undefined, undefined, function* () {
12463
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12464
12464
  const poller = yield this.beginContinueUpdateVersion(resourceGroupName, clusterName, clusterContinueUpdateVersionParameters, options);
12465
12465
  return poller.pollUntilDone();
12466
12466
  });
@@ -12472,17 +12472,17 @@ class ClustersImpl {
12472
12472
  * @param options The options parameters.
12473
12473
  */
12474
12474
  beginDeploy(resourceGroupName, clusterName, options) {
12475
- return tslib.__awaiter(this, undefined, undefined, function* () {
12476
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12475
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12476
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12477
12477
  return this.client.sendOperationRequest(args, spec);
12478
12478
  });
12479
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12479
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12480
12480
  var _a;
12481
12481
  let currentRawResponse = undefined;
12482
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
12482
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
12483
12483
  const callback = (rawResponse, flatResponse) => {
12484
12484
  currentRawResponse = rawResponse;
12485
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
12485
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
12486
12486
  };
12487
12487
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
12488
12488
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -12501,8 +12501,8 @@ class ClustersImpl {
12501
12501
  spec: deployOperationSpec,
12502
12502
  });
12503
12503
  const poller = yield coreLro.createHttpPoller(lro, {
12504
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
12505
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
12504
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12505
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
12506
12506
  resourceLocationConfig: "location",
12507
12507
  });
12508
12508
  yield poller.poll();
@@ -12516,7 +12516,7 @@ class ClustersImpl {
12516
12516
  * @param options The options parameters.
12517
12517
  */
12518
12518
  beginDeployAndWait(resourceGroupName, clusterName, options) {
12519
- return tslib.__awaiter(this, undefined, undefined, function* () {
12519
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12520
12520
  const poller = yield this.beginDeploy(resourceGroupName, clusterName, options);
12521
12521
  return poller.pollUntilDone();
12522
12522
  });
@@ -12529,17 +12529,17 @@ class ClustersImpl {
12529
12529
  * @param options The options parameters.
12530
12530
  */
12531
12531
  beginScanRuntime(resourceGroupName, clusterName, options) {
12532
- return tslib.__awaiter(this, undefined, undefined, function* () {
12533
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12532
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12533
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12534
12534
  return this.client.sendOperationRequest(args, spec);
12535
12535
  });
12536
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12536
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12537
12537
  var _a;
12538
12538
  let currentRawResponse = undefined;
12539
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
12539
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
12540
12540
  const callback = (rawResponse, flatResponse) => {
12541
12541
  currentRawResponse = rawResponse;
12542
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
12542
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
12543
12543
  };
12544
12544
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
12545
12545
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -12558,8 +12558,8 @@ class ClustersImpl {
12558
12558
  spec: scanRuntimeOperationSpec,
12559
12559
  });
12560
12560
  const poller = yield coreLro.createHttpPoller(lro, {
12561
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
12562
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
12561
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12562
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
12563
12563
  resourceLocationConfig: "location",
12564
12564
  });
12565
12565
  yield poller.poll();
@@ -12574,7 +12574,7 @@ class ClustersImpl {
12574
12574
  * @param options The options parameters.
12575
12575
  */
12576
12576
  beginScanRuntimeAndWait(resourceGroupName, clusterName, options) {
12577
- return tslib.__awaiter(this, undefined, undefined, function* () {
12577
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12578
12578
  const poller = yield this.beginScanRuntime(resourceGroupName, clusterName, options);
12579
12579
  return poller.pollUntilDone();
12580
12580
  });
@@ -12587,17 +12587,17 @@ class ClustersImpl {
12587
12587
  * @param options The options parameters.
12588
12588
  */
12589
12589
  beginUpdateVersion(resourceGroupName, clusterName, clusterUpdateVersionParameters, options) {
12590
- return tslib.__awaiter(this, undefined, undefined, function* () {
12591
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12590
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12591
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12592
12592
  return this.client.sendOperationRequest(args, spec);
12593
12593
  });
12594
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
12594
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
12595
12595
  var _a;
12596
12596
  let currentRawResponse = undefined;
12597
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
12597
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
12598
12598
  const callback = (rawResponse, flatResponse) => {
12599
12599
  currentRawResponse = rawResponse;
12600
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
12600
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
12601
12601
  };
12602
12602
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
12603
12603
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -12621,8 +12621,8 @@ class ClustersImpl {
12621
12621
  spec: updateVersionOperationSpec,
12622
12622
  });
12623
12623
  const poller = yield coreLro.createHttpPoller(lro, {
12624
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
12625
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
12624
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
12625
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
12626
12626
  resourceLocationConfig: "location",
12627
12627
  });
12628
12628
  yield poller.poll();
@@ -12637,7 +12637,7 @@ class ClustersImpl {
12637
12637
  * @param options The options parameters.
12638
12638
  */
12639
12639
  beginUpdateVersionAndWait(resourceGroupName, clusterName, clusterUpdateVersionParameters, options) {
12640
- return tslib.__awaiter(this, undefined, undefined, function* () {
12640
+ return tslib.__awaiter(this, void 0, void 0, function* () {
12641
12641
  const poller = yield this.beginUpdateVersion(resourceGroupName, clusterName, clusterUpdateVersionParameters, options);
12642
12642
  return poller.pollUntilDone();
12643
12643
  });
@@ -13012,7 +13012,7 @@ class KubernetesClustersImpl {
13012
13012
  return this;
13013
13013
  },
13014
13014
  byPage: (settings) => {
13015
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13015
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13016
13016
  throw new Error("maxPageSize is not supported by this operation.");
13017
13017
  }
13018
13018
  return this.listBySubscriptionPagingPage(options, settings);
@@ -13022,7 +13022,7 @@ class KubernetesClustersImpl {
13022
13022
  listBySubscriptionPagingPage(options, settings) {
13023
13023
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
13024
13024
  let result;
13025
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
13025
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
13026
13026
  if (!continuationToken) {
13027
13027
  result = yield tslib.__await(this._listBySubscription(options));
13028
13028
  let page = result.value || [];
@@ -13074,7 +13074,7 @@ class KubernetesClustersImpl {
13074
13074
  return this;
13075
13075
  },
13076
13076
  byPage: (settings) => {
13077
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13077
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13078
13078
  throw new Error("maxPageSize is not supported by this operation.");
13079
13079
  }
13080
13080
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -13084,7 +13084,7 @@ class KubernetesClustersImpl {
13084
13084
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
13085
13085
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
13086
13086
  let result;
13087
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
13087
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
13088
13088
  if (!continuationToken) {
13089
13089
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
13090
13090
  let page = result.value || [];
@@ -13153,17 +13153,17 @@ class KubernetesClustersImpl {
13153
13153
  * @param options The options parameters.
13154
13154
  */
13155
13155
  beginCreateOrUpdate(resourceGroupName, kubernetesClusterName, kubernetesClusterParameters, options) {
13156
- return tslib.__awaiter(this, undefined, undefined, function* () {
13157
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13156
+ return tslib.__awaiter(this, void 0, void 0, function* () {
13157
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13158
13158
  return this.client.sendOperationRequest(args, spec);
13159
13159
  });
13160
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13160
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13161
13161
  var _a;
13162
13162
  let currentRawResponse = undefined;
13163
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
13163
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
13164
13164
  const callback = (rawResponse, flatResponse) => {
13165
13165
  currentRawResponse = rawResponse;
13166
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
13166
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
13167
13167
  };
13168
13168
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
13169
13169
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -13187,8 +13187,8 @@ class KubernetesClustersImpl {
13187
13187
  spec: createOrUpdateOperationSpec$d,
13188
13188
  });
13189
13189
  const poller = yield coreLro.createHttpPoller(lro, {
13190
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
13191
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
13190
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
13191
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
13192
13192
  resourceLocationConfig: "azure-async-operation",
13193
13193
  });
13194
13194
  yield poller.poll();
@@ -13203,7 +13203,7 @@ class KubernetesClustersImpl {
13203
13203
  * @param options The options parameters.
13204
13204
  */
13205
13205
  beginCreateOrUpdateAndWait(resourceGroupName, kubernetesClusterName, kubernetesClusterParameters, options) {
13206
- return tslib.__awaiter(this, undefined, undefined, function* () {
13206
+ return tslib.__awaiter(this, void 0, void 0, function* () {
13207
13207
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, kubernetesClusterName, kubernetesClusterParameters, options);
13208
13208
  return poller.pollUntilDone();
13209
13209
  });
@@ -13215,17 +13215,17 @@ class KubernetesClustersImpl {
13215
13215
  * @param options The options parameters.
13216
13216
  */
13217
13217
  beginDelete(resourceGroupName, kubernetesClusterName, options) {
13218
- return tslib.__awaiter(this, undefined, undefined, function* () {
13219
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13218
+ return tslib.__awaiter(this, void 0, void 0, function* () {
13219
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13220
13220
  return this.client.sendOperationRequest(args, spec);
13221
13221
  });
13222
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13222
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13223
13223
  var _a;
13224
13224
  let currentRawResponse = undefined;
13225
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
13225
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
13226
13226
  const callback = (rawResponse, flatResponse) => {
13227
13227
  currentRawResponse = rawResponse;
13228
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
13228
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
13229
13229
  };
13230
13230
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
13231
13231
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -13244,8 +13244,8 @@ class KubernetesClustersImpl {
13244
13244
  spec: deleteOperationSpec$d,
13245
13245
  });
13246
13246
  const poller = yield coreLro.createHttpPoller(lro, {
13247
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
13248
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
13247
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
13248
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
13249
13249
  resourceLocationConfig: "location",
13250
13250
  });
13251
13251
  yield poller.poll();
@@ -13259,7 +13259,7 @@ class KubernetesClustersImpl {
13259
13259
  * @param options The options parameters.
13260
13260
  */
13261
13261
  beginDeleteAndWait(resourceGroupName, kubernetesClusterName, options) {
13262
- return tslib.__awaiter(this, undefined, undefined, function* () {
13262
+ return tslib.__awaiter(this, void 0, void 0, function* () {
13263
13263
  const poller = yield this.beginDelete(resourceGroupName, kubernetesClusterName, options);
13264
13264
  return poller.pollUntilDone();
13265
13265
  });
@@ -13272,17 +13272,17 @@ class KubernetesClustersImpl {
13272
13272
  * @param options The options parameters.
13273
13273
  */
13274
13274
  beginUpdate(resourceGroupName, kubernetesClusterName, options) {
13275
- return tslib.__awaiter(this, undefined, undefined, function* () {
13276
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13275
+ return tslib.__awaiter(this, void 0, void 0, function* () {
13276
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13277
13277
  return this.client.sendOperationRequest(args, spec);
13278
13278
  });
13279
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13279
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13280
13280
  var _a;
13281
13281
  let currentRawResponse = undefined;
13282
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
13282
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
13283
13283
  const callback = (rawResponse, flatResponse) => {
13284
13284
  currentRawResponse = rawResponse;
13285
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
13285
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
13286
13286
  };
13287
13287
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
13288
13288
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -13301,8 +13301,8 @@ class KubernetesClustersImpl {
13301
13301
  spec: updateOperationSpec$d,
13302
13302
  });
13303
13303
  const poller = yield coreLro.createHttpPoller(lro, {
13304
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
13305
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
13304
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
13305
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
13306
13306
  resourceLocationConfig: "azure-async-operation",
13307
13307
  });
13308
13308
  yield poller.poll();
@@ -13317,7 +13317,7 @@ class KubernetesClustersImpl {
13317
13317
  * @param options The options parameters.
13318
13318
  */
13319
13319
  beginUpdateAndWait(resourceGroupName, kubernetesClusterName, options) {
13320
- return tslib.__awaiter(this, undefined, undefined, function* () {
13320
+ return tslib.__awaiter(this, void 0, void 0, function* () {
13321
13321
  const poller = yield this.beginUpdate(resourceGroupName, kubernetesClusterName, options);
13322
13322
  return poller.pollUntilDone();
13323
13323
  });
@@ -13330,17 +13330,17 @@ class KubernetesClustersImpl {
13330
13330
  * @param options The options parameters.
13331
13331
  */
13332
13332
  beginRestartNode(resourceGroupName, kubernetesClusterName, kubernetesClusterRestartNodeParameters, options) {
13333
- return tslib.__awaiter(this, undefined, undefined, function* () {
13334
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13333
+ return tslib.__awaiter(this, void 0, void 0, function* () {
13334
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13335
13335
  return this.client.sendOperationRequest(args, spec);
13336
13336
  });
13337
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13337
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13338
13338
  var _a;
13339
13339
  let currentRawResponse = undefined;
13340
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
13340
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
13341
13341
  const callback = (rawResponse, flatResponse) => {
13342
13342
  currentRawResponse = rawResponse;
13343
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
13343
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
13344
13344
  };
13345
13345
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
13346
13346
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -13364,8 +13364,8 @@ class KubernetesClustersImpl {
13364
13364
  spec: restartNodeOperationSpec,
13365
13365
  });
13366
13366
  const poller = yield coreLro.createHttpPoller(lro, {
13367
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
13368
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
13367
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
13368
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
13369
13369
  resourceLocationConfig: "location",
13370
13370
  });
13371
13371
  yield poller.poll();
@@ -13380,7 +13380,7 @@ class KubernetesClustersImpl {
13380
13380
  * @param options The options parameters.
13381
13381
  */
13382
13382
  beginRestartNodeAndWait(resourceGroupName, kubernetesClusterName, kubernetesClusterRestartNodeParameters, options) {
13383
- return tslib.__awaiter(this, undefined, undefined, function* () {
13383
+ return tslib.__awaiter(this, void 0, void 0, function* () {
13384
13384
  const poller = yield this.beginRestartNode(resourceGroupName, kubernetesClusterName, kubernetesClusterRestartNodeParameters, options);
13385
13385
  return poller.pollUntilDone();
13386
13386
  });
@@ -13659,7 +13659,7 @@ class L2NetworksImpl {
13659
13659
  return this;
13660
13660
  },
13661
13661
  byPage: (settings) => {
13662
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13662
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13663
13663
  throw new Error("maxPageSize is not supported by this operation.");
13664
13664
  }
13665
13665
  return this.listBySubscriptionPagingPage(options, settings);
@@ -13669,7 +13669,7 @@ class L2NetworksImpl {
13669
13669
  listBySubscriptionPagingPage(options, settings) {
13670
13670
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
13671
13671
  let result;
13672
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
13672
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
13673
13673
  if (!continuationToken) {
13674
13674
  result = yield tslib.__await(this._listBySubscription(options));
13675
13675
  let page = result.value || [];
@@ -13721,7 +13721,7 @@ class L2NetworksImpl {
13721
13721
  return this;
13722
13722
  },
13723
13723
  byPage: (settings) => {
13724
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13724
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13725
13725
  throw new Error("maxPageSize is not supported by this operation.");
13726
13726
  }
13727
13727
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -13731,7 +13731,7 @@ class L2NetworksImpl {
13731
13731
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
13732
13732
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
13733
13733
  let result;
13734
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
13734
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
13735
13735
  if (!continuationToken) {
13736
13736
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
13737
13737
  let page = result.value || [];
@@ -13800,17 +13800,17 @@ class L2NetworksImpl {
13800
13800
  * @param options The options parameters.
13801
13801
  */
13802
13802
  beginCreateOrUpdate(resourceGroupName, l2NetworkName, l2NetworkParameters, options) {
13803
- return tslib.__awaiter(this, undefined, undefined, function* () {
13804
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13803
+ return tslib.__awaiter(this, void 0, void 0, function* () {
13804
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13805
13805
  return this.client.sendOperationRequest(args, spec);
13806
13806
  });
13807
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13807
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13808
13808
  var _a;
13809
13809
  let currentRawResponse = undefined;
13810
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
13810
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
13811
13811
  const callback = (rawResponse, flatResponse) => {
13812
13812
  currentRawResponse = rawResponse;
13813
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
13813
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
13814
13814
  };
13815
13815
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
13816
13816
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -13829,8 +13829,8 @@ class L2NetworksImpl {
13829
13829
  spec: createOrUpdateOperationSpec$c,
13830
13830
  });
13831
13831
  const poller = yield coreLro.createHttpPoller(lro, {
13832
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
13833
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
13832
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
13833
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
13834
13834
  resourceLocationConfig: "azure-async-operation",
13835
13835
  });
13836
13836
  yield poller.poll();
@@ -13845,7 +13845,7 @@ class L2NetworksImpl {
13845
13845
  * @param options The options parameters.
13846
13846
  */
13847
13847
  beginCreateOrUpdateAndWait(resourceGroupName, l2NetworkName, l2NetworkParameters, options) {
13848
- return tslib.__awaiter(this, undefined, undefined, function* () {
13848
+ return tslib.__awaiter(this, void 0, void 0, function* () {
13849
13849
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, l2NetworkName, l2NetworkParameters, options);
13850
13850
  return poller.pollUntilDone();
13851
13851
  });
@@ -13857,17 +13857,17 @@ class L2NetworksImpl {
13857
13857
  * @param options The options parameters.
13858
13858
  */
13859
13859
  beginDelete(resourceGroupName, l2NetworkName, options) {
13860
- return tslib.__awaiter(this, undefined, undefined, function* () {
13861
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13860
+ return tslib.__awaiter(this, void 0, void 0, function* () {
13861
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13862
13862
  return this.client.sendOperationRequest(args, spec);
13863
13863
  });
13864
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13864
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13865
13865
  var _a;
13866
13866
  let currentRawResponse = undefined;
13867
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
13867
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
13868
13868
  const callback = (rawResponse, flatResponse) => {
13869
13869
  currentRawResponse = rawResponse;
13870
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
13870
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
13871
13871
  };
13872
13872
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
13873
13873
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -13886,8 +13886,8 @@ class L2NetworksImpl {
13886
13886
  spec: deleteOperationSpec$c,
13887
13887
  });
13888
13888
  const poller = yield coreLro.createHttpPoller(lro, {
13889
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
13890
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
13889
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
13890
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
13891
13891
  resourceLocationConfig: "location",
13892
13892
  });
13893
13893
  yield poller.poll();
@@ -13901,7 +13901,7 @@ class L2NetworksImpl {
13901
13901
  * @param options The options parameters.
13902
13902
  */
13903
13903
  beginDeleteAndWait(resourceGroupName, l2NetworkName, options) {
13904
- return tslib.__awaiter(this, undefined, undefined, function* () {
13904
+ return tslib.__awaiter(this, void 0, void 0, function* () {
13905
13905
  const poller = yield this.beginDelete(resourceGroupName, l2NetworkName, options);
13906
13906
  return poller.pollUntilDone();
13907
13907
  });
@@ -14148,7 +14148,7 @@ class L3NetworksImpl {
14148
14148
  return this;
14149
14149
  },
14150
14150
  byPage: (settings) => {
14151
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14151
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14152
14152
  throw new Error("maxPageSize is not supported by this operation.");
14153
14153
  }
14154
14154
  return this.listBySubscriptionPagingPage(options, settings);
@@ -14158,7 +14158,7 @@ class L3NetworksImpl {
14158
14158
  listBySubscriptionPagingPage(options, settings) {
14159
14159
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
14160
14160
  let result;
14161
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
14161
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14162
14162
  if (!continuationToken) {
14163
14163
  result = yield tslib.__await(this._listBySubscription(options));
14164
14164
  let page = result.value || [];
@@ -14210,7 +14210,7 @@ class L3NetworksImpl {
14210
14210
  return this;
14211
14211
  },
14212
14212
  byPage: (settings) => {
14213
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14213
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14214
14214
  throw new Error("maxPageSize is not supported by this operation.");
14215
14215
  }
14216
14216
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -14220,7 +14220,7 @@ class L3NetworksImpl {
14220
14220
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
14221
14221
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
14222
14222
  let result;
14223
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
14223
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14224
14224
  if (!continuationToken) {
14225
14225
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
14226
14226
  let page = result.value || [];
@@ -14289,17 +14289,17 @@ class L3NetworksImpl {
14289
14289
  * @param options The options parameters.
14290
14290
  */
14291
14291
  beginCreateOrUpdate(resourceGroupName, l3NetworkName, l3NetworkParameters, options) {
14292
- return tslib.__awaiter(this, undefined, undefined, function* () {
14293
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14292
+ return tslib.__awaiter(this, void 0, void 0, function* () {
14293
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14294
14294
  return this.client.sendOperationRequest(args, spec);
14295
14295
  });
14296
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14296
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14297
14297
  var _a;
14298
14298
  let currentRawResponse = undefined;
14299
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
14299
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
14300
14300
  const callback = (rawResponse, flatResponse) => {
14301
14301
  currentRawResponse = rawResponse;
14302
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
14302
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
14303
14303
  };
14304
14304
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
14305
14305
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -14318,8 +14318,8 @@ class L3NetworksImpl {
14318
14318
  spec: createOrUpdateOperationSpec$b,
14319
14319
  });
14320
14320
  const poller = yield coreLro.createHttpPoller(lro, {
14321
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
14322
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
14321
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
14322
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
14323
14323
  resourceLocationConfig: "azure-async-operation",
14324
14324
  });
14325
14325
  yield poller.poll();
@@ -14334,7 +14334,7 @@ class L3NetworksImpl {
14334
14334
  * @param options The options parameters.
14335
14335
  */
14336
14336
  beginCreateOrUpdateAndWait(resourceGroupName, l3NetworkName, l3NetworkParameters, options) {
14337
- return tslib.__awaiter(this, undefined, undefined, function* () {
14337
+ return tslib.__awaiter(this, void 0, void 0, function* () {
14338
14338
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, l3NetworkName, l3NetworkParameters, options);
14339
14339
  return poller.pollUntilDone();
14340
14340
  });
@@ -14346,17 +14346,17 @@ class L3NetworksImpl {
14346
14346
  * @param options The options parameters.
14347
14347
  */
14348
14348
  beginDelete(resourceGroupName, l3NetworkName, options) {
14349
- return tslib.__awaiter(this, undefined, undefined, function* () {
14350
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14349
+ return tslib.__awaiter(this, void 0, void 0, function* () {
14350
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14351
14351
  return this.client.sendOperationRequest(args, spec);
14352
14352
  });
14353
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14353
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14354
14354
  var _a;
14355
14355
  let currentRawResponse = undefined;
14356
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
14356
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
14357
14357
  const callback = (rawResponse, flatResponse) => {
14358
14358
  currentRawResponse = rawResponse;
14359
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
14359
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
14360
14360
  };
14361
14361
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
14362
14362
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -14375,8 +14375,8 @@ class L3NetworksImpl {
14375
14375
  spec: deleteOperationSpec$b,
14376
14376
  });
14377
14377
  const poller = yield coreLro.createHttpPoller(lro, {
14378
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
14379
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
14378
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
14379
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
14380
14380
  resourceLocationConfig: "location",
14381
14381
  });
14382
14382
  yield poller.poll();
@@ -14390,7 +14390,7 @@ class L3NetworksImpl {
14390
14390
  * @param options The options parameters.
14391
14391
  */
14392
14392
  beginDeleteAndWait(resourceGroupName, l3NetworkName, options) {
14393
- return tslib.__awaiter(this, undefined, undefined, function* () {
14393
+ return tslib.__awaiter(this, void 0, void 0, function* () {
14394
14394
  const poller = yield this.beginDelete(resourceGroupName, l3NetworkName, options);
14395
14395
  return poller.pollUntilDone();
14396
14396
  });
@@ -14637,7 +14637,7 @@ class RackSkusImpl {
14637
14637
  return this;
14638
14638
  },
14639
14639
  byPage: (settings) => {
14640
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14640
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14641
14641
  throw new Error("maxPageSize is not supported by this operation.");
14642
14642
  }
14643
14643
  return this.listBySubscriptionPagingPage(options, settings);
@@ -14647,7 +14647,7 @@ class RackSkusImpl {
14647
14647
  listBySubscriptionPagingPage(options, settings) {
14648
14648
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
14649
14649
  let result;
14650
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
14650
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14651
14651
  if (!continuationToken) {
14652
14652
  result = yield tslib.__await(this._listBySubscription(options));
14653
14653
  let page = result.value || [];
@@ -14797,7 +14797,7 @@ class RacksImpl {
14797
14797
  return this;
14798
14798
  },
14799
14799
  byPage: (settings) => {
14800
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14800
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14801
14801
  throw new Error("maxPageSize is not supported by this operation.");
14802
14802
  }
14803
14803
  return this.listBySubscriptionPagingPage(options, settings);
@@ -14807,7 +14807,7 @@ class RacksImpl {
14807
14807
  listBySubscriptionPagingPage(options, settings) {
14808
14808
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
14809
14809
  let result;
14810
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
14810
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14811
14811
  if (!continuationToken) {
14812
14812
  result = yield tslib.__await(this._listBySubscription(options));
14813
14813
  let page = result.value || [];
@@ -14859,7 +14859,7 @@ class RacksImpl {
14859
14859
  return this;
14860
14860
  },
14861
14861
  byPage: (settings) => {
14862
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14862
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14863
14863
  throw new Error("maxPageSize is not supported by this operation.");
14864
14864
  }
14865
14865
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -14869,7 +14869,7 @@ class RacksImpl {
14869
14869
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
14870
14870
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
14871
14871
  let result;
14872
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
14872
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14873
14873
  if (!continuationToken) {
14874
14874
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
14875
14875
  let page = result.value || [];
@@ -14940,17 +14940,17 @@ class RacksImpl {
14940
14940
  * @param options The options parameters.
14941
14941
  */
14942
14942
  beginCreateOrUpdate(resourceGroupName, rackName, rackParameters, options) {
14943
- return tslib.__awaiter(this, undefined, undefined, function* () {
14944
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14943
+ return tslib.__awaiter(this, void 0, void 0, function* () {
14944
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14945
14945
  return this.client.sendOperationRequest(args, spec);
14946
14946
  });
14947
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
14947
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
14948
14948
  var _a;
14949
14949
  let currentRawResponse = undefined;
14950
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
14950
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
14951
14951
  const callback = (rawResponse, flatResponse) => {
14952
14952
  currentRawResponse = rawResponse;
14953
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
14953
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
14954
14954
  };
14955
14955
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
14956
14956
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -14969,8 +14969,8 @@ class RacksImpl {
14969
14969
  spec: createOrUpdateOperationSpec$a,
14970
14970
  });
14971
14971
  const poller = yield coreLro.createHttpPoller(lro, {
14972
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
14973
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
14972
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
14973
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
14974
14974
  resourceLocationConfig: "azure-async-operation",
14975
14975
  });
14976
14976
  yield poller.poll();
@@ -14987,7 +14987,7 @@ class RacksImpl {
14987
14987
  * @param options The options parameters.
14988
14988
  */
14989
14989
  beginCreateOrUpdateAndWait(resourceGroupName, rackName, rackParameters, options) {
14990
- return tslib.__awaiter(this, undefined, undefined, function* () {
14990
+ return tslib.__awaiter(this, void 0, void 0, function* () {
14991
14991
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, rackName, rackParameters, options);
14992
14992
  return poller.pollUntilDone();
14993
14993
  });
@@ -15001,17 +15001,17 @@ class RacksImpl {
15001
15001
  * @param options The options parameters.
15002
15002
  */
15003
15003
  beginDelete(resourceGroupName, rackName, options) {
15004
- return tslib.__awaiter(this, undefined, undefined, function* () {
15005
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15004
+ return tslib.__awaiter(this, void 0, void 0, function* () {
15005
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15006
15006
  return this.client.sendOperationRequest(args, spec);
15007
15007
  });
15008
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15008
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15009
15009
  var _a;
15010
15010
  let currentRawResponse = undefined;
15011
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
15011
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
15012
15012
  const callback = (rawResponse, flatResponse) => {
15013
15013
  currentRawResponse = rawResponse;
15014
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
15014
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
15015
15015
  };
15016
15016
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
15017
15017
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -15030,8 +15030,8 @@ class RacksImpl {
15030
15030
  spec: deleteOperationSpec$a,
15031
15031
  });
15032
15032
  const poller = yield coreLro.createHttpPoller(lro, {
15033
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
15034
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
15033
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
15034
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
15035
15035
  resourceLocationConfig: "location",
15036
15036
  });
15037
15037
  yield poller.poll();
@@ -15047,7 +15047,7 @@ class RacksImpl {
15047
15047
  * @param options The options parameters.
15048
15048
  */
15049
15049
  beginDeleteAndWait(resourceGroupName, rackName, options) {
15050
- return tslib.__awaiter(this, undefined, undefined, function* () {
15050
+ return tslib.__awaiter(this, void 0, void 0, function* () {
15051
15051
  const poller = yield this.beginDelete(resourceGroupName, rackName, options);
15052
15052
  return poller.pollUntilDone();
15053
15053
  });
@@ -15060,17 +15060,17 @@ class RacksImpl {
15060
15060
  * @param options The options parameters.
15061
15061
  */
15062
15062
  beginUpdate(resourceGroupName, rackName, options) {
15063
- return tslib.__awaiter(this, undefined, undefined, function* () {
15064
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15063
+ return tslib.__awaiter(this, void 0, void 0, function* () {
15064
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15065
15065
  return this.client.sendOperationRequest(args, spec);
15066
15066
  });
15067
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15067
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15068
15068
  var _a;
15069
15069
  let currentRawResponse = undefined;
15070
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
15070
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
15071
15071
  const callback = (rawResponse, flatResponse) => {
15072
15072
  currentRawResponse = rawResponse;
15073
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
15073
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
15074
15074
  };
15075
15075
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
15076
15076
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -15089,8 +15089,8 @@ class RacksImpl {
15089
15089
  spec: updateOperationSpec$a,
15090
15090
  });
15091
15091
  const poller = yield coreLro.createHttpPoller(lro, {
15092
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
15093
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
15092
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
15093
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
15094
15094
  resourceLocationConfig: "azure-async-operation",
15095
15095
  });
15096
15096
  yield poller.poll();
@@ -15105,7 +15105,7 @@ class RacksImpl {
15105
15105
  * @param options The options parameters.
15106
15106
  */
15107
15107
  beginUpdateAndWait(resourceGroupName, rackName, options) {
15108
- return tslib.__awaiter(this, undefined, undefined, function* () {
15108
+ return tslib.__awaiter(this, void 0, void 0, function* () {
15109
15109
  const poller = yield this.beginUpdate(resourceGroupName, rackName, options);
15110
15110
  return poller.pollUntilDone();
15111
15111
  });
@@ -15352,7 +15352,7 @@ class StorageAppliancesImpl {
15352
15352
  return this;
15353
15353
  },
15354
15354
  byPage: (settings) => {
15355
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
15355
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15356
15356
  throw new Error("maxPageSize is not supported by this operation.");
15357
15357
  }
15358
15358
  return this.listBySubscriptionPagingPage(options, settings);
@@ -15362,7 +15362,7 @@ class StorageAppliancesImpl {
15362
15362
  listBySubscriptionPagingPage(options, settings) {
15363
15363
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
15364
15364
  let result;
15365
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
15365
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15366
15366
  if (!continuationToken) {
15367
15367
  result = yield tslib.__await(this._listBySubscription(options));
15368
15368
  let page = result.value || [];
@@ -15414,7 +15414,7 @@ class StorageAppliancesImpl {
15414
15414
  return this;
15415
15415
  },
15416
15416
  byPage: (settings) => {
15417
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
15417
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15418
15418
  throw new Error("maxPageSize is not supported by this operation.");
15419
15419
  }
15420
15420
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -15424,7 +15424,7 @@ class StorageAppliancesImpl {
15424
15424
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
15425
15425
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
15426
15426
  let result;
15427
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
15427
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15428
15428
  if (!continuationToken) {
15429
15429
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
15430
15430
  let page = result.value || [];
@@ -15495,17 +15495,17 @@ class StorageAppliancesImpl {
15495
15495
  * @param options The options parameters.
15496
15496
  */
15497
15497
  beginCreateOrUpdate(resourceGroupName, storageApplianceName, storageApplianceParameters, options) {
15498
- return tslib.__awaiter(this, undefined, undefined, function* () {
15499
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15498
+ return tslib.__awaiter(this, void 0, void 0, function* () {
15499
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15500
15500
  return this.client.sendOperationRequest(args, spec);
15501
15501
  });
15502
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15502
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15503
15503
  var _a;
15504
15504
  let currentRawResponse = undefined;
15505
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
15505
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
15506
15506
  const callback = (rawResponse, flatResponse) => {
15507
15507
  currentRawResponse = rawResponse;
15508
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
15508
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
15509
15509
  };
15510
15510
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
15511
15511
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -15529,8 +15529,8 @@ class StorageAppliancesImpl {
15529
15529
  spec: createOrUpdateOperationSpec$9,
15530
15530
  });
15531
15531
  const poller = yield coreLro.createHttpPoller(lro, {
15532
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
15533
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
15532
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
15533
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
15534
15534
  resourceLocationConfig: "azure-async-operation",
15535
15535
  });
15536
15536
  yield poller.poll();
@@ -15547,7 +15547,7 @@ class StorageAppliancesImpl {
15547
15547
  * @param options The options parameters.
15548
15548
  */
15549
15549
  beginCreateOrUpdateAndWait(resourceGroupName, storageApplianceName, storageApplianceParameters, options) {
15550
- return tslib.__awaiter(this, undefined, undefined, function* () {
15550
+ return tslib.__awaiter(this, void 0, void 0, function* () {
15551
15551
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, storageApplianceName, storageApplianceParameters, options);
15552
15552
  return poller.pollUntilDone();
15553
15553
  });
@@ -15561,17 +15561,17 @@ class StorageAppliancesImpl {
15561
15561
  * @param options The options parameters.
15562
15562
  */
15563
15563
  beginDelete(resourceGroupName, storageApplianceName, options) {
15564
- return tslib.__awaiter(this, undefined, undefined, function* () {
15565
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15564
+ return tslib.__awaiter(this, void 0, void 0, function* () {
15565
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15566
15566
  return this.client.sendOperationRequest(args, spec);
15567
15567
  });
15568
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15568
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15569
15569
  var _a;
15570
15570
  let currentRawResponse = undefined;
15571
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
15571
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
15572
15572
  const callback = (rawResponse, flatResponse) => {
15573
15573
  currentRawResponse = rawResponse;
15574
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
15574
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
15575
15575
  };
15576
15576
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
15577
15577
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -15590,8 +15590,8 @@ class StorageAppliancesImpl {
15590
15590
  spec: deleteOperationSpec$9,
15591
15591
  });
15592
15592
  const poller = yield coreLro.createHttpPoller(lro, {
15593
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
15594
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
15593
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
15594
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
15595
15595
  resourceLocationConfig: "location",
15596
15596
  });
15597
15597
  yield poller.poll();
@@ -15607,7 +15607,7 @@ class StorageAppliancesImpl {
15607
15607
  * @param options The options parameters.
15608
15608
  */
15609
15609
  beginDeleteAndWait(resourceGroupName, storageApplianceName, options) {
15610
- return tslib.__awaiter(this, undefined, undefined, function* () {
15610
+ return tslib.__awaiter(this, void 0, void 0, function* () {
15611
15611
  const poller = yield this.beginDelete(resourceGroupName, storageApplianceName, options);
15612
15612
  return poller.pollUntilDone();
15613
15613
  });
@@ -15620,17 +15620,17 @@ class StorageAppliancesImpl {
15620
15620
  * @param options The options parameters.
15621
15621
  */
15622
15622
  beginUpdate(resourceGroupName, storageApplianceName, options) {
15623
- return tslib.__awaiter(this, undefined, undefined, function* () {
15624
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15623
+ return tslib.__awaiter(this, void 0, void 0, function* () {
15624
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15625
15625
  return this.client.sendOperationRequest(args, spec);
15626
15626
  });
15627
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15627
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15628
15628
  var _a;
15629
15629
  let currentRawResponse = undefined;
15630
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
15630
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
15631
15631
  const callback = (rawResponse, flatResponse) => {
15632
15632
  currentRawResponse = rawResponse;
15633
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
15633
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
15634
15634
  };
15635
15635
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
15636
15636
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -15649,8 +15649,8 @@ class StorageAppliancesImpl {
15649
15649
  spec: updateOperationSpec$9,
15650
15650
  });
15651
15651
  const poller = yield coreLro.createHttpPoller(lro, {
15652
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
15653
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
15652
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
15653
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
15654
15654
  resourceLocationConfig: "azure-async-operation",
15655
15655
  });
15656
15656
  yield poller.poll();
@@ -15665,7 +15665,7 @@ class StorageAppliancesImpl {
15665
15665
  * @param options The options parameters.
15666
15666
  */
15667
15667
  beginUpdateAndWait(resourceGroupName, storageApplianceName, options) {
15668
- return tslib.__awaiter(this, undefined, undefined, function* () {
15668
+ return tslib.__awaiter(this, void 0, void 0, function* () {
15669
15669
  const poller = yield this.beginUpdate(resourceGroupName, storageApplianceName, options);
15670
15670
  return poller.pollUntilDone();
15671
15671
  });
@@ -15677,17 +15677,17 @@ class StorageAppliancesImpl {
15677
15677
  * @param options The options parameters.
15678
15678
  */
15679
15679
  beginDisableRemoteVendorManagement(resourceGroupName, storageApplianceName, options) {
15680
- return tslib.__awaiter(this, undefined, undefined, function* () {
15681
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15680
+ return tslib.__awaiter(this, void 0, void 0, function* () {
15681
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15682
15682
  return this.client.sendOperationRequest(args, spec);
15683
15683
  });
15684
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15684
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15685
15685
  var _a;
15686
15686
  let currentRawResponse = undefined;
15687
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
15687
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
15688
15688
  const callback = (rawResponse, flatResponse) => {
15689
15689
  currentRawResponse = rawResponse;
15690
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
15690
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
15691
15691
  };
15692
15692
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
15693
15693
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -15706,8 +15706,8 @@ class StorageAppliancesImpl {
15706
15706
  spec: disableRemoteVendorManagementOperationSpec,
15707
15707
  });
15708
15708
  const poller = yield coreLro.createHttpPoller(lro, {
15709
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
15710
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
15709
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
15710
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
15711
15711
  resourceLocationConfig: "location",
15712
15712
  });
15713
15713
  yield poller.poll();
@@ -15721,7 +15721,7 @@ class StorageAppliancesImpl {
15721
15721
  * @param options The options parameters.
15722
15722
  */
15723
15723
  beginDisableRemoteVendorManagementAndWait(resourceGroupName, storageApplianceName, options) {
15724
- return tslib.__awaiter(this, undefined, undefined, function* () {
15724
+ return tslib.__awaiter(this, void 0, void 0, function* () {
15725
15725
  const poller = yield this.beginDisableRemoteVendorManagement(resourceGroupName, storageApplianceName, options);
15726
15726
  return poller.pollUntilDone();
15727
15727
  });
@@ -15733,17 +15733,17 @@ class StorageAppliancesImpl {
15733
15733
  * @param options The options parameters.
15734
15734
  */
15735
15735
  beginEnableRemoteVendorManagement(resourceGroupName, storageApplianceName, options) {
15736
- return tslib.__awaiter(this, undefined, undefined, function* () {
15737
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15736
+ return tslib.__awaiter(this, void 0, void 0, function* () {
15737
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15738
15738
  return this.client.sendOperationRequest(args, spec);
15739
15739
  });
15740
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15740
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15741
15741
  var _a;
15742
15742
  let currentRawResponse = undefined;
15743
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
15743
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
15744
15744
  const callback = (rawResponse, flatResponse) => {
15745
15745
  currentRawResponse = rawResponse;
15746
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
15746
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
15747
15747
  };
15748
15748
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
15749
15749
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -15762,8 +15762,8 @@ class StorageAppliancesImpl {
15762
15762
  spec: enableRemoteVendorManagementOperationSpec,
15763
15763
  });
15764
15764
  const poller = yield coreLro.createHttpPoller(lro, {
15765
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
15766
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
15765
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
15766
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
15767
15767
  resourceLocationConfig: "location",
15768
15768
  });
15769
15769
  yield poller.poll();
@@ -15777,7 +15777,7 @@ class StorageAppliancesImpl {
15777
15777
  * @param options The options parameters.
15778
15778
  */
15779
15779
  beginEnableRemoteVendorManagementAndWait(resourceGroupName, storageApplianceName, options) {
15780
- return tslib.__awaiter(this, undefined, undefined, function* () {
15780
+ return tslib.__awaiter(this, void 0, void 0, function* () {
15781
15781
  const poller = yield this.beginEnableRemoteVendorManagement(resourceGroupName, storageApplianceName, options);
15782
15782
  return poller.pollUntilDone();
15783
15783
  });
@@ -16086,7 +16086,7 @@ class TrunkedNetworksImpl {
16086
16086
  return this;
16087
16087
  },
16088
16088
  byPage: (settings) => {
16089
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
16089
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
16090
16090
  throw new Error("maxPageSize is not supported by this operation.");
16091
16091
  }
16092
16092
  return this.listBySubscriptionPagingPage(options, settings);
@@ -16096,7 +16096,7 @@ class TrunkedNetworksImpl {
16096
16096
  listBySubscriptionPagingPage(options, settings) {
16097
16097
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
16098
16098
  let result;
16099
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
16099
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
16100
16100
  if (!continuationToken) {
16101
16101
  result = yield tslib.__await(this._listBySubscription(options));
16102
16102
  let page = result.value || [];
@@ -16148,7 +16148,7 @@ class TrunkedNetworksImpl {
16148
16148
  return this;
16149
16149
  },
16150
16150
  byPage: (settings) => {
16151
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
16151
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
16152
16152
  throw new Error("maxPageSize is not supported by this operation.");
16153
16153
  }
16154
16154
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -16158,7 +16158,7 @@ class TrunkedNetworksImpl {
16158
16158
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
16159
16159
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
16160
16160
  let result;
16161
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
16161
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
16162
16162
  if (!continuationToken) {
16163
16163
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
16164
16164
  let page = result.value || [];
@@ -16227,17 +16227,17 @@ class TrunkedNetworksImpl {
16227
16227
  * @param options The options parameters.
16228
16228
  */
16229
16229
  beginCreateOrUpdate(resourceGroupName, trunkedNetworkName, trunkedNetworkParameters, options) {
16230
- return tslib.__awaiter(this, undefined, undefined, function* () {
16231
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16230
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16231
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16232
16232
  return this.client.sendOperationRequest(args, spec);
16233
16233
  });
16234
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16234
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16235
16235
  var _a;
16236
16236
  let currentRawResponse = undefined;
16237
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16237
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16238
16238
  const callback = (rawResponse, flatResponse) => {
16239
16239
  currentRawResponse = rawResponse;
16240
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16240
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16241
16241
  };
16242
16242
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16243
16243
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16261,8 +16261,8 @@ class TrunkedNetworksImpl {
16261
16261
  spec: createOrUpdateOperationSpec$8,
16262
16262
  });
16263
16263
  const poller = yield coreLro.createHttpPoller(lro, {
16264
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16265
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
16264
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16265
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
16266
16266
  resourceLocationConfig: "azure-async-operation",
16267
16267
  });
16268
16268
  yield poller.poll();
@@ -16277,7 +16277,7 @@ class TrunkedNetworksImpl {
16277
16277
  * @param options The options parameters.
16278
16278
  */
16279
16279
  beginCreateOrUpdateAndWait(resourceGroupName, trunkedNetworkName, trunkedNetworkParameters, options) {
16280
- return tslib.__awaiter(this, undefined, undefined, function* () {
16280
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16281
16281
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, trunkedNetworkName, trunkedNetworkParameters, options);
16282
16282
  return poller.pollUntilDone();
16283
16283
  });
@@ -16289,17 +16289,17 @@ class TrunkedNetworksImpl {
16289
16289
  * @param options The options parameters.
16290
16290
  */
16291
16291
  beginDelete(resourceGroupName, trunkedNetworkName, options) {
16292
- return tslib.__awaiter(this, undefined, undefined, function* () {
16293
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16292
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16293
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16294
16294
  return this.client.sendOperationRequest(args, spec);
16295
16295
  });
16296
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16296
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16297
16297
  var _a;
16298
16298
  let currentRawResponse = undefined;
16299
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16299
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16300
16300
  const callback = (rawResponse, flatResponse) => {
16301
16301
  currentRawResponse = rawResponse;
16302
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16302
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16303
16303
  };
16304
16304
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16305
16305
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16318,8 +16318,8 @@ class TrunkedNetworksImpl {
16318
16318
  spec: deleteOperationSpec$8,
16319
16319
  });
16320
16320
  const poller = yield coreLro.createHttpPoller(lro, {
16321
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16322
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
16321
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16322
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
16323
16323
  resourceLocationConfig: "location",
16324
16324
  });
16325
16325
  yield poller.poll();
@@ -16333,7 +16333,7 @@ class TrunkedNetworksImpl {
16333
16333
  * @param options The options parameters.
16334
16334
  */
16335
16335
  beginDeleteAndWait(resourceGroupName, trunkedNetworkName, options) {
16336
- return tslib.__awaiter(this, undefined, undefined, function* () {
16336
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16337
16337
  const poller = yield this.beginDelete(resourceGroupName, trunkedNetworkName, options);
16338
16338
  return poller.pollUntilDone();
16339
16339
  });
@@ -16580,7 +16580,7 @@ class VirtualMachinesImpl {
16580
16580
  return this;
16581
16581
  },
16582
16582
  byPage: (settings) => {
16583
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
16583
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
16584
16584
  throw new Error("maxPageSize is not supported by this operation.");
16585
16585
  }
16586
16586
  return this.listBySubscriptionPagingPage(options, settings);
@@ -16590,7 +16590,7 @@ class VirtualMachinesImpl {
16590
16590
  listBySubscriptionPagingPage(options, settings) {
16591
16591
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
16592
16592
  let result;
16593
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
16593
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
16594
16594
  if (!continuationToken) {
16595
16595
  result = yield tslib.__await(this._listBySubscription(options));
16596
16596
  let page = result.value || [];
@@ -16642,7 +16642,7 @@ class VirtualMachinesImpl {
16642
16642
  return this;
16643
16643
  },
16644
16644
  byPage: (settings) => {
16645
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
16645
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
16646
16646
  throw new Error("maxPageSize is not supported by this operation.");
16647
16647
  }
16648
16648
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -16652,7 +16652,7 @@ class VirtualMachinesImpl {
16652
16652
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
16653
16653
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
16654
16654
  let result;
16655
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
16655
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
16656
16656
  if (!continuationToken) {
16657
16657
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
16658
16658
  let page = result.value || [];
@@ -16721,17 +16721,17 @@ class VirtualMachinesImpl {
16721
16721
  * @param options The options parameters.
16722
16722
  */
16723
16723
  beginCreateOrUpdate(resourceGroupName, virtualMachineName, virtualMachineParameters, options) {
16724
- return tslib.__awaiter(this, undefined, undefined, function* () {
16725
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16724
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16725
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16726
16726
  return this.client.sendOperationRequest(args, spec);
16727
16727
  });
16728
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16728
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16729
16729
  var _a;
16730
16730
  let currentRawResponse = undefined;
16731
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16731
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16732
16732
  const callback = (rawResponse, flatResponse) => {
16733
16733
  currentRawResponse = rawResponse;
16734
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16734
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16735
16735
  };
16736
16736
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16737
16737
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16755,8 +16755,8 @@ class VirtualMachinesImpl {
16755
16755
  spec: createOrUpdateOperationSpec$7,
16756
16756
  });
16757
16757
  const poller = yield coreLro.createHttpPoller(lro, {
16758
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16759
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
16758
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16759
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
16760
16760
  resourceLocationConfig: "azure-async-operation",
16761
16761
  });
16762
16762
  yield poller.poll();
@@ -16771,7 +16771,7 @@ class VirtualMachinesImpl {
16771
16771
  * @param options The options parameters.
16772
16772
  */
16773
16773
  beginCreateOrUpdateAndWait(resourceGroupName, virtualMachineName, virtualMachineParameters, options) {
16774
- return tslib.__awaiter(this, undefined, undefined, function* () {
16774
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16775
16775
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, virtualMachineName, virtualMachineParameters, options);
16776
16776
  return poller.pollUntilDone();
16777
16777
  });
@@ -16783,17 +16783,17 @@ class VirtualMachinesImpl {
16783
16783
  * @param options The options parameters.
16784
16784
  */
16785
16785
  beginDelete(resourceGroupName, virtualMachineName, options) {
16786
- return tslib.__awaiter(this, undefined, undefined, function* () {
16787
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16786
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16787
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16788
16788
  return this.client.sendOperationRequest(args, spec);
16789
16789
  });
16790
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16790
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16791
16791
  var _a;
16792
16792
  let currentRawResponse = undefined;
16793
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16793
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16794
16794
  const callback = (rawResponse, flatResponse) => {
16795
16795
  currentRawResponse = rawResponse;
16796
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16796
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16797
16797
  };
16798
16798
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16799
16799
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16812,8 +16812,8 @@ class VirtualMachinesImpl {
16812
16812
  spec: deleteOperationSpec$7,
16813
16813
  });
16814
16814
  const poller = yield coreLro.createHttpPoller(lro, {
16815
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16816
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
16815
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16816
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
16817
16817
  resourceLocationConfig: "location",
16818
16818
  });
16819
16819
  yield poller.poll();
@@ -16827,7 +16827,7 @@ class VirtualMachinesImpl {
16827
16827
  * @param options The options parameters.
16828
16828
  */
16829
16829
  beginDeleteAndWait(resourceGroupName, virtualMachineName, options) {
16830
- return tslib.__awaiter(this, undefined, undefined, function* () {
16830
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16831
16831
  const poller = yield this.beginDelete(resourceGroupName, virtualMachineName, options);
16832
16832
  return poller.pollUntilDone();
16833
16833
  });
@@ -16840,17 +16840,17 @@ class VirtualMachinesImpl {
16840
16840
  * @param options The options parameters.
16841
16841
  */
16842
16842
  beginUpdate(resourceGroupName, virtualMachineName, options) {
16843
- return tslib.__awaiter(this, undefined, undefined, function* () {
16844
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16843
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16844
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16845
16845
  return this.client.sendOperationRequest(args, spec);
16846
16846
  });
16847
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16847
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16848
16848
  var _a;
16849
16849
  let currentRawResponse = undefined;
16850
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16850
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16851
16851
  const callback = (rawResponse, flatResponse) => {
16852
16852
  currentRawResponse = rawResponse;
16853
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16853
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16854
16854
  };
16855
16855
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16856
16856
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16869,8 +16869,8 @@ class VirtualMachinesImpl {
16869
16869
  spec: updateOperationSpec$7,
16870
16870
  });
16871
16871
  const poller = yield coreLro.createHttpPoller(lro, {
16872
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16873
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
16872
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16873
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
16874
16874
  resourceLocationConfig: "azure-async-operation",
16875
16875
  });
16876
16876
  yield poller.poll();
@@ -16885,7 +16885,7 @@ class VirtualMachinesImpl {
16885
16885
  * @param options The options parameters.
16886
16886
  */
16887
16887
  beginUpdateAndWait(resourceGroupName, virtualMachineName, options) {
16888
- return tslib.__awaiter(this, undefined, undefined, function* () {
16888
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16889
16889
  const poller = yield this.beginUpdate(resourceGroupName, virtualMachineName, options);
16890
16890
  return poller.pollUntilDone();
16891
16891
  });
@@ -16897,17 +16897,17 @@ class VirtualMachinesImpl {
16897
16897
  * @param options The options parameters.
16898
16898
  */
16899
16899
  beginPowerOff(resourceGroupName, virtualMachineName, options) {
16900
- return tslib.__awaiter(this, undefined, undefined, function* () {
16901
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16900
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16901
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16902
16902
  return this.client.sendOperationRequest(args, spec);
16903
16903
  });
16904
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16904
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16905
16905
  var _a;
16906
16906
  let currentRawResponse = undefined;
16907
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16907
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16908
16908
  const callback = (rawResponse, flatResponse) => {
16909
16909
  currentRawResponse = rawResponse;
16910
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16910
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16911
16911
  };
16912
16912
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16913
16913
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16926,8 +16926,8 @@ class VirtualMachinesImpl {
16926
16926
  spec: powerOffOperationSpec,
16927
16927
  });
16928
16928
  const poller = yield coreLro.createHttpPoller(lro, {
16929
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16930
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
16929
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16930
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
16931
16931
  resourceLocationConfig: "location",
16932
16932
  });
16933
16933
  yield poller.poll();
@@ -16941,7 +16941,7 @@ class VirtualMachinesImpl {
16941
16941
  * @param options The options parameters.
16942
16942
  */
16943
16943
  beginPowerOffAndWait(resourceGroupName, virtualMachineName, options) {
16944
- return tslib.__awaiter(this, undefined, undefined, function* () {
16944
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16945
16945
  const poller = yield this.beginPowerOff(resourceGroupName, virtualMachineName, options);
16946
16946
  return poller.pollUntilDone();
16947
16947
  });
@@ -16953,17 +16953,17 @@ class VirtualMachinesImpl {
16953
16953
  * @param options The options parameters.
16954
16954
  */
16955
16955
  beginReimage(resourceGroupName, virtualMachineName, options) {
16956
- return tslib.__awaiter(this, undefined, undefined, function* () {
16957
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16956
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16957
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16958
16958
  return this.client.sendOperationRequest(args, spec);
16959
16959
  });
16960
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16960
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16961
16961
  var _a;
16962
16962
  let currentRawResponse = undefined;
16963
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16963
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16964
16964
  const callback = (rawResponse, flatResponse) => {
16965
16965
  currentRawResponse = rawResponse;
16966
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16966
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16967
16967
  };
16968
16968
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16969
16969
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16982,8 +16982,8 @@ class VirtualMachinesImpl {
16982
16982
  spec: reimageOperationSpec,
16983
16983
  });
16984
16984
  const poller = yield coreLro.createHttpPoller(lro, {
16985
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16986
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
16985
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16986
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
16987
16987
  resourceLocationConfig: "location",
16988
16988
  });
16989
16989
  yield poller.poll();
@@ -16997,7 +16997,7 @@ class VirtualMachinesImpl {
16997
16997
  * @param options The options parameters.
16998
16998
  */
16999
16999
  beginReimageAndWait(resourceGroupName, virtualMachineName, options) {
17000
- return tslib.__awaiter(this, undefined, undefined, function* () {
17000
+ return tslib.__awaiter(this, void 0, void 0, function* () {
17001
17001
  const poller = yield this.beginReimage(resourceGroupName, virtualMachineName, options);
17002
17002
  return poller.pollUntilDone();
17003
17003
  });
@@ -17009,17 +17009,17 @@ class VirtualMachinesImpl {
17009
17009
  * @param options The options parameters.
17010
17010
  */
17011
17011
  beginRestart(resourceGroupName, virtualMachineName, options) {
17012
- return tslib.__awaiter(this, undefined, undefined, function* () {
17013
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
17012
+ return tslib.__awaiter(this, void 0, void 0, function* () {
17013
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
17014
17014
  return this.client.sendOperationRequest(args, spec);
17015
17015
  });
17016
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
17016
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
17017
17017
  var _a;
17018
17018
  let currentRawResponse = undefined;
17019
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
17019
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
17020
17020
  const callback = (rawResponse, flatResponse) => {
17021
17021
  currentRawResponse = rawResponse;
17022
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
17022
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
17023
17023
  };
17024
17024
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
17025
17025
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -17038,8 +17038,8 @@ class VirtualMachinesImpl {
17038
17038
  spec: restartOperationSpec,
17039
17039
  });
17040
17040
  const poller = yield coreLro.createHttpPoller(lro, {
17041
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
17042
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
17041
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
17042
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
17043
17043
  resourceLocationConfig: "location",
17044
17044
  });
17045
17045
  yield poller.poll();
@@ -17053,7 +17053,7 @@ class VirtualMachinesImpl {
17053
17053
  * @param options The options parameters.
17054
17054
  */
17055
17055
  beginRestartAndWait(resourceGroupName, virtualMachineName, options) {
17056
- return tslib.__awaiter(this, undefined, undefined, function* () {
17056
+ return tslib.__awaiter(this, void 0, void 0, function* () {
17057
17057
  const poller = yield this.beginRestart(resourceGroupName, virtualMachineName, options);
17058
17058
  return poller.pollUntilDone();
17059
17059
  });
@@ -17065,17 +17065,17 @@ class VirtualMachinesImpl {
17065
17065
  * @param options The options parameters.
17066
17066
  */
17067
17067
  beginStart(resourceGroupName, virtualMachineName, options) {
17068
- return tslib.__awaiter(this, undefined, undefined, function* () {
17069
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
17068
+ return tslib.__awaiter(this, void 0, void 0, function* () {
17069
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
17070
17070
  return this.client.sendOperationRequest(args, spec);
17071
17071
  });
17072
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
17072
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
17073
17073
  var _a;
17074
17074
  let currentRawResponse = undefined;
17075
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
17075
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
17076
17076
  const callback = (rawResponse, flatResponse) => {
17077
17077
  currentRawResponse = rawResponse;
17078
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
17078
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
17079
17079
  };
17080
17080
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
17081
17081
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -17094,8 +17094,8 @@ class VirtualMachinesImpl {
17094
17094
  spec: startOperationSpec,
17095
17095
  });
17096
17096
  const poller = yield coreLro.createHttpPoller(lro, {
17097
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
17098
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
17097
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
17098
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
17099
17099
  resourceLocationConfig: "location",
17100
17100
  });
17101
17101
  yield poller.poll();
@@ -17109,7 +17109,7 @@ class VirtualMachinesImpl {
17109
17109
  * @param options The options parameters.
17110
17110
  */
17111
17111
  beginStartAndWait(resourceGroupName, virtualMachineName, options) {
17112
- return tslib.__awaiter(this, undefined, undefined, function* () {
17112
+ return tslib.__awaiter(this, void 0, void 0, function* () {
17113
17113
  const poller = yield this.beginStart(resourceGroupName, virtualMachineName, options);
17114
17114
  return poller.pollUntilDone();
17115
17115
  });
@@ -17478,7 +17478,7 @@ class VolumesImpl {
17478
17478
  return this;
17479
17479
  },
17480
17480
  byPage: (settings) => {
17481
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
17481
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
17482
17482
  throw new Error("maxPageSize is not supported by this operation.");
17483
17483
  }
17484
17484
  return this.listBySubscriptionPagingPage(options, settings);
@@ -17488,7 +17488,7 @@ class VolumesImpl {
17488
17488
  listBySubscriptionPagingPage(options, settings) {
17489
17489
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
17490
17490
  let result;
17491
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
17491
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
17492
17492
  if (!continuationToken) {
17493
17493
  result = yield tslib.__await(this._listBySubscription(options));
17494
17494
  let page = result.value || [];
@@ -17540,7 +17540,7 @@ class VolumesImpl {
17540
17540
  return this;
17541
17541
  },
17542
17542
  byPage: (settings) => {
17543
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
17543
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
17544
17544
  throw new Error("maxPageSize is not supported by this operation.");
17545
17545
  }
17546
17546
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -17550,7 +17550,7 @@ class VolumesImpl {
17550
17550
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
17551
17551
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
17552
17552
  let result;
17553
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
17553
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
17554
17554
  if (!continuationToken) {
17555
17555
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
17556
17556
  let page = result.value || [];
@@ -17619,17 +17619,17 @@ class VolumesImpl {
17619
17619
  * @param options The options parameters.
17620
17620
  */
17621
17621
  beginCreateOrUpdate(resourceGroupName, volumeName, volumeParameters, options) {
17622
- return tslib.__awaiter(this, undefined, undefined, function* () {
17623
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
17622
+ return tslib.__awaiter(this, void 0, void 0, function* () {
17623
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
17624
17624
  return this.client.sendOperationRequest(args, spec);
17625
17625
  });
17626
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
17626
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
17627
17627
  var _a;
17628
17628
  let currentRawResponse = undefined;
17629
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
17629
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
17630
17630
  const callback = (rawResponse, flatResponse) => {
17631
17631
  currentRawResponse = rawResponse;
17632
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
17632
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
17633
17633
  };
17634
17634
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
17635
17635
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -17648,8 +17648,8 @@ class VolumesImpl {
17648
17648
  spec: createOrUpdateOperationSpec$6,
17649
17649
  });
17650
17650
  const poller = yield coreLro.createHttpPoller(lro, {
17651
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
17652
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
17651
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
17652
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
17653
17653
  resourceLocationConfig: "azure-async-operation",
17654
17654
  });
17655
17655
  yield poller.poll();
@@ -17664,7 +17664,7 @@ class VolumesImpl {
17664
17664
  * @param options The options parameters.
17665
17665
  */
17666
17666
  beginCreateOrUpdateAndWait(resourceGroupName, volumeName, volumeParameters, options) {
17667
- return tslib.__awaiter(this, undefined, undefined, function* () {
17667
+ return tslib.__awaiter(this, void 0, void 0, function* () {
17668
17668
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, volumeName, volumeParameters, options);
17669
17669
  return poller.pollUntilDone();
17670
17670
  });
@@ -17676,17 +17676,17 @@ class VolumesImpl {
17676
17676
  * @param options The options parameters.
17677
17677
  */
17678
17678
  beginDelete(resourceGroupName, volumeName, options) {
17679
- return tslib.__awaiter(this, undefined, undefined, function* () {
17680
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
17679
+ return tslib.__awaiter(this, void 0, void 0, function* () {
17680
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
17681
17681
  return this.client.sendOperationRequest(args, spec);
17682
17682
  });
17683
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
17683
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
17684
17684
  var _a;
17685
17685
  let currentRawResponse = undefined;
17686
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
17686
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
17687
17687
  const callback = (rawResponse, flatResponse) => {
17688
17688
  currentRawResponse = rawResponse;
17689
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
17689
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
17690
17690
  };
17691
17691
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
17692
17692
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -17705,8 +17705,8 @@ class VolumesImpl {
17705
17705
  spec: deleteOperationSpec$6,
17706
17706
  });
17707
17707
  const poller = yield coreLro.createHttpPoller(lro, {
17708
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
17709
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
17708
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
17709
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
17710
17710
  resourceLocationConfig: "location",
17711
17711
  });
17712
17712
  yield poller.poll();
@@ -17720,7 +17720,7 @@ class VolumesImpl {
17720
17720
  * @param options The options parameters.
17721
17721
  */
17722
17722
  beginDeleteAndWait(resourceGroupName, volumeName, options) {
17723
- return tslib.__awaiter(this, undefined, undefined, function* () {
17723
+ return tslib.__awaiter(this, void 0, void 0, function* () {
17724
17724
  const poller = yield this.beginDelete(resourceGroupName, volumeName, options);
17725
17725
  return poller.pollUntilDone();
17726
17726
  });
@@ -17969,7 +17969,7 @@ class BareMetalMachineKeySetsImpl {
17969
17969
  return this;
17970
17970
  },
17971
17971
  byPage: (settings) => {
17972
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
17972
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
17973
17973
  throw new Error("maxPageSize is not supported by this operation.");
17974
17974
  }
17975
17975
  return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
@@ -17979,7 +17979,7 @@ class BareMetalMachineKeySetsImpl {
17979
17979
  listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
17980
17980
  return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
17981
17981
  let result;
17982
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
17982
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
17983
17983
  if (!continuationToken) {
17984
17984
  result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
17985
17985
  let page = result.value || [];
@@ -18044,17 +18044,17 @@ class BareMetalMachineKeySetsImpl {
18044
18044
  * @param options The options parameters.
18045
18045
  */
18046
18046
  beginCreateOrUpdate(resourceGroupName, clusterName, bareMetalMachineKeySetName, bareMetalMachineKeySetParameters, options) {
18047
- return tslib.__awaiter(this, undefined, undefined, function* () {
18048
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
18047
+ return tslib.__awaiter(this, void 0, void 0, function* () {
18048
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
18049
18049
  return this.client.sendOperationRequest(args, spec);
18050
18050
  });
18051
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
18051
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
18052
18052
  var _a;
18053
18053
  let currentRawResponse = undefined;
18054
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
18054
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
18055
18055
  const callback = (rawResponse, flatResponse) => {
18056
18056
  currentRawResponse = rawResponse;
18057
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
18057
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
18058
18058
  };
18059
18059
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
18060
18060
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -18079,8 +18079,8 @@ class BareMetalMachineKeySetsImpl {
18079
18079
  spec: createOrUpdateOperationSpec$5,
18080
18080
  });
18081
18081
  const poller = yield coreLro.createHttpPoller(lro, {
18082
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
18083
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
18082
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
18083
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
18084
18084
  resourceLocationConfig: "azure-async-operation",
18085
18085
  });
18086
18086
  yield poller.poll();
@@ -18096,7 +18096,7 @@ class BareMetalMachineKeySetsImpl {
18096
18096
  * @param options The options parameters.
18097
18097
  */
18098
18098
  beginCreateOrUpdateAndWait(resourceGroupName, clusterName, bareMetalMachineKeySetName, bareMetalMachineKeySetParameters, options) {
18099
- return tslib.__awaiter(this, undefined, undefined, function* () {
18099
+ return tslib.__awaiter(this, void 0, void 0, function* () {
18100
18100
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, bareMetalMachineKeySetName, bareMetalMachineKeySetParameters, options);
18101
18101
  return poller.pollUntilDone();
18102
18102
  });
@@ -18109,17 +18109,17 @@ class BareMetalMachineKeySetsImpl {
18109
18109
  * @param options The options parameters.
18110
18110
  */
18111
18111
  beginDelete(resourceGroupName, clusterName, bareMetalMachineKeySetName, options) {
18112
- return tslib.__awaiter(this, undefined, undefined, function* () {
18113
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
18112
+ return tslib.__awaiter(this, void 0, void 0, function* () {
18113
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
18114
18114
  return this.client.sendOperationRequest(args, spec);
18115
18115
  });
18116
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
18116
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
18117
18117
  var _a;
18118
18118
  let currentRawResponse = undefined;
18119
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
18119
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
18120
18120
  const callback = (rawResponse, flatResponse) => {
18121
18121
  currentRawResponse = rawResponse;
18122
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
18122
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
18123
18123
  };
18124
18124
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
18125
18125
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -18143,8 +18143,8 @@ class BareMetalMachineKeySetsImpl {
18143
18143
  spec: deleteOperationSpec$5,
18144
18144
  });
18145
18145
  const poller = yield coreLro.createHttpPoller(lro, {
18146
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
18147
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
18146
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
18147
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
18148
18148
  resourceLocationConfig: "location",
18149
18149
  });
18150
18150
  yield poller.poll();
@@ -18159,7 +18159,7 @@ class BareMetalMachineKeySetsImpl {
18159
18159
  * @param options The options parameters.
18160
18160
  */
18161
18161
  beginDeleteAndWait(resourceGroupName, clusterName, bareMetalMachineKeySetName, options) {
18162
- return tslib.__awaiter(this, undefined, undefined, function* () {
18162
+ return tslib.__awaiter(this, void 0, void 0, function* () {
18163
18163
  const poller = yield this.beginDelete(resourceGroupName, clusterName, bareMetalMachineKeySetName, options);
18164
18164
  return poller.pollUntilDone();
18165
18165
  });
@@ -18173,17 +18173,17 @@ class BareMetalMachineKeySetsImpl {
18173
18173
  * @param options The options parameters.
18174
18174
  */
18175
18175
  beginUpdate(resourceGroupName, clusterName, bareMetalMachineKeySetName, options) {
18176
- return tslib.__awaiter(this, undefined, undefined, function* () {
18177
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
18176
+ return tslib.__awaiter(this, void 0, void 0, function* () {
18177
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
18178
18178
  return this.client.sendOperationRequest(args, spec);
18179
18179
  });
18180
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
18180
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
18181
18181
  var _a;
18182
18182
  let currentRawResponse = undefined;
18183
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
18183
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
18184
18184
  const callback = (rawResponse, flatResponse) => {
18185
18185
  currentRawResponse = rawResponse;
18186
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
18186
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
18187
18187
  };
18188
18188
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
18189
18189
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -18207,8 +18207,8 @@ class BareMetalMachineKeySetsImpl {
18207
18207
  spec: updateOperationSpec$5,
18208
18208
  });
18209
18209
  const poller = yield coreLro.createHttpPoller(lro, {
18210
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
18211
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
18210
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
18211
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
18212
18212
  resourceLocationConfig: "azure-async-operation",
18213
18213
  });
18214
18214
  yield poller.poll();
@@ -18224,7 +18224,7 @@ class BareMetalMachineKeySetsImpl {
18224
18224
  * @param options The options parameters.
18225
18225
  */
18226
18226
  beginUpdateAndWait(resourceGroupName, clusterName, bareMetalMachineKeySetName, options) {
18227
- return tslib.__awaiter(this, undefined, undefined, function* () {
18227
+ return tslib.__awaiter(this, void 0, void 0, function* () {
18228
18228
  const poller = yield this.beginUpdate(resourceGroupName, clusterName, bareMetalMachineKeySetName, options);
18229
18229
  return poller.pollUntilDone();
18230
18230
  });
@@ -18437,7 +18437,7 @@ class BmcKeySetsImpl {
18437
18437
  return this;
18438
18438
  },
18439
18439
  byPage: (settings) => {
18440
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
18440
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
18441
18441
  throw new Error("maxPageSize is not supported by this operation.");
18442
18442
  }
18443
18443
  return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
@@ -18447,7 +18447,7 @@ class BmcKeySetsImpl {
18447
18447
  listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
18448
18448
  return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
18449
18449
  let result;
18450
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
18450
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
18451
18451
  if (!continuationToken) {
18452
18452
  result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
18453
18453
  let page = result.value || [];
@@ -18513,17 +18513,17 @@ class BmcKeySetsImpl {
18513
18513
  * @param options The options parameters.
18514
18514
  */
18515
18515
  beginCreateOrUpdate(resourceGroupName, clusterName, bmcKeySetName, bmcKeySetParameters, options) {
18516
- return tslib.__awaiter(this, undefined, undefined, function* () {
18517
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
18516
+ return tslib.__awaiter(this, void 0, void 0, function* () {
18517
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
18518
18518
  return this.client.sendOperationRequest(args, spec);
18519
18519
  });
18520
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
18520
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
18521
18521
  var _a;
18522
18522
  let currentRawResponse = undefined;
18523
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
18523
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
18524
18524
  const callback = (rawResponse, flatResponse) => {
18525
18525
  currentRawResponse = rawResponse;
18526
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
18526
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
18527
18527
  };
18528
18528
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
18529
18529
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -18548,8 +18548,8 @@ class BmcKeySetsImpl {
18548
18548
  spec: createOrUpdateOperationSpec$4,
18549
18549
  });
18550
18550
  const poller = yield coreLro.createHttpPoller(lro, {
18551
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
18552
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
18551
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
18552
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
18553
18553
  resourceLocationConfig: "azure-async-operation",
18554
18554
  });
18555
18555
  yield poller.poll();
@@ -18566,7 +18566,7 @@ class BmcKeySetsImpl {
18566
18566
  * @param options The options parameters.
18567
18567
  */
18568
18568
  beginCreateOrUpdateAndWait(resourceGroupName, clusterName, bmcKeySetName, bmcKeySetParameters, options) {
18569
- return tslib.__awaiter(this, undefined, undefined, function* () {
18569
+ return tslib.__awaiter(this, void 0, void 0, function* () {
18570
18570
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, bmcKeySetName, bmcKeySetParameters, options);
18571
18571
  return poller.pollUntilDone();
18572
18572
  });
@@ -18579,17 +18579,17 @@ class BmcKeySetsImpl {
18579
18579
  * @param options The options parameters.
18580
18580
  */
18581
18581
  beginDelete(resourceGroupName, clusterName, bmcKeySetName, options) {
18582
- return tslib.__awaiter(this, undefined, undefined, function* () {
18583
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
18582
+ return tslib.__awaiter(this, void 0, void 0, function* () {
18583
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
18584
18584
  return this.client.sendOperationRequest(args, spec);
18585
18585
  });
18586
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
18586
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
18587
18587
  var _a;
18588
18588
  let currentRawResponse = undefined;
18589
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
18589
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
18590
18590
  const callback = (rawResponse, flatResponse) => {
18591
18591
  currentRawResponse = rawResponse;
18592
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
18592
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
18593
18593
  };
18594
18594
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
18595
18595
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -18608,8 +18608,8 @@ class BmcKeySetsImpl {
18608
18608
  spec: deleteOperationSpec$4,
18609
18609
  });
18610
18610
  const poller = yield coreLro.createHttpPoller(lro, {
18611
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
18612
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
18611
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
18612
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
18613
18613
  resourceLocationConfig: "location",
18614
18614
  });
18615
18615
  yield poller.poll();
@@ -18624,7 +18624,7 @@ class BmcKeySetsImpl {
18624
18624
  * @param options The options parameters.
18625
18625
  */
18626
18626
  beginDeleteAndWait(resourceGroupName, clusterName, bmcKeySetName, options) {
18627
- return tslib.__awaiter(this, undefined, undefined, function* () {
18627
+ return tslib.__awaiter(this, void 0, void 0, function* () {
18628
18628
  const poller = yield this.beginDelete(resourceGroupName, clusterName, bmcKeySetName, options);
18629
18629
  return poller.pollUntilDone();
18630
18630
  });
@@ -18638,17 +18638,17 @@ class BmcKeySetsImpl {
18638
18638
  * @param options The options parameters.
18639
18639
  */
18640
18640
  beginUpdate(resourceGroupName, clusterName, bmcKeySetName, options) {
18641
- return tslib.__awaiter(this, undefined, undefined, function* () {
18642
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
18641
+ return tslib.__awaiter(this, void 0, void 0, function* () {
18642
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
18643
18643
  return this.client.sendOperationRequest(args, spec);
18644
18644
  });
18645
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
18645
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
18646
18646
  var _a;
18647
18647
  let currentRawResponse = undefined;
18648
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
18648
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
18649
18649
  const callback = (rawResponse, flatResponse) => {
18650
18650
  currentRawResponse = rawResponse;
18651
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
18651
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
18652
18652
  };
18653
18653
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
18654
18654
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -18667,8 +18667,8 @@ class BmcKeySetsImpl {
18667
18667
  spec: updateOperationSpec$4,
18668
18668
  });
18669
18669
  const poller = yield coreLro.createHttpPoller(lro, {
18670
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
18671
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
18670
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
18671
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
18672
18672
  resourceLocationConfig: "azure-async-operation",
18673
18673
  });
18674
18674
  yield poller.poll();
@@ -18684,7 +18684,7 @@ class BmcKeySetsImpl {
18684
18684
  * @param options The options parameters.
18685
18685
  */
18686
18686
  beginUpdateAndWait(resourceGroupName, clusterName, bmcKeySetName, options) {
18687
- return tslib.__awaiter(this, undefined, undefined, function* () {
18687
+ return tslib.__awaiter(this, void 0, void 0, function* () {
18688
18688
  const poller = yield this.beginUpdate(resourceGroupName, clusterName, bmcKeySetName, options);
18689
18689
  return poller.pollUntilDone();
18690
18690
  });
@@ -18897,7 +18897,7 @@ class MetricsConfigurationsImpl {
18897
18897
  return this;
18898
18898
  },
18899
18899
  byPage: (settings) => {
18900
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
18900
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
18901
18901
  throw new Error("maxPageSize is not supported by this operation.");
18902
18902
  }
18903
18903
  return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
@@ -18907,7 +18907,7 @@ class MetricsConfigurationsImpl {
18907
18907
  listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
18908
18908
  return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
18909
18909
  let result;
18910
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
18910
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
18911
18911
  if (!continuationToken) {
18912
18912
  result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
18913
18913
  let page = result.value || [];
@@ -18972,17 +18972,17 @@ class MetricsConfigurationsImpl {
18972
18972
  * @param options The options parameters.
18973
18973
  */
18974
18974
  beginCreateOrUpdate(resourceGroupName, clusterName, metricsConfigurationName, metricsConfigurationParameters, options) {
18975
- return tslib.__awaiter(this, undefined, undefined, function* () {
18976
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
18975
+ return tslib.__awaiter(this, void 0, void 0, function* () {
18976
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
18977
18977
  return this.client.sendOperationRequest(args, spec);
18978
18978
  });
18979
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
18979
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
18980
18980
  var _a;
18981
18981
  let currentRawResponse = undefined;
18982
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
18982
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
18983
18983
  const callback = (rawResponse, flatResponse) => {
18984
18984
  currentRawResponse = rawResponse;
18985
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
18985
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
18986
18986
  };
18987
18987
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
18988
18988
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -19007,8 +19007,8 @@ class MetricsConfigurationsImpl {
19007
19007
  spec: createOrUpdateOperationSpec$3,
19008
19008
  });
19009
19009
  const poller = yield coreLro.createHttpPoller(lro, {
19010
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
19011
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
19010
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
19011
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
19012
19012
  resourceLocationConfig: "azure-async-operation",
19013
19013
  });
19014
19014
  yield poller.poll();
@@ -19024,7 +19024,7 @@ class MetricsConfigurationsImpl {
19024
19024
  * @param options The options parameters.
19025
19025
  */
19026
19026
  beginCreateOrUpdateAndWait(resourceGroupName, clusterName, metricsConfigurationName, metricsConfigurationParameters, options) {
19027
- return tslib.__awaiter(this, undefined, undefined, function* () {
19027
+ return tslib.__awaiter(this, void 0, void 0, function* () {
19028
19028
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, metricsConfigurationName, metricsConfigurationParameters, options);
19029
19029
  return poller.pollUntilDone();
19030
19030
  });
@@ -19037,17 +19037,17 @@ class MetricsConfigurationsImpl {
19037
19037
  * @param options The options parameters.
19038
19038
  */
19039
19039
  beginDelete(resourceGroupName, clusterName, metricsConfigurationName, options) {
19040
- return tslib.__awaiter(this, undefined, undefined, function* () {
19041
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
19040
+ return tslib.__awaiter(this, void 0, void 0, function* () {
19041
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
19042
19042
  return this.client.sendOperationRequest(args, spec);
19043
19043
  });
19044
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
19044
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
19045
19045
  var _a;
19046
19046
  let currentRawResponse = undefined;
19047
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
19047
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
19048
19048
  const callback = (rawResponse, flatResponse) => {
19049
19049
  currentRawResponse = rawResponse;
19050
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
19050
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
19051
19051
  };
19052
19052
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
19053
19053
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -19071,8 +19071,8 @@ class MetricsConfigurationsImpl {
19071
19071
  spec: deleteOperationSpec$3,
19072
19072
  });
19073
19073
  const poller = yield coreLro.createHttpPoller(lro, {
19074
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
19075
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
19074
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
19075
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
19076
19076
  resourceLocationConfig: "location",
19077
19077
  });
19078
19078
  yield poller.poll();
@@ -19087,7 +19087,7 @@ class MetricsConfigurationsImpl {
19087
19087
  * @param options The options parameters.
19088
19088
  */
19089
19089
  beginDeleteAndWait(resourceGroupName, clusterName, metricsConfigurationName, options) {
19090
- return tslib.__awaiter(this, undefined, undefined, function* () {
19090
+ return tslib.__awaiter(this, void 0, void 0, function* () {
19091
19091
  const poller = yield this.beginDelete(resourceGroupName, clusterName, metricsConfigurationName, options);
19092
19092
  return poller.pollUntilDone();
19093
19093
  });
@@ -19101,17 +19101,17 @@ class MetricsConfigurationsImpl {
19101
19101
  * @param options The options parameters.
19102
19102
  */
19103
19103
  beginUpdate(resourceGroupName, clusterName, metricsConfigurationName, options) {
19104
- return tslib.__awaiter(this, undefined, undefined, function* () {
19105
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
19104
+ return tslib.__awaiter(this, void 0, void 0, function* () {
19105
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
19106
19106
  return this.client.sendOperationRequest(args, spec);
19107
19107
  });
19108
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
19108
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
19109
19109
  var _a;
19110
19110
  let currentRawResponse = undefined;
19111
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
19111
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
19112
19112
  const callback = (rawResponse, flatResponse) => {
19113
19113
  currentRawResponse = rawResponse;
19114
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
19114
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
19115
19115
  };
19116
19116
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
19117
19117
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -19135,8 +19135,8 @@ class MetricsConfigurationsImpl {
19135
19135
  spec: updateOperationSpec$3,
19136
19136
  });
19137
19137
  const poller = yield coreLro.createHttpPoller(lro, {
19138
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
19139
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
19138
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
19139
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
19140
19140
  resourceLocationConfig: "azure-async-operation",
19141
19141
  });
19142
19142
  yield poller.poll();
@@ -19152,7 +19152,7 @@ class MetricsConfigurationsImpl {
19152
19152
  * @param options The options parameters.
19153
19153
  */
19154
19154
  beginUpdateAndWait(resourceGroupName, clusterName, metricsConfigurationName, options) {
19155
- return tslib.__awaiter(this, undefined, undefined, function* () {
19155
+ return tslib.__awaiter(this, void 0, void 0, function* () {
19156
19156
  const poller = yield this.beginUpdate(resourceGroupName, clusterName, metricsConfigurationName, options);
19157
19157
  return poller.pollUntilDone();
19158
19158
  });
@@ -19365,7 +19365,7 @@ class AgentPoolsImpl {
19365
19365
  return this;
19366
19366
  },
19367
19367
  byPage: (settings) => {
19368
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
19368
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
19369
19369
  throw new Error("maxPageSize is not supported by this operation.");
19370
19370
  }
19371
19371
  return this.listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options, settings);
@@ -19375,7 +19375,7 @@ class AgentPoolsImpl {
19375
19375
  listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options, settings) {
19376
19376
  return tslib.__asyncGenerator(this, arguments, function* listByKubernetesClusterPagingPage_1() {
19377
19377
  let result;
19378
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
19378
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
19379
19379
  if (!continuationToken) {
19380
19380
  result = yield tslib.__await(this._listByKubernetesCluster(resourceGroupName, kubernetesClusterName, options));
19381
19381
  let page = result.value || [];
@@ -19440,17 +19440,17 @@ class AgentPoolsImpl {
19440
19440
  * @param options The options parameters.
19441
19441
  */
19442
19442
  beginCreateOrUpdate(resourceGroupName, kubernetesClusterName, agentPoolName, agentPoolParameters, options) {
19443
- return tslib.__awaiter(this, undefined, undefined, function* () {
19444
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
19443
+ return tslib.__awaiter(this, void 0, void 0, function* () {
19444
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
19445
19445
  return this.client.sendOperationRequest(args, spec);
19446
19446
  });
19447
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
19447
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
19448
19448
  var _a;
19449
19449
  let currentRawResponse = undefined;
19450
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
19450
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
19451
19451
  const callback = (rawResponse, flatResponse) => {
19452
19452
  currentRawResponse = rawResponse;
19453
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
19453
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
19454
19454
  };
19455
19455
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
19456
19456
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -19475,8 +19475,8 @@ class AgentPoolsImpl {
19475
19475
  spec: createOrUpdateOperationSpec$2,
19476
19476
  });
19477
19477
  const poller = yield coreLro.createHttpPoller(lro, {
19478
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
19479
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
19478
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
19479
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
19480
19480
  resourceLocationConfig: "azure-async-operation",
19481
19481
  });
19482
19482
  yield poller.poll();
@@ -19492,7 +19492,7 @@ class AgentPoolsImpl {
19492
19492
  * @param options The options parameters.
19493
19493
  */
19494
19494
  beginCreateOrUpdateAndWait(resourceGroupName, kubernetesClusterName, agentPoolName, agentPoolParameters, options) {
19495
- return tslib.__awaiter(this, undefined, undefined, function* () {
19495
+ return tslib.__awaiter(this, void 0, void 0, function* () {
19496
19496
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, kubernetesClusterName, agentPoolName, agentPoolParameters, options);
19497
19497
  return poller.pollUntilDone();
19498
19498
  });
@@ -19505,17 +19505,17 @@ class AgentPoolsImpl {
19505
19505
  * @param options The options parameters.
19506
19506
  */
19507
19507
  beginDelete(resourceGroupName, kubernetesClusterName, agentPoolName, options) {
19508
- return tslib.__awaiter(this, undefined, undefined, function* () {
19509
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
19508
+ return tslib.__awaiter(this, void 0, void 0, function* () {
19509
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
19510
19510
  return this.client.sendOperationRequest(args, spec);
19511
19511
  });
19512
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
19512
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
19513
19513
  var _a;
19514
19514
  let currentRawResponse = undefined;
19515
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
19515
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
19516
19516
  const callback = (rawResponse, flatResponse) => {
19517
19517
  currentRawResponse = rawResponse;
19518
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
19518
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
19519
19519
  };
19520
19520
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
19521
19521
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -19539,8 +19539,8 @@ class AgentPoolsImpl {
19539
19539
  spec: deleteOperationSpec$2,
19540
19540
  });
19541
19541
  const poller = yield coreLro.createHttpPoller(lro, {
19542
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
19543
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
19542
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
19543
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
19544
19544
  resourceLocationConfig: "location",
19545
19545
  });
19546
19546
  yield poller.poll();
@@ -19555,7 +19555,7 @@ class AgentPoolsImpl {
19555
19555
  * @param options The options parameters.
19556
19556
  */
19557
19557
  beginDeleteAndWait(resourceGroupName, kubernetesClusterName, agentPoolName, options) {
19558
- return tslib.__awaiter(this, undefined, undefined, function* () {
19558
+ return tslib.__awaiter(this, void 0, void 0, function* () {
19559
19559
  const poller = yield this.beginDelete(resourceGroupName, kubernetesClusterName, agentPoolName, options);
19560
19560
  return poller.pollUntilDone();
19561
19561
  });
@@ -19569,17 +19569,17 @@ class AgentPoolsImpl {
19569
19569
  * @param options The options parameters.
19570
19570
  */
19571
19571
  beginUpdate(resourceGroupName, kubernetesClusterName, agentPoolName, options) {
19572
- return tslib.__awaiter(this, undefined, undefined, function* () {
19573
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
19572
+ return tslib.__awaiter(this, void 0, void 0, function* () {
19573
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
19574
19574
  return this.client.sendOperationRequest(args, spec);
19575
19575
  });
19576
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
19576
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
19577
19577
  var _a;
19578
19578
  let currentRawResponse = undefined;
19579
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
19579
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
19580
19580
  const callback = (rawResponse, flatResponse) => {
19581
19581
  currentRawResponse = rawResponse;
19582
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
19582
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
19583
19583
  };
19584
19584
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
19585
19585
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -19603,8 +19603,8 @@ class AgentPoolsImpl {
19603
19603
  spec: updateOperationSpec$2,
19604
19604
  });
19605
19605
  const poller = yield coreLro.createHttpPoller(lro, {
19606
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
19607
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
19606
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
19607
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
19608
19608
  resourceLocationConfig: "azure-async-operation",
19609
19609
  });
19610
19610
  yield poller.poll();
@@ -19620,7 +19620,7 @@ class AgentPoolsImpl {
19620
19620
  * @param options The options parameters.
19621
19621
  */
19622
19622
  beginUpdateAndWait(resourceGroupName, kubernetesClusterName, agentPoolName, options) {
19623
- return tslib.__awaiter(this, undefined, undefined, function* () {
19623
+ return tslib.__awaiter(this, void 0, void 0, function* () {
19624
19624
  const poller = yield this.beginUpdate(resourceGroupName, kubernetesClusterName, agentPoolName, options);
19625
19625
  return poller.pollUntilDone();
19626
19626
  });
@@ -19834,7 +19834,7 @@ class KubernetesClusterFeaturesImpl {
19834
19834
  return this;
19835
19835
  },
19836
19836
  byPage: (settings) => {
19837
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
19837
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
19838
19838
  throw new Error("maxPageSize is not supported by this operation.");
19839
19839
  }
19840
19840
  return this.listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options, settings);
@@ -19844,7 +19844,7 @@ class KubernetesClusterFeaturesImpl {
19844
19844
  listByKubernetesClusterPagingPage(resourceGroupName, kubernetesClusterName, options, settings) {
19845
19845
  return tslib.__asyncGenerator(this, arguments, function* listByKubernetesClusterPagingPage_1() {
19846
19846
  let result;
19847
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
19847
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
19848
19848
  if (!continuationToken) {
19849
19849
  result = yield tslib.__await(this._listByKubernetesCluster(resourceGroupName, kubernetesClusterName, options));
19850
19850
  let page = result.value || [];
@@ -19910,17 +19910,17 @@ class KubernetesClusterFeaturesImpl {
19910
19910
  * @param options The options parameters.
19911
19911
  */
19912
19912
  beginCreateOrUpdate(resourceGroupName, kubernetesClusterName, featureName, kubernetesClusterFeatureParameters, options) {
19913
- return tslib.__awaiter(this, undefined, undefined, function* () {
19914
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
19913
+ return tslib.__awaiter(this, void 0, void 0, function* () {
19914
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
19915
19915
  return this.client.sendOperationRequest(args, spec);
19916
19916
  });
19917
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
19917
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
19918
19918
  var _a;
19919
19919
  let currentRawResponse = undefined;
19920
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
19920
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
19921
19921
  const callback = (rawResponse, flatResponse) => {
19922
19922
  currentRawResponse = rawResponse;
19923
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
19923
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
19924
19924
  };
19925
19925
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
19926
19926
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -19945,8 +19945,8 @@ class KubernetesClusterFeaturesImpl {
19945
19945
  spec: createOrUpdateOperationSpec$1,
19946
19946
  });
19947
19947
  const poller = yield coreLro.createHttpPoller(lro, {
19948
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
19949
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
19948
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
19949
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
19950
19950
  resourceLocationConfig: "azure-async-operation",
19951
19951
  });
19952
19952
  yield poller.poll();
@@ -19963,7 +19963,7 @@ class KubernetesClusterFeaturesImpl {
19963
19963
  * @param options The options parameters.
19964
19964
  */
19965
19965
  beginCreateOrUpdateAndWait(resourceGroupName, kubernetesClusterName, featureName, kubernetesClusterFeatureParameters, options) {
19966
- return tslib.__awaiter(this, undefined, undefined, function* () {
19966
+ return tslib.__awaiter(this, void 0, void 0, function* () {
19967
19967
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, kubernetesClusterName, featureName, kubernetesClusterFeatureParameters, options);
19968
19968
  return poller.pollUntilDone();
19969
19969
  });
@@ -19976,17 +19976,17 @@ class KubernetesClusterFeaturesImpl {
19976
19976
  * @param options The options parameters.
19977
19977
  */
19978
19978
  beginDelete(resourceGroupName, kubernetesClusterName, featureName, options) {
19979
- return tslib.__awaiter(this, undefined, undefined, function* () {
19980
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
19979
+ return tslib.__awaiter(this, void 0, void 0, function* () {
19980
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
19981
19981
  return this.client.sendOperationRequest(args, spec);
19982
19982
  });
19983
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
19983
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
19984
19984
  var _a;
19985
19985
  let currentRawResponse = undefined;
19986
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
19986
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
19987
19987
  const callback = (rawResponse, flatResponse) => {
19988
19988
  currentRawResponse = rawResponse;
19989
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
19989
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
19990
19990
  };
19991
19991
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
19992
19992
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -20005,8 +20005,8 @@ class KubernetesClusterFeaturesImpl {
20005
20005
  spec: deleteOperationSpec$1,
20006
20006
  });
20007
20007
  const poller = yield coreLro.createHttpPoller(lro, {
20008
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
20009
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
20008
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
20009
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
20010
20010
  resourceLocationConfig: "location",
20011
20011
  });
20012
20012
  yield poller.poll();
@@ -20021,7 +20021,7 @@ class KubernetesClusterFeaturesImpl {
20021
20021
  * @param options The options parameters.
20022
20022
  */
20023
20023
  beginDeleteAndWait(resourceGroupName, kubernetesClusterName, featureName, options) {
20024
- return tslib.__awaiter(this, undefined, undefined, function* () {
20024
+ return tslib.__awaiter(this, void 0, void 0, function* () {
20025
20025
  const poller = yield this.beginDelete(resourceGroupName, kubernetesClusterName, featureName, options);
20026
20026
  return poller.pollUntilDone();
20027
20027
  });
@@ -20034,17 +20034,17 @@ class KubernetesClusterFeaturesImpl {
20034
20034
  * @param options The options parameters.
20035
20035
  */
20036
20036
  beginUpdate(resourceGroupName, kubernetesClusterName, featureName, options) {
20037
- return tslib.__awaiter(this, undefined, undefined, function* () {
20038
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
20037
+ return tslib.__awaiter(this, void 0, void 0, function* () {
20038
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
20039
20039
  return this.client.sendOperationRequest(args, spec);
20040
20040
  });
20041
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
20041
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
20042
20042
  var _a;
20043
20043
  let currentRawResponse = undefined;
20044
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
20044
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
20045
20045
  const callback = (rawResponse, flatResponse) => {
20046
20046
  currentRawResponse = rawResponse;
20047
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
20047
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
20048
20048
  };
20049
20049
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
20050
20050
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -20063,8 +20063,8 @@ class KubernetesClusterFeaturesImpl {
20063
20063
  spec: updateOperationSpec$1,
20064
20064
  });
20065
20065
  const poller = yield coreLro.createHttpPoller(lro, {
20066
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
20067
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
20066
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
20067
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
20068
20068
  resourceLocationConfig: "azure-async-operation",
20069
20069
  });
20070
20070
  yield poller.poll();
@@ -20079,7 +20079,7 @@ class KubernetesClusterFeaturesImpl {
20079
20079
  * @param options The options parameters.
20080
20080
  */
20081
20081
  beginUpdateAndWait(resourceGroupName, kubernetesClusterName, featureName, options) {
20082
- return tslib.__awaiter(this, undefined, undefined, function* () {
20082
+ return tslib.__awaiter(this, void 0, void 0, function* () {
20083
20083
  const poller = yield this.beginUpdate(resourceGroupName, kubernetesClusterName, featureName, options);
20084
20084
  return poller.pollUntilDone();
20085
20085
  });
@@ -20293,7 +20293,7 @@ class ConsolesImpl {
20293
20293
  return this;
20294
20294
  },
20295
20295
  byPage: (settings) => {
20296
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
20296
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
20297
20297
  throw new Error("maxPageSize is not supported by this operation.");
20298
20298
  }
20299
20299
  return this.listByVirtualMachinePagingPage(resourceGroupName, virtualMachineName, options, settings);
@@ -20303,7 +20303,7 @@ class ConsolesImpl {
20303
20303
  listByVirtualMachinePagingPage(resourceGroupName, virtualMachineName, options, settings) {
20304
20304
  return tslib.__asyncGenerator(this, arguments, function* listByVirtualMachinePagingPage_1() {
20305
20305
  let result;
20306
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
20306
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
20307
20307
  if (!continuationToken) {
20308
20308
  result = yield tslib.__await(this._listByVirtualMachine(resourceGroupName, virtualMachineName, options));
20309
20309
  let page = result.value || [];
@@ -20369,17 +20369,17 @@ class ConsolesImpl {
20369
20369
  * @param options The options parameters.
20370
20370
  */
20371
20371
  beginCreateOrUpdate(resourceGroupName, virtualMachineName, consoleName, consoleParameters, options) {
20372
- return tslib.__awaiter(this, undefined, undefined, function* () {
20373
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
20372
+ return tslib.__awaiter(this, void 0, void 0, function* () {
20373
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
20374
20374
  return this.client.sendOperationRequest(args, spec);
20375
20375
  });
20376
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
20376
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
20377
20377
  var _a;
20378
20378
  let currentRawResponse = undefined;
20379
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
20379
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
20380
20380
  const callback = (rawResponse, flatResponse) => {
20381
20381
  currentRawResponse = rawResponse;
20382
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
20382
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
20383
20383
  };
20384
20384
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
20385
20385
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -20404,8 +20404,8 @@ class ConsolesImpl {
20404
20404
  spec: createOrUpdateOperationSpec,
20405
20405
  });
20406
20406
  const poller = yield coreLro.createHttpPoller(lro, {
20407
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
20408
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
20407
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
20408
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
20409
20409
  resourceLocationConfig: "azure-async-operation",
20410
20410
  });
20411
20411
  yield poller.poll();
@@ -20422,7 +20422,7 @@ class ConsolesImpl {
20422
20422
  * @param options The options parameters.
20423
20423
  */
20424
20424
  beginCreateOrUpdateAndWait(resourceGroupName, virtualMachineName, consoleName, consoleParameters, options) {
20425
- return tslib.__awaiter(this, undefined, undefined, function* () {
20425
+ return tslib.__awaiter(this, void 0, void 0, function* () {
20426
20426
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, virtualMachineName, consoleName, consoleParameters, options);
20427
20427
  return poller.pollUntilDone();
20428
20428
  });
@@ -20435,17 +20435,17 @@ class ConsolesImpl {
20435
20435
  * @param options The options parameters.
20436
20436
  */
20437
20437
  beginDelete(resourceGroupName, virtualMachineName, consoleName, options) {
20438
- return tslib.__awaiter(this, undefined, undefined, function* () {
20439
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
20438
+ return tslib.__awaiter(this, void 0, void 0, function* () {
20439
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
20440
20440
  return this.client.sendOperationRequest(args, spec);
20441
20441
  });
20442
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
20442
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
20443
20443
  var _a;
20444
20444
  let currentRawResponse = undefined;
20445
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
20445
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
20446
20446
  const callback = (rawResponse, flatResponse) => {
20447
20447
  currentRawResponse = rawResponse;
20448
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
20448
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
20449
20449
  };
20450
20450
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
20451
20451
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -20464,8 +20464,8 @@ class ConsolesImpl {
20464
20464
  spec: deleteOperationSpec,
20465
20465
  });
20466
20466
  const poller = yield coreLro.createHttpPoller(lro, {
20467
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
20468
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
20467
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
20468
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
20469
20469
  resourceLocationConfig: "location",
20470
20470
  });
20471
20471
  yield poller.poll();
@@ -20480,7 +20480,7 @@ class ConsolesImpl {
20480
20480
  * @param options The options parameters.
20481
20481
  */
20482
20482
  beginDeleteAndWait(resourceGroupName, virtualMachineName, consoleName, options) {
20483
- return tslib.__awaiter(this, undefined, undefined, function* () {
20483
+ return tslib.__awaiter(this, void 0, void 0, function* () {
20484
20484
  const poller = yield this.beginDelete(resourceGroupName, virtualMachineName, consoleName, options);
20485
20485
  return poller.pollUntilDone();
20486
20486
  });
@@ -20494,17 +20494,17 @@ class ConsolesImpl {
20494
20494
  * @param options The options parameters.
20495
20495
  */
20496
20496
  beginUpdate(resourceGroupName, virtualMachineName, consoleName, options) {
20497
- return tslib.__awaiter(this, undefined, undefined, function* () {
20498
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
20497
+ return tslib.__awaiter(this, void 0, void 0, function* () {
20498
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
20499
20499
  return this.client.sendOperationRequest(args, spec);
20500
20500
  });
20501
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
20501
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
20502
20502
  var _a;
20503
20503
  let currentRawResponse = undefined;
20504
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
20504
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
20505
20505
  const callback = (rawResponse, flatResponse) => {
20506
20506
  currentRawResponse = rawResponse;
20507
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
20507
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
20508
20508
  };
20509
20509
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
20510
20510
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -20523,8 +20523,8 @@ class ConsolesImpl {
20523
20523
  spec: updateOperationSpec,
20524
20524
  });
20525
20525
  const poller = yield coreLro.createHttpPoller(lro, {
20526
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
20527
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
20526
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
20527
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
20528
20528
  resourceLocationConfig: "azure-async-operation",
20529
20529
  });
20530
20530
  yield poller.poll();
@@ -20540,7 +20540,7 @@ class ConsolesImpl {
20540
20540
  * @param options The options parameters.
20541
20541
  */
20542
20542
  beginUpdateAndWait(resourceGroupName, virtualMachineName, consoleName, options) {
20543
- return tslib.__awaiter(this, undefined, undefined, function* () {
20543
+ return tslib.__awaiter(this, void 0, void 0, function* () {
20544
20544
  const poller = yield this.beginUpdate(resourceGroupName, virtualMachineName, consoleName, options);
20545
20545
  return poller.pollUntilDone();
20546
20546
  });
@@ -20756,10 +20756,10 @@ class NetworkCloud extends coreClient__namespace.ServiceClient {
20756
20756
  : `${packageDetails}`;
20757
20757
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
20758
20758
  userAgentPrefix,
20759
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
20759
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
20760
20760
  super(optionsWithDefaults);
20761
20761
  let bearerTokenAuthenticationPolicyFound = false;
20762
- if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
20762
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
20763
20763
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
20764
20764
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
20765
20765
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -20773,7 +20773,7 @@ class NetworkCloud extends coreClient__namespace.ServiceClient {
20773
20773
  });
20774
20774
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
20775
20775
  credential: credentials,
20776
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
20776
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
20777
20777
  challengeCallbacks: {
20778
20778
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
20779
20779
  },
@@ -20814,7 +20814,7 @@ class NetworkCloud extends coreClient__namespace.ServiceClient {
20814
20814
  const apiVersionPolicy = {
20815
20815
  name: "CustomApiVersionPolicy",
20816
20816
  sendRequest(request, next) {
20817
- return tslib.__awaiter(this, undefined, undefined, function* () {
20817
+ return tslib.__awaiter(this, void 0, void 0, function* () {
20818
20818
  const param = request.url.split("?");
20819
20819
  if (param.length > 1) {
20820
20820
  const newParams = param[1].split("&").map((item) => {