@azure/arm-redisenterprisecache 3.1.0-alpha.20250103.1 → 3.1.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
  }
@@ -2370,7 +2370,7 @@ class OperationsImpl {
2370
2370
  return this;
2371
2371
  },
2372
2372
  byPage: (settings) => {
2373
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2373
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2374
2374
  throw new Error("maxPageSize is not supported by this operation.");
2375
2375
  }
2376
2376
  return this.listPagingPage(options, settings);
@@ -2380,7 +2380,7 @@ class OperationsImpl {
2380
2380
  listPagingPage(options, settings) {
2381
2381
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2382
2382
  let result;
2383
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2383
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2384
2384
  if (!continuationToken) {
2385
2385
  result = yield tslib.__await(this._list(options));
2386
2386
  let page = result.value || [];
@@ -2532,7 +2532,7 @@ function createLroSpec(inputs) {
2532
2532
  sendInitialRequest: () => sendOperationFn(args, spec),
2533
2533
  sendPollRequest: (path, options) => {
2534
2534
  const restSpec = tslib.__rest(spec, ["requestBody"]);
2535
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2535
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
2536
2536
  },
2537
2537
  };
2538
2538
  }
@@ -2569,7 +2569,7 @@ class RedisEnterpriseImpl {
2569
2569
  return this;
2570
2570
  },
2571
2571
  byPage: (settings) => {
2572
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2572
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2573
2573
  throw new Error("maxPageSize is not supported by this operation.");
2574
2574
  }
2575
2575
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -2579,7 +2579,7 @@ class RedisEnterpriseImpl {
2579
2579
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
2580
2580
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2581
2581
  let result;
2582
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2582
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2583
2583
  if (!continuationToken) {
2584
2584
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2585
2585
  let page = result.value || [];
@@ -2630,7 +2630,7 @@ class RedisEnterpriseImpl {
2630
2630
  return this;
2631
2631
  },
2632
2632
  byPage: (settings) => {
2633
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2633
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2634
2634
  throw new Error("maxPageSize is not supported by this operation.");
2635
2635
  }
2636
2636
  return this.listPagingPage(options, settings);
@@ -2640,7 +2640,7 @@ class RedisEnterpriseImpl {
2640
2640
  listPagingPage(options, settings) {
2641
2641
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2642
2642
  let result;
2643
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2643
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2644
2644
  if (!continuationToken) {
2645
2645
  result = yield tslib.__await(this._list(options));
2646
2646
  let page = result.value || [];
@@ -2685,17 +2685,17 @@ class RedisEnterpriseImpl {
2685
2685
  * @param options The options parameters.
2686
2686
  */
2687
2687
  beginCreate(resourceGroupName, clusterName, parameters, options) {
2688
- return tslib.__awaiter(this, void 0, void 0, function* () {
2689
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2688
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2689
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2690
2690
  return this.client.sendOperationRequest(args, spec);
2691
2691
  });
2692
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2692
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2693
2693
  var _a;
2694
2694
  let currentRawResponse = undefined;
2695
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2695
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2696
2696
  const callback = (rawResponse, flatResponse) => {
2697
2697
  currentRawResponse = rawResponse;
2698
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2698
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2699
2699
  };
2700
2700
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2701
2701
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2714,8 +2714,8 @@ class RedisEnterpriseImpl {
2714
2714
  spec: createOperationSpec$1,
2715
2715
  });
2716
2716
  const poller = yield coreLro.createHttpPoller(lro, {
2717
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2718
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2717
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2718
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2719
2719
  resourceLocationConfig: "original-uri",
2720
2720
  });
2721
2721
  yield poller.poll();
@@ -2730,7 +2730,7 @@ class RedisEnterpriseImpl {
2730
2730
  * @param options The options parameters.
2731
2731
  */
2732
2732
  beginCreateAndWait(resourceGroupName, clusterName, parameters, options) {
2733
- return tslib.__awaiter(this, void 0, void 0, function* () {
2733
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2734
2734
  const poller = yield this.beginCreate(resourceGroupName, clusterName, parameters, options);
2735
2735
  return poller.pollUntilDone();
2736
2736
  });
@@ -2743,17 +2743,17 @@ class RedisEnterpriseImpl {
2743
2743
  * @param options The options parameters.
2744
2744
  */
2745
2745
  beginUpdate(resourceGroupName, clusterName, parameters, options) {
2746
- return tslib.__awaiter(this, void 0, void 0, function* () {
2747
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2746
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2747
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2748
2748
  return this.client.sendOperationRequest(args, spec);
2749
2749
  });
2750
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2750
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2751
2751
  var _a;
2752
2752
  let currentRawResponse = undefined;
2753
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2753
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2754
2754
  const callback = (rawResponse, flatResponse) => {
2755
2755
  currentRawResponse = rawResponse;
2756
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2756
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2757
2757
  };
2758
2758
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2759
2759
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2772,8 +2772,8 @@ class RedisEnterpriseImpl {
2772
2772
  spec: updateOperationSpec$1,
2773
2773
  });
2774
2774
  const poller = yield coreLro.createHttpPoller(lro, {
2775
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2776
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2775
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2776
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2777
2777
  resourceLocationConfig: "azure-async-operation",
2778
2778
  });
2779
2779
  yield poller.poll();
@@ -2788,7 +2788,7 @@ class RedisEnterpriseImpl {
2788
2788
  * @param options The options parameters.
2789
2789
  */
2790
2790
  beginUpdateAndWait(resourceGroupName, clusterName, parameters, options) {
2791
- return tslib.__awaiter(this, void 0, void 0, function* () {
2791
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2792
2792
  const poller = yield this.beginUpdate(resourceGroupName, clusterName, parameters, options);
2793
2793
  return poller.pollUntilDone();
2794
2794
  });
@@ -2800,17 +2800,17 @@ class RedisEnterpriseImpl {
2800
2800
  * @param options The options parameters.
2801
2801
  */
2802
2802
  beginDelete(resourceGroupName, clusterName, options) {
2803
- return tslib.__awaiter(this, void 0, void 0, function* () {
2804
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2803
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2804
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2805
2805
  return this.client.sendOperationRequest(args, spec);
2806
2806
  });
2807
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2807
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2808
2808
  var _a;
2809
2809
  let currentRawResponse = undefined;
2810
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2810
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2811
2811
  const callback = (rawResponse, flatResponse) => {
2812
2812
  currentRawResponse = rawResponse;
2813
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2813
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2814
2814
  };
2815
2815
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2816
2816
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2829,8 +2829,8 @@ class RedisEnterpriseImpl {
2829
2829
  spec: deleteOperationSpec$3,
2830
2830
  });
2831
2831
  const poller = yield coreLro.createHttpPoller(lro, {
2832
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2833
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2832
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2833
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2834
2834
  resourceLocationConfig: "azure-async-operation",
2835
2835
  });
2836
2836
  yield poller.poll();
@@ -2844,7 +2844,7 @@ class RedisEnterpriseImpl {
2844
2844
  * @param options The options parameters.
2845
2845
  */
2846
2846
  beginDeleteAndWait(resourceGroupName, clusterName, options) {
2847
- return tslib.__awaiter(this, void 0, void 0, function* () {
2847
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2848
2848
  const poller = yield this.beginDelete(resourceGroupName, clusterName, options);
2849
2849
  return poller.pollUntilDone();
2850
2850
  });
@@ -3109,7 +3109,7 @@ class DatabasesImpl {
3109
3109
  return this;
3110
3110
  },
3111
3111
  byPage: (settings) => {
3112
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3112
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3113
3113
  throw new Error("maxPageSize is not supported by this operation.");
3114
3114
  }
3115
3115
  return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
@@ -3119,7 +3119,7 @@ class DatabasesImpl {
3119
3119
  listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
3120
3120
  return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
3121
3121
  let result;
3122
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3122
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3123
3123
  if (!continuationToken) {
3124
3124
  result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
3125
3125
  let page = result.value || [];
@@ -3174,17 +3174,17 @@ class DatabasesImpl {
3174
3174
  * @param options The options parameters.
3175
3175
  */
3176
3176
  beginCreate(resourceGroupName, clusterName, databaseName, parameters, options) {
3177
- return tslib.__awaiter(this, void 0, void 0, function* () {
3178
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3177
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3178
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3179
3179
  return this.client.sendOperationRequest(args, spec);
3180
3180
  });
3181
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3181
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3182
3182
  var _a;
3183
3183
  let currentRawResponse = undefined;
3184
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3184
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3185
3185
  const callback = (rawResponse, flatResponse) => {
3186
3186
  currentRawResponse = rawResponse;
3187
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3187
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3188
3188
  };
3189
3189
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3190
3190
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3209,8 +3209,8 @@ class DatabasesImpl {
3209
3209
  spec: createOperationSpec,
3210
3210
  });
3211
3211
  const poller = yield coreLro.createHttpPoller(lro, {
3212
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3213
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3212
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3213
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3214
3214
  resourceLocationConfig: "original-uri",
3215
3215
  });
3216
3216
  yield poller.poll();
@@ -3226,7 +3226,7 @@ class DatabasesImpl {
3226
3226
  * @param options The options parameters.
3227
3227
  */
3228
3228
  beginCreateAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
3229
- return tslib.__awaiter(this, void 0, void 0, function* () {
3229
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3230
3230
  const poller = yield this.beginCreate(resourceGroupName, clusterName, databaseName, parameters, options);
3231
3231
  return poller.pollUntilDone();
3232
3232
  });
@@ -3240,17 +3240,17 @@ class DatabasesImpl {
3240
3240
  * @param options The options parameters.
3241
3241
  */
3242
3242
  beginUpdate(resourceGroupName, clusterName, databaseName, parameters, options) {
3243
- return tslib.__awaiter(this, void 0, void 0, function* () {
3244
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3243
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3244
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3245
3245
  return this.client.sendOperationRequest(args, spec);
3246
3246
  });
3247
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3247
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3248
3248
  var _a;
3249
3249
  let currentRawResponse = undefined;
3250
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3250
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3251
3251
  const callback = (rawResponse, flatResponse) => {
3252
3252
  currentRawResponse = rawResponse;
3253
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3253
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3254
3254
  };
3255
3255
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3256
3256
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3275,8 +3275,8 @@ class DatabasesImpl {
3275
3275
  spec: updateOperationSpec,
3276
3276
  });
3277
3277
  const poller = yield coreLro.createHttpPoller(lro, {
3278
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3279
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3278
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3279
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3280
3280
  resourceLocationConfig: "azure-async-operation",
3281
3281
  });
3282
3282
  yield poller.poll();
@@ -3292,7 +3292,7 @@ class DatabasesImpl {
3292
3292
  * @param options The options parameters.
3293
3293
  */
3294
3294
  beginUpdateAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
3295
- return tslib.__awaiter(this, void 0, void 0, function* () {
3295
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3296
3296
  const poller = yield this.beginUpdate(resourceGroupName, clusterName, databaseName, parameters, options);
3297
3297
  return poller.pollUntilDone();
3298
3298
  });
@@ -3315,17 +3315,17 @@ class DatabasesImpl {
3315
3315
  * @param options The options parameters.
3316
3316
  */
3317
3317
  beginDelete(resourceGroupName, clusterName, databaseName, options) {
3318
- return tslib.__awaiter(this, void 0, void 0, function* () {
3319
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3318
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3319
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3320
3320
  return this.client.sendOperationRequest(args, spec);
3321
3321
  });
3322
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3322
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3323
3323
  var _a;
3324
3324
  let currentRawResponse = undefined;
3325
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3325
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3326
3326
  const callback = (rawResponse, flatResponse) => {
3327
3327
  currentRawResponse = rawResponse;
3328
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3328
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3329
3329
  };
3330
3330
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3331
3331
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3344,8 +3344,8 @@ class DatabasesImpl {
3344
3344
  spec: deleteOperationSpec$2,
3345
3345
  });
3346
3346
  const poller = yield coreLro.createHttpPoller(lro, {
3347
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3348
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3347
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3348
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3349
3349
  resourceLocationConfig: "azure-async-operation",
3350
3350
  });
3351
3351
  yield poller.poll();
@@ -3360,7 +3360,7 @@ class DatabasesImpl {
3360
3360
  * @param options The options parameters.
3361
3361
  */
3362
3362
  beginDeleteAndWait(resourceGroupName, clusterName, databaseName, options) {
3363
- return tslib.__awaiter(this, void 0, void 0, function* () {
3363
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3364
3364
  const poller = yield this.beginDelete(resourceGroupName, clusterName, databaseName, options);
3365
3365
  return poller.pollUntilDone();
3366
3366
  });
@@ -3384,17 +3384,17 @@ class DatabasesImpl {
3384
3384
  * @param options The options parameters.
3385
3385
  */
3386
3386
  beginRegenerateKey(resourceGroupName, clusterName, databaseName, parameters, options) {
3387
- return tslib.__awaiter(this, void 0, void 0, function* () {
3388
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3387
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3388
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3389
3389
  return this.client.sendOperationRequest(args, spec);
3390
3390
  });
3391
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3391
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3392
3392
  var _a;
3393
3393
  let currentRawResponse = undefined;
3394
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3394
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3395
3395
  const callback = (rawResponse, flatResponse) => {
3396
3396
  currentRawResponse = rawResponse;
3397
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3397
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3398
3398
  };
3399
3399
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3400
3400
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3419,8 +3419,8 @@ class DatabasesImpl {
3419
3419
  spec: regenerateKeyOperationSpec,
3420
3420
  });
3421
3421
  const poller = yield coreLro.createHttpPoller(lro, {
3422
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3423
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3422
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3423
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3424
3424
  resourceLocationConfig: "azure-async-operation",
3425
3425
  });
3426
3426
  yield poller.poll();
@@ -3436,7 +3436,7 @@ class DatabasesImpl {
3436
3436
  * @param options The options parameters.
3437
3437
  */
3438
3438
  beginRegenerateKeyAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
3439
- return tslib.__awaiter(this, void 0, void 0, function* () {
3439
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3440
3440
  const poller = yield this.beginRegenerateKey(resourceGroupName, clusterName, databaseName, parameters, options);
3441
3441
  return poller.pollUntilDone();
3442
3442
  });
@@ -3450,17 +3450,17 @@ class DatabasesImpl {
3450
3450
  * @param options The options parameters.
3451
3451
  */
3452
3452
  beginImport(resourceGroupName, clusterName, databaseName, parameters, options) {
3453
- return tslib.__awaiter(this, void 0, void 0, function* () {
3454
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3453
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3454
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3455
3455
  return this.client.sendOperationRequest(args, spec);
3456
3456
  });
3457
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3457
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3458
3458
  var _a;
3459
3459
  let currentRawResponse = undefined;
3460
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3460
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3461
3461
  const callback = (rawResponse, flatResponse) => {
3462
3462
  currentRawResponse = rawResponse;
3463
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3463
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3464
3464
  };
3465
3465
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3466
3466
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3485,8 +3485,8 @@ class DatabasesImpl {
3485
3485
  spec: importOperationSpec,
3486
3486
  });
3487
3487
  const poller = yield coreLro.createHttpPoller(lro, {
3488
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3489
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3488
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3489
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3490
3490
  resourceLocationConfig: "azure-async-operation",
3491
3491
  });
3492
3492
  yield poller.poll();
@@ -3502,7 +3502,7 @@ class DatabasesImpl {
3502
3502
  * @param options The options parameters.
3503
3503
  */
3504
3504
  beginImportAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
3505
- return tslib.__awaiter(this, void 0, void 0, function* () {
3505
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3506
3506
  const poller = yield this.beginImport(resourceGroupName, clusterName, databaseName, parameters, options);
3507
3507
  return poller.pollUntilDone();
3508
3508
  });
@@ -3516,17 +3516,17 @@ class DatabasesImpl {
3516
3516
  * @param options The options parameters.
3517
3517
  */
3518
3518
  beginExport(resourceGroupName, clusterName, databaseName, parameters, options) {
3519
- return tslib.__awaiter(this, void 0, void 0, function* () {
3520
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3519
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3520
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3521
3521
  return this.client.sendOperationRequest(args, spec);
3522
3522
  });
3523
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3523
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3524
3524
  var _a;
3525
3525
  let currentRawResponse = undefined;
3526
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3526
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3527
3527
  const callback = (rawResponse, flatResponse) => {
3528
3528
  currentRawResponse = rawResponse;
3529
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3529
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3530
3530
  };
3531
3531
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3532
3532
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3551,8 +3551,8 @@ class DatabasesImpl {
3551
3551
  spec: exportOperationSpec,
3552
3552
  });
3553
3553
  const poller = yield coreLro.createHttpPoller(lro, {
3554
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3555
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3554
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3555
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3556
3556
  resourceLocationConfig: "azure-async-operation",
3557
3557
  });
3558
3558
  yield poller.poll();
@@ -3568,7 +3568,7 @@ class DatabasesImpl {
3568
3568
  * @param options The options parameters.
3569
3569
  */
3570
3570
  beginExportAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
3571
- return tslib.__awaiter(this, void 0, void 0, function* () {
3571
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3572
3572
  const poller = yield this.beginExport(resourceGroupName, clusterName, databaseName, parameters, options);
3573
3573
  return poller.pollUntilDone();
3574
3574
  });
@@ -3582,17 +3582,17 @@ class DatabasesImpl {
3582
3582
  * @param options The options parameters.
3583
3583
  */
3584
3584
  beginForceUnlink(resourceGroupName, clusterName, databaseName, parameters, options) {
3585
- return tslib.__awaiter(this, void 0, void 0, function* () {
3586
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3585
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3586
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3587
3587
  return this.client.sendOperationRequest(args, spec);
3588
3588
  });
3589
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3589
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3590
3590
  var _a;
3591
3591
  let currentRawResponse = undefined;
3592
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3592
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3593
3593
  const callback = (rawResponse, flatResponse) => {
3594
3594
  currentRawResponse = rawResponse;
3595
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3595
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3596
3596
  };
3597
3597
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3598
3598
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3617,8 +3617,8 @@ class DatabasesImpl {
3617
3617
  spec: forceUnlinkOperationSpec,
3618
3618
  });
3619
3619
  const poller = yield coreLro.createHttpPoller(lro, {
3620
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3621
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3620
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3621
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3622
3622
  resourceLocationConfig: "azure-async-operation",
3623
3623
  });
3624
3624
  yield poller.poll();
@@ -3634,7 +3634,7 @@ class DatabasesImpl {
3634
3634
  * @param options The options parameters.
3635
3635
  */
3636
3636
  beginForceUnlinkAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
3637
- return tslib.__awaiter(this, void 0, void 0, function* () {
3637
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3638
3638
  const poller = yield this.beginForceUnlink(resourceGroupName, clusterName, databaseName, parameters, options);
3639
3639
  return poller.pollUntilDone();
3640
3640
  });
@@ -3650,17 +3650,17 @@ class DatabasesImpl {
3650
3650
  * @param options The options parameters.
3651
3651
  */
3652
3652
  beginForceLinkToReplicationGroup(resourceGroupName, clusterName, databaseName, parameters, options) {
3653
- return tslib.__awaiter(this, void 0, void 0, function* () {
3654
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3653
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3654
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3655
3655
  return this.client.sendOperationRequest(args, spec);
3656
3656
  });
3657
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3657
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3658
3658
  var _a;
3659
3659
  let currentRawResponse = undefined;
3660
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3660
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3661
3661
  const callback = (rawResponse, flatResponse) => {
3662
3662
  currentRawResponse = rawResponse;
3663
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3663
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3664
3664
  };
3665
3665
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3666
3666
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3685,8 +3685,8 @@ class DatabasesImpl {
3685
3685
  spec: forceLinkToReplicationGroupOperationSpec,
3686
3686
  });
3687
3687
  const poller = yield coreLro.createHttpPoller(lro, {
3688
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3689
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3688
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3689
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3690
3690
  resourceLocationConfig: "azure-async-operation",
3691
3691
  });
3692
3692
  yield poller.poll();
@@ -3704,7 +3704,7 @@ class DatabasesImpl {
3704
3704
  * @param options The options parameters.
3705
3705
  */
3706
3706
  beginForceLinkToReplicationGroupAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
3707
- return tslib.__awaiter(this, void 0, void 0, function* () {
3707
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3708
3708
  const poller = yield this.beginForceLinkToReplicationGroup(resourceGroupName, clusterName, databaseName, parameters, options);
3709
3709
  return poller.pollUntilDone();
3710
3710
  });
@@ -3718,17 +3718,17 @@ class DatabasesImpl {
3718
3718
  * @param options The options parameters.
3719
3719
  */
3720
3720
  beginFlush(resourceGroupName, clusterName, databaseName, parameters, options) {
3721
- return tslib.__awaiter(this, void 0, void 0, function* () {
3722
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3721
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3722
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3723
3723
  return this.client.sendOperationRequest(args, spec);
3724
3724
  });
3725
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3725
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3726
3726
  var _a;
3727
3727
  let currentRawResponse = undefined;
3728
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3728
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3729
3729
  const callback = (rawResponse, flatResponse) => {
3730
3730
  currentRawResponse = rawResponse;
3731
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3731
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3732
3732
  };
3733
3733
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3734
3734
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3753,8 +3753,8 @@ class DatabasesImpl {
3753
3753
  spec: flushOperationSpec,
3754
3754
  });
3755
3755
  const poller = yield coreLro.createHttpPoller(lro, {
3756
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3757
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3756
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3757
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3758
3758
  resourceLocationConfig: "location",
3759
3759
  });
3760
3760
  yield poller.poll();
@@ -3770,7 +3770,7 @@ class DatabasesImpl {
3770
3770
  * @param options The options parameters.
3771
3771
  */
3772
3772
  beginFlushAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
3773
- return tslib.__awaiter(this, void 0, void 0, function* () {
3773
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3774
3774
  const poller = yield this.beginFlush(resourceGroupName, clusterName, databaseName, parameters, options);
3775
3775
  return poller.pollUntilDone();
3776
3776
  });
@@ -3783,17 +3783,17 @@ class DatabasesImpl {
3783
3783
  * @param options The options parameters.
3784
3784
  */
3785
3785
  beginUpgradeDBRedisVersion(resourceGroupName, clusterName, databaseName, options) {
3786
- return tslib.__awaiter(this, void 0, void 0, function* () {
3787
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3786
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3787
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3788
3788
  return this.client.sendOperationRequest(args, spec);
3789
3789
  });
3790
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3790
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3791
3791
  var _a;
3792
3792
  let currentRawResponse = undefined;
3793
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3793
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3794
3794
  const callback = (rawResponse, flatResponse) => {
3795
3795
  currentRawResponse = rawResponse;
3796
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3796
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3797
3797
  };
3798
3798
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3799
3799
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3812,8 +3812,8 @@ class DatabasesImpl {
3812
3812
  spec: upgradeDBRedisVersionOperationSpec,
3813
3813
  });
3814
3814
  const poller = yield coreLro.createHttpPoller(lro, {
3815
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3816
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3815
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3816
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3817
3817
  resourceLocationConfig: "location",
3818
3818
  });
3819
3819
  yield poller.poll();
@@ -3828,7 +3828,7 @@ class DatabasesImpl {
3828
3828
  * @param options The options parameters.
3829
3829
  */
3830
3830
  beginUpgradeDBRedisVersionAndWait(resourceGroupName, clusterName, databaseName, options) {
3831
- return tslib.__awaiter(this, void 0, void 0, function* () {
3831
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3832
3832
  const poller = yield this.beginUpgradeDBRedisVersion(resourceGroupName, clusterName, databaseName, options);
3833
3833
  return poller.pollUntilDone();
3834
3834
  });
@@ -4253,7 +4253,7 @@ class AccessPolicyAssignmentOperationsImpl {
4253
4253
  return this;
4254
4254
  },
4255
4255
  byPage: (settings) => {
4256
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4256
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4257
4257
  throw new Error("maxPageSize is not supported by this operation.");
4258
4258
  }
4259
4259
  return this.listPagingPage(resourceGroupName, clusterName, databaseName, options, settings);
@@ -4263,7 +4263,7 @@ class AccessPolicyAssignmentOperationsImpl {
4263
4263
  listPagingPage(resourceGroupName, clusterName, databaseName, options, settings) {
4264
4264
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4265
4265
  let result;
4266
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4266
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4267
4267
  if (!continuationToken) {
4268
4268
  result = yield tslib.__await(this._list(resourceGroupName, clusterName, databaseName, options));
4269
4269
  let page = result.value || [];
@@ -4311,17 +4311,17 @@ class AccessPolicyAssignmentOperationsImpl {
4311
4311
  * @param options The options parameters.
4312
4312
  */
4313
4313
  beginCreateUpdate(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, parameters, options) {
4314
- return tslib.__awaiter(this, void 0, void 0, function* () {
4315
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4314
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4315
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4316
4316
  return this.client.sendOperationRequest(args, spec);
4317
4317
  });
4318
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4318
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4319
4319
  var _a;
4320
4320
  let currentRawResponse = undefined;
4321
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4321
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4322
4322
  const callback = (rawResponse, flatResponse) => {
4323
4323
  currentRawResponse = rawResponse;
4324
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4324
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4325
4325
  };
4326
4326
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4327
4327
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4347,8 +4347,8 @@ class AccessPolicyAssignmentOperationsImpl {
4347
4347
  spec: createUpdateOperationSpec,
4348
4348
  });
4349
4349
  const poller = yield coreLro.createHttpPoller(lro, {
4350
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4351
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4350
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4351
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4352
4352
  resourceLocationConfig: "original-uri",
4353
4353
  });
4354
4354
  yield poller.poll();
@@ -4366,7 +4366,7 @@ class AccessPolicyAssignmentOperationsImpl {
4366
4366
  * @param options The options parameters.
4367
4367
  */
4368
4368
  beginCreateUpdateAndWait(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, parameters, options) {
4369
- return tslib.__awaiter(this, void 0, void 0, function* () {
4369
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4370
4370
  const poller = yield this.beginCreateUpdate(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, parameters, options);
4371
4371
  return poller.pollUntilDone();
4372
4372
  });
@@ -4399,17 +4399,17 @@ class AccessPolicyAssignmentOperationsImpl {
4399
4399
  * @param options The options parameters.
4400
4400
  */
4401
4401
  beginDelete(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, options) {
4402
- return tslib.__awaiter(this, void 0, void 0, function* () {
4403
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4402
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4403
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4404
4404
  return this.client.sendOperationRequest(args, spec);
4405
4405
  });
4406
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4406
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4407
4407
  var _a;
4408
4408
  let currentRawResponse = undefined;
4409
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4409
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4410
4410
  const callback = (rawResponse, flatResponse) => {
4411
4411
  currentRawResponse = rawResponse;
4412
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4412
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4413
4413
  };
4414
4414
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4415
4415
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4434,8 +4434,8 @@ class AccessPolicyAssignmentOperationsImpl {
4434
4434
  spec: deleteOperationSpec$1,
4435
4435
  });
4436
4436
  const poller = yield coreLro.createHttpPoller(lro, {
4437
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4438
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4437
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4438
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4439
4439
  resourceLocationConfig: "azure-async-operation",
4440
4440
  });
4441
4441
  yield poller.poll();
@@ -4452,7 +4452,7 @@ class AccessPolicyAssignmentOperationsImpl {
4452
4452
  * @param options The options parameters.
4453
4453
  */
4454
4454
  beginDeleteAndWait(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, options) {
4455
- return tslib.__awaiter(this, void 0, void 0, function* () {
4455
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4456
4456
  const poller = yield this.beginDelete(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, options);
4457
4457
  return poller.pollUntilDone();
4458
4458
  });
@@ -4648,7 +4648,7 @@ class PrivateEndpointConnectionsImpl {
4648
4648
  return this;
4649
4649
  },
4650
4650
  byPage: (settings) => {
4651
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4651
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4652
4652
  throw new Error("maxPageSize is not supported by this operation.");
4653
4653
  }
4654
4654
  return this.listPagingPage(resourceGroupName, clusterName, options, settings);
@@ -4718,17 +4718,17 @@ class PrivateEndpointConnectionsImpl {
4718
4718
  * @param options The options parameters.
4719
4719
  */
4720
4720
  beginPut(resourceGroupName, clusterName, privateEndpointConnectionName, properties, options) {
4721
- return tslib.__awaiter(this, void 0, void 0, function* () {
4722
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4721
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4722
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4723
4723
  return this.client.sendOperationRequest(args, spec);
4724
4724
  });
4725
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4725
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4726
4726
  var _a;
4727
4727
  let currentRawResponse = undefined;
4728
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4728
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4729
4729
  const callback = (rawResponse, flatResponse) => {
4730
4730
  currentRawResponse = rawResponse;
4731
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4731
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4732
4732
  };
4733
4733
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4734
4734
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4753,8 +4753,8 @@ class PrivateEndpointConnectionsImpl {
4753
4753
  spec: putOperationSpec,
4754
4754
  });
4755
4755
  const poller = yield coreLro.createHttpPoller(lro, {
4756
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4757
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4756
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4757
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4758
4758
  });
4759
4759
  yield poller.poll();
4760
4760
  return poller;
@@ -4771,7 +4771,7 @@ class PrivateEndpointConnectionsImpl {
4771
4771
  * @param options The options parameters.
4772
4772
  */
4773
4773
  beginPutAndWait(resourceGroupName, clusterName, privateEndpointConnectionName, properties, options) {
4774
- return tslib.__awaiter(this, void 0, void 0, function* () {
4774
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4775
4775
  const poller = yield this.beginPut(resourceGroupName, clusterName, privateEndpointConnectionName, properties, options);
4776
4776
  return poller.pollUntilDone();
4777
4777
  });
@@ -4785,17 +4785,17 @@ class PrivateEndpointConnectionsImpl {
4785
4785
  * @param options The options parameters.
4786
4786
  */
4787
4787
  beginDelete(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
4788
- return tslib.__awaiter(this, void 0, void 0, function* () {
4789
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4788
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4789
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4790
4790
  return this.client.sendOperationRequest(args, spec);
4791
4791
  });
4792
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4792
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4793
4793
  var _a;
4794
4794
  let currentRawResponse = undefined;
4795
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4795
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4796
4796
  const callback = (rawResponse, flatResponse) => {
4797
4797
  currentRawResponse = rawResponse;
4798
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4798
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4799
4799
  };
4800
4800
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4801
4801
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4819,8 +4819,8 @@ class PrivateEndpointConnectionsImpl {
4819
4819
  spec: deleteOperationSpec,
4820
4820
  });
4821
4821
  const poller = yield coreLro.createHttpPoller(lro, {
4822
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4823
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4822
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4823
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4824
4824
  resourceLocationConfig: "location",
4825
4825
  });
4826
4826
  yield poller.poll();
@@ -4836,7 +4836,7 @@ class PrivateEndpointConnectionsImpl {
4836
4836
  * @param options The options parameters.
4837
4837
  */
4838
4838
  beginDeleteAndWait(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
4839
- return tslib.__awaiter(this, void 0, void 0, function* () {
4839
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4840
4840
  const poller = yield this.beginDelete(resourceGroupName, clusterName, privateEndpointConnectionName, options);
4841
4841
  return poller.pollUntilDone();
4842
4842
  });
@@ -4977,7 +4977,7 @@ class PrivateLinkResourcesImpl {
4977
4977
  return this;
4978
4978
  },
4979
4979
  byPage: (settings) => {
4980
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4980
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4981
4981
  throw new Error("maxPageSize is not supported by this operation.");
4982
4982
  }
4983
4983
  return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
@@ -5081,10 +5081,10 @@ class RedisEnterpriseManagementClient extends coreClient__namespace.ServiceClien
5081
5081
  : `${packageDetails}`;
5082
5082
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
5083
5083
  userAgentPrefix,
5084
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
5084
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
5085
5085
  super(optionsWithDefaults);
5086
5086
  let bearerTokenAuthenticationPolicyFound = false;
5087
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
5087
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
5088
5088
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
5089
5089
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
5090
5090
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -5098,7 +5098,7 @@ class RedisEnterpriseManagementClient extends coreClient__namespace.ServiceClien
5098
5098
  });
5099
5099
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
5100
5100
  credential: credentials,
5101
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
5101
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
5102
5102
  challengeCallbacks: {
5103
5103
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
5104
5104
  },
@@ -5127,7 +5127,7 @@ class RedisEnterpriseManagementClient extends coreClient__namespace.ServiceClien
5127
5127
  const apiVersionPolicy = {
5128
5128
  name: "CustomApiVersionPolicy",
5129
5129
  sendRequest(request, next) {
5130
- return tslib.__awaiter(this, void 0, void 0, function* () {
5130
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5131
5131
  const param = request.url.split("?");
5132
5132
  if (param.length > 1) {
5133
5133
  const newParams = param[1].split("&").map((item) => {