@azure/arm-postgresql 6.1.1-alpha.20250103.1 → 6.1.1-alpha.20250107.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
47
47
  if (typeof page !== "object" || page === null) {
48
48
  return undefined;
49
49
  }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
51
51
  }
52
52
  function setContinuationToken(page, continuationToken) {
53
53
  var _a;
54
54
  if (typeof page !== "object" || page === null || !continuationToken) {
55
55
  return;
56
56
  }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -2233,12 +2233,12 @@ class LroImpl {
2233
2233
  this.requestMethod = requestMethod;
2234
2234
  }
2235
2235
  sendInitialRequest() {
2236
- return tslib.__awaiter(this, void 0, void 0, function* () {
2236
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2237
2237
  return this.sendOperationFn(this.args, this.spec);
2238
2238
  });
2239
2239
  }
2240
2240
  sendPollRequest(path) {
2241
- return tslib.__awaiter(this, void 0, void 0, function* () {
2241
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2242
2242
  const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
2243
2243
  return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
2244
2244
  });
@@ -2277,7 +2277,7 @@ class ServersImpl {
2277
2277
  return this;
2278
2278
  },
2279
2279
  byPage: (settings) => {
2280
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2280
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2281
2281
  throw new Error("maxPageSize is not supported by this operation.");
2282
2282
  }
2283
2283
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -2325,7 +2325,7 @@ class ServersImpl {
2325
2325
  return this;
2326
2326
  },
2327
2327
  byPage: (settings) => {
2328
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2328
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2329
2329
  throw new Error("maxPageSize is not supported by this operation.");
2330
2330
  }
2331
2331
  return this.listPagingPage(options, settings);
@@ -2367,17 +2367,17 @@ class ServersImpl {
2367
2367
  * @param options The options parameters.
2368
2368
  */
2369
2369
  beginCreate(resourceGroupName, serverName, parameters, options) {
2370
- return tslib.__awaiter(this, void 0, void 0, function* () {
2371
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2370
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2371
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2372
2372
  return this.client.sendOperationRequest(args, spec);
2373
2373
  });
2374
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2374
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2375
2375
  var _a;
2376
2376
  let currentRawResponse = undefined;
2377
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2377
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2378
2378
  const callback = (rawResponse, flatResponse) => {
2379
2379
  currentRawResponse = rawResponse;
2380
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2380
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2381
2381
  };
2382
2382
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2383
2383
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2392,8 +2392,8 @@ class ServersImpl {
2392
2392
  });
2393
2393
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, parameters, options }, createOperationSpec);
2394
2394
  const poller = new coreLro.LroEngine(lro, {
2395
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2396
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2395
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2396
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
2397
2397
  });
2398
2398
  yield poller.poll();
2399
2399
  return poller;
@@ -2407,7 +2407,7 @@ class ServersImpl {
2407
2407
  * @param options The options parameters.
2408
2408
  */
2409
2409
  beginCreateAndWait(resourceGroupName, serverName, parameters, options) {
2410
- return tslib.__awaiter(this, void 0, void 0, function* () {
2410
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2411
2411
  const poller = yield this.beginCreate(resourceGroupName, serverName, parameters, options);
2412
2412
  return poller.pollUntilDone();
2413
2413
  });
@@ -2421,17 +2421,17 @@ class ServersImpl {
2421
2421
  * @param options The options parameters.
2422
2422
  */
2423
2423
  beginUpdate(resourceGroupName, serverName, parameters, options) {
2424
- return tslib.__awaiter(this, void 0, void 0, function* () {
2425
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2424
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2425
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2426
2426
  return this.client.sendOperationRequest(args, spec);
2427
2427
  });
2428
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2428
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2429
2429
  var _a;
2430
2430
  let currentRawResponse = undefined;
2431
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2431
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2432
2432
  const callback = (rawResponse, flatResponse) => {
2433
2433
  currentRawResponse = rawResponse;
2434
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2434
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2435
2435
  };
2436
2436
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2437
2437
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2446,8 +2446,8 @@ class ServersImpl {
2446
2446
  });
2447
2447
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, parameters, options }, updateOperationSpec);
2448
2448
  const poller = new coreLro.LroEngine(lro, {
2449
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2450
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2449
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2450
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
2451
2451
  });
2452
2452
  yield poller.poll();
2453
2453
  return poller;
@@ -2462,7 +2462,7 @@ class ServersImpl {
2462
2462
  * @param options The options parameters.
2463
2463
  */
2464
2464
  beginUpdateAndWait(resourceGroupName, serverName, parameters, options) {
2465
- return tslib.__awaiter(this, void 0, void 0, function* () {
2465
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2466
2466
  const poller = yield this.beginUpdate(resourceGroupName, serverName, parameters, options);
2467
2467
  return poller.pollUntilDone();
2468
2468
  });
@@ -2474,17 +2474,17 @@ class ServersImpl {
2474
2474
  * @param options The options parameters.
2475
2475
  */
2476
2476
  beginDelete(resourceGroupName, serverName, options) {
2477
- return tslib.__awaiter(this, void 0, void 0, function* () {
2478
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2477
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2478
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2479
2479
  return this.client.sendOperationRequest(args, spec);
2480
2480
  });
2481
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2481
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2482
2482
  var _a;
2483
2483
  let currentRawResponse = undefined;
2484
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2484
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2485
2485
  const callback = (rawResponse, flatResponse) => {
2486
2486
  currentRawResponse = rawResponse;
2487
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2487
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2488
2488
  };
2489
2489
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2490
2490
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2499,8 +2499,8 @@ class ServersImpl {
2499
2499
  });
2500
2500
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, options }, deleteOperationSpec$6);
2501
2501
  const poller = new coreLro.LroEngine(lro, {
2502
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2503
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2502
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2503
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
2504
2504
  });
2505
2505
  yield poller.poll();
2506
2506
  return poller;
@@ -2513,7 +2513,7 @@ class ServersImpl {
2513
2513
  * @param options The options parameters.
2514
2514
  */
2515
2515
  beginDeleteAndWait(resourceGroupName, serverName, options) {
2516
- return tslib.__awaiter(this, void 0, void 0, function* () {
2516
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2517
2517
  const poller = yield this.beginDelete(resourceGroupName, serverName, options);
2518
2518
  return poller.pollUntilDone();
2519
2519
  });
@@ -2549,17 +2549,17 @@ class ServersImpl {
2549
2549
  * @param options The options parameters.
2550
2550
  */
2551
2551
  beginRestart(resourceGroupName, serverName, options) {
2552
- return tslib.__awaiter(this, void 0, void 0, function* () {
2553
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2552
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2553
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2554
2554
  return this.client.sendOperationRequest(args, spec);
2555
2555
  });
2556
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2556
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2557
2557
  var _a;
2558
2558
  let currentRawResponse = undefined;
2559
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2559
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2560
2560
  const callback = (rawResponse, flatResponse) => {
2561
2561
  currentRawResponse = rawResponse;
2562
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2562
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2563
2563
  };
2564
2564
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2565
2565
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2574,8 +2574,8 @@ class ServersImpl {
2574
2574
  });
2575
2575
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, options }, restartOperationSpec);
2576
2576
  const poller = new coreLro.LroEngine(lro, {
2577
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2578
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2577
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2578
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
2579
2579
  });
2580
2580
  yield poller.poll();
2581
2581
  return poller;
@@ -2588,7 +2588,7 @@ class ServersImpl {
2588
2588
  * @param options The options parameters.
2589
2589
  */
2590
2590
  beginRestartAndWait(resourceGroupName, serverName, options) {
2591
- return tslib.__awaiter(this, void 0, void 0, function* () {
2591
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2592
2592
  const poller = yield this.beginRestart(resourceGroupName, serverName, options);
2593
2593
  return poller.pollUntilDone();
2594
2594
  });
@@ -2795,7 +2795,7 @@ class ReplicasImpl {
2795
2795
  return this;
2796
2796
  },
2797
2797
  byPage: (settings) => {
2798
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2798
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2799
2799
  throw new Error("maxPageSize is not supported by this operation.");
2800
2800
  }
2801
2801
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -2896,7 +2896,7 @@ class FirewallRulesImpl {
2896
2896
  return this;
2897
2897
  },
2898
2898
  byPage: (settings) => {
2899
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2899
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2900
2900
  throw new Error("maxPageSize is not supported by this operation.");
2901
2901
  }
2902
2902
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -2939,17 +2939,17 @@ class FirewallRulesImpl {
2939
2939
  * @param options The options parameters.
2940
2940
  */
2941
2941
  beginCreateOrUpdate(resourceGroupName, serverName, firewallRuleName, parameters, options) {
2942
- return tslib.__awaiter(this, void 0, void 0, function* () {
2943
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2942
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2943
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2944
2944
  return this.client.sendOperationRequest(args, spec);
2945
2945
  });
2946
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2946
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2947
2947
  var _a;
2948
2948
  let currentRawResponse = undefined;
2949
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2949
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2950
2950
  const callback = (rawResponse, flatResponse) => {
2951
2951
  currentRawResponse = rawResponse;
2952
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2952
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2953
2953
  };
2954
2954
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2955
2955
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2964,8 +2964,8 @@ class FirewallRulesImpl {
2964
2964
  });
2965
2965
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, firewallRuleName, parameters, options }, createOrUpdateOperationSpec$7);
2966
2966
  const poller = new coreLro.LroEngine(lro, {
2967
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2968
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2967
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2968
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
2969
2969
  });
2970
2970
  yield poller.poll();
2971
2971
  return poller;
@@ -2980,7 +2980,7 @@ class FirewallRulesImpl {
2980
2980
  * @param options The options parameters.
2981
2981
  */
2982
2982
  beginCreateOrUpdateAndWait(resourceGroupName, serverName, firewallRuleName, parameters, options) {
2983
- return tslib.__awaiter(this, void 0, void 0, function* () {
2983
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2984
2984
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, firewallRuleName, parameters, options);
2985
2985
  return poller.pollUntilDone();
2986
2986
  });
@@ -2993,17 +2993,17 @@ class FirewallRulesImpl {
2993
2993
  * @param options The options parameters.
2994
2994
  */
2995
2995
  beginDelete(resourceGroupName, serverName, firewallRuleName, options) {
2996
- return tslib.__awaiter(this, void 0, void 0, function* () {
2997
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2996
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2997
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2998
2998
  return this.client.sendOperationRequest(args, spec);
2999
2999
  });
3000
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3000
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3001
3001
  var _a;
3002
3002
  let currentRawResponse = undefined;
3003
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3003
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3004
3004
  const callback = (rawResponse, flatResponse) => {
3005
3005
  currentRawResponse = rawResponse;
3006
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3006
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3007
3007
  };
3008
3008
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3009
3009
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3018,8 +3018,8 @@ class FirewallRulesImpl {
3018
3018
  });
3019
3019
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, firewallRuleName, options }, deleteOperationSpec$5);
3020
3020
  const poller = new coreLro.LroEngine(lro, {
3021
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3022
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3021
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3022
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3023
3023
  });
3024
3024
  yield poller.poll();
3025
3025
  return poller;
@@ -3033,7 +3033,7 @@ class FirewallRulesImpl {
3033
3033
  * @param options The options parameters.
3034
3034
  */
3035
3035
  beginDeleteAndWait(resourceGroupName, serverName, firewallRuleName, options) {
3036
- return tslib.__awaiter(this, void 0, void 0, function* () {
3036
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3037
3037
  const poller = yield this.beginDelete(resourceGroupName, serverName, firewallRuleName, options);
3038
3038
  return poller.pollUntilDone();
3039
3039
  });
@@ -3193,7 +3193,7 @@ class VirtualNetworkRulesImpl {
3193
3193
  return this;
3194
3194
  },
3195
3195
  byPage: (settings) => {
3196
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3196
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3197
3197
  throw new Error("maxPageSize is not supported by this operation.");
3198
3198
  }
3199
3199
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -3203,7 +3203,7 @@ class VirtualNetworkRulesImpl {
3203
3203
  listByServerPagingPage(resourceGroupName, serverName, options, settings) {
3204
3204
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
3205
3205
  let result;
3206
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3206
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3207
3207
  if (!continuationToken) {
3208
3208
  result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
3209
3209
  let page = result.value || [];
@@ -3259,17 +3259,17 @@ class VirtualNetworkRulesImpl {
3259
3259
  * @param options The options parameters.
3260
3260
  */
3261
3261
  beginCreateOrUpdate(resourceGroupName, serverName, virtualNetworkRuleName, parameters, options) {
3262
- return tslib.__awaiter(this, void 0, void 0, function* () {
3263
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3262
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3263
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3264
3264
  return this.client.sendOperationRequest(args, spec);
3265
3265
  });
3266
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3266
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3267
3267
  var _a;
3268
3268
  let currentRawResponse = undefined;
3269
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3269
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3270
3270
  const callback = (rawResponse, flatResponse) => {
3271
3271
  currentRawResponse = rawResponse;
3272
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3272
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3273
3273
  };
3274
3274
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3275
3275
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3290,8 +3290,8 @@ class VirtualNetworkRulesImpl {
3290
3290
  options
3291
3291
  }, createOrUpdateOperationSpec$6);
3292
3292
  const poller = new coreLro.LroEngine(lro, {
3293
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3294
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3293
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3294
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3295
3295
  });
3296
3296
  yield poller.poll();
3297
3297
  return poller;
@@ -3306,7 +3306,7 @@ class VirtualNetworkRulesImpl {
3306
3306
  * @param options The options parameters.
3307
3307
  */
3308
3308
  beginCreateOrUpdateAndWait(resourceGroupName, serverName, virtualNetworkRuleName, parameters, options) {
3309
- return tslib.__awaiter(this, void 0, void 0, function* () {
3309
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3310
3310
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, virtualNetworkRuleName, parameters, options);
3311
3311
  return poller.pollUntilDone();
3312
3312
  });
@@ -3319,17 +3319,17 @@ class VirtualNetworkRulesImpl {
3319
3319
  * @param options The options parameters.
3320
3320
  */
3321
3321
  beginDelete(resourceGroupName, serverName, virtualNetworkRuleName, options) {
3322
- return tslib.__awaiter(this, void 0, void 0, function* () {
3323
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3322
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3323
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3324
3324
  return this.client.sendOperationRequest(args, spec);
3325
3325
  });
3326
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3326
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3327
3327
  var _a;
3328
3328
  let currentRawResponse = undefined;
3329
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3329
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3330
3330
  const callback = (rawResponse, flatResponse) => {
3331
3331
  currentRawResponse = rawResponse;
3332
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3332
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3333
3333
  };
3334
3334
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3335
3335
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3344,8 +3344,8 @@ class VirtualNetworkRulesImpl {
3344
3344
  });
3345
3345
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, virtualNetworkRuleName, options }, deleteOperationSpec$4);
3346
3346
  const poller = new coreLro.LroEngine(lro, {
3347
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3348
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3347
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3348
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3349
3349
  });
3350
3350
  yield poller.poll();
3351
3351
  return poller;
@@ -3359,7 +3359,7 @@ class VirtualNetworkRulesImpl {
3359
3359
  * @param options The options parameters.
3360
3360
  */
3361
3361
  beginDeleteAndWait(resourceGroupName, serverName, virtualNetworkRuleName, options) {
3362
- return tslib.__awaiter(this, void 0, void 0, function* () {
3362
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3363
3363
  const poller = yield this.beginDelete(resourceGroupName, serverName, virtualNetworkRuleName, options);
3364
3364
  return poller.pollUntilDone();
3365
3365
  });
@@ -3524,7 +3524,7 @@ class DatabasesImpl {
3524
3524
  return this;
3525
3525
  },
3526
3526
  byPage: (settings) => {
3527
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3527
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3528
3528
  throw new Error("maxPageSize is not supported by this operation.");
3529
3529
  }
3530
3530
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -3567,17 +3567,17 @@ class DatabasesImpl {
3567
3567
  * @param options The options parameters.
3568
3568
  */
3569
3569
  beginCreateOrUpdate(resourceGroupName, serverName, databaseName, parameters, options) {
3570
- return tslib.__awaiter(this, void 0, void 0, function* () {
3571
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3570
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3571
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3572
3572
  return this.client.sendOperationRequest(args, spec);
3573
3573
  });
3574
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3574
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3575
3575
  var _a;
3576
3576
  let currentRawResponse = undefined;
3577
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3577
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3578
3578
  const callback = (rawResponse, flatResponse) => {
3579
3579
  currentRawResponse = rawResponse;
3580
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3580
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3581
3581
  };
3582
3582
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3583
3583
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3592,8 +3592,8 @@ class DatabasesImpl {
3592
3592
  });
3593
3593
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, databaseName, parameters, options }, createOrUpdateOperationSpec$5);
3594
3594
  const poller = new coreLro.LroEngine(lro, {
3595
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3596
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3595
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3596
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3597
3597
  });
3598
3598
  yield poller.poll();
3599
3599
  return poller;
@@ -3608,7 +3608,7 @@ class DatabasesImpl {
3608
3608
  * @param options The options parameters.
3609
3609
  */
3610
3610
  beginCreateOrUpdateAndWait(resourceGroupName, serverName, databaseName, parameters, options) {
3611
- return tslib.__awaiter(this, void 0, void 0, function* () {
3611
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3612
3612
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, databaseName, parameters, options);
3613
3613
  return poller.pollUntilDone();
3614
3614
  });
@@ -3621,17 +3621,17 @@ class DatabasesImpl {
3621
3621
  * @param options The options parameters.
3622
3622
  */
3623
3623
  beginDelete(resourceGroupName, serverName, databaseName, options) {
3624
- return tslib.__awaiter(this, void 0, void 0, function* () {
3625
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3624
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3625
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3626
3626
  return this.client.sendOperationRequest(args, spec);
3627
3627
  });
3628
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3628
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3629
3629
  var _a;
3630
3630
  let currentRawResponse = undefined;
3631
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3631
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3632
3632
  const callback = (rawResponse, flatResponse) => {
3633
3633
  currentRawResponse = rawResponse;
3634
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3634
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3635
3635
  };
3636
3636
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3637
3637
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3646,8 +3646,8 @@ class DatabasesImpl {
3646
3646
  });
3647
3647
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, databaseName, options }, deleteOperationSpec$3);
3648
3648
  const poller = new coreLro.LroEngine(lro, {
3649
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3650
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3649
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3650
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3651
3651
  });
3652
3652
  yield poller.poll();
3653
3653
  return poller;
@@ -3661,7 +3661,7 @@ class DatabasesImpl {
3661
3661
  * @param options The options parameters.
3662
3662
  */
3663
3663
  beginDeleteAndWait(resourceGroupName, serverName, databaseName, options) {
3664
- return tslib.__awaiter(this, void 0, void 0, function* () {
3664
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3665
3665
  const poller = yield this.beginDelete(resourceGroupName, serverName, databaseName, options);
3666
3666
  return poller.pollUntilDone();
3667
3667
  });
@@ -3821,7 +3821,7 @@ class ConfigurationsImpl {
3821
3821
  return this;
3822
3822
  },
3823
3823
  byPage: (settings) => {
3824
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3824
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3825
3825
  throw new Error("maxPageSize is not supported by this operation.");
3826
3826
  }
3827
3827
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -3864,17 +3864,17 @@ class ConfigurationsImpl {
3864
3864
  * @param options The options parameters.
3865
3865
  */
3866
3866
  beginCreateOrUpdate(resourceGroupName, serverName, configurationName, parameters, options) {
3867
- return tslib.__awaiter(this, void 0, void 0, function* () {
3868
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3867
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3868
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3869
3869
  return this.client.sendOperationRequest(args, spec);
3870
3870
  });
3871
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3871
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3872
3872
  var _a;
3873
3873
  let currentRawResponse = undefined;
3874
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3874
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3875
3875
  const callback = (rawResponse, flatResponse) => {
3876
3876
  currentRawResponse = rawResponse;
3877
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3877
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3878
3878
  };
3879
3879
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3880
3880
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3889,8 +3889,8 @@ class ConfigurationsImpl {
3889
3889
  });
3890
3890
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, configurationName, parameters, options }, createOrUpdateOperationSpec$4);
3891
3891
  const poller = new coreLro.LroEngine(lro, {
3892
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3893
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3892
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3893
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3894
3894
  });
3895
3895
  yield poller.poll();
3896
3896
  return poller;
@@ -3905,7 +3905,7 @@ class ConfigurationsImpl {
3905
3905
  * @param options The options parameters.
3906
3906
  */
3907
3907
  beginCreateOrUpdateAndWait(resourceGroupName, serverName, configurationName, parameters, options) {
3908
- return tslib.__awaiter(this, void 0, void 0, function* () {
3908
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3909
3909
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, configurationName, parameters, options);
3910
3910
  return poller.pollUntilDone();
3911
3911
  });
@@ -4033,17 +4033,17 @@ class ServerParametersImpl {
4033
4033
  * @param options The options parameters.
4034
4034
  */
4035
4035
  beginListUpdateConfigurations(resourceGroupName, serverName, value, options) {
4036
- return tslib.__awaiter(this, void 0, void 0, function* () {
4037
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4036
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4037
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4038
4038
  return this.client.sendOperationRequest(args, spec);
4039
4039
  });
4040
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4040
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4041
4041
  var _a;
4042
4042
  let currentRawResponse = undefined;
4043
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4043
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4044
4044
  const callback = (rawResponse, flatResponse) => {
4045
4045
  currentRawResponse = rawResponse;
4046
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4046
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4047
4047
  };
4048
4048
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4049
4049
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4058,8 +4058,8 @@ class ServerParametersImpl {
4058
4058
  });
4059
4059
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, value, options }, listUpdateConfigurationsOperationSpec);
4060
4060
  const poller = new coreLro.LroEngine(lro, {
4061
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4062
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4061
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4062
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4063
4063
  lroResourceLocationConfig: "azure-async-operation"
4064
4064
  });
4065
4065
  yield poller.poll();
@@ -4074,7 +4074,7 @@ class ServerParametersImpl {
4074
4074
  * @param options The options parameters.
4075
4075
  */
4076
4076
  beginListUpdateConfigurationsAndWait(resourceGroupName, serverName, value, options) {
4077
- return tslib.__awaiter(this, void 0, void 0, function* () {
4077
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4078
4078
  const poller = yield this.beginListUpdateConfigurations(resourceGroupName, serverName, value, options);
4079
4079
  return poller.pollUntilDone();
4080
4080
  });
@@ -4148,7 +4148,7 @@ class LogFilesImpl {
4148
4148
  return this;
4149
4149
  },
4150
4150
  byPage: (settings) => {
4151
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4151
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4152
4152
  throw new Error("maxPageSize is not supported by this operation.");
4153
4153
  }
4154
4154
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -4249,7 +4249,7 @@ class ServerAdministratorsImpl {
4249
4249
  return this;
4250
4250
  },
4251
4251
  byPage: (settings) => {
4252
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4252
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4253
4253
  throw new Error("maxPageSize is not supported by this operation.");
4254
4254
  }
4255
4255
  return this.listPagingPage(resourceGroupName, serverName, options, settings);
@@ -4301,17 +4301,17 @@ class ServerAdministratorsImpl {
4301
4301
  * @param options The options parameters.
4302
4302
  */
4303
4303
  beginCreateOrUpdate(resourceGroupName, serverName, properties, options) {
4304
- return tslib.__awaiter(this, void 0, void 0, function* () {
4305
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4304
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4305
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4306
4306
  return this.client.sendOperationRequest(args, spec);
4307
4307
  });
4308
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4308
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4309
4309
  var _a;
4310
4310
  let currentRawResponse = undefined;
4311
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4311
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4312
4312
  const callback = (rawResponse, flatResponse) => {
4313
4313
  currentRawResponse = rawResponse;
4314
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4314
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4315
4315
  };
4316
4316
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4317
4317
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4326,8 +4326,8 @@ class ServerAdministratorsImpl {
4326
4326
  });
4327
4327
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, properties, options }, createOrUpdateOperationSpec$3);
4328
4328
  const poller = new coreLro.LroEngine(lro, {
4329
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4330
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4329
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4330
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4331
4331
  });
4332
4332
  yield poller.poll();
4333
4333
  return poller;
@@ -4342,7 +4342,7 @@ class ServerAdministratorsImpl {
4342
4342
  * @param options The options parameters.
4343
4343
  */
4344
4344
  beginCreateOrUpdateAndWait(resourceGroupName, serverName, properties, options) {
4345
- return tslib.__awaiter(this, void 0, void 0, function* () {
4345
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4346
4346
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, properties, options);
4347
4347
  return poller.pollUntilDone();
4348
4348
  });
@@ -4354,17 +4354,17 @@ class ServerAdministratorsImpl {
4354
4354
  * @param options The options parameters.
4355
4355
  */
4356
4356
  beginDelete(resourceGroupName, serverName, options) {
4357
- return tslib.__awaiter(this, void 0, void 0, function* () {
4358
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4357
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4358
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4359
4359
  return this.client.sendOperationRequest(args, spec);
4360
4360
  });
4361
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4361
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4362
4362
  var _a;
4363
4363
  let currentRawResponse = undefined;
4364
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4364
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4365
4365
  const callback = (rawResponse, flatResponse) => {
4366
4366
  currentRawResponse = rawResponse;
4367
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4367
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4368
4368
  };
4369
4369
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4370
4370
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4379,8 +4379,8 @@ class ServerAdministratorsImpl {
4379
4379
  });
4380
4380
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, options }, deleteOperationSpec$2);
4381
4381
  const poller = new coreLro.LroEngine(lro, {
4382
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4383
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4382
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4383
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4384
4384
  });
4385
4385
  yield poller.poll();
4386
4386
  return poller;
@@ -4393,7 +4393,7 @@ class ServerAdministratorsImpl {
4393
4393
  * @param options The options parameters.
4394
4394
  */
4395
4395
  beginDeleteAndWait(resourceGroupName, serverName, options) {
4396
- return tslib.__awaiter(this, void 0, void 0, function* () {
4396
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4397
4397
  const poller = yield this.beginDelete(resourceGroupName, serverName, options);
4398
4398
  return poller.pollUntilDone();
4399
4399
  });
@@ -4590,7 +4590,7 @@ class ServerBasedPerformanceTierImpl {
4590
4590
  return this;
4591
4591
  },
4592
4592
  byPage: (settings) => {
4593
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4593
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4594
4594
  throw new Error("maxPageSize is not supported by this operation.");
4595
4595
  }
4596
4596
  return this.listPagingPage(resourceGroupName, serverName, options, settings);
@@ -4690,7 +4690,7 @@ class LocationBasedPerformanceTierImpl {
4690
4690
  return this;
4691
4691
  },
4692
4692
  byPage: (settings) => {
4693
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4693
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4694
4694
  throw new Error("maxPageSize is not supported by this operation.");
4695
4695
  }
4696
4696
  return this.listPagingPage(locationName, options, settings);
@@ -4878,7 +4878,7 @@ class ServerSecurityAlertPoliciesImpl {
4878
4878
  return this;
4879
4879
  },
4880
4880
  byPage: (settings) => {
4881
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4881
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4882
4882
  throw new Error("maxPageSize is not supported by this operation.");
4883
4883
  }
4884
4884
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -4888,7 +4888,7 @@ class ServerSecurityAlertPoliciesImpl {
4888
4888
  listByServerPagingPage(resourceGroupName, serverName, options, settings) {
4889
4889
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
4890
4890
  let result;
4891
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4891
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4892
4892
  if (!continuationToken) {
4893
4893
  result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
4894
4894
  let page = result.value || [];
@@ -4944,17 +4944,17 @@ class ServerSecurityAlertPoliciesImpl {
4944
4944
  * @param options The options parameters.
4945
4945
  */
4946
4946
  beginCreateOrUpdate(resourceGroupName, serverName, securityAlertPolicyName, parameters, options) {
4947
- return tslib.__awaiter(this, void 0, void 0, function* () {
4948
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4947
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4948
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4949
4949
  return this.client.sendOperationRequest(args, spec);
4950
4950
  });
4951
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4951
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4952
4952
  var _a;
4953
4953
  let currentRawResponse = undefined;
4954
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4954
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4955
4955
  const callback = (rawResponse, flatResponse) => {
4956
4956
  currentRawResponse = rawResponse;
4957
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4957
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4958
4958
  };
4959
4959
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4960
4960
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4975,8 +4975,8 @@ class ServerSecurityAlertPoliciesImpl {
4975
4975
  options
4976
4976
  }, createOrUpdateOperationSpec$2);
4977
4977
  const poller = new coreLro.LroEngine(lro, {
4978
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4979
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4978
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4979
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4980
4980
  });
4981
4981
  yield poller.poll();
4982
4982
  return poller;
@@ -4991,7 +4991,7 @@ class ServerSecurityAlertPoliciesImpl {
4991
4991
  * @param options The options parameters.
4992
4992
  */
4993
4993
  beginCreateOrUpdateAndWait(resourceGroupName, serverName, securityAlertPolicyName, parameters, options) {
4994
- return tslib.__awaiter(this, void 0, void 0, function* () {
4994
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4995
4995
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, securityAlertPolicyName, parameters, options);
4996
4996
  return poller.pollUntilDone();
4997
4997
  });
@@ -5142,7 +5142,7 @@ class PrivateEndpointConnectionsImpl {
5142
5142
  return this;
5143
5143
  },
5144
5144
  byPage: (settings) => {
5145
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5145
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5146
5146
  throw new Error("maxPageSize is not supported by this operation.");
5147
5147
  }
5148
5148
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -5152,7 +5152,7 @@ class PrivateEndpointConnectionsImpl {
5152
5152
  listByServerPagingPage(resourceGroupName, serverName, options, settings) {
5153
5153
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
5154
5154
  let result;
5155
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5155
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5156
5156
  if (!continuationToken) {
5157
5157
  result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
5158
5158
  let page = result.value || [];
@@ -5208,17 +5208,17 @@ class PrivateEndpointConnectionsImpl {
5208
5208
  * @param options The options parameters.
5209
5209
  */
5210
5210
  beginCreateOrUpdate(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options) {
5211
- return tslib.__awaiter(this, void 0, void 0, function* () {
5212
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5211
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5212
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5213
5213
  return this.client.sendOperationRequest(args, spec);
5214
5214
  });
5215
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5215
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5216
5216
  var _a;
5217
5217
  let currentRawResponse = undefined;
5218
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5218
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5219
5219
  const callback = (rawResponse, flatResponse) => {
5220
5220
  currentRawResponse = rawResponse;
5221
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5221
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5222
5222
  };
5223
5223
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5224
5224
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5239,8 +5239,8 @@ class PrivateEndpointConnectionsImpl {
5239
5239
  options
5240
5240
  }, createOrUpdateOperationSpec$1);
5241
5241
  const poller = new coreLro.LroEngine(lro, {
5242
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5243
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5242
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5243
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5244
5244
  });
5245
5245
  yield poller.poll();
5246
5246
  return poller;
@@ -5255,7 +5255,7 @@ class PrivateEndpointConnectionsImpl {
5255
5255
  * @param options The options parameters.
5256
5256
  */
5257
5257
  beginCreateOrUpdateAndWait(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options) {
5258
- return tslib.__awaiter(this, void 0, void 0, function* () {
5258
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5259
5259
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options);
5260
5260
  return poller.pollUntilDone();
5261
5261
  });
@@ -5268,17 +5268,17 @@ class PrivateEndpointConnectionsImpl {
5268
5268
  * @param options The options parameters.
5269
5269
  */
5270
5270
  beginDelete(resourceGroupName, serverName, privateEndpointConnectionName, options) {
5271
- return tslib.__awaiter(this, void 0, void 0, function* () {
5272
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5271
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5272
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5273
5273
  return this.client.sendOperationRequest(args, spec);
5274
5274
  });
5275
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5275
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5276
5276
  var _a;
5277
5277
  let currentRawResponse = undefined;
5278
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5278
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5279
5279
  const callback = (rawResponse, flatResponse) => {
5280
5280
  currentRawResponse = rawResponse;
5281
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5281
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5282
5282
  };
5283
5283
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5284
5284
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5293,8 +5293,8 @@ class PrivateEndpointConnectionsImpl {
5293
5293
  });
5294
5294
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, privateEndpointConnectionName, options }, deleteOperationSpec$1);
5295
5295
  const poller = new coreLro.LroEngine(lro, {
5296
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5297
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5296
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5297
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5298
5298
  });
5299
5299
  yield poller.poll();
5300
5300
  return poller;
@@ -5308,7 +5308,7 @@ class PrivateEndpointConnectionsImpl {
5308
5308
  * @param options The options parameters.
5309
5309
  */
5310
5310
  beginDeleteAndWait(resourceGroupName, serverName, privateEndpointConnectionName, options) {
5311
- return tslib.__awaiter(this, void 0, void 0, function* () {
5311
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5312
5312
  const poller = yield this.beginDelete(resourceGroupName, serverName, privateEndpointConnectionName, options);
5313
5313
  return poller.pollUntilDone();
5314
5314
  });
@@ -5322,17 +5322,17 @@ class PrivateEndpointConnectionsImpl {
5322
5322
  * @param options The options parameters.
5323
5323
  */
5324
5324
  beginUpdateTags(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options) {
5325
- return tslib.__awaiter(this, void 0, void 0, function* () {
5326
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5325
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5326
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5327
5327
  return this.client.sendOperationRequest(args, spec);
5328
5328
  });
5329
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5329
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5330
5330
  var _a;
5331
5331
  let currentRawResponse = undefined;
5332
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5332
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5333
5333
  const callback = (rawResponse, flatResponse) => {
5334
5334
  currentRawResponse = rawResponse;
5335
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5335
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5336
5336
  };
5337
5337
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5338
5338
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5353,8 +5353,8 @@ class PrivateEndpointConnectionsImpl {
5353
5353
  options
5354
5354
  }, updateTagsOperationSpec);
5355
5355
  const poller = new coreLro.LroEngine(lro, {
5356
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5357
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5356
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5357
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5358
5358
  });
5359
5359
  yield poller.poll();
5360
5360
  return poller;
@@ -5369,7 +5369,7 @@ class PrivateEndpointConnectionsImpl {
5369
5369
  * @param options The options parameters.
5370
5370
  */
5371
5371
  beginUpdateTagsAndWait(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options) {
5372
- return tslib.__awaiter(this, void 0, void 0, function* () {
5372
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5373
5373
  const poller = yield this.beginUpdateTags(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options);
5374
5374
  return poller.pollUntilDone();
5375
5375
  });
@@ -5584,7 +5584,7 @@ class PrivateLinkResourcesImpl {
5584
5584
  return this;
5585
5585
  },
5586
5586
  byPage: (settings) => {
5587
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5587
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5588
5588
  throw new Error("maxPageSize is not supported by this operation.");
5589
5589
  }
5590
5590
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -5594,7 +5594,7 @@ class PrivateLinkResourcesImpl {
5594
5594
  listByServerPagingPage(resourceGroupName, serverName, options, settings) {
5595
5595
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
5596
5596
  let result;
5597
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5597
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5598
5598
  if (!continuationToken) {
5599
5599
  result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
5600
5600
  let page = result.value || [];
@@ -5762,7 +5762,7 @@ class ServerKeysImpl {
5762
5762
  return this;
5763
5763
  },
5764
5764
  byPage: (settings) => {
5765
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5765
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5766
5766
  throw new Error("maxPageSize is not supported by this operation.");
5767
5767
  }
5768
5768
  return this.listPagingPage(resourceGroupName, serverName, options, settings);
@@ -5772,7 +5772,7 @@ class ServerKeysImpl {
5772
5772
  listPagingPage(resourceGroupName, serverName, options, settings) {
5773
5773
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
5774
5774
  let result;
5775
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5775
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5776
5776
  if (!continuationToken) {
5777
5777
  result = yield tslib.__await(this._list(resourceGroupName, serverName, options));
5778
5778
  let page = result.value || [];
@@ -5837,17 +5837,17 @@ class ServerKeysImpl {
5837
5837
  * @param options The options parameters.
5838
5838
  */
5839
5839
  beginCreateOrUpdate(serverName, keyName, resourceGroupName, parameters, options) {
5840
- return tslib.__awaiter(this, void 0, void 0, function* () {
5841
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5840
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5841
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5842
5842
  return this.client.sendOperationRequest(args, spec);
5843
5843
  });
5844
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5844
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5845
5845
  var _a;
5846
5846
  let currentRawResponse = undefined;
5847
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5847
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5848
5848
  const callback = (rawResponse, flatResponse) => {
5849
5849
  currentRawResponse = rawResponse;
5850
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5850
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5851
5851
  };
5852
5852
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5853
5853
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5862,8 +5862,8 @@ class ServerKeysImpl {
5862
5862
  });
5863
5863
  const lro = new LroImpl(sendOperation, { serverName, keyName, resourceGroupName, parameters, options }, createOrUpdateOperationSpec);
5864
5864
  const poller = new coreLro.LroEngine(lro, {
5865
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5866
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5865
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5866
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5867
5867
  });
5868
5868
  yield poller.poll();
5869
5869
  return poller;
@@ -5878,7 +5878,7 @@ class ServerKeysImpl {
5878
5878
  * @param options The options parameters.
5879
5879
  */
5880
5880
  beginCreateOrUpdateAndWait(serverName, keyName, resourceGroupName, parameters, options) {
5881
- return tslib.__awaiter(this, void 0, void 0, function* () {
5881
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5882
5882
  const poller = yield this.beginCreateOrUpdate(serverName, keyName, resourceGroupName, parameters, options);
5883
5883
  return poller.pollUntilDone();
5884
5884
  });
@@ -5891,17 +5891,17 @@ class ServerKeysImpl {
5891
5891
  * @param options The options parameters.
5892
5892
  */
5893
5893
  beginDelete(serverName, keyName, resourceGroupName, options) {
5894
- return tslib.__awaiter(this, void 0, void 0, function* () {
5895
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5894
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5895
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5896
5896
  return this.client.sendOperationRequest(args, spec);
5897
5897
  });
5898
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5898
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5899
5899
  var _a;
5900
5900
  let currentRawResponse = undefined;
5901
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5901
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5902
5902
  const callback = (rawResponse, flatResponse) => {
5903
5903
  currentRawResponse = rawResponse;
5904
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5904
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5905
5905
  };
5906
5906
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5907
5907
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5916,8 +5916,8 @@ class ServerKeysImpl {
5916
5916
  });
5917
5917
  const lro = new LroImpl(sendOperation, { serverName, keyName, resourceGroupName, options }, deleteOperationSpec);
5918
5918
  const poller = new coreLro.LroEngine(lro, {
5919
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5920
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5919
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5920
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5921
5921
  });
5922
5922
  yield poller.poll();
5923
5923
  return poller;
@@ -5931,7 +5931,7 @@ class ServerKeysImpl {
5931
5931
  * @param options The options parameters.
5932
5932
  */
5933
5933
  beginDeleteAndWait(serverName, keyName, resourceGroupName, options) {
5934
- return tslib.__awaiter(this, void 0, void 0, function* () {
5934
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5935
5935
  const poller = yield this.beginDelete(serverName, keyName, resourceGroupName, options);
5936
5936
  return poller.pollUntilDone();
5937
5937
  });
@@ -6107,10 +6107,10 @@ class PostgreSQLManagementClient extends coreClient__namespace.ServiceClient {
6107
6107
  : `${packageDetails}`;
6108
6108
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
6109
6109
  userAgentPrefix
6110
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
6110
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
6111
6111
  super(optionsWithDefaults);
6112
6112
  let bearerTokenAuthenticationPolicyFound = false;
6113
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
6113
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
6114
6114
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
6115
6115
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
6116
6116
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -6124,7 +6124,7 @@ class PostgreSQLManagementClient extends coreClient__namespace.ServiceClient {
6124
6124
  });
6125
6125
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
6126
6126
  credential: credentials,
6127
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
6127
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
6128
6128
  challengeCallbacks: {
6129
6129
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
6130
6130
  }