@azure/arm-servicefabric 3.0.1-alpha.20250103.1 → 3.0.1-alpha.20250106.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
47
47
  if (typeof page !== "object" || page === null) {
48
48
  return undefined;
49
49
  }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
51
51
  }
52
52
  function setContinuationToken(page, continuationToken) {
53
53
  var _a;
54
54
  if (typeof page !== "object" || page === null || !continuationToken) {
55
55
  return;
56
56
  }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -3457,7 +3457,7 @@ function createLroSpec(inputs) {
3457
3457
  sendInitialRequest: () => sendOperationFn(args, spec),
3458
3458
  sendPollRequest: (path, options) => {
3459
3459
  const restSpec = tslib.__rest(spec, ["requestBody"]);
3460
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
3460
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
3461
3461
  }
3462
3462
  };
3463
3463
  }
@@ -3495,7 +3495,7 @@ class ClustersImpl {
3495
3495
  return this;
3496
3496
  },
3497
3497
  byPage: (settings) => {
3498
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3498
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3499
3499
  throw new Error("maxPageSize is not supported by this operation.");
3500
3500
  }
3501
3501
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -3505,7 +3505,7 @@ class ClustersImpl {
3505
3505
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
3506
3506
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
3507
3507
  let result;
3508
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3508
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3509
3509
  if (!continuationToken) {
3510
3510
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
3511
3511
  let page = result.value || [];
@@ -3557,7 +3557,7 @@ class ClustersImpl {
3557
3557
  return this;
3558
3558
  },
3559
3559
  byPage: (settings) => {
3560
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3560
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3561
3561
  throw new Error("maxPageSize is not supported by this operation.");
3562
3562
  }
3563
3563
  return this.listPagingPage(options, settings);
@@ -3567,7 +3567,7 @@ class ClustersImpl {
3567
3567
  listPagingPage(options, settings) {
3568
3568
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3569
3569
  let result;
3570
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3570
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3571
3571
  if (!continuationToken) {
3572
3572
  result = yield tslib.__await(this._list(options));
3573
3573
  let page = result.value || [];
@@ -3622,17 +3622,17 @@ class ClustersImpl {
3622
3622
  * @param options The options parameters.
3623
3623
  */
3624
3624
  beginCreateOrUpdate(resourceGroupName, clusterName, parameters, options) {
3625
- return tslib.__awaiter(this, void 0, void 0, function* () {
3626
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3625
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3626
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3627
3627
  return this.client.sendOperationRequest(args, spec);
3628
3628
  });
3629
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3629
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3630
3630
  var _a;
3631
3631
  let currentRawResponse = undefined;
3632
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3632
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3633
3633
  const callback = (rawResponse, flatResponse) => {
3634
3634
  currentRawResponse = rawResponse;
3635
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3635
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3636
3636
  };
3637
3637
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3638
3638
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3651,8 +3651,8 @@ class ClustersImpl {
3651
3651
  spec: createOrUpdateOperationSpec$4
3652
3652
  });
3653
3653
  const poller = yield coreLro.createHttpPoller(lro, {
3654
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3655
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3654
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3655
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3656
3656
  });
3657
3657
  yield poller.poll();
3658
3658
  return poller;
@@ -3666,7 +3666,7 @@ class ClustersImpl {
3666
3666
  * @param options The options parameters.
3667
3667
  */
3668
3668
  beginCreateOrUpdateAndWait(resourceGroupName, clusterName, parameters, options) {
3669
- return tslib.__awaiter(this, void 0, void 0, function* () {
3669
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3670
3670
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, parameters, options);
3671
3671
  return poller.pollUntilDone();
3672
3672
  });
@@ -3680,17 +3680,17 @@ class ClustersImpl {
3680
3680
  * @param options The options parameters.
3681
3681
  */
3682
3682
  beginUpdate(resourceGroupName, clusterName, parameters, options) {
3683
- return tslib.__awaiter(this, void 0, void 0, function* () {
3684
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3683
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3684
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3685
3685
  return this.client.sendOperationRequest(args, spec);
3686
3686
  });
3687
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3687
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3688
3688
  var _a;
3689
3689
  let currentRawResponse = undefined;
3690
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3690
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3691
3691
  const callback = (rawResponse, flatResponse) => {
3692
3692
  currentRawResponse = rawResponse;
3693
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3693
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3694
3694
  };
3695
3695
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3696
3696
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3709,8 +3709,8 @@ class ClustersImpl {
3709
3709
  spec: updateOperationSpec$2
3710
3710
  });
3711
3711
  const poller = yield coreLro.createHttpPoller(lro, {
3712
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3713
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3712
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3713
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3714
3714
  });
3715
3715
  yield poller.poll();
3716
3716
  return poller;
@@ -3725,7 +3725,7 @@ class ClustersImpl {
3725
3725
  * @param options The options parameters.
3726
3726
  */
3727
3727
  beginUpdateAndWait(resourceGroupName, clusterName, parameters, options) {
3728
- return tslib.__awaiter(this, void 0, void 0, function* () {
3728
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3729
3729
  const poller = yield this.beginUpdate(resourceGroupName, clusterName, parameters, options);
3730
3730
  return poller.pollUntilDone();
3731
3731
  });
@@ -4162,7 +4162,7 @@ class OperationsImpl {
4162
4162
  return this;
4163
4163
  },
4164
4164
  byPage: (settings) => {
4165
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4165
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4166
4166
  throw new Error("maxPageSize is not supported by this operation.");
4167
4167
  }
4168
4168
  return this.listPagingPage(options, settings);
@@ -4172,7 +4172,7 @@ class OperationsImpl {
4172
4172
  listPagingPage(options, settings) {
4173
4173
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4174
4174
  let result;
4175
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4175
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4176
4176
  if (!continuationToken) {
4177
4177
  result = yield tslib.__await(this._list(options));
4178
4178
  let page = result.value || [];
@@ -4293,7 +4293,7 @@ class ApplicationTypesImpl {
4293
4293
  return this;
4294
4294
  },
4295
4295
  byPage: (settings) => {
4296
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4296
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4297
4297
  throw new Error("maxPageSize is not supported by this operation.");
4298
4298
  }
4299
4299
  return this.listPagingPage(resourceGroupName, clusterName, options, settings);
@@ -4303,7 +4303,7 @@ class ApplicationTypesImpl {
4303
4303
  listPagingPage(resourceGroupName, clusterName, options, settings) {
4304
4304
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4305
4305
  let result;
4306
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4306
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4307
4307
  if (!continuationToken) {
4308
4308
  result = yield tslib.__await(this._list(resourceGroupName, clusterName, options));
4309
4309
  let page = result.value || [];
@@ -4376,17 +4376,17 @@ class ApplicationTypesImpl {
4376
4376
  * @param options The options parameters.
4377
4377
  */
4378
4378
  beginDelete(resourceGroupName, clusterName, applicationTypeName, options) {
4379
- return tslib.__awaiter(this, void 0, void 0, function* () {
4380
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4379
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4380
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4381
4381
  return this.client.sendOperationRequest(args, spec);
4382
4382
  });
4383
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4383
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4384
4384
  var _a;
4385
4385
  let currentRawResponse = undefined;
4386
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4386
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4387
4387
  const callback = (rawResponse, flatResponse) => {
4388
4388
  currentRawResponse = rawResponse;
4389
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4389
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4390
4390
  };
4391
4391
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4392
4392
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4405,8 +4405,8 @@ class ApplicationTypesImpl {
4405
4405
  spec: deleteOperationSpec$3
4406
4406
  });
4407
4407
  const poller = yield coreLro.createHttpPoller(lro, {
4408
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4409
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4408
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4409
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4410
4410
  });
4411
4411
  yield poller.poll();
4412
4412
  return poller;
@@ -4420,7 +4420,7 @@ class ApplicationTypesImpl {
4420
4420
  * @param options The options parameters.
4421
4421
  */
4422
4422
  beginDeleteAndWait(resourceGroupName, clusterName, applicationTypeName, options) {
4423
- return tslib.__awaiter(this, void 0, void 0, function* () {
4423
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4424
4424
  const poller = yield this.beginDelete(resourceGroupName, clusterName, applicationTypeName, options);
4425
4425
  return poller.pollUntilDone();
4426
4426
  });
@@ -4595,7 +4595,7 @@ class ApplicationTypeVersionsImpl {
4595
4595
  return this;
4596
4596
  },
4597
4597
  byPage: (settings) => {
4598
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4598
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4599
4599
  throw new Error("maxPageSize is not supported by this operation.");
4600
4600
  }
4601
4601
  return this.listPagingPage(resourceGroupName, clusterName, applicationTypeName, options, settings);
@@ -4605,7 +4605,7 @@ class ApplicationTypeVersionsImpl {
4605
4605
  listPagingPage(resourceGroupName, clusterName, applicationTypeName, options, settings) {
4606
4606
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4607
4607
  let result;
4608
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4608
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4609
4609
  if (!continuationToken) {
4610
4610
  result = yield tslib.__await(this._list(resourceGroupName, clusterName, applicationTypeName, options));
4611
4611
  let page = result.value || [];
@@ -4664,17 +4664,17 @@ class ApplicationTypeVersionsImpl {
4664
4664
  * @param options The options parameters.
4665
4665
  */
4666
4666
  beginCreateOrUpdate(resourceGroupName, clusterName, applicationTypeName, version, parameters, options) {
4667
- return tslib.__awaiter(this, void 0, void 0, function* () {
4668
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4667
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4668
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4669
4669
  return this.client.sendOperationRequest(args, spec);
4670
4670
  });
4671
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4671
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4672
4672
  var _a;
4673
4673
  let currentRawResponse = undefined;
4674
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4674
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4675
4675
  const callback = (rawResponse, flatResponse) => {
4676
4676
  currentRawResponse = rawResponse;
4677
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4677
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4678
4678
  };
4679
4679
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4680
4680
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4700,8 +4700,8 @@ class ApplicationTypeVersionsImpl {
4700
4700
  spec: createOrUpdateOperationSpec$2
4701
4701
  });
4702
4702
  const poller = yield coreLro.createHttpPoller(lro, {
4703
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4704
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4703
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4704
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4705
4705
  });
4706
4706
  yield poller.poll();
4707
4707
  return poller;
@@ -4717,7 +4717,7 @@ class ApplicationTypeVersionsImpl {
4717
4717
  * @param options The options parameters.
4718
4718
  */
4719
4719
  beginCreateOrUpdateAndWait(resourceGroupName, clusterName, applicationTypeName, version, parameters, options) {
4720
- return tslib.__awaiter(this, void 0, void 0, function* () {
4720
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4721
4721
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, applicationTypeName, version, parameters, options);
4722
4722
  return poller.pollUntilDone();
4723
4723
  });
@@ -4731,17 +4731,17 @@ class ApplicationTypeVersionsImpl {
4731
4731
  * @param options The options parameters.
4732
4732
  */
4733
4733
  beginDelete(resourceGroupName, clusterName, applicationTypeName, version, options) {
4734
- return tslib.__awaiter(this, void 0, void 0, function* () {
4735
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4734
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4735
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4736
4736
  return this.client.sendOperationRequest(args, spec);
4737
4737
  });
4738
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4738
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4739
4739
  var _a;
4740
4740
  let currentRawResponse = undefined;
4741
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4741
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4742
4742
  const callback = (rawResponse, flatResponse) => {
4743
4743
  currentRawResponse = rawResponse;
4744
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4744
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4745
4745
  };
4746
4746
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4747
4747
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4766,8 +4766,8 @@ class ApplicationTypeVersionsImpl {
4766
4766
  spec: deleteOperationSpec$2
4767
4767
  });
4768
4768
  const poller = yield coreLro.createHttpPoller(lro, {
4769
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4770
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4769
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4770
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4771
4771
  });
4772
4772
  yield poller.poll();
4773
4773
  return poller;
@@ -4782,7 +4782,7 @@ class ApplicationTypeVersionsImpl {
4782
4782
  * @param options The options parameters.
4783
4783
  */
4784
4784
  beginDeleteAndWait(resourceGroupName, clusterName, applicationTypeName, version, options) {
4785
- return tslib.__awaiter(this, void 0, void 0, function* () {
4785
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4786
4786
  const poller = yield this.beginDelete(resourceGroupName, clusterName, applicationTypeName, version, options);
4787
4787
  return poller.pollUntilDone();
4788
4788
  });
@@ -4978,7 +4978,7 @@ class ApplicationsImpl {
4978
4978
  return this;
4979
4979
  },
4980
4980
  byPage: (settings) => {
4981
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4981
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4982
4982
  throw new Error("maxPageSize is not supported by this operation.");
4983
4983
  }
4984
4984
  return this.listPagingPage(resourceGroupName, clusterName, options, settings);
@@ -4988,7 +4988,7 @@ class ApplicationsImpl {
4988
4988
  listPagingPage(resourceGroupName, clusterName, options, settings) {
4989
4989
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4990
4990
  let result;
4991
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4991
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4992
4992
  if (!continuationToken) {
4993
4993
  result = yield tslib.__await(this._list(resourceGroupName, clusterName, options));
4994
4994
  let page = result.value || [];
@@ -5045,17 +5045,17 @@ class ApplicationsImpl {
5045
5045
  * @param options The options parameters.
5046
5046
  */
5047
5047
  beginCreateOrUpdate(resourceGroupName, clusterName, applicationName, parameters, options) {
5048
- return tslib.__awaiter(this, void 0, void 0, function* () {
5049
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5048
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5049
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5050
5050
  return this.client.sendOperationRequest(args, spec);
5051
5051
  });
5052
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5052
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5053
5053
  var _a;
5054
5054
  let currentRawResponse = undefined;
5055
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5055
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5056
5056
  const callback = (rawResponse, flatResponse) => {
5057
5057
  currentRawResponse = rawResponse;
5058
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5058
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5059
5059
  };
5060
5060
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5061
5061
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5080,8 +5080,8 @@ class ApplicationsImpl {
5080
5080
  spec: createOrUpdateOperationSpec$1
5081
5081
  });
5082
5082
  const poller = yield coreLro.createHttpPoller(lro, {
5083
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5084
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5083
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5084
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5085
5085
  });
5086
5086
  yield poller.poll();
5087
5087
  return poller;
@@ -5096,7 +5096,7 @@ class ApplicationsImpl {
5096
5096
  * @param options The options parameters.
5097
5097
  */
5098
5098
  beginCreateOrUpdateAndWait(resourceGroupName, clusterName, applicationName, parameters, options) {
5099
- return tslib.__awaiter(this, void 0, void 0, function* () {
5099
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5100
5100
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, applicationName, parameters, options);
5101
5101
  return poller.pollUntilDone();
5102
5102
  });
@@ -5110,17 +5110,17 @@ class ApplicationsImpl {
5110
5110
  * @param options The options parameters.
5111
5111
  */
5112
5112
  beginUpdate(resourceGroupName, clusterName, applicationName, parameters, options) {
5113
- return tslib.__awaiter(this, void 0, void 0, function* () {
5114
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5113
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5114
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5115
5115
  return this.client.sendOperationRequest(args, spec);
5116
5116
  });
5117
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5117
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5118
5118
  var _a;
5119
5119
  let currentRawResponse = undefined;
5120
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5120
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5121
5121
  const callback = (rawResponse, flatResponse) => {
5122
5122
  currentRawResponse = rawResponse;
5123
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5123
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5124
5124
  };
5125
5125
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5126
5126
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5145,8 +5145,8 @@ class ApplicationsImpl {
5145
5145
  spec: updateOperationSpec$1
5146
5146
  });
5147
5147
  const poller = yield coreLro.createHttpPoller(lro, {
5148
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5149
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5148
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5149
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5150
5150
  });
5151
5151
  yield poller.poll();
5152
5152
  return poller;
@@ -5161,7 +5161,7 @@ class ApplicationsImpl {
5161
5161
  * @param options The options parameters.
5162
5162
  */
5163
5163
  beginUpdateAndWait(resourceGroupName, clusterName, applicationName, parameters, options) {
5164
- return tslib.__awaiter(this, void 0, void 0, function* () {
5164
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5165
5165
  const poller = yield this.beginUpdate(resourceGroupName, clusterName, applicationName, parameters, options);
5166
5166
  return poller.pollUntilDone();
5167
5167
  });
@@ -5174,17 +5174,17 @@ class ApplicationsImpl {
5174
5174
  * @param options The options parameters.
5175
5175
  */
5176
5176
  beginDelete(resourceGroupName, clusterName, applicationName, options) {
5177
- return tslib.__awaiter(this, void 0, void 0, function* () {
5178
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5177
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5178
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5179
5179
  return this.client.sendOperationRequest(args, spec);
5180
5180
  });
5181
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5181
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5182
5182
  var _a;
5183
5183
  let currentRawResponse = undefined;
5184
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5184
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5185
5185
  const callback = (rawResponse, flatResponse) => {
5186
5186
  currentRawResponse = rawResponse;
5187
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5187
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5188
5188
  };
5189
5189
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5190
5190
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5203,8 +5203,8 @@ class ApplicationsImpl {
5203
5203
  spec: deleteOperationSpec$1
5204
5204
  });
5205
5205
  const poller = yield coreLro.createHttpPoller(lro, {
5206
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5207
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5206
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5207
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5208
5208
  });
5209
5209
  yield poller.poll();
5210
5210
  return poller;
@@ -5218,7 +5218,7 @@ class ApplicationsImpl {
5218
5218
  * @param options The options parameters.
5219
5219
  */
5220
5220
  beginDeleteAndWait(resourceGroupName, clusterName, applicationName, options) {
5221
- return tslib.__awaiter(this, void 0, void 0, function* () {
5221
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5222
5222
  const poller = yield this.beginDelete(resourceGroupName, clusterName, applicationName, options);
5223
5223
  return poller.pollUntilDone();
5224
5224
  });
@@ -5435,7 +5435,7 @@ class ServicesImpl {
5435
5435
  return this;
5436
5436
  },
5437
5437
  byPage: (settings) => {
5438
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5438
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5439
5439
  throw new Error("maxPageSize is not supported by this operation.");
5440
5440
  }
5441
5441
  return this.listPagingPage(resourceGroupName, clusterName, applicationName, options, settings);
@@ -5445,7 +5445,7 @@ class ServicesImpl {
5445
5445
  listPagingPage(resourceGroupName, clusterName, applicationName, options, settings) {
5446
5446
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
5447
5447
  let result;
5448
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5448
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5449
5449
  if (!continuationToken) {
5450
5450
  result = yield tslib.__await(this._list(resourceGroupName, clusterName, applicationName, options));
5451
5451
  let page = result.value || [];
@@ -5506,17 +5506,17 @@ class ServicesImpl {
5506
5506
  * @param options The options parameters.
5507
5507
  */
5508
5508
  beginCreateOrUpdate(resourceGroupName, clusterName, applicationName, serviceName, parameters, options) {
5509
- return tslib.__awaiter(this, void 0, void 0, function* () {
5510
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5509
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5510
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5511
5511
  return this.client.sendOperationRequest(args, spec);
5512
5512
  });
5513
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5513
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5514
5514
  var _a;
5515
5515
  let currentRawResponse = undefined;
5516
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5516
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5517
5517
  const callback = (rawResponse, flatResponse) => {
5518
5518
  currentRawResponse = rawResponse;
5519
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5519
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5520
5520
  };
5521
5521
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5522
5522
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5542,8 +5542,8 @@ class ServicesImpl {
5542
5542
  spec: createOrUpdateOperationSpec
5543
5543
  });
5544
5544
  const poller = yield coreLro.createHttpPoller(lro, {
5545
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5546
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5545
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5546
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5547
5547
  });
5548
5548
  yield poller.poll();
5549
5549
  return poller;
@@ -5560,7 +5560,7 @@ class ServicesImpl {
5560
5560
  * @param options The options parameters.
5561
5561
  */
5562
5562
  beginCreateOrUpdateAndWait(resourceGroupName, clusterName, applicationName, serviceName, parameters, options) {
5563
- return tslib.__awaiter(this, void 0, void 0, function* () {
5563
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5564
5564
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, applicationName, serviceName, parameters, options);
5565
5565
  return poller.pollUntilDone();
5566
5566
  });
@@ -5576,17 +5576,17 @@ class ServicesImpl {
5576
5576
  * @param options The options parameters.
5577
5577
  */
5578
5578
  beginUpdate(resourceGroupName, clusterName, applicationName, serviceName, parameters, options) {
5579
- return tslib.__awaiter(this, void 0, void 0, function* () {
5580
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5579
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5580
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5581
5581
  return this.client.sendOperationRequest(args, spec);
5582
5582
  });
5583
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5583
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5584
5584
  var _a;
5585
5585
  let currentRawResponse = undefined;
5586
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5586
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5587
5587
  const callback = (rawResponse, flatResponse) => {
5588
5588
  currentRawResponse = rawResponse;
5589
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5589
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5590
5590
  };
5591
5591
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5592
5592
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5612,8 +5612,8 @@ class ServicesImpl {
5612
5612
  spec: updateOperationSpec
5613
5613
  });
5614
5614
  const poller = yield coreLro.createHttpPoller(lro, {
5615
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5616
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5615
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5616
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5617
5617
  });
5618
5618
  yield poller.poll();
5619
5619
  return poller;
@@ -5630,7 +5630,7 @@ class ServicesImpl {
5630
5630
  * @param options The options parameters.
5631
5631
  */
5632
5632
  beginUpdateAndWait(resourceGroupName, clusterName, applicationName, serviceName, parameters, options) {
5633
- return tslib.__awaiter(this, void 0, void 0, function* () {
5633
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5634
5634
  const poller = yield this.beginUpdate(resourceGroupName, clusterName, applicationName, serviceName, parameters, options);
5635
5635
  return poller.pollUntilDone();
5636
5636
  });
@@ -5645,17 +5645,17 @@ class ServicesImpl {
5645
5645
  * @param options The options parameters.
5646
5646
  */
5647
5647
  beginDelete(resourceGroupName, clusterName, applicationName, serviceName, options) {
5648
- return tslib.__awaiter(this, void 0, void 0, function* () {
5649
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5648
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5649
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5650
5650
  return this.client.sendOperationRequest(args, spec);
5651
5651
  });
5652
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5652
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5653
5653
  var _a;
5654
5654
  let currentRawResponse = undefined;
5655
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5655
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5656
5656
  const callback = (rawResponse, flatResponse) => {
5657
5657
  currentRawResponse = rawResponse;
5658
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5658
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5659
5659
  };
5660
5660
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5661
5661
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5680,8 +5680,8 @@ class ServicesImpl {
5680
5680
  spec: deleteOperationSpec
5681
5681
  });
5682
5682
  const poller = yield coreLro.createHttpPoller(lro, {
5683
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5684
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5683
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5684
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5685
5685
  });
5686
5686
  yield poller.poll();
5687
5687
  return poller;
@@ -5697,7 +5697,7 @@ class ServicesImpl {
5697
5697
  * @param options The options parameters.
5698
5698
  */
5699
5699
  beginDeleteAndWait(resourceGroupName, clusterName, applicationName, serviceName, options) {
5700
- return tslib.__awaiter(this, void 0, void 0, function* () {
5700
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5701
5701
  const poller = yield this.beginDelete(resourceGroupName, clusterName, applicationName, serviceName, options);
5702
5702
  return poller.pollUntilDone();
5703
5703
  });
@@ -5923,10 +5923,10 @@ class ServiceFabricManagementClient extends coreClient__namespace.ServiceClient
5923
5923
  : `${packageDetails}`;
5924
5924
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
5925
5925
  userAgentPrefix
5926
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
5926
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
5927
5927
  super(optionsWithDefaults);
5928
5928
  let bearerTokenAuthenticationPolicyFound = false;
5929
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
5929
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
5930
5930
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
5931
5931
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
5932
5932
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -5940,7 +5940,7 @@ class ServiceFabricManagementClient extends coreClient__namespace.ServiceClient
5940
5940
  });
5941
5941
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
5942
5942
  credential: credentials,
5943
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
5943
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
5944
5944
  challengeCallbacks: {
5945
5945
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
5946
5946
  }
@@ -5968,7 +5968,7 @@ class ServiceFabricManagementClient extends coreClient__namespace.ServiceClient
5968
5968
  const apiVersionPolicy = {
5969
5969
  name: "CustomApiVersionPolicy",
5970
5970
  sendRequest(request, next) {
5971
- return tslib.__awaiter(this, void 0, void 0, function* () {
5971
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5972
5972
  const param = request.url.split("?");
5973
5973
  if (param.length > 1) {
5974
5974
  const newParams = param[1].split("&").map((item) => {