@azure/arm-elasticsan 1.2.0-alpha.20250102.1 → 1.2.0-alpha.20250106.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
47
47
  if (typeof page !== "object" || page === null) {
48
48
  return undefined;
49
49
  }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
51
51
  }
52
52
  function setContinuationToken(page, continuationToken) {
53
53
  var _a;
54
54
  if (typeof page !== "object" || page === null || !continuationToken) {
55
55
  return;
56
56
  }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -2242,7 +2242,7 @@ class OperationsImpl {
2242
2242
  return this;
2243
2243
  },
2244
2244
  byPage: (settings) => {
2245
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2245
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2246
2246
  throw new Error("maxPageSize is not supported by this operation.");
2247
2247
  }
2248
2248
  return this.listPagingPage(options, settings);
@@ -2334,7 +2334,7 @@ class SkusImpl {
2334
2334
  return this;
2335
2335
  },
2336
2336
  byPage: (settings) => {
2337
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2337
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2338
2338
  throw new Error("maxPageSize is not supported by this operation.");
2339
2339
  }
2340
2340
  return this.listPagingPage(options, settings);
@@ -2410,7 +2410,7 @@ function createLroSpec(inputs) {
2410
2410
  sendInitialRequest: () => sendOperationFn(args, spec),
2411
2411
  sendPollRequest: (path, options) => {
2412
2412
  const restSpec = tslib.__rest(spec, ["requestBody"]);
2413
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2413
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
2414
2414
  },
2415
2415
  };
2416
2416
  }
@@ -2446,7 +2446,7 @@ class ElasticSansImpl {
2446
2446
  return this;
2447
2447
  },
2448
2448
  byPage: (settings) => {
2449
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2449
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2450
2450
  throw new Error("maxPageSize is not supported by this operation.");
2451
2451
  }
2452
2452
  return this.listBySubscriptionPagingPage(options, settings);
