@azure/arm-storagesync 9.1.1-alpha.20250103.1 → 9.1.1-alpha.20250107.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
47
47
  if (typeof page !== "object" || page === null) {
48
48
  return undefined;
49
49
  }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
51
51
  }
52
52
  function setContinuationToken(page, continuationToken) {
53
53
  var _a;
54
54
  if (typeof page !== "object" || page === null || !continuationToken) {
55
55
  return;
56
56
  }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -4343,7 +4343,7 @@ class OperationsImpl {
4343
4343
  return this;
4344
4344
  },
4345
4345
  byPage: (settings) => {
4346
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4346
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4347
4347
  throw new Error("maxPageSize is not supported by this operation.");
4348
4348
  }
4349
4349
  return this.listPagingPage(options, settings);
@@ -4353,7 +4353,7 @@ class OperationsImpl {
4353
4353
  listPagingPage(options, settings) {
4354
4354
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4355
4355
  let result;
4356
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4356
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4357
4357
  if (!continuationToken) {
4358
4358
  result = yield tslib.__await(this._list(options));
4359
4359
  let page = result.value || [];
@@ -4458,12 +4458,12 @@ class LroImpl {
4458
4458
  this.requestMethod = requestMethod;
4459
4459
  }
4460
4460
  sendInitialRequest() {
4461
- return tslib.__awaiter(this, void 0, void 0, function* () {
4461
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4462
4462
  return this.sendOperationFn(this.args, this.spec);
4463
4463
  });
4464
4464
  }
4465
4465
  sendPollRequest(path) {
4466
- return tslib.__awaiter(this, void 0, void 0, function* () {
4466
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4467
4467
  const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
4468
4468
  return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
4469
4469
  });
@@ -4502,7 +4502,7 @@ class StorageSyncServicesImpl {
4502
4502
  return this;
4503
4503
  },
4504
4504
  byPage: (settings) => {
4505
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4505
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4506
4506
  throw new Error("maxPageSize is not supported by this operation.");
4507
4507
  }
4508
4508
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -4550,7 +4550,7 @@ class StorageSyncServicesImpl {
4550
4550
  return this;
4551
4551
  },
4552
4552
  byPage: (settings) => {
4553
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4553
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4554
4554
  throw new Error("maxPageSize is not supported by this operation.");
4555
4555
  }
4556
4556
  return this.listBySubscriptionPagingPage(options, settings);
@@ -4601,17 +4601,17 @@ class StorageSyncServicesImpl {
4601
4601
  * @param options The options parameters.
4602
4602
  */
4603
4603
  beginCreate(resourceGroupName, storageSyncServiceName, parameters, options) {
4604
- return tslib.__awaiter(this, void 0, void 0, function* () {
4605
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4604
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4605
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4606
4606
  return this.client.sendOperationRequest(args, spec);
4607
4607
  });
4608
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4608
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4609
4609
  var _a;
4610
4610
  let currentRawResponse = undefined;
4611
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4611
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4612
4612
  const callback = (rawResponse, flatResponse) => {
4613
4613
  currentRawResponse = rawResponse;
4614
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4614
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4615
4615
  };
4616
4616
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4617
4617
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4626,8 +4626,8 @@ class StorageSyncServicesImpl {
4626
4626
  });
4627
4627
  const lro = new LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, parameters, options }, createOperationSpec$5);
4628
4628
  const poller = new coreLro.LroEngine(lro, {
4629
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4630
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4629
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4630
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4631
4631
  });
4632
4632
  yield poller.poll();
4633
4633
  return poller;
@@ -4641,7 +4641,7 @@ class StorageSyncServicesImpl {
4641
4641
  * @param options The options parameters.
4642
4642
  */
4643
4643
  beginCreateAndWait(resourceGroupName, storageSyncServiceName, parameters, options) {
4644
- return tslib.__awaiter(this, void 0, void 0, function* () {
4644
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4645
4645
  const poller = yield this.beginCreate(resourceGroupName, storageSyncServiceName, parameters, options);
4646
4646
  return poller.pollUntilDone();
4647
4647
  });
@@ -4662,17 +4662,17 @@ class StorageSyncServicesImpl {
4662
4662
  * @param options The options parameters.
4663
4663
  */
4664
4664
  beginUpdate(resourceGroupName, storageSyncServiceName, options) {
4665
- return tslib.__awaiter(this, void 0, void 0, function* () {
4666
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4665
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4666
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4667
4667
  return this.client.sendOperationRequest(args, spec);
4668
4668
  });
4669
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4669
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4670
4670
  var _a;
4671
4671
  let currentRawResponse = undefined;
4672
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4672
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4673
4673
  const callback = (rawResponse, flatResponse) => {
4674
4674
  currentRawResponse = rawResponse;
4675
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4675
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4676
4676
  };
4677
4677
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4678
4678
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4687,8 +4687,8 @@ class StorageSyncServicesImpl {
4687
4687
  });
4688
4688
  const lro = new LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, options }, updateOperationSpec$1);
4689
4689
  const poller = new coreLro.LroEngine(lro, {
4690
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4691
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4690
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4691
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4692
4692
  });
4693
4693
  yield poller.poll();
4694
4694
  return poller;
@@ -4701,7 +4701,7 @@ class StorageSyncServicesImpl {
4701
4701
  * @param options The options parameters.
4702
4702
  */
4703
4703
  beginUpdateAndWait(resourceGroupName, storageSyncServiceName, options) {
4704
- return tslib.__awaiter(this, void 0, void 0, function* () {
4704
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4705
4705
  const poller = yield this.beginUpdate(resourceGroupName, storageSyncServiceName, options);
4706
4706
  return poller.pollUntilDone();
4707
4707
  });
@@ -4713,17 +4713,17 @@ class StorageSyncServicesImpl {
4713
4713
  * @param options The options parameters.
4714
4714
  */
4715
4715
  beginDelete(resourceGroupName, storageSyncServiceName, options) {
4716
- return tslib.__awaiter(this, void 0, void 0, function* () {
4717
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4716
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4717
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4718
4718
  return this.client.sendOperationRequest(args, spec);
4719
4719
  });
4720
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4720
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4721
4721
  var _a;
4722
4722
  let currentRawResponse = undefined;
4723
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4723
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4724
4724
  const callback = (rawResponse, flatResponse) => {
4725
4725
  currentRawResponse = rawResponse;
4726
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4726
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4727
4727
  };
4728
4728
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4729
4729
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4738,8 +4738,8 @@ class StorageSyncServicesImpl {
4738
4738
  });
4739
4739
  const lro = new LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, options }, deleteOperationSpec$5);
4740
4740
  const poller = new coreLro.LroEngine(lro, {
4741
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4742
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4741
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4742
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4743
4743
  });
4744
4744
  yield poller.poll();
4745
4745
  return poller;
@@ -4752,7 +4752,7 @@ class StorageSyncServicesImpl {
4752
4752
  * @param options The options parameters.
4753
4753
  */
4754
4754
  beginDeleteAndWait(resourceGroupName, storageSyncServiceName, options) {
4755
- return tslib.__awaiter(this, void 0, void 0, function* () {
4755
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4756
4756
  const poller = yield this.beginDelete(resourceGroupName, storageSyncServiceName, options);
4757
4757
  return poller.pollUntilDone();
4758
4758
  });
@@ -5034,7 +5034,7 @@ class PrivateEndpointConnectionsImpl {
5034
5034
  return this;
5035
5035
  },
5036
5036
  byPage: (settings) => {
5037
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5037
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5038
5038
  throw new Error("maxPageSize is not supported by this operation.");
5039
5039
  }
5040
5040
  return this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, settings);
@@ -5096,17 +5096,17 @@ class PrivateEndpointConnectionsImpl {
5096
5096
  * @param options The options parameters.
5097
5097
  */
5098
5098
  beginCreate(resourceGroupName, storageSyncServiceName, privateEndpointConnectionName, properties, options) {
5099
- return tslib.__awaiter(this, void 0, void 0, function* () {
5100
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5099
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5100
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5101
5101
  return this.client.sendOperationRequest(args, spec);
5102
5102
  });
5103
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5103
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5104
5104
  var _a;
5105
5105
  let currentRawResponse = undefined;
5106
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5106
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5107
5107
  const callback = (rawResponse, flatResponse) => {
5108
5108
  currentRawResponse = rawResponse;
5109
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5109
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5110
5110
  };
5111
5111
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5112
5112
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5127,8 +5127,8 @@ class PrivateEndpointConnectionsImpl {
5127
5127
  options
5128
5128
  }, createOperationSpec$4);
5129
5129
  const poller = new coreLro.LroEngine(lro, {
5130
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5131
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5130
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5131
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5132
5132
  });
5133
5133
  yield poller.poll();
5134
5134
  return poller;
@@ -5145,7 +5145,7 @@ class PrivateEndpointConnectionsImpl {
5145
5145
  * @param options The options parameters.
5146
5146
  */
5147
5147
  beginCreateAndWait(resourceGroupName, storageSyncServiceName, privateEndpointConnectionName, properties, options) {
5148
- return tslib.__awaiter(this, void 0, void 0, function* () {
5148
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5149
5149
  const poller = yield this.beginCreate(resourceGroupName, storageSyncServiceName, privateEndpointConnectionName, properties, options);
5150
5150
  return poller.pollUntilDone();
5151
5151
  });
@@ -5160,17 +5160,17 @@ class PrivateEndpointConnectionsImpl {
5160
5160
  * @param options The options parameters.
5161
5161
  */
5162
5162
  beginDelete(resourceGroupName, storageSyncServiceName, privateEndpointConnectionName, options) {
5163
- return tslib.__awaiter(this, void 0, void 0, function* () {
5164
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5163
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5164
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5165
5165
  return this.client.sendOperationRequest(args, spec);
5166
5166
  });
5167
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5167
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5168
5168
  var _a;
5169
5169
  let currentRawResponse = undefined;
5170
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5170
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5171
5171
  const callback = (rawResponse, flatResponse) => {
5172
5172
  currentRawResponse = rawResponse;
5173
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5173
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5174
5174
  };
5175
5175
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5176
5176
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5190,8 +5190,8 @@ class PrivateEndpointConnectionsImpl {
5190
5190
  options
5191
5191
  }, deleteOperationSpec$4);
5192
5192
  const poller = new coreLro.LroEngine(lro, {
5193
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5194
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5193
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5194
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5195
5195
  });
5196
5196
  yield poller.poll();
5197
5197
  return poller;
@@ -5207,7 +5207,7 @@ class PrivateEndpointConnectionsImpl {
5207
5207
  * @param options The options parameters.
5208
5208
  */
5209
5209
  beginDeleteAndWait(resourceGroupName, storageSyncServiceName, privateEndpointConnectionName, options) {
5210
- return tslib.__awaiter(this, void 0, void 0, function* () {
5210
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5211
5211
  const poller = yield this.beginDelete(resourceGroupName, storageSyncServiceName, privateEndpointConnectionName, options);
5212
5212
  return poller.pollUntilDone();
5213
5213
  });
@@ -5358,7 +5358,7 @@ class SyncGroupsImpl {
5358
5358
  return this;
5359
5359
  },
5360
5360
  byPage: (settings) => {
5361
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5361
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5362
5362
  throw new Error("maxPageSize is not supported by this operation.");
5363
5363
  }
5364
5364
  return this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, settings);
@@ -5569,7 +5569,7 @@ class CloudEndpointsImpl {
5569
5569
  return this;
5570
5570
  },
5571
5571
  byPage: (settings) => {
5572
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5572
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5573
5573
  throw new Error("maxPageSize is not supported by this operation.");
5574
5574
  }
5575
5575
  return this.listBySyncGroupPagingPage(resourceGroupName, storageSyncServiceName, syncGroupName, options, settings);
@@ -5613,17 +5613,17 @@ class CloudEndpointsImpl {
5613
5613
  * @param options The options parameters.
5614
5614
  */
5615
5615
  beginCreate(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options) {
5616
- return tslib.__awaiter(this, void 0, void 0, function* () {
5617
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5616
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5617
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5618
5618
  return this.client.sendOperationRequest(args, spec);
5619
5619
  });
5620
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5620
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5621
5621
  var _a;
5622
5622
  let currentRawResponse = undefined;
5623
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5623
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5624
5624
  const callback = (rawResponse, flatResponse) => {
5625
5625
  currentRawResponse = rawResponse;
5626
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5626
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5627
5627
  };
5628
5628
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5629
5629
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5645,8 +5645,8 @@ class CloudEndpointsImpl {
5645
5645
  options
5646
5646
  }, createOperationSpec$2);
5647
5647
  const poller = new coreLro.LroEngine(lro, {
5648
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5649
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5648
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5649
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5650
5650
  });
5651
5651
  yield poller.poll();
5652
5652
  return poller;
@@ -5662,7 +5662,7 @@ class CloudEndpointsImpl {
5662
5662
  * @param options The options parameters.
5663
5663
  */
5664
5664
  beginCreateAndWait(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options) {
5665
- return tslib.__awaiter(this, void 0, void 0, function* () {
5665
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5666
5666
  const poller = yield this.beginCreate(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options);
5667
5667
  return poller.pollUntilDone();
5668
5668
  });
@@ -5693,17 +5693,17 @@ class CloudEndpointsImpl {
5693
5693
  * @param options The options parameters.
5694
5694
  */
5695
5695
  beginDelete(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, options) {
5696
- return tslib.__awaiter(this, void 0, void 0, function* () {
5697
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5696
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5697
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5698
5698
  return this.client.sendOperationRequest(args, spec);
5699
5699
  });
5700
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5700
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5701
5701
  var _a;
5702
5702
  let currentRawResponse = undefined;
5703
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5703
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5704
5704
  const callback = (rawResponse, flatResponse) => {
5705
5705
  currentRawResponse = rawResponse;
5706
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5706
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5707
5707
  };
5708
5708
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5709
5709
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5724,8 +5724,8 @@ class CloudEndpointsImpl {
5724
5724
  options
5725
5725
  }, deleteOperationSpec$2);
5726
5726
  const poller = new coreLro.LroEngine(lro, {
5727
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5728
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5727
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5728
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5729
5729
  });
5730
5730
  yield poller.poll();
5731
5731
  return poller;
@@ -5740,7 +5740,7 @@ class CloudEndpointsImpl {
5740
5740
  * @param options The options parameters.
5741
5741
  */
5742
5742
  beginDeleteAndWait(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, options) {
5743
- return tslib.__awaiter(this, void 0, void 0, function* () {
5743
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5744
5744
  const poller = yield this.beginDelete(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, options);
5745
5745
  return poller.pollUntilDone();
5746
5746
  });
@@ -5765,17 +5765,17 @@ class CloudEndpointsImpl {
5765
5765
  * @param options The options parameters.
5766
5766
  */
5767
5767
  beginPreBackup(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options) {
5768
- return tslib.__awaiter(this, void 0, void 0, function* () {
5769
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5768
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5769
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5770
5770
  return this.client.sendOperationRequest(args, spec);
5771
5771
  });
5772
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5772
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5773
5773
  var _a;
5774
5774
  let currentRawResponse = undefined;
5775
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5775
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5776
5776
  const callback = (rawResponse, flatResponse) => {
5777
5777
  currentRawResponse = rawResponse;
5778
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5778
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5779
5779
  };
5780
5780
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5781
5781
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5797,8 +5797,8 @@ class CloudEndpointsImpl {
5797
5797
  options
5798
5798
  }, preBackupOperationSpec);
5799
5799
  const poller = new coreLro.LroEngine(lro, {
5800
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5801
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5800
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5801
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5802
5802
  });
5803
5803
  yield poller.poll();
5804
5804
  return poller;
@@ -5814,7 +5814,7 @@ class CloudEndpointsImpl {
5814
5814
  * @param options The options parameters.
5815
5815
  */
5816
5816
  beginPreBackupAndWait(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options) {
5817
- return tslib.__awaiter(this, void 0, void 0, function* () {
5817
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5818
5818
  const poller = yield this.beginPreBackup(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options);
5819
5819
  return poller.pollUntilDone();
5820
5820
  });
@@ -5829,17 +5829,17 @@ class CloudEndpointsImpl {
5829
5829
  * @param options The options parameters.
5830
5830
  */
5831
5831
  beginPostBackup(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options) {
5832
- return tslib.__awaiter(this, void 0, void 0, function* () {
5833
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5832
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5833
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5834
5834
  return this.client.sendOperationRequest(args, spec);
5835
5835
  });
5836
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5836
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5837
5837
  var _a;
5838
5838
  let currentRawResponse = undefined;
5839
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5839
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5840
5840
  const callback = (rawResponse, flatResponse) => {
5841
5841
  currentRawResponse = rawResponse;
5842
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5842
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5843
5843
  };
5844
5844
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5845
5845
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5861,8 +5861,8 @@ class CloudEndpointsImpl {
5861
5861
  options
5862
5862
  }, postBackupOperationSpec);
5863
5863
  const poller = new coreLro.LroEngine(lro, {
5864
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5865
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5864
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5865
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5866
5866
  });
5867
5867
  yield poller.poll();
5868
5868
  return poller;
@@ -5878,7 +5878,7 @@ class CloudEndpointsImpl {
5878
5878
  * @param options The options parameters.
5879
5879
  */
5880
5880
  beginPostBackupAndWait(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options) {
5881
- return tslib.__awaiter(this, void 0, void 0, function* () {
5881
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5882
5882
  const poller = yield this.beginPostBackup(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options);
5883
5883
  return poller.pollUntilDone();
5884
5884
  });
@@ -5893,17 +5893,17 @@ class CloudEndpointsImpl {
5893
5893
  * @param options The options parameters.
5894
5894
  */
5895
5895
  beginPreRestore(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options) {
5896
- return tslib.__awaiter(this, void 0, void 0, function* () {
5897
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5896
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5897
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5898
5898
  return this.client.sendOperationRequest(args, spec);
5899
5899
  });
5900
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5900
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5901
5901
  var _a;
5902
5902
  let currentRawResponse = undefined;
5903
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5903
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5904
5904
  const callback = (rawResponse, flatResponse) => {
5905
5905
  currentRawResponse = rawResponse;
5906
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5906
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5907
5907
  };
5908
5908
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5909
5909
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5925,8 +5925,8 @@ class CloudEndpointsImpl {
5925
5925
  options
5926
5926
  }, preRestoreOperationSpec);
5927
5927
  const poller = new coreLro.LroEngine(lro, {
5928
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5929
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5928
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5929
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5930
5930
  });
5931
5931
  yield poller.poll();
5932
5932
  return poller;
@@ -5942,7 +5942,7 @@ class CloudEndpointsImpl {
5942
5942
  * @param options The options parameters.
5943
5943
  */
5944
5944
  beginPreRestoreAndWait(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options) {
5945
- return tslib.__awaiter(this, void 0, void 0, function* () {
5945
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5946
5946
  const poller = yield this.beginPreRestore(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options);
5947
5947
  return poller.pollUntilDone();
5948
5948
  });
@@ -5974,17 +5974,17 @@ class CloudEndpointsImpl {
5974
5974
  * @param options The options parameters.
5975
5975
  */
5976
5976
  beginPostRestore(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options) {
5977
- return tslib.__awaiter(this, void 0, void 0, function* () {
5978
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5977
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5978
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5979
5979
  return this.client.sendOperationRequest(args, spec);
5980
5980
  });
5981
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5981
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5982
5982
  var _a;
5983
5983
  let currentRawResponse = undefined;
5984
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5984
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5985
5985
  const callback = (rawResponse, flatResponse) => {
5986
5986
  currentRawResponse = rawResponse;
5987
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5987
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5988
5988
  };
5989
5989
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5990
5990
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6006,8 +6006,8 @@ class CloudEndpointsImpl {
6006
6006
  options
6007
6007
  }, postRestoreOperationSpec);
6008
6008
  const poller = new coreLro.LroEngine(lro, {
6009
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6010
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6009
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6010
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6011
6011
  });
6012
6012
  yield poller.poll();
6013
6013
  return poller;
@@ -6023,7 +6023,7 @@ class CloudEndpointsImpl {
6023
6023
  * @param options The options parameters.
6024
6024
  */
6025
6025
  beginPostRestoreAndWait(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options) {
6026
- return tslib.__awaiter(this, void 0, void 0, function* () {
6026
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6027
6027
  const poller = yield this.beginPostRestore(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options);
6028
6028
  return poller.pollUntilDone();
6029
6029
  });
@@ -6039,17 +6039,17 @@ class CloudEndpointsImpl {
6039
6039
  * @param options The options parameters.
6040
6040
  */
6041
6041
  beginTriggerChangeDetection(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options) {
6042
- return tslib.__awaiter(this, void 0, void 0, function* () {
6043
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6042
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6043
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6044
6044
  return this.client.sendOperationRequest(args, spec);
6045
6045
  });
6046
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6046
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6047
6047
  var _a;
6048
6048
  let currentRawResponse = undefined;
6049
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6049
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6050
6050
  const callback = (rawResponse, flatResponse) => {
6051
6051
  currentRawResponse = rawResponse;
6052
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6052
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6053
6053
  };
6054
6054
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6055
6055
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6071,8 +6071,8 @@ class CloudEndpointsImpl {
6071
6071
  options
6072
6072
  }, triggerChangeDetectionOperationSpec);
6073
6073
  const poller = new coreLro.LroEngine(lro, {
6074
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6075
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6074
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6075
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6076
6076
  });
6077
6077
  yield poller.poll();
6078
6078
  return poller;
@@ -6089,7 +6089,7 @@ class CloudEndpointsImpl {
6089
6089
  * @param options The options parameters.
6090
6090
  */
6091
6091
  beginTriggerChangeDetectionAndWait(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options) {
6092
- return tslib.__awaiter(this, void 0, void 0, function* () {
6092
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6093
6093
  const poller = yield this.beginTriggerChangeDetection(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, options);
6094
6094
  return poller.pollUntilDone();
6095
6095
  });
@@ -6422,7 +6422,7 @@ class ServerEndpointsImpl {
6422
6422
  return this;
6423
6423
  },
6424
6424
  byPage: (settings) => {
6425
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6425
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6426
6426
  throw new Error("maxPageSize is not supported by this operation.");
6427
6427
  }
6428
6428
  return this.listBySyncGroupPagingPage(resourceGroupName, storageSyncServiceName, syncGroupName, options, settings);
@@ -6466,17 +6466,17 @@ class ServerEndpointsImpl {
6466
6466
  * @param options The options parameters.
6467
6467
  */
6468
6468
  beginCreate(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options) {
6469
- return tslib.__awaiter(this, void 0, void 0, function* () {
6470
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6469
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6470
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6471
6471
  return this.client.sendOperationRequest(args, spec);
6472
6472
  });
6473
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6473
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6474
6474
  var _a;
6475
6475
  let currentRawResponse = undefined;
6476
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6476
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6477
6477
  const callback = (rawResponse, flatResponse) => {
6478
6478
  currentRawResponse = rawResponse;
6479
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6479
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6480
6480
  };
6481
6481
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6482
6482
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6498,8 +6498,8 @@ class ServerEndpointsImpl {
6498
6498
  options
6499
6499
  }, createOperationSpec$1);
6500
6500
  const poller = new coreLro.LroEngine(lro, {
6501
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6502
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6501
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6502
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6503
6503
  });
6504
6504
  yield poller.poll();
6505
6505
  return poller;
@@ -6515,7 +6515,7 @@ class ServerEndpointsImpl {
6515
6515
  * @param options The options parameters.
6516
6516
  */
6517
6517
  beginCreateAndWait(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options) {
6518
- return tslib.__awaiter(this, void 0, void 0, function* () {
6518
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6519
6519
  const poller = yield this.beginCreate(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options);
6520
6520
  return poller.pollUntilDone();
6521
6521
  });
@@ -6529,17 +6529,17 @@ class ServerEndpointsImpl {
6529
6529
  * @param options The options parameters.
6530
6530
  */
6531
6531
  beginUpdate(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options) {
6532
- return tslib.__awaiter(this, void 0, void 0, function* () {
6533
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6532
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6533
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6534
6534
  return this.client.sendOperationRequest(args, spec);
6535
6535
  });
6536
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6536
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6537
6537
  var _a;
6538
6538
  let currentRawResponse = undefined;
6539
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6539
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6540
6540
  const callback = (rawResponse, flatResponse) => {
6541
6541
  currentRawResponse = rawResponse;
6542
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6542
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6543
6543
  };
6544
6544
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6545
6545
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6560,8 +6560,8 @@ class ServerEndpointsImpl {
6560
6560
  options
6561
6561
  }, updateOperationSpec);
6562
6562
  const poller = new coreLro.LroEngine(lro, {
6563
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6564
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6563
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6564
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6565
6565
  });
6566
6566
  yield poller.poll();
6567
6567
  return poller;
@@ -6576,7 +6576,7 @@ class ServerEndpointsImpl {
6576
6576
  * @param options The options parameters.
6577
6577
  */
6578
6578
  beginUpdateAndWait(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options) {
6579
- return tslib.__awaiter(this, void 0, void 0, function* () {
6579
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6580
6580
  const poller = yield this.beginUpdate(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options);
6581
6581
  return poller.pollUntilDone();
6582
6582
  });
@@ -6607,17 +6607,17 @@ class ServerEndpointsImpl {
6607
6607
  * @param options The options parameters.
6608
6608
  */
6609
6609
  beginDelete(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options) {
6610
- return tslib.__awaiter(this, void 0, void 0, function* () {
6611
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6610
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6611
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6612
6612
  return this.client.sendOperationRequest(args, spec);
6613
6613
  });
6614
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6614
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6615
6615
  var _a;
6616
6616
  let currentRawResponse = undefined;
6617
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6617
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6618
6618
  const callback = (rawResponse, flatResponse) => {
6619
6619
  currentRawResponse = rawResponse;
6620
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6620
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6621
6621
  };
6622
6622
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6623
6623
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6638,8 +6638,8 @@ class ServerEndpointsImpl {
6638
6638
  options
6639
6639
  }, deleteOperationSpec$1);
6640
6640
  const poller = new coreLro.LroEngine(lro, {
6641
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6642
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6641
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6642
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6643
6643
  });
6644
6644
  yield poller.poll();
6645
6645
  return poller;
@@ -6654,7 +6654,7 @@ class ServerEndpointsImpl {
6654
6654
  * @param options The options parameters.
6655
6655
  */
6656
6656
  beginDeleteAndWait(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options) {
6657
- return tslib.__awaiter(this, void 0, void 0, function* () {
6657
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6658
6658
  const poller = yield this.beginDelete(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, options);
6659
6659
  return poller.pollUntilDone();
6660
6660
  });
@@ -6679,17 +6679,17 @@ class ServerEndpointsImpl {
6679
6679
  * @param options The options parameters.
6680
6680
  */
6681
6681
  beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options) {
6682
- return tslib.__awaiter(this, void 0, void 0, function* () {
6683
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6682
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6683
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6684
6684
  return this.client.sendOperationRequest(args, spec);
6685
6685
  });
6686
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6686
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6687
6687
  var _a;
6688
6688
  let currentRawResponse = undefined;
6689
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6689
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6690
6690
  const callback = (rawResponse, flatResponse) => {
6691
6691
  currentRawResponse = rawResponse;
6692
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6692
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6693
6693
  };
6694
6694
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6695
6695
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6711,8 +6711,8 @@ class ServerEndpointsImpl {
6711
6711
  options
6712
6712
  }, recallActionOperationSpec);
6713
6713
  const poller = new coreLro.LroEngine(lro, {
6714
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6715
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6714
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6715
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6716
6716
  });
6717
6717
  yield poller.poll();
6718
6718
  return poller;
@@ -6728,7 +6728,7 @@ class ServerEndpointsImpl {
6728
6728
  * @param options The options parameters.
6729
6729
  */
6730
6730
  beginRecallActionAndWait(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options) {
6731
- return tslib.__awaiter(this, void 0, void 0, function* () {
6731
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6732
6732
  const poller = yield this.beginRecallAction(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, options);
6733
6733
  return poller.pollUntilDone();
6734
6734
  });
@@ -6959,7 +6959,7 @@ class RegisteredServersImpl {
6959
6959
  return this;
6960
6960
  },
6961
6961
  byPage: (settings) => {
6962
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6962
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6963
6963
  throw new Error("maxPageSize is not supported by this operation.");
6964
6964
  }
6965
6965
  return this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, settings);
@@ -7021,17 +7021,17 @@ class RegisteredServersImpl {
7021
7021
  * @param options The options parameters.
7022
7022
  */
7023
7023
  beginCreate(resourceGroupName, storageSyncServiceName, serverId, parameters, options) {
7024
- return tslib.__awaiter(this, void 0, void 0, function* () {
7025
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7024
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7025
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7026
7026
  return this.client.sendOperationRequest(args, spec);
7027
7027
  });
7028
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7028
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7029
7029
  var _a;
7030
7030
  let currentRawResponse = undefined;
7031
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7031
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7032
7032
  const callback = (rawResponse, flatResponse) => {
7033
7033
  currentRawResponse = rawResponse;
7034
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7034
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7035
7035
  };
7036
7036
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7037
7037
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7052,8 +7052,8 @@ class RegisteredServersImpl {
7052
7052
  options
7053
7053
  }, createOperationSpec);
7054
7054
  const poller = new coreLro.LroEngine(lro, {
7055
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7056
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7055
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7056
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7057
7057
  });
7058
7058
  yield poller.poll();
7059
7059
  return poller;
@@ -7068,7 +7068,7 @@ class RegisteredServersImpl {
7068
7068
  * @param options The options parameters.
7069
7069
  */
7070
7070
  beginCreateAndWait(resourceGroupName, storageSyncServiceName, serverId, parameters, options) {
7071
- return tslib.__awaiter(this, void 0, void 0, function* () {
7071
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7072
7072
  const poller = yield this.beginCreate(resourceGroupName, storageSyncServiceName, serverId, parameters, options);
7073
7073
  return poller.pollUntilDone();
7074
7074
  });
@@ -7081,17 +7081,17 @@ class RegisteredServersImpl {
7081
7081
  * @param options The options parameters.
7082
7082
  */
7083
7083
  beginDelete(resourceGroupName, storageSyncServiceName, serverId, options) {
7084
- return tslib.__awaiter(this, void 0, void 0, function* () {
7085
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7084
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7085
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7086
7086
  return this.client.sendOperationRequest(args, spec);
7087
7087
  });
7088
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7088
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7089
7089
  var _a;
7090
7090
  let currentRawResponse = undefined;
7091
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7091
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7092
7092
  const callback = (rawResponse, flatResponse) => {
7093
7093
  currentRawResponse = rawResponse;
7094
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7094
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7095
7095
  };
7096
7096
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7097
7097
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7106,8 +7106,8 @@ class RegisteredServersImpl {
7106
7106
  });
7107
7107
  const lro = new LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, serverId, options }, deleteOperationSpec);
7108
7108
  const poller = new coreLro.LroEngine(lro, {
7109
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7110
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7109
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7110
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7111
7111
  });
7112
7112
  yield poller.poll();
7113
7113
  return poller;
@@ -7121,7 +7121,7 @@ class RegisteredServersImpl {
7121
7121
  * @param options The options parameters.
7122
7122
  */
7123
7123
  beginDeleteAndWait(resourceGroupName, storageSyncServiceName, serverId, options) {
7124
- return tslib.__awaiter(this, void 0, void 0, function* () {
7124
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7125
7125
  const poller = yield this.beginDelete(resourceGroupName, storageSyncServiceName, serverId, options);
7126
7126
  return poller.pollUntilDone();
7127
7127
  });
@@ -7135,17 +7135,17 @@ class RegisteredServersImpl {
7135
7135
  * @param options The options parameters.
7136
7136
  */
7137
7137
  beginTriggerRollover(resourceGroupName, storageSyncServiceName, serverId, parameters, options) {
7138
- return tslib.__awaiter(this, void 0, void 0, function* () {
7139
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7138
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7139
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7140
7140
  return this.client.sendOperationRequest(args, spec);
7141
7141
  });
7142
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7142
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7143
7143
  var _a;
7144
7144
  let currentRawResponse = undefined;
7145
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7145
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7146
7146
  const callback = (rawResponse, flatResponse) => {
7147
7147
  currentRawResponse = rawResponse;
7148
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7148
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7149
7149
  };
7150
7150
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7151
7151
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7166,8 +7166,8 @@ class RegisteredServersImpl {
7166
7166
  options
7167
7167
  }, triggerRolloverOperationSpec);
7168
7168
  const poller = new coreLro.LroEngine(lro, {
7169
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7170
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7169
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7170
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7171
7171
  });
7172
7172
  yield poller.poll();
7173
7173
  return poller;
@@ -7182,7 +7182,7 @@ class RegisteredServersImpl {
7182
7182
  * @param options The options parameters.
7183
7183
  */
7184
7184
  beginTriggerRolloverAndWait(resourceGroupName, storageSyncServiceName, serverId, parameters, options) {
7185
- return tslib.__awaiter(this, void 0, void 0, function* () {
7185
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7186
7186
  const poller = yield this.beginTriggerRollover(resourceGroupName, storageSyncServiceName, serverId, parameters, options);
7187
7187
  return poller.pollUntilDone();
7188
7188
  });
@@ -7370,7 +7370,7 @@ class WorkflowsImpl {
7370
7370
  return this;
7371
7371
  },
7372
7372
  byPage: (settings) => {
7373
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7373
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7374
7374
  throw new Error("maxPageSize is not supported by this operation.");
7375
7375
  }
7376
7376
  return this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, settings);
@@ -7595,10 +7595,10 @@ class MicrosoftStorageSync extends coreClient__namespace.ServiceClient {
7595
7595
  : `${packageDetails}`;
7596
7596
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
7597
7597
  userAgentPrefix
7598
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
7598
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
7599
7599
  super(optionsWithDefaults);
7600
7600
  let bearerTokenAuthenticationPolicyFound = false;
7601
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
7601
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
7602
7602
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
7603
7603
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
7604
7604
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -7612,7 +7612,7 @@ class MicrosoftStorageSync extends coreClient__namespace.ServiceClient {
7612
7612
  });
7613
7613
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
7614
7614
  credential: credentials,
7615
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
7615
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
7616
7616
  challengeCallbacks: {
7617
7617
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
7618
7618
  }
@@ -7643,7 +7643,7 @@ class MicrosoftStorageSync extends coreClient__namespace.ServiceClient {
7643
7643
  const apiVersionPolicy = {
7644
7644
  name: "CustomApiVersionPolicy",
7645
7645
  sendRequest(request, next) {
7646
- return tslib.__awaiter(this, void 0, void 0, function* () {
7646
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7647
7647
  const param = request.url.split("?");
7648
7648
  if (param.length > 1) {
7649
7649
  const newParams = param[1].split("&").map((item) => {