@azure/arm-resources 5.2.1-alpha.20250210.1 → 5.2.1-alpha.20250211.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
  }
@@ -3376,7 +3376,7 @@ class OperationsImpl {
3376
3376
  return this;
3377
3377
  },
3378
3378
  byPage: (settings) => {
3379
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3379
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3380
3380
  throw new Error("maxPageSize is not supported by this operation.");
3381
3381
  }
3382
3382
  return this.listPagingPage(options, settings);
@@ -3386,7 +3386,7 @@ class OperationsImpl {
3386
3386
  listPagingPage(options, settings) {
3387
3387
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3388
3388
  let result;
3389
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3389
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3390
3390
  if (!continuationToken) {
3391
3391
  result = yield tslib.__await(this._list(options));
3392
3392
  let page = result.value || [];
@@ -3481,7 +3481,7 @@ function createLroSpec(inputs) {
3481
3481
  sendInitialRequest: () => sendOperationFn(args, spec),
3482
3482
  sendPollRequest: (path, options) => {
3483
3483
  const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
3484
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
3484
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
3485
3485
  }
3486
3486
  };
3487
3487
  }
@@ -3518,7 +3518,7 @@ class DeploymentsImpl {
3518
3518
  return this;
3519
3519
  },
3520
3520
  byPage: (settings) => {
3521
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3521
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3522
3522
  throw new Error("maxPageSize is not supported by this operation.");
3523
3523
  }
3524
3524
  return this.listAtScopePagingPage(scope, options, settings);
@@ -3528,7 +3528,7 @@ class DeploymentsImpl {
3528
3528
  listAtScopePagingPage(scope, options, settings) {
3529
3529
  return tslib.__asyncGenerator(this, arguments, function* listAtScopePagingPage_1() {
3530
3530
  let result;
3531
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3531
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3532
3532
  if (!continuationToken) {
3533
3533
  result = yield tslib.__await(this._listAtScope(scope, options));
3534
3534
  let page = result.value || [];
@@ -3579,7 +3579,7 @@ class DeploymentsImpl {
3579
3579
  return this;
3580
3580
  },
3581
3581
  byPage: (settings) => {
3582
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3582
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3583
3583
  throw new Error("maxPageSize is not supported by this operation.");
3584
3584
  }
3585
3585
  return this.listAtTenantScopePagingPage(options, settings);
@@ -3589,7 +3589,7 @@ class DeploymentsImpl {
3589
3589
  listAtTenantScopePagingPage(options, settings) {
3590
3590
  return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopePagingPage_1() {
3591
3591
  let result;
3592
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3592
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3593
3593
  if (!continuationToken) {
3594
3594
  result = yield tslib.__await(this._listAtTenantScope(options));
3595
3595
  let page = result.value || [];
@@ -3641,7 +3641,7 @@ class DeploymentsImpl {
3641
3641
  return this;
3642
3642
  },
3643
3643
  byPage: (settings) => {
3644
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3644
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3645
3645
  throw new Error("maxPageSize is not supported by this operation.");
3646
3646
  }
3647
3647
  return this.listAtManagementGroupScopePagingPage(groupId, options, settings);
@@ -3651,7 +3651,7 @@ class DeploymentsImpl {
3651
3651
  listAtManagementGroupScopePagingPage(groupId, options, settings) {
3652
3652
  return tslib.__asyncGenerator(this, arguments, function* listAtManagementGroupScopePagingPage_1() {
3653
3653
  let result;
3654
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3654
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3655
3655
  if (!continuationToken) {
3656
3656
  result = yield tslib.__await(this._listAtManagementGroupScope(groupId, options));
3657
3657
  let page = result.value || [];
@@ -3702,7 +3702,7 @@ class DeploymentsImpl {
3702
3702
  return this;
3703
3703
  },
3704
3704
  byPage: (settings) => {
3705
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3705
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3706
3706
  throw new Error("maxPageSize is not supported by this operation.");
3707
3707
  }
3708
3708
  return this.listAtSubscriptionScopePagingPage(options, settings);
@@ -3712,7 +3712,7 @@ class DeploymentsImpl {
3712
3712
  listAtSubscriptionScopePagingPage(options, settings) {
3713
3713
  return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionScopePagingPage_1() {
3714
3714
  let result;
3715
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3715
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3716
3716
  if (!continuationToken) {
3717
3717
  result = yield tslib.__await(this._listAtSubscriptionScope(options));
3718
3718
  let page = result.value || [];
@@ -3765,7 +3765,7 @@ class DeploymentsImpl {
3765
3765
  return this;
3766
3766
  },
3767
3767
  byPage: (settings) => {
3768
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3768
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3769
3769
  throw new Error("maxPageSize is not supported by this operation.");
3770
3770
  }
3771
3771
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -3775,7 +3775,7 @@ class DeploymentsImpl {
3775
3775
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
3776
3776
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
3777
3777
  let result;
3778
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3778
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3779
3779
  if (!continuationToken) {
3780
3780
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
3781
3781
  let page = result.value || [];
@@ -3825,17 +3825,17 @@ class DeploymentsImpl {
3825
3825
  * @param options The options parameters.
3826
3826
  */
3827
3827
  beginDeleteAtScope(scope, deploymentName, options) {
3828
- return tslib.__awaiter(this, undefined, undefined, function* () {
3829
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3828
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3829
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3830
3830
  return this.client.sendOperationRequest(args, spec);
3831
3831
  });
3832
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3832
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3833
3833
  var _a;
3834
3834
  let currentRawResponse = undefined;
3835
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3835
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3836
3836
  const callback = (rawResponse, flatResponse) => {
3837
3837
  currentRawResponse = rawResponse;
3838
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3838
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3839
3839
  };
3840
3840
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3841
3841
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3854,8 +3854,8 @@ class DeploymentsImpl {
3854
3854
  spec: deleteAtScopeOperationSpec$1
3855
3855
  });
3856
3856
  const poller = yield coreLro.createHttpPoller(lro, {
3857
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3858
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3857
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3858
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3859
3859
  });
3860
3860
  yield poller.poll();
3861
3861
  return poller;
@@ -3874,7 +3874,7 @@ class DeploymentsImpl {
3874
3874
  * @param options The options parameters.
3875
3875
  */
3876
3876
  beginDeleteAtScopeAndWait(scope, deploymentName, options) {
3877
- return tslib.__awaiter(this, undefined, undefined, function* () {
3877
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3878
3878
  const poller = yield this.beginDeleteAtScope(scope, deploymentName, options);
3879
3879
  return poller.pollUntilDone();
3880
3880
  });
@@ -3896,17 +3896,17 @@ class DeploymentsImpl {
3896
3896
  * @param options The options parameters.
3897
3897
  */
3898
3898
  beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options) {
3899
- return tslib.__awaiter(this, undefined, undefined, function* () {
3900
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3899
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3900
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3901
3901
  return this.client.sendOperationRequest(args, spec);
3902
3902
  });
3903
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3903
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3904
3904
  var _a;
3905
3905
  let currentRawResponse = undefined;
3906
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3906
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3907
3907
  const callback = (rawResponse, flatResponse) => {
3908
3908
  currentRawResponse = rawResponse;
3909
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3909
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3910
3910
  };
3911
3911
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3912
3912
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3925,8 +3925,8 @@ class DeploymentsImpl {
3925
3925
  spec: createOrUpdateAtScopeOperationSpec$1
3926
3926
  });
3927
3927
  const poller = yield coreLro.createHttpPoller(lro, {
3928
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3929
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3928
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3929
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3930
3930
  });
3931
3931
  yield poller.poll();
3932
3932
  return poller;
@@ -3940,7 +3940,7 @@ class DeploymentsImpl {
3940
3940
  * @param options The options parameters.
3941
3941
  */
3942
3942
  beginCreateOrUpdateAtScopeAndWait(scope, deploymentName, parameters, options) {
3943
- return tslib.__awaiter(this, undefined, undefined, function* () {
3943
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3944
3944
  const poller = yield this.beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options);
3945
3945
  return poller.pollUntilDone();
3946
3946
  });
@@ -3974,17 +3974,17 @@ class DeploymentsImpl {
3974
3974
  * @param options The options parameters.
3975
3975
  */
3976
3976
  beginValidateAtScope(scope, deploymentName, parameters, options) {
3977
- return tslib.__awaiter(this, undefined, undefined, function* () {
3978
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3977
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3978
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3979
3979
  return this.client.sendOperationRequest(args, spec);
3980
3980
  });
3981
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3981
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3982
3982
  var _a;
3983
3983
  let currentRawResponse = undefined;
3984
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3984
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3985
3985
  const callback = (rawResponse, flatResponse) => {
3986
3986
  currentRawResponse = rawResponse;
3987
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3987
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3988
3988
  };
3989
3989
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3990
3990
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4003,8 +4003,8 @@ class DeploymentsImpl {
4003
4003
  spec: validateAtScopeOperationSpec
4004
4004
  });
4005
4005
  const poller = yield coreLro.createHttpPoller(lro, {
4006
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4007
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4006
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4007
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4008
4008
  });
4009
4009
  yield poller.poll();
4010
4010
  return poller;
@@ -4019,7 +4019,7 @@ class DeploymentsImpl {
4019
4019
  * @param options The options parameters.
4020
4020
  */
4021
4021
  beginValidateAtScopeAndWait(scope, deploymentName, parameters, options) {
4022
- return tslib.__awaiter(this, undefined, undefined, function* () {
4022
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4023
4023
  const poller = yield this.beginValidateAtScope(scope, deploymentName, parameters, options);
4024
4024
  return poller.pollUntilDone();
4025
4025
  });
@@ -4053,17 +4053,17 @@ class DeploymentsImpl {
4053
4053
  * @param options The options parameters.
4054
4054
  */
4055
4055
  beginDeleteAtTenantScope(deploymentName, options) {
4056
- return tslib.__awaiter(this, undefined, undefined, function* () {
4057
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4056
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4057
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4058
4058
  return this.client.sendOperationRequest(args, spec);
4059
4059
  });
4060
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4060
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4061
4061
  var _a;
4062
4062
  let currentRawResponse = undefined;
4063
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4063
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4064
4064
  const callback = (rawResponse, flatResponse) => {
4065
4065
  currentRawResponse = rawResponse;
4066
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4066
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4067
4067
  };
4068
4068
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4069
4069
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4082,8 +4082,8 @@ class DeploymentsImpl {
4082
4082
  spec: deleteAtTenantScopeOperationSpec
4083
4083
  });
4084
4084
  const poller = yield coreLro.createHttpPoller(lro, {
4085
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4086
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4085
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4086
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4087
4087
  });
4088
4088
  yield poller.poll();
4089
4089
  return poller;
@@ -4101,7 +4101,7 @@ class DeploymentsImpl {
4101
4101
  * @param options The options parameters.
4102
4102
  */
4103
4103
  beginDeleteAtTenantScopeAndWait(deploymentName, options) {
4104
- return tslib.__awaiter(this, undefined, undefined, function* () {
4104
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4105
4105
  const poller = yield this.beginDeleteAtTenantScope(deploymentName, options);
4106
4106
  return poller.pollUntilDone();
4107
4107
  });
@@ -4121,17 +4121,17 @@ class DeploymentsImpl {
4121
4121
  * @param options The options parameters.
4122
4122
  */
4123
4123
  beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options) {
4124
- return tslib.__awaiter(this, undefined, undefined, function* () {
4125
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4124
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4125
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4126
4126
  return this.client.sendOperationRequest(args, spec);
4127
4127
  });
4128
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4128
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4129
4129
  var _a;
4130
4130
  let currentRawResponse = undefined;
4131
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4131
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4132
4132
  const callback = (rawResponse, flatResponse) => {
4133
4133
  currentRawResponse = rawResponse;
4134
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4134
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4135
4135
  };
4136
4136
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4137
4137
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4150,8 +4150,8 @@ class DeploymentsImpl {
4150
4150
  spec: createOrUpdateAtTenantScopeOperationSpec
4151
4151
  });
4152
4152
  const poller = yield coreLro.createHttpPoller(lro, {
4153
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4154
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4153
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4154
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4155
4155
  });
4156
4156
  yield poller.poll();
4157
4157
  return poller;
@@ -4164,7 +4164,7 @@ class DeploymentsImpl {
4164
4164
  * @param options The options parameters.
4165
4165
  */
4166
4166
  beginCreateOrUpdateAtTenantScopeAndWait(deploymentName, parameters, options) {
4167
- return tslib.__awaiter(this, undefined, undefined, function* () {
4167
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4168
4168
  const poller = yield this.beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options);
4169
4169
  return poller.pollUntilDone();
4170
4170
  });
@@ -4195,17 +4195,17 @@ class DeploymentsImpl {
4195
4195
  * @param options The options parameters.
4196
4196
  */
4197
4197
  beginValidateAtTenantScope(deploymentName, parameters, options) {
4198
- return tslib.__awaiter(this, undefined, undefined, function* () {
4199
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4198
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4199
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4200
4200
  return this.client.sendOperationRequest(args, spec);
4201
4201
  });
4202
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4202
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4203
4203
  var _a;
4204
4204
  let currentRawResponse = undefined;
4205
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4205
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4206
4206
  const callback = (rawResponse, flatResponse) => {
4207
4207
  currentRawResponse = rawResponse;
4208
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4208
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4209
4209
  };
4210
4210
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4211
4211
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4224,8 +4224,8 @@ class DeploymentsImpl {
4224
4224
  spec: validateAtTenantScopeOperationSpec
4225
4225
  });
4226
4226
  const poller = yield coreLro.createHttpPoller(lro, {
4227
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4228
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4227
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4228
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4229
4229
  });
4230
4230
  yield poller.poll();
4231
4231
  return poller;
@@ -4239,7 +4239,7 @@ class DeploymentsImpl {
4239
4239
  * @param options The options parameters.
4240
4240
  */
4241
4241
  beginValidateAtTenantScopeAndWait(deploymentName, parameters, options) {
4242
- return tslib.__awaiter(this, undefined, undefined, function* () {
4242
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4243
4243
  const poller = yield this.beginValidateAtTenantScope(deploymentName, parameters, options);
4244
4244
  return poller.pollUntilDone();
4245
4245
  });
@@ -4251,17 +4251,17 @@ class DeploymentsImpl {
4251
4251
  * @param options The options parameters.
4252
4252
  */
4253
4253
  beginWhatIfAtTenantScope(deploymentName, parameters, options) {
4254
- return tslib.__awaiter(this, undefined, undefined, function* () {
4255
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4254
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4255
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4256
4256
  return this.client.sendOperationRequest(args, spec);
4257
4257
  });
4258
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4258
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4259
4259
  var _a;
4260
4260
  let currentRawResponse = undefined;
4261
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4261
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4262
4262
  const callback = (rawResponse, flatResponse) => {
4263
4263
  currentRawResponse = rawResponse;
4264
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4264
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4265
4265
  };
4266
4266
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4267
4267
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4280,8 +4280,8 @@ class DeploymentsImpl {
4280
4280
  spec: whatIfAtTenantScopeOperationSpec
4281
4281
  });
4282
4282
  const poller = yield coreLro.createHttpPoller(lro, {
4283
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4284
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4283
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4284
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4285
4285
  resourceLocationConfig: "location"
4286
4286
  });
4287
4287
  yield poller.poll();
@@ -4295,7 +4295,7 @@ class DeploymentsImpl {
4295
4295
  * @param options The options parameters.
4296
4296
  */
4297
4297
  beginWhatIfAtTenantScopeAndWait(deploymentName, parameters, options) {
4298
- return tslib.__awaiter(this, undefined, undefined, function* () {
4298
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4299
4299
  const poller = yield this.beginWhatIfAtTenantScope(deploymentName, parameters, options);
4300
4300
  return poller.pollUntilDone();
4301
4301
  });
@@ -4328,17 +4328,17 @@ class DeploymentsImpl {
4328
4328
  * @param options The options parameters.
4329
4329
  */
4330
4330
  beginDeleteAtManagementGroupScope(groupId, deploymentName, options) {
4331
- return tslib.__awaiter(this, undefined, undefined, function* () {
4332
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4331
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4332
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4333
4333
  return this.client.sendOperationRequest(args, spec);
4334
4334
  });
4335
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4335
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4336
4336
  var _a;
4337
4337
  let currentRawResponse = undefined;
4338
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4338
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4339
4339
  const callback = (rawResponse, flatResponse) => {
4340
4340
  currentRawResponse = rawResponse;
4341
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4341
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4342
4342
  };
4343
4343
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4344
4344
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4357,8 +4357,8 @@ class DeploymentsImpl {
4357
4357
  spec: deleteAtManagementGroupScopeOperationSpec
4358
4358
  });
4359
4359
  const poller = yield coreLro.createHttpPoller(lro, {
4360
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4361
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4360
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4361
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4362
4362
  });
4363
4363
  yield poller.poll();
4364
4364
  return poller;
@@ -4377,7 +4377,7 @@ class DeploymentsImpl {
4377
4377
  * @param options The options parameters.
4378
4378
  */
4379
4379
  beginDeleteAtManagementGroupScopeAndWait(groupId, deploymentName, options) {
4380
- return tslib.__awaiter(this, undefined, undefined, function* () {
4380
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4381
4381
  const poller = yield this.beginDeleteAtManagementGroupScope(groupId, deploymentName, options);
4382
4382
  return poller.pollUntilDone();
4383
4383
  });
@@ -4399,17 +4399,17 @@ class DeploymentsImpl {
4399
4399
  * @param options The options parameters.
4400
4400
  */
4401
4401
  beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
4402
- return tslib.__awaiter(this, undefined, undefined, function* () {
4403
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4402
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4403
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4404
4404
  return this.client.sendOperationRequest(args, spec);
4405
4405
  });
4406
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4406
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4407
4407
  var _a;
4408
4408
  let currentRawResponse = undefined;
4409
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4409
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4410
4410
  const callback = (rawResponse, flatResponse) => {
4411
4411
  currentRawResponse = rawResponse;
4412
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4412
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4413
4413
  };
4414
4414
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4415
4415
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4428,8 +4428,8 @@ class DeploymentsImpl {
4428
4428
  spec: createOrUpdateAtManagementGroupScopeOperationSpec
4429
4429
  });
4430
4430
  const poller = yield coreLro.createHttpPoller(lro, {
4431
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4432
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4431
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4432
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4433
4433
  });
4434
4434
  yield poller.poll();
4435
4435
  return poller;
@@ -4443,7 +4443,7 @@ class DeploymentsImpl {
4443
4443
  * @param options The options parameters.
4444
4444
  */
4445
4445
  beginCreateOrUpdateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
4446
- return tslib.__awaiter(this, undefined, undefined, function* () {
4446
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4447
4447
  const poller = yield this.beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options);
4448
4448
  return poller.pollUntilDone();
4449
4449
  });
@@ -4477,17 +4477,17 @@ class DeploymentsImpl {
4477
4477
  * @param options The options parameters.
4478
4478
  */
4479
4479
  beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
4480
- return tslib.__awaiter(this, undefined, undefined, function* () {
4481
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4480
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4481
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4482
4482
  return this.client.sendOperationRequest(args, spec);
4483
4483
  });
4484
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4484
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4485
4485
  var _a;
4486
4486
  let currentRawResponse = undefined;
4487
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4487
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4488
4488
  const callback = (rawResponse, flatResponse) => {
4489
4489
  currentRawResponse = rawResponse;
4490
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4490
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4491
4491
  };
4492
4492
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4493
4493
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4506,8 +4506,8 @@ class DeploymentsImpl {
4506
4506
  spec: validateAtManagementGroupScopeOperationSpec
4507
4507
  });
4508
4508
  const poller = yield coreLro.createHttpPoller(lro, {
4509
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4510
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4509
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4510
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4511
4511
  });
4512
4512
  yield poller.poll();
4513
4513
  return poller;
@@ -4522,7 +4522,7 @@ class DeploymentsImpl {
4522
4522
  * @param options The options parameters.
4523
4523
  */
4524
4524
  beginValidateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
4525
- return tslib.__awaiter(this, undefined, undefined, function* () {
4525
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4526
4526
  const poller = yield this.beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options);
4527
4527
  return poller.pollUntilDone();
4528
4528
  });
@@ -4536,17 +4536,17 @@ class DeploymentsImpl {
4536
4536
  * @param options The options parameters.
4537
4537
  */
4538
4538
  beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options) {
4539
- return tslib.__awaiter(this, undefined, undefined, function* () {
4540
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4539
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4540
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4541
4541
  return this.client.sendOperationRequest(args, spec);
4542
4542
  });
4543
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4543
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4544
4544
  var _a;
4545
4545
  let currentRawResponse = undefined;
4546
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4546
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4547
4547
  const callback = (rawResponse, flatResponse) => {
4548
4548
  currentRawResponse = rawResponse;
4549
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4549
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4550
4550
  };
4551
4551
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4552
4552
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4565,8 +4565,8 @@ class DeploymentsImpl {
4565
4565
  spec: whatIfAtManagementGroupScopeOperationSpec
4566
4566
  });
4567
4567
  const poller = yield coreLro.createHttpPoller(lro, {
4568
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4569
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4568
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4569
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4570
4570
  resourceLocationConfig: "location"
4571
4571
  });
4572
4572
  yield poller.poll();
@@ -4582,7 +4582,7 @@ class DeploymentsImpl {
4582
4582
  * @param options The options parameters.
4583
4583
  */
4584
4584
  beginWhatIfAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
4585
- return tslib.__awaiter(this, undefined, undefined, function* () {
4585
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4586
4586
  const poller = yield this.beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options);
4587
4587
  return poller.pollUntilDone();
4588
4588
  });
@@ -4616,17 +4616,17 @@ class DeploymentsImpl {
4616
4616
  * @param options The options parameters.
4617
4617
  */
4618
4618
  beginDeleteAtSubscriptionScope(deploymentName, options) {
4619
- return tslib.__awaiter(this, undefined, undefined, function* () {
4620
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4619
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4620
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4621
4621
  return this.client.sendOperationRequest(args, spec);
4622
4622
  });
4623
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4623
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4624
4624
  var _a;
4625
4625
  let currentRawResponse = undefined;
4626
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4626
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4627
4627
  const callback = (rawResponse, flatResponse) => {
4628
4628
  currentRawResponse = rawResponse;
4629
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4629
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4630
4630
  };
4631
4631
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4632
4632
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4645,8 +4645,8 @@ class DeploymentsImpl {
4645
4645
  spec: deleteAtSubscriptionScopeOperationSpec
4646
4646
  });
4647
4647
  const poller = yield coreLro.createHttpPoller(lro, {
4648
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4649
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4648
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4649
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4650
4650
  });
4651
4651
  yield poller.poll();
4652
4652
  return poller;
@@ -4664,7 +4664,7 @@ class DeploymentsImpl {
4664
4664
  * @param options The options parameters.
4665
4665
  */
4666
4666
  beginDeleteAtSubscriptionScopeAndWait(deploymentName, options) {
4667
- return tslib.__awaiter(this, undefined, undefined, function* () {
4667
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4668
4668
  const poller = yield this.beginDeleteAtSubscriptionScope(deploymentName, options);
4669
4669
  return poller.pollUntilDone();
4670
4670
  });
@@ -4684,17 +4684,17 @@ class DeploymentsImpl {
4684
4684
  * @param options The options parameters.
4685
4685
  */
4686
4686
  beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options) {
4687
- return tslib.__awaiter(this, undefined, undefined, function* () {
4688
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4687
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4688
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4689
4689
  return this.client.sendOperationRequest(args, spec);
4690
4690
  });
4691
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4691
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4692
4692
  var _a;
4693
4693
  let currentRawResponse = undefined;
4694
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4694
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4695
4695
  const callback = (rawResponse, flatResponse) => {
4696
4696
  currentRawResponse = rawResponse;
4697
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4697
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4698
4698
  };
4699
4699
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4700
4700
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4713,8 +4713,8 @@ class DeploymentsImpl {
4713
4713
  spec: createOrUpdateAtSubscriptionScopeOperationSpec
4714
4714
  });
4715
4715
  const poller = yield coreLro.createHttpPoller(lro, {
4716
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4717
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4716
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4717
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4718
4718
  });
4719
4719
  yield poller.poll();
4720
4720
  return poller;
@@ -4727,7 +4727,7 @@ class DeploymentsImpl {
4727
4727
  * @param options The options parameters.
4728
4728
  */
4729
4729
  beginCreateOrUpdateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
4730
- return tslib.__awaiter(this, undefined, undefined, function* () {
4730
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4731
4731
  const poller = yield this.beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options);
4732
4732
  return poller.pollUntilDone();
4733
4733
  });
@@ -4758,17 +4758,17 @@ class DeploymentsImpl {
4758
4758
  * @param options The options parameters.
4759
4759
  */
4760
4760
  beginValidateAtSubscriptionScope(deploymentName, parameters, options) {
4761
- return tslib.__awaiter(this, undefined, undefined, function* () {
4762
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4761
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4762
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4763
4763
  return this.client.sendOperationRequest(args, spec);
4764
4764
  });
4765
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4765
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4766
4766
  var _a;
4767
4767
  let currentRawResponse = undefined;
4768
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4768
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4769
4769
  const callback = (rawResponse, flatResponse) => {
4770
4770
  currentRawResponse = rawResponse;
4771
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4771
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4772
4772
  };
4773
4773
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4774
4774
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4787,8 +4787,8 @@ class DeploymentsImpl {
4787
4787
  spec: validateAtSubscriptionScopeOperationSpec
4788
4788
  });
4789
4789
  const poller = yield coreLro.createHttpPoller(lro, {
4790
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4791
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4790
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4791
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4792
4792
  });
4793
4793
  yield poller.poll();
4794
4794
  return poller;
@@ -4802,7 +4802,7 @@ class DeploymentsImpl {
4802
4802
  * @param options The options parameters.
4803
4803
  */
4804
4804
  beginValidateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
4805
- return tslib.__awaiter(this, undefined, undefined, function* () {
4805
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4806
4806
  const poller = yield this.beginValidateAtSubscriptionScope(deploymentName, parameters, options);
4807
4807
  return poller.pollUntilDone();
4808
4808
  });
@@ -4814,17 +4814,17 @@ class DeploymentsImpl {
4814
4814
  * @param options The options parameters.
4815
4815
  */
4816
4816
  beginWhatIfAtSubscriptionScope(deploymentName, parameters, options) {
4817
- return tslib.__awaiter(this, undefined, undefined, function* () {
4818
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4817
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4818
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4819
4819
  return this.client.sendOperationRequest(args, spec);
4820
4820
  });
4821
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4821
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4822
4822
  var _a;
4823
4823
  let currentRawResponse = undefined;
4824
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4824
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4825
4825
  const callback = (rawResponse, flatResponse) => {
4826
4826
  currentRawResponse = rawResponse;
4827
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4827
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4828
4828
  };
4829
4829
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4830
4830
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4843,8 +4843,8 @@ class DeploymentsImpl {
4843
4843
  spec: whatIfAtSubscriptionScopeOperationSpec
4844
4844
  });
4845
4845
  const poller = yield coreLro.createHttpPoller(lro, {
4846
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4847
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4846
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4847
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4848
4848
  resourceLocationConfig: "location"
4849
4849
  });
4850
4850
  yield poller.poll();
@@ -4858,7 +4858,7 @@ class DeploymentsImpl {
4858
4858
  * @param options The options parameters.
4859
4859
  */
4860
4860
  beginWhatIfAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
4861
- return tslib.__awaiter(this, undefined, undefined, function* () {
4861
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4862
4862
  const poller = yield this.beginWhatIfAtSubscriptionScope(deploymentName, parameters, options);
4863
4863
  return poller.pollUntilDone();
4864
4864
  });
@@ -4893,17 +4893,17 @@ class DeploymentsImpl {
4893
4893
  * @param options The options parameters.
4894
4894
  */
4895
4895
  beginDelete(resourceGroupName, deploymentName, options) {
4896
- return tslib.__awaiter(this, undefined, undefined, function* () {
4897
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4896
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4897
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4898
4898
  return this.client.sendOperationRequest(args, spec);
4899
4899
  });
4900
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4900
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4901
4901
  var _a;
4902
4902
  let currentRawResponse = undefined;
4903
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4903
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4904
4904
  const callback = (rawResponse, flatResponse) => {
4905
4905
  currentRawResponse = rawResponse;
4906
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4906
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4907
4907
  };
4908
4908
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4909
4909
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4922,8 +4922,8 @@ class DeploymentsImpl {
4922
4922
  spec: deleteOperationSpec$3
4923
4923
  });
4924
4924
  const poller = yield coreLro.createHttpPoller(lro, {
4925
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4926
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4925
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4926
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4927
4927
  });
4928
4928
  yield poller.poll();
4929
4929
  return poller;
@@ -4944,7 +4944,7 @@ class DeploymentsImpl {
4944
4944
  * @param options The options parameters.
4945
4945
  */
4946
4946
  beginDeleteAndWait(resourceGroupName, deploymentName, options) {
4947
- return tslib.__awaiter(this, undefined, undefined, function* () {
4947
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4948
4948
  const poller = yield this.beginDelete(resourceGroupName, deploymentName, options);
4949
4949
  return poller.pollUntilDone();
4950
4950
  });
@@ -4968,17 +4968,17 @@ class DeploymentsImpl {
4968
4968
  * @param options The options parameters.
4969
4969
  */
4970
4970
  beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options) {
4971
- return tslib.__awaiter(this, undefined, undefined, function* () {
4972
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4971
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4972
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4973
4973
  return this.client.sendOperationRequest(args, spec);
4974
4974
  });
4975
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4975
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4976
4976
  var _a;
4977
4977
  let currentRawResponse = undefined;
4978
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4978
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4979
4979
  const callback = (rawResponse, flatResponse) => {
4980
4980
  currentRawResponse = rawResponse;
4981
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4981
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4982
4982
  };
4983
4983
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4984
4984
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4997,8 +4997,8 @@ class DeploymentsImpl {
4997
4997
  spec: createOrUpdateOperationSpec$3
4998
4998
  });
4999
4999
  const poller = yield coreLro.createHttpPoller(lro, {
5000
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5001
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5000
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5001
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5002
5002
  });
5003
5003
  yield poller.poll();
5004
5004
  return poller;
@@ -5013,7 +5013,7 @@ class DeploymentsImpl {
5013
5013
  * @param options The options parameters.
5014
5014
  */
5015
5015
  beginCreateOrUpdateAndWait(resourceGroupName, deploymentName, parameters, options) {
5016
- return tslib.__awaiter(this, undefined, undefined, function* () {
5016
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5017
5017
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options);
5018
5018
  return poller.pollUntilDone();
5019
5019
  });
@@ -5048,17 +5048,17 @@ class DeploymentsImpl {
5048
5048
  * @param options The options parameters.
5049
5049
  */
5050
5050
  beginValidate(resourceGroupName, deploymentName, parameters, options) {
5051
- return tslib.__awaiter(this, undefined, undefined, function* () {
5052
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5051
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5052
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5053
5053
  return this.client.sendOperationRequest(args, spec);
5054
5054
  });
5055
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5055
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5056
5056
  var _a;
5057
5057
  let currentRawResponse = undefined;
5058
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5058
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5059
5059
  const callback = (rawResponse, flatResponse) => {
5060
5060
  currentRawResponse = rawResponse;
5061
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5061
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5062
5062
  };
5063
5063
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5064
5064
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5077,8 +5077,8 @@ class DeploymentsImpl {
5077
5077
  spec: validateOperationSpec
5078
5078
  });
5079
5079
  const poller = yield coreLro.createHttpPoller(lro, {
5080
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5081
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5080
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5081
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5082
5082
  });
5083
5083
  yield poller.poll();
5084
5084
  return poller;
@@ -5094,7 +5094,7 @@ class DeploymentsImpl {
5094
5094
  * @param options The options parameters.
5095
5095
  */
5096
5096
  beginValidateAndWait(resourceGroupName, deploymentName, parameters, options) {
5097
- return tslib.__awaiter(this, undefined, undefined, function* () {
5097
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5098
5098
  const poller = yield this.beginValidate(resourceGroupName, deploymentName, parameters, options);
5099
5099
  return poller.pollUntilDone();
5100
5100
  });
@@ -5108,17 +5108,17 @@ class DeploymentsImpl {
5108
5108
  * @param options The options parameters.
5109
5109
  */
5110
5110
  beginWhatIf(resourceGroupName, deploymentName, parameters, options) {
5111
- return tslib.__awaiter(this, undefined, undefined, function* () {
5112
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5111
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5112
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5113
5113
  return this.client.sendOperationRequest(args, spec);
5114
5114
  });
5115
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5115
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5116
5116
  var _a;
5117
5117
  let currentRawResponse = undefined;
5118
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5118
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5119
5119
  const callback = (rawResponse, flatResponse) => {
5120
5120
  currentRawResponse = rawResponse;
5121
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5121
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5122
5122
  };
5123
5123
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5124
5124
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5137,8 +5137,8 @@ class DeploymentsImpl {
5137
5137
  spec: whatIfOperationSpec
5138
5138
  });
5139
5139
  const poller = yield coreLro.createHttpPoller(lro, {
5140
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5141
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
5140
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5141
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5142
5142
  resourceLocationConfig: "location"
5143
5143
  });
5144
5144
  yield poller.poll();
@@ -5154,7 +5154,7 @@ class DeploymentsImpl {
5154
5154
  * @param options The options parameters.
5155
5155
  */
5156
5156
  beginWhatIfAndWait(resourceGroupName, deploymentName, parameters, options) {
5157
- return tslib.__awaiter(this, undefined, undefined, function* () {
5157
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5158
5158
  const poller = yield this.beginWhatIf(resourceGroupName, deploymentName, parameters, options);
5159
5159
  return poller.pollUntilDone();
5160
5160
  });
@@ -6352,7 +6352,7 @@ class ProvidersImpl {
6352
6352
  return this;
6353
6353
  },
6354
6354
  byPage: (settings) => {
6355
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6355
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6356
6356
  throw new Error("maxPageSize is not supported by this operation.");
6357
6357
  }
6358
6358
  return this.listPagingPage(options, settings);
@@ -6362,7 +6362,7 @@ class ProvidersImpl {
6362
6362
  listPagingPage(options, settings) {
6363
6363
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6364
6364
  let result;
6365
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6365
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6366
6366
  if (!continuationToken) {
6367
6367
  result = yield tslib.__await(this._list(options));
6368
6368
  let page = result.value || [];
@@ -6413,7 +6413,7 @@ class ProvidersImpl {
6413
6413
  return this;
6414
6414
  },
6415
6415
  byPage: (settings) => {
6416
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6416
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6417
6417
  throw new Error("maxPageSize is not supported by this operation.");
6418
6418
  }
6419
6419
  return this.listAtTenantScopePagingPage(options, settings);
@@ -6423,7 +6423,7 @@ class ProvidersImpl {
6423
6423
  listAtTenantScopePagingPage(options, settings) {
6424
6424
  return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopePagingPage_1() {
6425
6425
  let result;
6426
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6426
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6427
6427
  if (!continuationToken) {
6428
6428
  result = yield tslib.__await(this._listAtTenantScope(options));
6429
6429
  let page = result.value || [];
@@ -6805,7 +6805,7 @@ class ResourcesImpl {
6805
6805
  return this;
6806
6806
  },
6807
6807
  byPage: (settings) => {
6808
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6808
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6809
6809
  throw new Error("maxPageSize is not supported by this operation.");
6810
6810
  }
6811
6811
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -6815,7 +6815,7 @@ class ResourcesImpl {
6815
6815
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
6816
6816
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
6817
6817
  let result;
6818
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6818
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6819
6819
  if (!continuationToken) {
6820
6820
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
6821
6821
  let page = result.value || [];
@@ -6866,7 +6866,7 @@ class ResourcesImpl {
6866
6866
  return this;
6867
6867
  },
6868
6868
  byPage: (settings) => {
6869
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6869
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6870
6870
  throw new Error("maxPageSize is not supported by this operation.");
6871
6871
  }
6872
6872
  return this.listPagingPage(options, settings);
@@ -6876,7 +6876,7 @@ class ResourcesImpl {
6876
6876
  listPagingPage(options, settings) {
6877
6877
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6878
6878
  let result;
6879
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6879
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6880
6880
  if (!continuationToken) {
6881
6881
  result = yield tslib.__await(this._list(options));
6882
6882
  let page = result.value || [];
@@ -6932,17 +6932,17 @@ class ResourcesImpl {
6932
6932
  * @param options The options parameters.
6933
6933
  */
6934
6934
  beginMoveResources(sourceResourceGroupName, parameters, options) {
6935
- return tslib.__awaiter(this, undefined, undefined, function* () {
6936
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6935
+ return tslib.__awaiter(this, void 0, void 0, function* () {
6936
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6937
6937
  return this.client.sendOperationRequest(args, spec);
6938
6938
  });
6939
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6939
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6940
6940
  var _a;
6941
6941
  let currentRawResponse = undefined;
6942
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6942
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6943
6943
  const callback = (rawResponse, flatResponse) => {
6944
6944
  currentRawResponse = rawResponse;
6945
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6945
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6946
6946
  };
6947
6947
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6948
6948
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6961,8 +6961,8 @@ class ResourcesImpl {
6961
6961
  spec: moveResourcesOperationSpec
6962
6962
  });
6963
6963
  const poller = yield coreLro.createHttpPoller(lro, {
6964
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6965
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6964
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6965
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6966
6966
  });
6967
6967
  yield poller.poll();
6968
6968
  return poller;
@@ -6979,7 +6979,7 @@ class ResourcesImpl {
6979
6979
  * @param options The options parameters.
6980
6980
  */
6981
6981
  beginMoveResourcesAndWait(sourceResourceGroupName, parameters, options) {
6982
- return tslib.__awaiter(this, undefined, undefined, function* () {
6982
+ return tslib.__awaiter(this, void 0, void 0, function* () {
6983
6983
  const poller = yield this.beginMoveResources(sourceResourceGroupName, parameters, options);
6984
6984
  return poller.pollUntilDone();
6985
6985
  });
@@ -6997,17 +6997,17 @@ class ResourcesImpl {
6997
6997
  * @param options The options parameters.
6998
6998
  */
6999
6999
  beginValidateMoveResources(sourceResourceGroupName, parameters, options) {
7000
- return tslib.__awaiter(this, undefined, undefined, function* () {
7001
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7000
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7001
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7002
7002
  return this.client.sendOperationRequest(args, spec);
7003
7003
  });
7004
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7004
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7005
7005
  var _a;
7006
7006
  let currentRawResponse = undefined;
7007
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7007
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7008
7008
  const callback = (rawResponse, flatResponse) => {
7009
7009
  currentRawResponse = rawResponse;
7010
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7010
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7011
7011
  };
7012
7012
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7013
7013
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7026,8 +7026,8 @@ class ResourcesImpl {
7026
7026
  spec: validateMoveResourcesOperationSpec
7027
7027
  });
7028
7028
  const poller = yield coreLro.createHttpPoller(lro, {
7029
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7030
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7029
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7030
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7031
7031
  });
7032
7032
  yield poller.poll();
7033
7033
  return poller;
@@ -7046,7 +7046,7 @@ class ResourcesImpl {
7046
7046
  * @param options The options parameters.
7047
7047
  */
7048
7048
  beginValidateMoveResourcesAndWait(sourceResourceGroupName, parameters, options) {
7049
- return tslib.__awaiter(this, undefined, undefined, function* () {
7049
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7050
7050
  const poller = yield this.beginValidateMoveResources(sourceResourceGroupName, parameters, options);
7051
7051
  return poller.pollUntilDone();
7052
7052
  });
@@ -7092,17 +7092,17 @@ class ResourcesImpl {
7092
7092
  * @param options The options parameters.
7093
7093
  */
7094
7094
  beginDelete(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, options) {
7095
- return tslib.__awaiter(this, undefined, undefined, function* () {
7096
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7095
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7096
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7097
7097
  return this.client.sendOperationRequest(args, spec);
7098
7098
  });
7099
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7099
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7100
7100
  var _a;
7101
7101
  let currentRawResponse = undefined;
7102
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7102
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7103
7103
  const callback = (rawResponse, flatResponse) => {
7104
7104
  currentRawResponse = rawResponse;
7105
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7105
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7106
7106
  };
7107
7107
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7108
7108
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7129,8 +7129,8 @@ class ResourcesImpl {
7129
7129
  spec: deleteOperationSpec$2
7130
7130
  });
7131
7131
  const poller = yield coreLro.createHttpPoller(lro, {
7132
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7133
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7132
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7133
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7134
7134
  });
7135
7135
  yield poller.poll();
7136
7136
  return poller;
@@ -7148,7 +7148,7 @@ class ResourcesImpl {
7148
7148
  * @param options The options parameters.
7149
7149
  */
7150
7150
  beginDeleteAndWait(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, options) {
7151
- return tslib.__awaiter(this, undefined, undefined, function* () {
7151
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7152
7152
  const poller = yield this.beginDelete(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, options);
7153
7153
  return poller.pollUntilDone();
7154
7154
  });
@@ -7166,17 +7166,17 @@ class ResourcesImpl {
7166
7166
  * @param options The options parameters.
7167
7167
  */
7168
7168
  beginCreateOrUpdate(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options) {
7169
- return tslib.__awaiter(this, undefined, undefined, function* () {
7170
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7169
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7170
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7171
7171
  return this.client.sendOperationRequest(args, spec);
7172
7172
  });
7173
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7173
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7174
7174
  var _a;
7175
7175
  let currentRawResponse = undefined;
7176
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7176
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7177
7177
  const callback = (rawResponse, flatResponse) => {
7178
7178
  currentRawResponse = rawResponse;
7179
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7179
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7180
7180
  };
7181
7181
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7182
7182
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7204,8 +7204,8 @@ class ResourcesImpl {
7204
7204
  spec: createOrUpdateOperationSpec$2
7205
7205
  });
7206
7206
  const poller = yield coreLro.createHttpPoller(lro, {
7207
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7208
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7207
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7208
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7209
7209
  });
7210
7210
  yield poller.poll();
7211
7211
  return poller;
@@ -7224,7 +7224,7 @@ class ResourcesImpl {
7224
7224
  * @param options The options parameters.
7225
7225
  */
7226
7226
  beginCreateOrUpdateAndWait(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options) {
7227
- return tslib.__awaiter(this, undefined, undefined, function* () {
7227
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7228
7228
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options);
7229
7229
  return poller.pollUntilDone();
7230
7230
  });
@@ -7242,17 +7242,17 @@ class ResourcesImpl {
7242
7242
  * @param options The options parameters.
7243
7243
  */
7244
7244
  beginUpdate(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options) {
7245
- return tslib.__awaiter(this, undefined, undefined, function* () {
7246
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7245
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7246
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7247
7247
  return this.client.sendOperationRequest(args, spec);
7248
7248
  });
7249
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7249
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7250
7250
  var _a;
7251
7251
  let currentRawResponse = undefined;
7252
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7252
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7253
7253
  const callback = (rawResponse, flatResponse) => {
7254
7254
  currentRawResponse = rawResponse;
7255
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7255
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7256
7256
  };
7257
7257
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7258
7258
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7280,8 +7280,8 @@ class ResourcesImpl {
7280
7280
  spec: updateOperationSpec$1
7281
7281
  });
7282
7282
  const poller = yield coreLro.createHttpPoller(lro, {
7283
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7284
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7283
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7284
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7285
7285
  });
7286
7286
  yield poller.poll();
7287
7287
  return poller;
@@ -7300,7 +7300,7 @@ class ResourcesImpl {
7300
7300
  * @param options The options parameters.
7301
7301
  */
7302
7302
  beginUpdateAndWait(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options) {
7303
- return tslib.__awaiter(this, undefined, undefined, function* () {
7303
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7304
7304
  const poller = yield this.beginUpdate(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, options);
7305
7305
  return poller.pollUntilDone();
7306
7306
  });
@@ -7347,17 +7347,17 @@ class ResourcesImpl {
7347
7347
  * @param options The options parameters.
7348
7348
  */
7349
7349
  beginDeleteById(resourceId, apiVersion, options) {
7350
- return tslib.__awaiter(this, undefined, undefined, function* () {
7351
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7350
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7351
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7352
7352
  return this.client.sendOperationRequest(args, spec);
7353
7353
  });
7354
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7354
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7355
7355
  var _a;
7356
7356
  let currentRawResponse = undefined;
7357
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7357
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7358
7358
  const callback = (rawResponse, flatResponse) => {
7359
7359
  currentRawResponse = rawResponse;
7360
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7360
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7361
7361
  };
7362
7362
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7363
7363
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7376,8 +7376,8 @@ class ResourcesImpl {
7376
7376
  spec: deleteByIdOperationSpec
7377
7377
  });
7378
7378
  const poller = yield coreLro.createHttpPoller(lro, {
7379
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7380
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7379
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7380
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7381
7381
  });
7382
7382
  yield poller.poll();
7383
7383
  return poller;
@@ -7392,7 +7392,7 @@ class ResourcesImpl {
7392
7392
  * @param options The options parameters.
7393
7393
  */
7394
7394
  beginDeleteByIdAndWait(resourceId, apiVersion, options) {
7395
- return tslib.__awaiter(this, undefined, undefined, function* () {
7395
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7396
7396
  const poller = yield this.beginDeleteById(resourceId, apiVersion, options);
7397
7397
  return poller.pollUntilDone();
7398
7398
  });
@@ -7407,17 +7407,17 @@ class ResourcesImpl {
7407
7407
  * @param options The options parameters.
7408
7408
  */
7409
7409
  beginCreateOrUpdateById(resourceId, apiVersion, parameters, options) {
7410
- return tslib.__awaiter(this, undefined, undefined, function* () {
7411
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7410
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7411
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7412
7412
  return this.client.sendOperationRequest(args, spec);
7413
7413
  });
7414
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7414
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7415
7415
  var _a;
7416
7416
  let currentRawResponse = undefined;
7417
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7417
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7418
7418
  const callback = (rawResponse, flatResponse) => {
7419
7419
  currentRawResponse = rawResponse;
7420
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7420
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7421
7421
  };
7422
7422
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7423
7423
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7436,8 +7436,8 @@ class ResourcesImpl {
7436
7436
  spec: createOrUpdateByIdOperationSpec
7437
7437
  });
7438
7438
  const poller = yield coreLro.createHttpPoller(lro, {
7439
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7440
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7439
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7440
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7441
7441
  });
7442
7442
  yield poller.poll();
7443
7443
  return poller;
@@ -7453,7 +7453,7 @@ class ResourcesImpl {
7453
7453
  * @param options The options parameters.
7454
7454
  */
7455
7455
  beginCreateOrUpdateByIdAndWait(resourceId, apiVersion, parameters, options) {
7456
- return tslib.__awaiter(this, undefined, undefined, function* () {
7456
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7457
7457
  const poller = yield this.beginCreateOrUpdateById(resourceId, apiVersion, parameters, options);
7458
7458
  return poller.pollUntilDone();
7459
7459
  });
@@ -7468,17 +7468,17 @@ class ResourcesImpl {
7468
7468
  * @param options The options parameters.
7469
7469
  */
7470
7470
  beginUpdateById(resourceId, apiVersion, parameters, options) {
7471
- return tslib.__awaiter(this, undefined, undefined, function* () {
7472
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7471
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7472
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7473
7473
  return this.client.sendOperationRequest(args, spec);
7474
7474
  });
7475
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7475
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7476
7476
  var _a;
7477
7477
  let currentRawResponse = undefined;
7478
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7478
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7479
7479
  const callback = (rawResponse, flatResponse) => {
7480
7480
  currentRawResponse = rawResponse;
7481
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7481
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7482
7482
  };
7483
7483
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7484
7484
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7497,8 +7497,8 @@ class ResourcesImpl {
7497
7497
  spec: updateByIdOperationSpec
7498
7498
  });
7499
7499
  const poller = yield coreLro.createHttpPoller(lro, {
7500
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7501
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7500
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7501
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7502
7502
  });
7503
7503
  yield poller.poll();
7504
7504
  return poller;
@@ -7514,7 +7514,7 @@ class ResourcesImpl {
7514
7514
  * @param options The options parameters.
7515
7515
  */
7516
7516
  beginUpdateByIdAndWait(resourceId, apiVersion, parameters, options) {
7517
- return tslib.__awaiter(this, undefined, undefined, function* () {
7517
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7518
7518
  const poller = yield this.beginUpdateById(resourceId, apiVersion, parameters, options);
7519
7519
  return poller.pollUntilDone();
7520
7520
  });
@@ -7957,7 +7957,7 @@ class ResourceGroupsImpl {
7957
7957
  return this;
7958
7958
  },
7959
7959
  byPage: (settings) => {
7960
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7960
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7961
7961
  throw new Error("maxPageSize is not supported by this operation.");
7962
7962
  }
7963
7963
  return this.listPagingPage(options, settings);
@@ -7967,7 +7967,7 @@ class ResourceGroupsImpl {
7967
7967
  listPagingPage(options, settings) {
7968
7968
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7969
7969
  let result;
7970
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
7970
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7971
7971
  if (!continuationToken) {
7972
7972
  result = yield tslib.__await(this._list(options));
7973
7973
  let page = result.value || [];
@@ -8030,17 +8030,17 @@ class ResourceGroupsImpl {
8030
8030
  * @param options The options parameters.
8031
8031
  */
8032
8032
  beginDelete(resourceGroupName, options) {
8033
- return tslib.__awaiter(this, undefined, undefined, function* () {
8034
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8033
+ return tslib.__awaiter(this, void 0, void 0, function* () {
8034
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8035
8035
  return this.client.sendOperationRequest(args, spec);
8036
8036
  });
8037
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8037
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8038
8038
  var _a;
8039
8039
  let currentRawResponse = undefined;
8040
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8040
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8041
8041
  const callback = (rawResponse, flatResponse) => {
8042
8042
  currentRawResponse = rawResponse;
8043
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8043
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8044
8044
  };
8045
8045
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8046
8046
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8059,8 +8059,8 @@ class ResourceGroupsImpl {
8059
8059
  spec: deleteOperationSpec$1
8060
8060
  });
8061
8061
  const poller = yield coreLro.createHttpPoller(lro, {
8062
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8063
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
8062
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8063
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
8064
8064
  });
8065
8065
  yield poller.poll();
8066
8066
  return poller;
@@ -8073,7 +8073,7 @@ class ResourceGroupsImpl {
8073
8073
  * @param options The options parameters.
8074
8074
  */
8075
8075
  beginDeleteAndWait(resourceGroupName, options) {
8076
- return tslib.__awaiter(this, undefined, undefined, function* () {
8076
+ return tslib.__awaiter(this, void 0, void 0, function* () {
8077
8077
  const poller = yield this.beginDelete(resourceGroupName, options);
8078
8078
  return poller.pollUntilDone();
8079
8079
  });
@@ -8104,17 +8104,17 @@ class ResourceGroupsImpl {
8104
8104
  * @param options The options parameters.
8105
8105
  */
8106
8106
  beginExportTemplate(resourceGroupName, parameters, options) {
8107
- return tslib.__awaiter(this, undefined, undefined, function* () {
8108
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8107
+ return tslib.__awaiter(this, void 0, void 0, function* () {
8108
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8109
8109
  return this.client.sendOperationRequest(args, spec);
8110
8110
  });
8111
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8111
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8112
8112
  var _a;
8113
8113
  let currentRawResponse = undefined;
8114
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8114
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8115
8115
  const callback = (rawResponse, flatResponse) => {
8116
8116
  currentRawResponse = rawResponse;
8117
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8117
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8118
8118
  };
8119
8119
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8120
8120
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8133,8 +8133,8 @@ class ResourceGroupsImpl {
8133
8133
  spec: exportTemplateOperationSpec
8134
8134
  });
8135
8135
  const poller = yield coreLro.createHttpPoller(lro, {
8136
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8137
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
8136
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8137
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
8138
8138
  resourceLocationConfig: "location"
8139
8139
  });
8140
8140
  yield poller.poll();
@@ -8148,7 +8148,7 @@ class ResourceGroupsImpl {
8148
8148
  * @param options The options parameters.
8149
8149
  */
8150
8150
  beginExportTemplateAndWait(resourceGroupName, parameters, options) {
8151
- return tslib.__awaiter(this, undefined, undefined, function* () {
8151
+ return tslib.__awaiter(this, void 0, void 0, function* () {
8152
8152
  const poller = yield this.beginExportTemplate(resourceGroupName, parameters, options);
8153
8153
  return poller.pollUntilDone();
8154
8154
  });
@@ -8379,7 +8379,7 @@ class TagsOperationsImpl {
8379
8379
  return this;
8380
8380
  },
8381
8381
  byPage: (settings) => {
8382
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8382
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8383
8383
  throw new Error("maxPageSize is not supported by this operation.");
8384
8384
  }
8385
8385
  return this.listPagingPage(options, settings);
@@ -8389,7 +8389,7 @@ class TagsOperationsImpl {
8389
8389
  listPagingPage(options, settings) {
8390
8390
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8391
8391
  let result;
8392
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8392
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8393
8393
  if (!continuationToken) {
8394
8394
  result = yield tslib.__await(this._list(options));
8395
8395
  let page = result.value || [];
@@ -8748,7 +8748,7 @@ class DeploymentOperationsImpl {
8748
8748
  return this;
8749
8749
  },
8750
8750
  byPage: (settings) => {
8751
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8751
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8752
8752
  throw new Error("maxPageSize is not supported by this operation.");
8753
8753
  }
8754
8754
  return this.listAtScopePagingPage(scope, deploymentName, options, settings);
@@ -8758,7 +8758,7 @@ class DeploymentOperationsImpl {
8758
8758
  listAtScopePagingPage(scope, deploymentName, options, settings) {
8759
8759
  return tslib.__asyncGenerator(this, arguments, function* listAtScopePagingPage_1() {
8760
8760
  let result;
8761
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8761
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8762
8762
  if (!continuationToken) {
8763
8763
  result = yield tslib.__await(this._listAtScope(scope, deploymentName, options));
8764
8764
  let page = result.value || [];
@@ -8810,7 +8810,7 @@ class DeploymentOperationsImpl {
8810
8810
  return this;
8811
8811
  },
8812
8812
  byPage: (settings) => {
8813
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8813
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8814
8814
  throw new Error("maxPageSize is not supported by this operation.");
8815
8815
  }
8816
8816
  return this.listAtTenantScopePagingPage(deploymentName, options, settings);
@@ -8820,7 +8820,7 @@ class DeploymentOperationsImpl {
8820
8820
  listAtTenantScopePagingPage(deploymentName, options, settings) {
8821
8821
  return tslib.__asyncGenerator(this, arguments, function* listAtTenantScopePagingPage_1() {
8822
8822
  let result;
8823
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8823
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8824
8824
  if (!continuationToken) {
8825
8825
  result = yield tslib.__await(this._listAtTenantScope(deploymentName, options));
8826
8826
  let page = result.value || [];
@@ -8873,7 +8873,7 @@ class DeploymentOperationsImpl {
8873
8873
  return this;
8874
8874
  },
8875
8875
  byPage: (settings) => {
8876
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8876
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8877
8877
  throw new Error("maxPageSize is not supported by this operation.");
8878
8878
  }
8879
8879
  return this.listAtManagementGroupScopePagingPage(groupId, deploymentName, options, settings);
@@ -8883,7 +8883,7 @@ class DeploymentOperationsImpl {
8883
8883
  listAtManagementGroupScopePagingPage(groupId, deploymentName, options, settings) {
8884
8884
  return tslib.__asyncGenerator(this, arguments, function* listAtManagementGroupScopePagingPage_1() {
8885
8885
  let result;
8886
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8886
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8887
8887
  if (!continuationToken) {
8888
8888
  result = yield tslib.__await(this._listAtManagementGroupScope(groupId, deploymentName, options));
8889
8889
  let page = result.value || [];
@@ -8935,7 +8935,7 @@ class DeploymentOperationsImpl {
8935
8935
  return this;
8936
8936
  },
8937
8937
  byPage: (settings) => {
8938
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
8938
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8939
8939
  throw new Error("maxPageSize is not supported by this operation.");
8940
8940
  }
8941
8941
  return this.listAtSubscriptionScopePagingPage(deploymentName, options, settings);
@@ -8945,7 +8945,7 @@ class DeploymentOperationsImpl {
8945
8945
  listAtSubscriptionScopePagingPage(deploymentName, options, settings) {
8946
8946
  return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionScopePagingPage_1() {
8947
8947
  let result;
8948
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
8948
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8949
8949
  if (!continuationToken) {
8950
8950
  result = yield tslib.__await(this._listAtSubscriptionScope(deploymentName, options));
8951
8951
  let page = result.value || [];
@@ -8998,7 +8998,7 @@ class DeploymentOperationsImpl {
8998
8998
  return this;
8999
8999
  },
9000
9000
  byPage: (settings) => {
9001
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
9001
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9002
9002
  throw new Error("maxPageSize is not supported by this operation.");
9003
9003
  }
9004
9004
  return this.listPagingPage(resourceGroupName, deploymentName, options, settings);
@@ -9008,7 +9008,7 @@ class DeploymentOperationsImpl {
9008
9008
  listPagingPage(resourceGroupName, deploymentName, options, settings) {
9009
9009
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
9010
9010
  let result;
9011
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
9011
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9012
9012
  if (!continuationToken) {
9013
9013
  result = yield tslib.__await(this._list(resourceGroupName, deploymentName, options));
9014
9014
  let page = result.value || [];
@@ -9528,10 +9528,10 @@ class ResourceManagementClient extends coreClient__namespace.ServiceClient {
9528
9528
  : `${packageDetails}`;
9529
9529
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
9530
9530
  userAgentPrefix
9531
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
9531
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
9532
9532
  super(optionsWithDefaults);
9533
9533
  let bearerTokenAuthenticationPolicyFound = false;
9534
- if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
9534
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
9535
9535
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
9536
9536
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
9537
9537
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -9545,7 +9545,7 @@ class ResourceManagementClient extends coreClient__namespace.ServiceClient {
9545
9545
  });
9546
9546
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
9547
9547
  credential: credentials,
9548
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
9548
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
9549
9549
  challengeCallbacks: {
9550
9550
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
9551
9551
  }
@@ -9574,7 +9574,7 @@ class ResourceManagementClient extends coreClient__namespace.ServiceClient {
9574
9574
  const apiVersionPolicy = {
9575
9575
  name: "CustomApiVersionPolicy",
9576
9576
  sendRequest(request, next) {
9577
- return tslib.__awaiter(this, undefined, undefined, function* () {
9577
+ return tslib.__awaiter(this, void 0, void 0, function* () {
9578
9578
  const param = request.url.split("?");
9579
9579
  if (param.length > 1) {
9580
9580
  const newParams = param[1].split("&").map((item) => {