@@ -2456,7 +2456,7 @@ class ElasticSansImpl {
2456
2456
  listBySubscriptionPagingPage(options, settings) {
2457
2457
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
2458
2458
  let result;
2459
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2459
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2460
2460
  if (!continuationToken) {
2461
2461
  result = yield tslib.__await(this._listBySubscription(options));
2462
2462
  let page = result.value || [];
@@ -2508,7 +2508,7 @@ class ElasticSansImpl {
2508
2508
  return this;
2509
2509
  },
2510
2510
  byPage: (settings) => {
2511
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2511
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2512
2512
  throw new Error("maxPageSize is not supported by this operation.");
2513
2513
  }
2514
2514
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -2518,7 +2518,7 @@ class ElasticSansImpl {
2518
2518
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
2519
2519
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2520
2520
  let result;
2521
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2521
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2522
2522
  if (!continuationToken) {
2523
2523
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2524
2524
  let page = result.value || [];
@@ -2578,17 +2578,17 @@ class ElasticSansImpl {
2578
2578
  * @param options The options parameters.
2579
2579
  */
2580
2580
  beginCreate(resourceGroupName, elasticSanName, parameters, options) {
2581
- return tslib.__awaiter(this, void 0, void 0, function* () {
2582
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2581
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2582
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2583
2583
  return this.client.sendOperationRequest(args, spec);
2584
2584
  });
2585
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2585
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2586
2586
  var _a;
2587
2587
  let currentRawResponse = undefined;
2588
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2588
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2589
2589
  const callback = (rawResponse, flatResponse) => {
2590
2590
  currentRawResponse = rawResponse;
2591
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2591
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2592
2592
  };
2593
2593
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2594
2594
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2607,8 +2607,8 @@ class ElasticSansImpl {
2607
2607
  spec: createOperationSpec$4,
2608
2608
  });
2609
2609
  const poller = yield coreLro.createHttpPoller(lro, {
2610
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2611
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2610
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2611
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2612
2612
  resourceLocationConfig: "location",
2613
2613
  });
2614
2614
  yield poller.poll();
@@ -2623,7 +2623,7 @@ class ElasticSansImpl {
2623
2623
  * @param options The options parameters.
2624
2624
  */
2625
2625
  beginCreateAndWait(resourceGroupName, elasticSanName, parameters, options) {
2626
- return tslib.__awaiter(this, void 0, void 0, function* () {
2626
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2627
2627
  const poller = yield this.beginCreate(resourceGroupName, elasticSanName, parameters, options);
2628
2628
  return poller.pollUntilDone();
2629
2629
  });
@@ -2636,17 +2636,17 @@ class ElasticSansImpl {
2636
2636
  * @param options The options parameters.
2637
2637
  */
2638
2638
  beginUpdate(resourceGroupName, elasticSanName, parameters, options) {
2639
- return tslib.__awaiter(this, void 0, void 0, function* () {
2640
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2639
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2640
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2641
2641
  return this.client.sendOperationRequest(args, spec);
2642
2642
  });
2643
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2643
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2644
2644
  var _a;
2645
2645
  let currentRawResponse = undefined;
2646
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2646
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2647
2647
  const callback = (rawResponse, flatResponse) => {
2648
2648
  currentRawResponse = rawResponse;
2649
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2649
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2650
2650
  };
2651
2651
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2652
2652
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2665,8 +2665,8 @@ class ElasticSansImpl {
2665
2665
  spec: updateOperationSpec$2,
2666
2666
  });
2667
2667
  const poller = yield coreLro.createHttpPoller(lro, {
2668
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2669
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2668
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2669
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2670
2670
  resourceLocationConfig: "location",
2671
2671
  });
2672
2672
  yield poller.poll();
@@ -2681,7 +2681,7 @@ class ElasticSansImpl {
2681
2681
  * @param options The options parameters.
2682
2682
  */
2683
2683
  beginUpdateAndWait(resourceGroupName, elasticSanName, parameters, options) {
2684
- return tslib.__awaiter(this, void 0, void 0, function* () {
2684
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2685
2685
  const poller = yield this.beginUpdate(resourceGroupName, elasticSanName, parameters, options);
2686
2686
  return poller.pollUntilDone();
2687
2687
  });
@@ -2693,17 +2693,17 @@ class ElasticSansImpl {
2693
2693
  * @param options The options parameters.
2694
2694
  */
2695
2695
  beginDelete(resourceGroupName, elasticSanName, options) {
2696
- return tslib.__awaiter(this, void 0, void 0, function* () {
2697
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2696
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2697
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2698
2698
  return this.client.sendOperationRequest(args, spec);
2699
2699
  });
2700
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2700
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2701
2701
  var _a;
2702
2702
  let currentRawResponse = undefined;
2703
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2703
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2704
2704
  const callback = (rawResponse, flatResponse) => {
2705
2705
  currentRawResponse = rawResponse;
2706
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2706
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2707
2707
  };
2708
2708
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2709
2709
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2722,8 +2722,8 @@ class ElasticSansImpl {
2722
2722
  spec: deleteOperationSpec$4,
2723
2723
  });
2724
2724
  const poller = yield coreLro.createHttpPoller(lro, {
2725
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2726
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2725
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2726
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2727
2727
  resourceLocationConfig: "location",
2728
2728
  });
2729
2729
  yield poller.poll();
@@ -2737,7 +2737,7 @@ class ElasticSansImpl {
2737
2737
  * @param options The options parameters.
2738
2738
  */
2739
2739
  beginDeleteAndWait(resourceGroupName, elasticSanName, options) {
2740
- return tslib.__awaiter(this, void 0, void 0, function* () {
2740
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2741
2741
  const poller = yield this.beginDelete(resourceGroupName, elasticSanName, options);
2742
2742
  return poller.pollUntilDone();
2743
2743
  });
@@ -2987,7 +2987,7 @@ class VolumeGroupsImpl {
2987
2987
  return this;
2988
2988
  },
2989
2989
  byPage: (settings) => {
2990
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2990
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2991
2991
  throw new Error("maxPageSize is not supported by this operation.");
2992
2992
  }
2993
2993
  return this.listByElasticSanPagingPage(resourceGroupName, elasticSanName, options, settings);
@@ -2997,7 +2997,7 @@ class VolumeGroupsImpl {
2997
2997
  listByElasticSanPagingPage(resourceGroupName, elasticSanName, options, settings) {
2998
2998
  return tslib.__asyncGenerator(this, arguments, function* listByElasticSanPagingPage_1() {
2999
2999
  let result;
3000
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3000
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3001
3001
  if (!continuationToken) {
3002
3002
  result = yield tslib.__await(this._listByElasticSan(resourceGroupName, elasticSanName, options));
3003
3003
  let page = result.value || [];
@@ -3052,17 +3052,17 @@ class VolumeGroupsImpl {
3052
3052
  * @param options The options parameters.
3053
3053
  */
3054
3054
  beginCreate(resourceGroupName, elasticSanName, volumeGroupName, parameters, options) {
3055
- return tslib.__awaiter(this, void 0, void 0, function* () {
3056
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3055
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3056
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3057
3057
  return this.client.sendOperationRequest(args, spec);
3058
3058
  });
3059
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3059
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3060
3060
  var _a;
3061
3061
  let currentRawResponse = undefined;
3062
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3062
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3063
3063
  const callback = (rawResponse, flatResponse) => {
3064
3064
  currentRawResponse = rawResponse;
3065
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3065
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3066
3066
  };
3067
3067
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3068
3068
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3087,8 +3087,8 @@ class VolumeGroupsImpl {
3087
3087
  spec: createOperationSpec$3,
3088
3088
  });
3089
3089
  const poller = yield coreLro.createHttpPoller(lro, {
3090
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3091
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3090
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3091
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3092
3092
  resourceLocationConfig: "location",
3093
3093
  });
3094
3094
  yield poller.poll();
@@ -3104,7 +3104,7 @@ class VolumeGroupsImpl {
3104
3104
  * @param options The options parameters.
3105
3105
  */
3106
3106
  beginCreateAndWait(resourceGroupName, elasticSanName, volumeGroupName, parameters, options) {
3107
- return tslib.__awaiter(this, void 0, void 0, function* () {
3107
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3108
3108
  const poller = yield this.beginCreate(resourceGroupName, elasticSanName, volumeGroupName, parameters, options);
3109
3109
  return poller.pollUntilDone();
3110
3110
  });
@@ -3118,17 +3118,17 @@ class VolumeGroupsImpl {
3118
3118
  * @param options The options parameters.
3119
3119
  */
3120
3120
  beginUpdate(resourceGroupName, elasticSanName, volumeGroupName, parameters, options) {
3121
- return tslib.__awaiter(this, void 0, void 0, function* () {
3122
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3121
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3122
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3123
3123
  return this.client.sendOperationRequest(args, spec);
3124
3124
  });
3125
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3125
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3126
3126
  var _a;
3127
3127
  let currentRawResponse = undefined;
3128
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3128
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3129
3129
  const callback = (rawResponse, flatResponse) => {
3130
3130
  currentRawResponse = rawResponse;
3131
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3131
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3132
3132
  };
3133
3133
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3134
3134
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3153,8 +3153,8 @@ class VolumeGroupsImpl {
3153
3153
  spec: updateOperationSpec$1,
3154
3154
  });
3155
3155
  const poller = yield coreLro.createHttpPoller(lro, {
3156
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3157
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3156
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3157
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3158
3158
  resourceLocationConfig: "location",
3159
3159
  });
3160
3160
  yield poller.poll();
@@ -3170,7 +3170,7 @@ class VolumeGroupsImpl {
3170
3170
  * @param options The options parameters.
3171
3171
  */
3172
3172
  beginUpdateAndWait(resourceGroupName, elasticSanName, volumeGroupName, parameters, options) {
3173
- return tslib.__awaiter(this, void 0, void 0, function* () {
3173
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3174
3174
  const poller = yield this.beginUpdate(resourceGroupName, elasticSanName, volumeGroupName, parameters, options);
3175
3175
  return poller.pollUntilDone();
3176
3176
  });
@@ -3183,17 +3183,17 @@ class VolumeGroupsImpl {
3183
3183
  * @param options The options parameters.
3184
3184
  */
3185
3185
  beginDelete(resourceGroupName, elasticSanName, volumeGroupName, options) {
3186
- return tslib.__awaiter(this, void 0, void 0, function* () {
3187
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3186
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3187
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3188
3188
  return this.client.sendOperationRequest(args, spec);
3189
3189
  });
3190
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3190
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3191
3191
  var _a;
3192
3192
  let currentRawResponse = undefined;
3193
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3193
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3194
3194
  const callback = (rawResponse, flatResponse) => {
3195
3195
  currentRawResponse = rawResponse;
3196
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3196
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3197
3197
  };
3198
3198
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3199
3199
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3212,8 +3212,8 @@ class VolumeGroupsImpl {
3212
3212
  spec: deleteOperationSpec$3,
3213
3213
  });
3214
3214
  const poller = yield coreLro.createHttpPoller(lro, {
3215
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3216
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3215
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3216
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3217
3217
  resourceLocationConfig: "location",
3218
3218
  });
3219
3219
  yield poller.poll();
@@ -3228,7 +3228,7 @@ class VolumeGroupsImpl {
3228
3228
  * @param options The options parameters.
3229
3229
  */
3230
3230
  beginDeleteAndWait(resourceGroupName, elasticSanName, volumeGroupName, options) {
3231
- return tslib.__awaiter(this, void 0, void 0, function* () {
3231
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3232
3232
  const poller = yield this.beginDelete(resourceGroupName, elasticSanName, volumeGroupName, options);
3233
3233
  return poller.pollUntilDone();
3234
3234
  });
@@ -3444,7 +3444,7 @@ class VolumesImpl {
3444
3444
  return this;
3445
3445
  },
3446
3446
  byPage: (settings) => {
3447
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3447
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3448
3448
  throw new Error("maxPageSize is not supported by this operation.");
3449
3449
  }
3450
3450
  return this.listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options, settings);
@@ -3454,7 +3454,7 @@ class VolumesImpl {
3454
3454
  listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options, settings) {
3455
3455
  return tslib.__asyncGenerator(this, arguments, function* listByVolumeGroupPagingPage_1() {
3456
3456
  let result;
3457
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3457
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3458
3458
  if (!continuationToken) {
3459
3459
  result = yield tslib.__await(this._listByVolumeGroup(resourceGroupName, elasticSanName, volumeGroupName, options));
3460
3460
  let page = result.value || [];
@@ -3501,17 +3501,17 @@ class VolumesImpl {
3501
3501
  * @param options The options parameters.
3502
3502
  */
3503
3503
  beginCreate(resourceGroupName, elasticSanName, volumeGroupName, volumeName, parameters, options) {
3504
- return tslib.__awaiter(this, void 0, void 0, function* () {
3505
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3504
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3505
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3506
3506
  return this.client.sendOperationRequest(args, spec);
3507
3507
  });
3508
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3508
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3509
3509
  var _a;
3510
3510
  let currentRawResponse = undefined;
3511
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3511
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3512
3512
  const callback = (rawResponse, flatResponse) => {
3513
3513
  currentRawResponse = rawResponse;
3514
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3514
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3515
3515
  };
3516
3516
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3517
3517
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3537,8 +3537,8 @@ class VolumesImpl {
3537
3537
  spec: createOperationSpec$2,
3538
3538
  });
3539
3539
  const poller = yield coreLro.createHttpPoller(lro, {
3540
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3541
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3540
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3541
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3542
3542
  resourceLocationConfig: "location",
3543
3543
  });
3544
3544
  yield poller.poll();
@@ -3555,7 +3555,7 @@ class VolumesImpl {
3555
3555
  * @param options The options parameters.
3556
3556
  */
3557
3557
  beginCreateAndWait(resourceGroupName, elasticSanName, volumeGroupName, volumeName, parameters, options) {
3558
- return tslib.__awaiter(this, void 0, void 0, function* () {
3558
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3559
3559
  const poller = yield this.beginCreate(resourceGroupName, elasticSanName, volumeGroupName, volumeName, parameters, options);
3560
3560
  return poller.pollUntilDone();
3561
3561
  });
@@ -3570,17 +3570,17 @@ class VolumesImpl {
3570
3570
  * @param options The options parameters.
3571
3571
  */
3572
3572
  beginUpdate(resourceGroupName, elasticSanName, volumeGroupName, volumeName, parameters, options) {
3573
- return tslib.__awaiter(this, void 0, void 0, function* () {
3574
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3573
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3574
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3575
3575
  return this.client.sendOperationRequest(args, spec);
3576
3576
  });
3577
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3577
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3578
3578
  var _a;
3579
3579
  let currentRawResponse = undefined;
3580
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3580
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3581
3581
  const callback = (rawResponse, flatResponse) => {
3582
3582
  currentRawResponse = rawResponse;
3583
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3583
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3584
3584
  };
3585
3585
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3586
3586
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3606,8 +3606,8 @@ class VolumesImpl {
3606
3606
  spec: updateOperationSpec,
3607
3607
  });
3608
3608
  const poller = yield coreLro.createHttpPoller(lro, {
3609
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3610
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3609
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3610
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3611
3611
  resourceLocationConfig: "location",
3612
3612
  });
3613
3613
  yield poller.poll();
@@ -3624,7 +3624,7 @@ class VolumesImpl {
3624
3624
  * @param options The options parameters.
3625
3625
  */
3626
3626
  beginUpdateAndWait(resourceGroupName, elasticSanName, volumeGroupName, volumeName, parameters, options) {
3627
- return tslib.__awaiter(this, void 0, void 0, function* () {
3627
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3628
3628
  const poller = yield this.beginUpdate(resourceGroupName, elasticSanName, volumeGroupName, volumeName, parameters, options);
3629
3629
  return poller.pollUntilDone();
3630
3630
  });
@@ -3638,17 +3638,17 @@ class VolumesImpl {
3638
3638
  * @param options The options parameters.
3639
3639
  */
3640
3640
  beginDelete(resourceGroupName, elasticSanName, volumeGroupName, volumeName, options) {
3641
- return tslib.__awaiter(this, void 0, void 0, function* () {
3642
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3641
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3642
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3643
3643
  return this.client.sendOperationRequest(args, spec);
3644
3644
  });
3645
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3645
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3646
3646
  var _a;
3647
3647
  let currentRawResponse = undefined;
3648
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3648
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3649
3649
  const callback = (rawResponse, flatResponse) => {
3650
3650
  currentRawResponse = rawResponse;
3651
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3651
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3652
3652
  };
3653
3653
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3654
3654
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3673,8 +3673,8 @@ class VolumesImpl {
3673
3673
  spec: deleteOperationSpec$2,
3674
3674
  });
3675
3675
  const poller = yield coreLro.createHttpPoller(lro, {
3676
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3677
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3676
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3677
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3678
3678
  resourceLocationConfig: "location",
3679
3679
  });
3680
3680
  yield poller.poll();
@@ -3690,7 +3690,7 @@ class VolumesImpl {
3690
3690
  * @param options The options parameters.
3691
3691
  */
3692
3692
  beginDeleteAndWait(resourceGroupName, elasticSanName, volumeGroupName, volumeName, options) {
3693
- return tslib.__awaiter(this, void 0, void 0, function* () {
3693
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3694
3694
  const poller = yield this.beginDelete(resourceGroupName, elasticSanName, volumeGroupName, volumeName, options);
3695
3695
  return poller.pollUntilDone();
3696
3696
  });
@@ -3933,7 +3933,7 @@ class PrivateEndpointConnectionsImpl {
3933
3933
  return this;
3934
3934
  },
3935
3935
  byPage: (settings) => {
3936
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3936
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3937
3937
  throw new Error("maxPageSize is not supported by this operation.");
3938
3938
  }
3939
3939
  return this.listPagingPage(resourceGroupName, elasticSanName, options, settings);
@@ -3976,17 +3976,17 @@ class PrivateEndpointConnectionsImpl {
3976
3976
  * @param options The options parameters.
3977
3977
  */
3978
3978
  beginCreate(resourceGroupName, elasticSanName, privateEndpointConnectionName, parameters, options) {
3979
- return tslib.__awaiter(this, void 0, void 0, function* () {
3980
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3979
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3980
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3981
3981
  return this.client.sendOperationRequest(args, spec);
3982
3982
  });
3983
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3983
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3984
3984
  var _a;
3985
3985
  let currentRawResponse = undefined;
3986
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3986
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3987
3987
  const callback = (rawResponse, flatResponse) => {
3988
3988
  currentRawResponse = rawResponse;
3989
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3989
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3990
3990
  };
3991
3991
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3992
3992
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4011,8 +4011,8 @@ class PrivateEndpointConnectionsImpl {
4011
4011
  spec: createOperationSpec$1,
4012
4012
  });
4013
4013
  const poller = yield coreLro.createHttpPoller(lro, {
4014
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4015
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4014
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4015
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4016
4016
  resourceLocationConfig: "location",
4017
4017
  });
4018
4018
  yield poller.poll();
@@ -4028,7 +4028,7 @@ class PrivateEndpointConnectionsImpl {
4028
4028
  * @param options The options parameters.
4029
4029
  */
4030
4030
  beginCreateAndWait(resourceGroupName, elasticSanName, privateEndpointConnectionName, parameters, options) {
4031
- return tslib.__awaiter(this, void 0, void 0, function* () {
4031
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4032
4032
  const poller = yield this.beginCreate(resourceGroupName, elasticSanName, privateEndpointConnectionName, parameters, options);
4033
4033
  return poller.pollUntilDone();
4034
4034
  });
@@ -4056,17 +4056,17 @@ class PrivateEndpointConnectionsImpl {
4056
4056
  * @param options The options parameters.
4057
4057
  */
4058
4058
  beginDelete(resourceGroupName, elasticSanName, privateEndpointConnectionName, options) {
4059
- return tslib.__awaiter(this, void 0, void 0, function* () {
4060
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4059
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4060
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4061
4061
  return this.client.sendOperationRequest(args, spec);
4062
4062
  });
4063
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4063
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4064
4064
  var _a;
4065
4065
  let currentRawResponse = undefined;
4066
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4066
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4067
4067
  const callback = (rawResponse, flatResponse) => {
4068
4068
  currentRawResponse = rawResponse;
4069
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4069
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4070
4070
  };
4071
4071
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4072
4072
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4090,8 +4090,8 @@ class PrivateEndpointConnectionsImpl {
4090
4090
  spec: deleteOperationSpec$1,
4091
4091
  });
4092
4092
  const poller = yield coreLro.createHttpPoller(lro, {
4093
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4094
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4093
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4094
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4095
4095
  resourceLocationConfig: "location",
4096
4096
  });
4097
4097
  yield poller.poll();
@@ -4106,7 +4106,7 @@ class PrivateEndpointConnectionsImpl {
4106
4106
  * @param options The options parameters.
4107
4107
  */
4108
4108
  beginDeleteAndWait(resourceGroupName, elasticSanName, privateEndpointConnectionName, options) {
4109
- return tslib.__awaiter(this, void 0, void 0, function* () {
4109
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4110
4110
  const poller = yield this.beginDelete(resourceGroupName, elasticSanName, privateEndpointConnectionName, options);
4111
4111
  return poller.pollUntilDone();
4112
4112
  });
@@ -4307,7 +4307,7 @@ class VolumeSnapshotsImpl {
4307
4307
  return this;
4308
4308
  },
4309
4309
  byPage: (settings) => {
4310
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4310
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4311
4311
  throw new Error("maxPageSize is not supported by this operation.");
4312
4312
  }
4313
4313
  return this.listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options, settings);
@@ -4317,7 +4317,7 @@ class VolumeSnapshotsImpl {
4317
4317
  listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options, settings) {
4318
4318
  return tslib.__asyncGenerator(this, arguments, function* listByVolumeGroupPagingPage_1() {
4319
4319
  let result;
4320
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4320
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4321
4321
  if (!continuationToken) {
4322
4322
  result = yield tslib.__await(this._listByVolumeGroup(resourceGroupName, elasticSanName, volumeGroupName, options));
4323
4323
  let page = result.value || [];
@@ -4374,17 +4374,17 @@ class VolumeSnapshotsImpl {
4374
4374
  * @param options The options parameters.
4375
4375
  */
4376
4376
  beginCreate(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, parameters, options) {
4377
- return tslib.__awaiter(this, void 0, void 0, function* () {
4378
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4377
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4378
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4379
4379
  return this.client.sendOperationRequest(args, spec);
4380
4380
  });
4381
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4381
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4382
4382
  var _a;
4383
4383
  let currentRawResponse = undefined;
4384
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4384
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4385
4385
  const callback = (rawResponse, flatResponse) => {
4386
4386
  currentRawResponse = rawResponse;
4387
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4387
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4388
4388
  };
4389
4389
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4390
4390
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4410,8 +4410,8 @@ class VolumeSnapshotsImpl {
4410
4410
  spec: createOperationSpec,
4411
4411
  });
4412
4412
  const poller = yield coreLro.createHttpPoller(lro, {
4413
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4414
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4413
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4414
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4415
4415
  resourceLocationConfig: "location",
4416
4416
  });
4417
4417
  yield poller.poll();
@@ -4428,7 +4428,7 @@ class VolumeSnapshotsImpl {
4428
4428
  * @param options The options parameters.
4429
4429
  */
4430
4430
  beginCreateAndWait(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, parameters, options) {
4431
- return tslib.__awaiter(this, void 0, void 0, function* () {
4431
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4432
4432
  const poller = yield this.beginCreate(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, parameters, options);
4433
4433
  return poller.pollUntilDone();
4434
4434
  });
@@ -4442,17 +4442,17 @@ class VolumeSnapshotsImpl {
4442
4442
  * @param options The options parameters.
4443
4443
  */
4444
4444
  beginDelete(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, options) {
4445
- return tslib.__awaiter(this, void 0, void 0, function* () {
4446
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4445
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4446
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4447
4447
  return this.client.sendOperationRequest(args, spec);
4448
4448
  });
4449
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4449
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4450
4450
  var _a;
4451
4451
  let currentRawResponse = undefined;
4452
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4452
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4453
4453
  const callback = (rawResponse, flatResponse) => {
4454
4454
  currentRawResponse = rawResponse;
4455
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4455
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4456
4456
  };
4457
4457
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4458
4458
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4477,8 +4477,8 @@ class VolumeSnapshotsImpl {
4477
4477
  spec: deleteOperationSpec,
4478
4478
  });
4479
4479
  const poller = yield coreLro.createHttpPoller(lro, {
4480
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4481
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4480
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4481
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4482
4482
  resourceLocationConfig: "location",
4483
4483
  });
4484
4484
  yield poller.poll();
@@ -4494,7 +4494,7 @@ class VolumeSnapshotsImpl {
4494
4494
  * @param options The options parameters.
4495
4495
  */
4496
4496
  beginDeleteAndWait(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, options) {
4497
- return tslib.__awaiter(this, void 0, void 0, function* () {
4497
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4498
4498
  const poller = yield this.beginDelete(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, options);
4499
4499
  return poller.pollUntilDone();
4500
4500
  });
@@ -4692,10 +4692,10 @@ class ElasticSanManagement extends coreClient__namespace.ServiceClient {
4692
4692
  : `${packageDetails}`;
4693
4693
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
4694
4694
  userAgentPrefix,
4695
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
4695
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
4696
4696
  super(optionsWithDefaults);
4697
4697
  let bearerTokenAuthenticationPolicyFound = false;
4698
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4698
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4699
4699
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
4700
4700
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
4701
4701
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -4709,7 +4709,7 @@ class ElasticSanManagement extends coreClient__namespace.ServiceClient {
4709
4709
  });
4710
4710
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
4711
4711
  credential: credentials,
4712
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
4712
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
4713
4713
  challengeCallbacks: {
4714
4714
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
4715
4715
  },
@@ -4738,7 +4738,7 @@ class ElasticSanManagement extends coreClient__namespace.ServiceClient {
4738
4738
  const apiVersionPolicy = {
4739
4739
  name: "CustomApiVersionPolicy",
4740
4740
  sendRequest(request, next) {
4741
- return tslib.__awaiter(this, void 0, void 0, function* () {
4741
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4742
4742
  const param = request.url.split("?");
4743
4743
  if (param.length > 1) {
4744
4744
  const newParams = param[1].split("&").map((item) => {