@azure/arm-mysql 5.1.1-alpha.20250103.1 → 5.1.1-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
  }
@@ -253,12 +253,12 @@ class LroImpl {
253
253
  this.requestMethod = requestMethod;
254
254
  }
255
255
  sendInitialRequest() {
256
- return tslib.__awaiter(this, void 0, void 0, function* () {
256
+ return tslib.__awaiter(this, undefined, undefined, function* () {
257
257
  return this.sendOperationFn(this.args, this.spec);
258
258
  });
259
259
  }
260
260
  sendPollRequest(path) {
261
- return tslib.__awaiter(this, void 0, void 0, function* () {
261
+ return tslib.__awaiter(this, undefined, undefined, function* () {
262
262
  const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
263
263
  return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
264
264
  });
@@ -2880,7 +2880,7 @@ class ServersImpl {
2880
2880
  return this;
2881
2881
  },
2882
2882
  byPage: (settings) => {
2883
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2883
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2884
2884
  throw new Error("maxPageSize is not supported by this operation.");
2885
2885
  }
2886
2886
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -2928,7 +2928,7 @@ class ServersImpl {
2928
2928
  return this;
2929
2929
  },
2930
2930
  byPage: (settings) => {
2931
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2931
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2932
2932
  throw new Error("maxPageSize is not supported by this operation.");
2933
2933
  }
2934
2934
  return this.listPagingPage(options, settings);
@@ -2971,17 +2971,17 @@ class ServersImpl {
2971
2971
  * @param options The options parameters.
2972
2972
  */
2973
2973
  beginCreate(resourceGroupName, serverName, parameters, options) {
2974
- return tslib.__awaiter(this, void 0, void 0, function* () {
2975
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2974
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2975
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2976
2976
  return this.client.sendOperationRequest(args, spec);
2977
2977
  });
2978
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2978
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2979
2979
  var _a;
2980
2980
  let currentRawResponse = undefined;
2981
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2981
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2982
2982
  const callback = (rawResponse, flatResponse) => {
2983
2983
  currentRawResponse = rawResponse;
2984
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2984
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2985
2985
  };
2986
2986
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2987
2987
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2996,8 +2996,8 @@ class ServersImpl {
2996
2996
  });
2997
2997
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, parameters, options }, createOperationSpec);
2998
2998
  const poller = new coreLro.LroEngine(lro, {
2999
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3000
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2999
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3000
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3001
3001
  });
3002
3002
  yield poller.poll();
3003
3003
  return poller;
@@ -3012,7 +3012,7 @@ class ServersImpl {
3012
3012
  * @param options The options parameters.
3013
3013
  */
3014
3014
  beginCreateAndWait(resourceGroupName, serverName, parameters, options) {
3015
- return tslib.__awaiter(this, void 0, void 0, function* () {
3015
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3016
3016
  const poller = yield this.beginCreate(resourceGroupName, serverName, parameters, options);
3017
3017
  return poller.pollUntilDone();
3018
3018
  });
@@ -3026,17 +3026,17 @@ class ServersImpl {
3026
3026
  * @param options The options parameters.
3027
3027
  */
3028
3028
  beginUpdate(resourceGroupName, serverName, parameters, options) {
3029
- return tslib.__awaiter(this, void 0, void 0, function* () {
3030
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3029
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3030
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3031
3031
  return this.client.sendOperationRequest(args, spec);
3032
3032
  });
3033
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3033
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3034
3034
  var _a;
3035
3035
  let currentRawResponse = undefined;
3036
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3036
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3037
3037
  const callback = (rawResponse, flatResponse) => {
3038
3038
  currentRawResponse = rawResponse;
3039
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3039
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3040
3040
  };
3041
3041
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3042
3042
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3051,8 +3051,8 @@ class ServersImpl {
3051
3051
  });
3052
3052
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, parameters, options }, updateOperationSpec);
3053
3053
  const poller = new coreLro.LroEngine(lro, {
3054
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3055
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3054
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3055
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3056
3056
  });
3057
3057
  yield poller.poll();
3058
3058
  return poller;
@@ -3067,7 +3067,7 @@ class ServersImpl {
3067
3067
  * @param options The options parameters.
3068
3068
  */
3069
3069
  beginUpdateAndWait(resourceGroupName, serverName, parameters, options) {
3070
- return tslib.__awaiter(this, void 0, void 0, function* () {
3070
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3071
3071
  const poller = yield this.beginUpdate(resourceGroupName, serverName, parameters, options);
3072
3072
  return poller.pollUntilDone();
3073
3073
  });
@@ -3079,17 +3079,17 @@ class ServersImpl {
3079
3079
  * @param options The options parameters.
3080
3080
  */
3081
3081
  beginDelete(resourceGroupName, serverName, options) {
3082
- return tslib.__awaiter(this, void 0, void 0, function* () {
3083
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3082
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3083
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3084
3084
  return this.client.sendOperationRequest(args, spec);
3085
3085
  });
3086
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3086
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3087
3087
  var _a;
3088
3088
  let currentRawResponse = undefined;
3089
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3089
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3090
3090
  const callback = (rawResponse, flatResponse) => {
3091
3091
  currentRawResponse = rawResponse;
3092
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3092
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3093
3093
  };
3094
3094
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3095
3095
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3104,8 +3104,8 @@ class ServersImpl {
3104
3104
  });
3105
3105
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, options }, deleteOperationSpec$6);
3106
3106
  const poller = new coreLro.LroEngine(lro, {
3107
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3108
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3107
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3108
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3109
3109
  });
3110
3110
  yield poller.poll();
3111
3111
  return poller;
@@ -3118,7 +3118,7 @@ class ServersImpl {
3118
3118
  * @param options The options parameters.
3119
3119
  */
3120
3120
  beginDeleteAndWait(resourceGroupName, serverName, options) {
3121
- return tslib.__awaiter(this, void 0, void 0, function* () {
3121
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3122
3122
  const poller = yield this.beginDelete(resourceGroupName, serverName, options);
3123
3123
  return poller.pollUntilDone();
3124
3124
  });
@@ -3154,17 +3154,17 @@ class ServersImpl {
3154
3154
  * @param options The options parameters.
3155
3155
  */
3156
3156
  beginRestart(resourceGroupName, serverName, options) {
3157
- return tslib.__awaiter(this, void 0, void 0, function* () {
3158
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3157
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3158
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3159
3159
  return this.client.sendOperationRequest(args, spec);
3160
3160
  });
3161
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3161
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3162
3162
  var _a;
3163
3163
  let currentRawResponse = undefined;
3164
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3164
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3165
3165
  const callback = (rawResponse, flatResponse) => {
3166
3166
  currentRawResponse = rawResponse;
3167
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3167
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3168
3168
  };
3169
3169
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3170
3170
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3179,8 +3179,8 @@ class ServersImpl {
3179
3179
  });
3180
3180
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, options }, restartOperationSpec);
3181
3181
  const poller = new coreLro.LroEngine(lro, {
3182
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3183
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3182
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3183
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3184
3184
  });
3185
3185
  yield poller.poll();
3186
3186
  return poller;
@@ -3193,7 +3193,7 @@ class ServersImpl {
3193
3193
  * @param options The options parameters.
3194
3194
  */
3195
3195
  beginRestartAndWait(resourceGroupName, serverName, options) {
3196
- return tslib.__awaiter(this, void 0, void 0, function* () {
3196
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3197
3197
  const poller = yield this.beginRestart(resourceGroupName, serverName, options);
3198
3198
  return poller.pollUntilDone();
3199
3199
  });
@@ -3205,17 +3205,17 @@ class ServersImpl {
3205
3205
  * @param options The options parameters.
3206
3206
  */
3207
3207
  beginStart(resourceGroupName, serverName, options) {
3208
- return tslib.__awaiter(this, void 0, void 0, function* () {
3209
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3208
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3209
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3210
3210
  return this.client.sendOperationRequest(args, spec);
3211
3211
  });
3212
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3212
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3213
3213
  var _a;
3214
3214
  let currentRawResponse = undefined;
3215
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3215
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3216
3216
  const callback = (rawResponse, flatResponse) => {
3217
3217
  currentRawResponse = rawResponse;
3218
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3218
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3219
3219
  };
3220
3220
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3221
3221
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3230,8 +3230,8 @@ class ServersImpl {
3230
3230
  });
3231
3231
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, options }, startOperationSpec);
3232
3232
  const poller = new coreLro.LroEngine(lro, {
3233
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3234
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3233
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3234
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3235
3235
  });
3236
3236
  yield poller.poll();
3237
3237
  return poller;
@@ -3244,7 +3244,7 @@ class ServersImpl {
3244
3244
  * @param options The options parameters.
3245
3245
  */
3246
3246
  beginStartAndWait(resourceGroupName, serverName, options) {
3247
- return tslib.__awaiter(this, void 0, void 0, function* () {
3247
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3248
3248
  const poller = yield this.beginStart(resourceGroupName, serverName, options);
3249
3249
  return poller.pollUntilDone();
3250
3250
  });
@@ -3256,17 +3256,17 @@ class ServersImpl {
3256
3256
  * @param options The options parameters.
3257
3257
  */
3258
3258
  beginStop(resourceGroupName, serverName, options) {
3259
- return tslib.__awaiter(this, void 0, void 0, function* () {
3260
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3259
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3260
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3261
3261
  return this.client.sendOperationRequest(args, spec);
3262
3262
  });
3263
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3263
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3264
3264
  var _a;
3265
3265
  let currentRawResponse = undefined;
3266
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3266
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3267
3267
  const callback = (rawResponse, flatResponse) => {
3268
3268
  currentRawResponse = rawResponse;
3269
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3269
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3270
3270
  };
3271
3271
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3272
3272
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3281,8 +3281,8 @@ class ServersImpl {
3281
3281
  });
3282
3282
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, options }, stopOperationSpec);
3283
3283
  const poller = new coreLro.LroEngine(lro, {
3284
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3285
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3284
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3285
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3286
3286
  });
3287
3287
  yield poller.poll();
3288
3288
  return poller;
@@ -3295,7 +3295,7 @@ class ServersImpl {
3295
3295
  * @param options The options parameters.
3296
3296
  */
3297
3297
  beginStopAndWait(resourceGroupName, serverName, options) {
3298
- return tslib.__awaiter(this, void 0, void 0, function* () {
3298
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3299
3299
  const poller = yield this.beginStop(resourceGroupName, serverName, options);
3300
3300
  return poller.pollUntilDone();
3301
3301
  });
@@ -3308,17 +3308,17 @@ class ServersImpl {
3308
3308
  * @param options The options parameters.
3309
3309
  */
3310
3310
  beginUpgrade(resourceGroupName, serverName, parameters, options) {
3311
- return tslib.__awaiter(this, void 0, void 0, function* () {
3312
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3311
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3312
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3313
3313
  return this.client.sendOperationRequest(args, spec);
3314
3314
  });
3315
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3315
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3316
3316
  var _a;
3317
3317
  let currentRawResponse = undefined;
3318
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3318
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3319
3319
  const callback = (rawResponse, flatResponse) => {
3320
3320
  currentRawResponse = rawResponse;
3321
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3321
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3322
3322
  };
3323
3323
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3324
3324
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3333,8 +3333,8 @@ class ServersImpl {
3333
3333
  });
3334
3334
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, parameters, options }, upgradeOperationSpec);
3335
3335
  const poller = new coreLro.LroEngine(lro, {
3336
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3337
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3336
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3337
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3338
3338
  });
3339
3339
  yield poller.poll();
3340
3340
  return poller;
@@ -3348,7 +3348,7 @@ class ServersImpl {
3348
3348
  * @param options The options parameters.
3349
3349
  */
3350
3350
  beginUpgradeAndWait(resourceGroupName, serverName, parameters, options) {
3351
- return tslib.__awaiter(this, void 0, void 0, function* () {
3351
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3352
3352
  const poller = yield this.beginUpgrade(resourceGroupName, serverName, parameters, options);
3353
3353
  return poller.pollUntilDone();
3354
3354
  });
@@ -3623,7 +3623,7 @@ class ReplicasImpl {
3623
3623
  return this;
3624
3624
  },
3625
3625
  byPage: (settings) => {
3626
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3626
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3627
3627
  throw new Error("maxPageSize is not supported by this operation.");
3628
3628
  }
3629
3629
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -3724,7 +3724,7 @@ class FirewallRulesImpl {
3724
3724
  return this;
3725
3725
  },
3726
3726
  byPage: (settings) => {
3727
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3727
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3728
3728
  throw new Error("maxPageSize is not supported by this operation.");
3729
3729
  }
3730
3730
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -3767,17 +3767,17 @@ class FirewallRulesImpl {
3767
3767
  * @param options The options parameters.
3768
3768
  */
3769
3769
  beginCreateOrUpdate(resourceGroupName, serverName, firewallRuleName, parameters, options) {
3770
- return tslib.__awaiter(this, void 0, void 0, function* () {
3771
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3770
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3771
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3772
3772
  return this.client.sendOperationRequest(args, spec);
3773
3773
  });
3774
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3774
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3775
3775
  var _a;
3776
3776
  let currentRawResponse = undefined;
3777
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3777
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3778
3778
  const callback = (rawResponse, flatResponse) => {
3779
3779
  currentRawResponse = rawResponse;
3780
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3780
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3781
3781
  };
3782
3782
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3783
3783
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3792,8 +3792,8 @@ class FirewallRulesImpl {
3792
3792
  });
3793
3793
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, firewallRuleName, parameters, options }, createOrUpdateOperationSpec$7);
3794
3794
  const poller = new coreLro.LroEngine(lro, {
3795
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3796
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3795
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3796
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3797
3797
  });
3798
3798
  yield poller.poll();
3799
3799
  return poller;
@@ -3808,7 +3808,7 @@ class FirewallRulesImpl {
3808
3808
  * @param options The options parameters.
3809
3809
  */
3810
3810
  beginCreateOrUpdateAndWait(resourceGroupName, serverName, firewallRuleName, parameters, options) {
3811
- return tslib.__awaiter(this, void 0, void 0, function* () {
3811
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3812
3812
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, firewallRuleName, parameters, options);
3813
3813
  return poller.pollUntilDone();
3814
3814
  });
@@ -3821,17 +3821,17 @@ class FirewallRulesImpl {
3821
3821
  * @param options The options parameters.
3822
3822
  */
3823
3823
  beginDelete(resourceGroupName, serverName, firewallRuleName, options) {
3824
- return tslib.__awaiter(this, void 0, void 0, function* () {
3825
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3824
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3825
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3826
3826
  return this.client.sendOperationRequest(args, spec);
3827
3827
  });
3828
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3828
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3829
3829
  var _a;
3830
3830
  let currentRawResponse = undefined;
3831
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3831
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3832
3832
  const callback = (rawResponse, flatResponse) => {
3833
3833
  currentRawResponse = rawResponse;
3834
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3834
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3835
3835
  };
3836
3836
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3837
3837
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3846,8 +3846,8 @@ class FirewallRulesImpl {
3846
3846
  });
3847
3847
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, firewallRuleName, options }, deleteOperationSpec$5);
3848
3848
  const poller = new coreLro.LroEngine(lro, {
3849
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3850
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3849
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3850
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
3851
3851
  });
3852
3852
  yield poller.poll();
3853
3853
  return poller;
@@ -3861,7 +3861,7 @@ class FirewallRulesImpl {
3861
3861
  * @param options The options parameters.
3862
3862
  */
3863
3863
  beginDeleteAndWait(resourceGroupName, serverName, firewallRuleName, options) {
3864
- return tslib.__awaiter(this, void 0, void 0, function* () {
3864
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3865
3865
  const poller = yield this.beginDelete(resourceGroupName, serverName, firewallRuleName, options);
3866
3866
  return poller.pollUntilDone();
3867
3867
  });
@@ -4021,7 +4021,7 @@ class VirtualNetworkRulesImpl {
4021
4021
  return this;
4022
4022
  },
4023
4023
  byPage: (settings) => {
4024
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4024
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4025
4025
  throw new Error("maxPageSize is not supported by this operation.");
4026
4026
  }
4027
4027
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -4031,7 +4031,7 @@ class VirtualNetworkRulesImpl {
4031
4031
  listByServerPagingPage(resourceGroupName, serverName, options, settings) {
4032
4032
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
4033
4033
  let result;
4034
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4034
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4035
4035
  if (!continuationToken) {
4036
4036
  result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
4037
4037
  let page = result.value || [];
@@ -4087,17 +4087,17 @@ class VirtualNetworkRulesImpl {
4087
4087
  * @param options The options parameters.
4088
4088
  */
4089
4089
  beginCreateOrUpdate(resourceGroupName, serverName, virtualNetworkRuleName, parameters, options) {
4090
- return tslib.__awaiter(this, void 0, void 0, function* () {
4091
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4090
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4091
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4092
4092
  return this.client.sendOperationRequest(args, spec);
4093
4093
  });
4094
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4094
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4095
4095
  var _a;
4096
4096
  let currentRawResponse = undefined;
4097
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4097
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4098
4098
  const callback = (rawResponse, flatResponse) => {
4099
4099
  currentRawResponse = rawResponse;
4100
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4100
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4101
4101
  };
4102
4102
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4103
4103
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4118,8 +4118,8 @@ class VirtualNetworkRulesImpl {
4118
4118
  options
4119
4119
  }, createOrUpdateOperationSpec$6);
4120
4120
  const poller = new coreLro.LroEngine(lro, {
4121
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4122
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4121
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4122
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4123
4123
  });
4124
4124
  yield poller.poll();
4125
4125
  return poller;
@@ -4134,7 +4134,7 @@ class VirtualNetworkRulesImpl {
4134
4134
  * @param options The options parameters.
4135
4135
  */
4136
4136
  beginCreateOrUpdateAndWait(resourceGroupName, serverName, virtualNetworkRuleName, parameters, options) {
4137
- return tslib.__awaiter(this, void 0, void 0, function* () {
4137
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4138
4138
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, virtualNetworkRuleName, parameters, options);
4139
4139
  return poller.pollUntilDone();
4140
4140
  });
@@ -4147,17 +4147,17 @@ class VirtualNetworkRulesImpl {
4147
4147
  * @param options The options parameters.
4148
4148
  */
4149
4149
  beginDelete(resourceGroupName, serverName, virtualNetworkRuleName, options) {
4150
- return tslib.__awaiter(this, void 0, void 0, function* () {
4151
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4150
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4151
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4152
4152
  return this.client.sendOperationRequest(args, spec);
4153
4153
  });
4154
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4154
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4155
4155
  var _a;
4156
4156
  let currentRawResponse = undefined;
4157
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4157
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4158
4158
  const callback = (rawResponse, flatResponse) => {
4159
4159
  currentRawResponse = rawResponse;
4160
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4160
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4161
4161
  };
4162
4162
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4163
4163
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4172,8 +4172,8 @@ class VirtualNetworkRulesImpl {
4172
4172
  });
4173
4173
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, virtualNetworkRuleName, options }, deleteOperationSpec$4);
4174
4174
  const poller = new coreLro.LroEngine(lro, {
4175
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4176
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4175
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4176
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4177
4177
  });
4178
4178
  yield poller.poll();
4179
4179
  return poller;
@@ -4187,7 +4187,7 @@ class VirtualNetworkRulesImpl {
4187
4187
  * @param options The options parameters.
4188
4188
  */
4189
4189
  beginDeleteAndWait(resourceGroupName, serverName, virtualNetworkRuleName, options) {
4190
- return tslib.__awaiter(this, void 0, void 0, function* () {
4190
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4191
4191
  const poller = yield this.beginDelete(resourceGroupName, serverName, virtualNetworkRuleName, options);
4192
4192
  return poller.pollUntilDone();
4193
4193
  });
@@ -4352,7 +4352,7 @@ class DatabasesImpl {
4352
4352
  return this;
4353
4353
  },
4354
4354
  byPage: (settings) => {
4355
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4355
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4356
4356
  throw new Error("maxPageSize is not supported by this operation.");
4357
4357
  }
4358
4358
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -4395,17 +4395,17 @@ class DatabasesImpl {
4395
4395
  * @param options The options parameters.
4396
4396
  */
4397
4397
  beginCreateOrUpdate(resourceGroupName, serverName, databaseName, parameters, options) {
4398
- return tslib.__awaiter(this, void 0, void 0, function* () {
4399
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4398
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4399
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4400
4400
  return this.client.sendOperationRequest(args, spec);
4401
4401
  });
4402
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4402
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4403
4403
  var _a;
4404
4404
  let currentRawResponse = undefined;
4405
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4405
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4406
4406
  const callback = (rawResponse, flatResponse) => {
4407
4407
  currentRawResponse = rawResponse;
4408
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4408
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4409
4409
  };
4410
4410
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4411
4411
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4420,8 +4420,8 @@ class DatabasesImpl {
4420
4420
  });
4421
4421
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, databaseName, parameters, options }, createOrUpdateOperationSpec$5);
4422
4422
  const poller = new coreLro.LroEngine(lro, {
4423
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4424
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4423
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4424
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4425
4425
  });
4426
4426
  yield poller.poll();
4427
4427
  return poller;
@@ -4436,7 +4436,7 @@ class DatabasesImpl {
4436
4436
  * @param options The options parameters.
4437
4437
  */
4438
4438
  beginCreateOrUpdateAndWait(resourceGroupName, serverName, databaseName, parameters, options) {
4439
- return tslib.__awaiter(this, void 0, void 0, function* () {
4439
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4440
4440
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, databaseName, parameters, options);
4441
4441
  return poller.pollUntilDone();
4442
4442
  });
@@ -4449,17 +4449,17 @@ class DatabasesImpl {
4449
4449
  * @param options The options parameters.
4450
4450
  */
4451
4451
  beginDelete(resourceGroupName, serverName, databaseName, options) {
4452
- return tslib.__awaiter(this, void 0, void 0, function* () {
4453
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4452
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4453
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4454
4454
  return this.client.sendOperationRequest(args, spec);
4455
4455
  });
4456
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4456
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4457
4457
  var _a;
4458
4458
  let currentRawResponse = undefined;
4459
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4459
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4460
4460
  const callback = (rawResponse, flatResponse) => {
4461
4461
  currentRawResponse = rawResponse;
4462
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4462
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4463
4463
  };
4464
4464
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4465
4465
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4474,8 +4474,8 @@ class DatabasesImpl {
4474
4474
  });
4475
4475
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, databaseName, options }, deleteOperationSpec$3);
4476
4476
  const poller = new coreLro.LroEngine(lro, {
4477
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4478
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4477
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4478
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4479
4479
  });
4480
4480
  yield poller.poll();
4481
4481
  return poller;
@@ -4489,7 +4489,7 @@ class DatabasesImpl {
4489
4489
  * @param options The options parameters.
4490
4490
  */
4491
4491
  beginDeleteAndWait(resourceGroupName, serverName, databaseName, options) {
4492
- return tslib.__awaiter(this, void 0, void 0, function* () {
4492
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4493
4493
  const poller = yield this.beginDelete(resourceGroupName, serverName, databaseName, options);
4494
4494
  return poller.pollUntilDone();
4495
4495
  });
@@ -4649,7 +4649,7 @@ class ConfigurationsImpl {
4649
4649
  return this;
4650
4650
  },
4651
4651
  byPage: (settings) => {
4652
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4652
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4653
4653
  throw new Error("maxPageSize is not supported by this operation.");
4654
4654
  }
4655
4655
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -4692,17 +4692,17 @@ class ConfigurationsImpl {
4692
4692
  * @param options The options parameters.
4693
4693
  */
4694
4694
  beginCreateOrUpdate(resourceGroupName, serverName, configurationName, parameters, options) {
4695
- return tslib.__awaiter(this, void 0, void 0, function* () {
4696
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4695
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4696
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4697
4697
  return this.client.sendOperationRequest(args, spec);
4698
4698
  });
4699
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4699
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4700
4700
  var _a;
4701
4701
  let currentRawResponse = undefined;
4702
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4702
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4703
4703
  const callback = (rawResponse, flatResponse) => {
4704
4704
  currentRawResponse = rawResponse;
4705
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4705
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4706
4706
  };
4707
4707
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4708
4708
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4717,8 +4717,8 @@ class ConfigurationsImpl {
4717
4717
  });
4718
4718
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, configurationName, parameters, options }, createOrUpdateOperationSpec$4);
4719
4719
  const poller = new coreLro.LroEngine(lro, {
4720
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4721
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4720
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4721
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4722
4722
  });
4723
4723
  yield poller.poll();
4724
4724
  return poller;
@@ -4733,7 +4733,7 @@ class ConfigurationsImpl {
4733
4733
  * @param options The options parameters.
4734
4734
  */
4735
4735
  beginCreateOrUpdateAndWait(resourceGroupName, serverName, configurationName, parameters, options) {
4736
- return tslib.__awaiter(this, void 0, void 0, function* () {
4736
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4737
4737
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, configurationName, parameters, options);
4738
4738
  return poller.pollUntilDone();
4739
4739
  });
@@ -4861,17 +4861,17 @@ class ServerParametersImpl {
4861
4861
  * @param options The options parameters.
4862
4862
  */
4863
4863
  beginListUpdateConfigurations(resourceGroupName, serverName, value, options) {
4864
- return tslib.__awaiter(this, void 0, void 0, function* () {
4865
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4864
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4865
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4866
4866
  return this.client.sendOperationRequest(args, spec);
4867
4867
  });
4868
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4868
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4869
4869
  var _a;
4870
4870
  let currentRawResponse = undefined;
4871
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4871
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4872
4872
  const callback = (rawResponse, flatResponse) => {
4873
4873
  currentRawResponse = rawResponse;
4874
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4874
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4875
4875
  };
4876
4876
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4877
4877
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4886,8 +4886,8 @@ class ServerParametersImpl {
4886
4886
  });
4887
4887
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, value, options }, listUpdateConfigurationsOperationSpec);
4888
4888
  const poller = new coreLro.LroEngine(lro, {
4889
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4890
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4889
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4890
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4891
4891
  lroResourceLocationConfig: "azure-async-operation"
4892
4892
  });
4893
4893
  yield poller.poll();
@@ -4902,7 +4902,7 @@ class ServerParametersImpl {
4902
4902
  * @param options The options parameters.
4903
4903
  */
4904
4904
  beginListUpdateConfigurationsAndWait(resourceGroupName, serverName, value, options) {
4905
- return tslib.__awaiter(this, void 0, void 0, function* () {
4905
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4906
4906
  const poller = yield this.beginListUpdateConfigurations(resourceGroupName, serverName, value, options);
4907
4907
  return poller.pollUntilDone();
4908
4908
  });
@@ -4976,7 +4976,7 @@ class LogFilesImpl {
4976
4976
  return this;
4977
4977
  },
4978
4978
  byPage: (settings) => {
4979
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4979
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4980
4980
  throw new Error("maxPageSize is not supported by this operation.");
4981
4981
  }
4982
4982
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -5077,7 +5077,7 @@ class ServerAdministratorsImpl {
5077
5077
  return this;
5078
5078
  },
5079
5079
  byPage: (settings) => {
5080
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5080
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5081
5081
  throw new Error("maxPageSize is not supported by this operation.");
5082
5082
  }
5083
5083
  return this.listPagingPage(resourceGroupName, serverName, options, settings);
@@ -5129,17 +5129,17 @@ class ServerAdministratorsImpl {
5129
5129
  * @param options The options parameters.
5130
5130
  */
5131
5131
  beginCreateOrUpdate(resourceGroupName, serverName, properties, options) {
5132
- return tslib.__awaiter(this, void 0, void 0, function* () {
5133
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5132
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5133
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5134
5134
  return this.client.sendOperationRequest(args, spec);
5135
5135
  });
5136
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5136
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5137
5137
  var _a;
5138
5138
  let currentRawResponse = undefined;
5139
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5139
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5140
5140
  const callback = (rawResponse, flatResponse) => {
5141
5141
  currentRawResponse = rawResponse;
5142
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5142
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5143
5143
  };
5144
5144
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5145
5145
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5154,8 +5154,8 @@ class ServerAdministratorsImpl {
5154
5154
  });
5155
5155
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, properties, options }, createOrUpdateOperationSpec$3);
5156
5156
  const poller = new coreLro.LroEngine(lro, {
5157
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5158
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5157
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5158
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5159
5159
  });
5160
5160
  yield poller.poll();
5161
5161
  return poller;
@@ -5170,7 +5170,7 @@ class ServerAdministratorsImpl {
5170
5170
  * @param options The options parameters.
5171
5171
  */
5172
5172
  beginCreateOrUpdateAndWait(resourceGroupName, serverName, properties, options) {
5173
- return tslib.__awaiter(this, void 0, void 0, function* () {
5173
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5174
5174
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, properties, options);
5175
5175
  return poller.pollUntilDone();
5176
5176
  });
@@ -5182,17 +5182,17 @@ class ServerAdministratorsImpl {
5182
5182
  * @param options The options parameters.
5183
5183
  */
5184
5184
  beginDelete(resourceGroupName, serverName, options) {
5185
- return tslib.__awaiter(this, void 0, void 0, function* () {
5186
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5185
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5186
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5187
5187
  return this.client.sendOperationRequest(args, spec);
5188
5188
  });
5189
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5189
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5190
5190
  var _a;
5191
5191
  let currentRawResponse = undefined;
5192
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5192
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5193
5193
  const callback = (rawResponse, flatResponse) => {
5194
5194
  currentRawResponse = rawResponse;
5195
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5195
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5196
5196
  };
5197
5197
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5198
5198
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5207,8 +5207,8 @@ class ServerAdministratorsImpl {
5207
5207
  });
5208
5208
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, options }, deleteOperationSpec$2);
5209
5209
  const poller = new coreLro.LroEngine(lro, {
5210
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5211
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5210
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5211
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5212
5212
  });
5213
5213
  yield poller.poll();
5214
5214
  return poller;
@@ -5221,7 +5221,7 @@ class ServerAdministratorsImpl {
5221
5221
  * @param options The options parameters.
5222
5222
  */
5223
5223
  beginDeleteAndWait(resourceGroupName, serverName, options) {
5224
- return tslib.__awaiter(this, void 0, void 0, function* () {
5224
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5225
5225
  const poller = yield this.beginDelete(resourceGroupName, serverName, options);
5226
5226
  return poller.pollUntilDone();
5227
5227
  });
@@ -5418,7 +5418,7 @@ class ServerBasedPerformanceTierImpl {
5418
5418
  return this;
5419
5419
  },
5420
5420
  byPage: (settings) => {
5421
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5421
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5422
5422
  throw new Error("maxPageSize is not supported by this operation.");
5423
5423
  }
5424
5424
  return this.listPagingPage(resourceGroupName, serverName, options, settings);
@@ -5518,7 +5518,7 @@ class LocationBasedPerformanceTierImpl {
5518
5518
  return this;
5519
5519
  },
5520
5520
  byPage: (settings) => {
5521
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5521
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5522
5522
  throw new Error("maxPageSize is not supported by this operation.");
5523
5523
  }
5524
5524
  return this.listPagingPage(locationName, options, settings);
@@ -5706,7 +5706,7 @@ class ServerSecurityAlertPoliciesImpl {
5706
5706
  return this;
5707
5707
  },
5708
5708
  byPage: (settings) => {
5709
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5709
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5710
5710
  throw new Error("maxPageSize is not supported by this operation.");
5711
5711
  }
5712
5712
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -5716,7 +5716,7 @@ class ServerSecurityAlertPoliciesImpl {
5716
5716
  listByServerPagingPage(resourceGroupName, serverName, options, settings) {
5717
5717
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
5718
5718
  let result;
5719
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5719
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5720
5720
  if (!continuationToken) {
5721
5721
  result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
5722
5722
  let page = result.value || [];
@@ -5772,17 +5772,17 @@ class ServerSecurityAlertPoliciesImpl {
5772
5772
  * @param options The options parameters.
5773
5773
  */
5774
5774
  beginCreateOrUpdate(resourceGroupName, serverName, securityAlertPolicyName, parameters, options) {
5775
- return tslib.__awaiter(this, void 0, void 0, function* () {
5776
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5775
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5776
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5777
5777
  return this.client.sendOperationRequest(args, spec);
5778
5778
  });
5779
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5779
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5780
5780
  var _a;
5781
5781
  let currentRawResponse = undefined;
5782
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5782
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5783
5783
  const callback = (rawResponse, flatResponse) => {
5784
5784
  currentRawResponse = rawResponse;
5785
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5785
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5786
5786
  };
5787
5787
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5788
5788
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5803,8 +5803,8 @@ class ServerSecurityAlertPoliciesImpl {
5803
5803
  options
5804
5804
  }, createOrUpdateOperationSpec$2);
5805
5805
  const poller = new coreLro.LroEngine(lro, {
5806
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5807
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5806
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5807
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5808
5808
  });
5809
5809
  yield poller.poll();
5810
5810
  return poller;
@@ -5819,7 +5819,7 @@ class ServerSecurityAlertPoliciesImpl {
5819
5819
  * @param options The options parameters.
5820
5820
  */
5821
5821
  beginCreateOrUpdateAndWait(resourceGroupName, serverName, securityAlertPolicyName, parameters, options) {
5822
- return tslib.__awaiter(this, void 0, void 0, function* () {
5822
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5823
5823
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, securityAlertPolicyName, parameters, options);
5824
5824
  return poller.pollUntilDone();
5825
5825
  });
@@ -5971,7 +5971,7 @@ class QueryTextsImpl {
5971
5971
  return this;
5972
5972
  },
5973
5973
  byPage: (settings) => {
5974
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5974
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5975
5975
  throw new Error("maxPageSize is not supported by this operation.");
5976
5976
  }
5977
5977
  return this.listByServerPagingPage(resourceGroupName, serverName, queryIds, options, settings);
@@ -5981,7 +5981,7 @@ class QueryTextsImpl {
5981
5981
  listByServerPagingPage(resourceGroupName, serverName, queryIds, options, settings) {
5982
5982
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
5983
5983
  let result;
5984
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5984
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5985
5985
  if (!continuationToken) {
5986
5986
  result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, queryIds, options));
5987
5987
  let page = result.value || [];
@@ -6152,7 +6152,7 @@ class TopQueryStatisticsImpl {
6152
6152
  return this;
6153
6153
  },
6154
6154
  byPage: (settings) => {
6155
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6155
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6156
6156
  throw new Error("maxPageSize is not supported by this operation.");
6157
6157
  }
6158
6158
  return this.listByServerPagingPage(resourceGroupName, serverName, parameters, options, settings);
@@ -6162,7 +6162,7 @@ class TopQueryStatisticsImpl {
6162
6162
  listByServerPagingPage(resourceGroupName, serverName, parameters, options, settings) {
6163
6163
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
6164
6164
  let result;
6165
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6165
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6166
6166
  if (!continuationToken) {
6167
6167
  result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, parameters, options));
6168
6168
  let page = result.value || [];
@@ -6335,7 +6335,7 @@ class WaitStatisticsImpl {
6335
6335
  return this;
6336
6336
  },
6337
6337
  byPage: (settings) => {
6338
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6338
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6339
6339
  throw new Error("maxPageSize is not supported by this operation.");
6340
6340
  }
6341
6341
  return this.listByServerPagingPage(resourceGroupName, serverName, parameters, options, settings);
@@ -6345,7 +6345,7 @@ class WaitStatisticsImpl {
6345
6345
  listByServerPagingPage(resourceGroupName, serverName, parameters, options, settings) {
6346
6346
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
6347
6347
  let result;
6348
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6348
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6349
6349
  if (!continuationToken) {
6350
6350
  result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, parameters, options));
6351
6351
  let page = result.value || [];
@@ -6517,7 +6517,7 @@ class AdvisorsImpl {
6517
6517
  return this;
6518
6518
  },
6519
6519
  byPage: (settings) => {
6520
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6520
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6521
6521
  throw new Error("maxPageSize is not supported by this operation.");
6522
6522
  }
6523
6523
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -6527,7 +6527,7 @@ class AdvisorsImpl {
6527
6527
  listByServerPagingPage(resourceGroupName, serverName, options, settings) {
6528
6528
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
6529
6529
  let result;
6530
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6530
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6531
6531
  if (!continuationToken) {
6532
6532
  result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
6533
6533
  let page = result.value || [];
@@ -6687,7 +6687,7 @@ class RecommendedActionsImpl {
6687
6687
  return this;
6688
6688
  },
6689
6689
  byPage: (settings) => {
6690
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6690
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6691
6691
  throw new Error("maxPageSize is not supported by this operation.");
6692
6692
  }
6693
6693
  return this.listByServerPagingPage(resourceGroupName, serverName, advisorName, options, settings);
@@ -6697,7 +6697,7 @@ class RecommendedActionsImpl {
6697
6697
  listByServerPagingPage(resourceGroupName, serverName, advisorName, options, settings) {
6698
6698
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
6699
6699
  let result;
6700
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6700
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6701
6701
  if (!continuationToken) {
6702
6702
  result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, advisorName, options));
6703
6703
  let page = result.value || [];
@@ -6915,7 +6915,7 @@ class LocationBasedRecommendedActionSessionsResultImpl {
6915
6915
  return this;
6916
6916
  },
6917
6917
  byPage: (settings) => {
6918
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6918
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6919
6919
  throw new Error("maxPageSize is not supported by this operation.");
6920
6920
  }
6921
6921
  return this.listPagingPage(locationName, operationId, options, settings);
@@ -6925,7 +6925,7 @@ class LocationBasedRecommendedActionSessionsResultImpl {
6925
6925
  listPagingPage(locationName, operationId, options, settings) {
6926
6926
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6927
6927
  let result;
6928
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6928
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6929
6929
  if (!continuationToken) {
6930
6930
  result = yield tslib.__await(this._list(locationName, operationId, options));
6931
6931
  let page = result.value || [];
@@ -7061,7 +7061,7 @@ class PrivateEndpointConnectionsImpl {
7061
7061
  return this;
7062
7062
  },
7063
7063
  byPage: (settings) => {
7064
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7064
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7065
7065
  throw new Error("maxPageSize is not supported by this operation.");
7066
7066
  }
7067
7067
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -7071,7 +7071,7 @@ class PrivateEndpointConnectionsImpl {
7071
7071
  listByServerPagingPage(resourceGroupName, serverName, options, settings) {
7072
7072
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
7073
7073
  let result;
7074
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7074
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
7075
7075
  if (!continuationToken) {
7076
7076
  result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
7077
7077
  let page = result.value || [];
@@ -7127,17 +7127,17 @@ class PrivateEndpointConnectionsImpl {
7127
7127
  * @param options The options parameters.
7128
7128
  */
7129
7129
  beginCreateOrUpdate(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options) {
7130
- return tslib.__awaiter(this, void 0, void 0, function* () {
7131
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7130
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7131
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7132
7132
  return this.client.sendOperationRequest(args, spec);
7133
7133
  });
7134
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7134
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7135
7135
  var _a;
7136
7136
  let currentRawResponse = undefined;
7137
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7137
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7138
7138
  const callback = (rawResponse, flatResponse) => {
7139
7139
  currentRawResponse = rawResponse;
7140
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7140
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7141
7141
  };
7142
7142
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7143
7143
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7158,8 +7158,8 @@ class PrivateEndpointConnectionsImpl {
7158
7158
  options
7159
7159
  }, createOrUpdateOperationSpec$1);
7160
7160
  const poller = new coreLro.LroEngine(lro, {
7161
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7162
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7161
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7162
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7163
7163
  });
7164
7164
  yield poller.poll();
7165
7165
  return poller;
@@ -7174,7 +7174,7 @@ class PrivateEndpointConnectionsImpl {
7174
7174
  * @param options The options parameters.
7175
7175
  */
7176
7176
  beginCreateOrUpdateAndWait(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options) {
7177
- return tslib.__awaiter(this, void 0, void 0, function* () {
7177
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7178
7178
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options);
7179
7179
  return poller.pollUntilDone();
7180
7180
  });
@@ -7187,17 +7187,17 @@ class PrivateEndpointConnectionsImpl {
7187
7187
  * @param options The options parameters.
7188
7188
  */
7189
7189
  beginDelete(resourceGroupName, serverName, privateEndpointConnectionName, options) {
7190
- return tslib.__awaiter(this, void 0, void 0, function* () {
7191
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7190
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7191
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7192
7192
  return this.client.sendOperationRequest(args, spec);
7193
7193
  });
7194
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7194
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7195
7195
  var _a;
7196
7196
  let currentRawResponse = undefined;
7197
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7197
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7198
7198
  const callback = (rawResponse, flatResponse) => {
7199
7199
  currentRawResponse = rawResponse;
7200
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7200
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7201
7201
  };
7202
7202
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7203
7203
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7212,8 +7212,8 @@ class PrivateEndpointConnectionsImpl {
7212
7212
  });
7213
7213
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, privateEndpointConnectionName, options }, deleteOperationSpec$1);
7214
7214
  const poller = new coreLro.LroEngine(lro, {
7215
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7216
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7215
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7216
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7217
7217
  });
7218
7218
  yield poller.poll();
7219
7219
  return poller;
@@ -7227,7 +7227,7 @@ class PrivateEndpointConnectionsImpl {
7227
7227
  * @param options The options parameters.
7228
7228
  */
7229
7229
  beginDeleteAndWait(resourceGroupName, serverName, privateEndpointConnectionName, options) {
7230
- return tslib.__awaiter(this, void 0, void 0, function* () {
7230
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7231
7231
  const poller = yield this.beginDelete(resourceGroupName, serverName, privateEndpointConnectionName, options);
7232
7232
  return poller.pollUntilDone();
7233
7233
  });
@@ -7241,17 +7241,17 @@ class PrivateEndpointConnectionsImpl {
7241
7241
  * @param options The options parameters.
7242
7242
  */
7243
7243
  beginUpdateTags(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options) {
7244
- return tslib.__awaiter(this, void 0, void 0, function* () {
7245
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7244
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7245
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7246
7246
  return this.client.sendOperationRequest(args, spec);
7247
7247
  });
7248
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7248
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7249
7249
  var _a;
7250
7250
  let currentRawResponse = undefined;
7251
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7251
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7252
7252
  const callback = (rawResponse, flatResponse) => {
7253
7253
  currentRawResponse = rawResponse;
7254
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7254
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7255
7255
  };
7256
7256
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7257
7257
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7272,8 +7272,8 @@ class PrivateEndpointConnectionsImpl {
7272
7272
  options
7273
7273
  }, updateTagsOperationSpec);
7274
7274
  const poller = new coreLro.LroEngine(lro, {
7275
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7276
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7275
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7276
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7277
7277
  });
7278
7278
  yield poller.poll();
7279
7279
  return poller;
@@ -7288,7 +7288,7 @@ class PrivateEndpointConnectionsImpl {
7288
7288
  * @param options The options parameters.
7289
7289
  */
7290
7290
  beginUpdateTagsAndWait(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options) {
7291
- return tslib.__awaiter(this, void 0, void 0, function* () {
7291
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7292
7292
  const poller = yield this.beginUpdateTags(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options);
7293
7293
  return poller.pollUntilDone();
7294
7294
  });
@@ -7503,7 +7503,7 @@ class PrivateLinkResourcesImpl {
7503
7503
  return this;
7504
7504
  },
7505
7505
  byPage: (settings) => {
7506
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7506
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7507
7507
  throw new Error("maxPageSize is not supported by this operation.");
7508
7508
  }
7509
7509
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
@@ -7513,7 +7513,7 @@ class PrivateLinkResourcesImpl {
7513
7513
  listByServerPagingPage(resourceGroupName, serverName, options, settings) {
7514
7514
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
7515
7515
  let result;
7516
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7516
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
7517
7517
  if (!continuationToken) {
7518
7518
  result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
7519
7519
  let page = result.value || [];
@@ -7681,7 +7681,7 @@ class ServerKeysImpl {
7681
7681
  return this;
7682
7682
  },
7683
7683
  byPage: (settings) => {
7684
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7684
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7685
7685
  throw new Error("maxPageSize is not supported by this operation.");
7686
7686
  }
7687
7687
  return this.listPagingPage(resourceGroupName, serverName, options, settings);
@@ -7691,7 +7691,7 @@ class ServerKeysImpl {
7691
7691
  listPagingPage(resourceGroupName, serverName, options, settings) {
7692
7692
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7693
7693
  let result;
7694
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7694
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
7695
7695
  if (!continuationToken) {
7696
7696
  result = yield tslib.__await(this._list(resourceGroupName, serverName, options));
7697
7697
  let page = result.value || [];
@@ -7756,17 +7756,17 @@ class ServerKeysImpl {
7756
7756
  * @param options The options parameters.
7757
7757
  */
7758
7758
  beginCreateOrUpdate(serverName, keyName, resourceGroupName, parameters, options) {
7759
- return tslib.__awaiter(this, void 0, void 0, function* () {
7760
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7759
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7760
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7761
7761
  return this.client.sendOperationRequest(args, spec);
7762
7762
  });
7763
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7763
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7764
7764
  var _a;
7765
7765
  let currentRawResponse = undefined;
7766
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7766
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7767
7767
  const callback = (rawResponse, flatResponse) => {
7768
7768
  currentRawResponse = rawResponse;
7769
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7769
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7770
7770
  };
7771
7771
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7772
7772
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7781,8 +7781,8 @@ class ServerKeysImpl {
7781
7781
  });
7782
7782
  const lro = new LroImpl(sendOperation, { serverName, keyName, resourceGroupName, parameters, options }, createOrUpdateOperationSpec);
7783
7783
  const poller = new coreLro.LroEngine(lro, {
7784
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7785
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7784
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7785
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7786
7786
  });
7787
7787
  yield poller.poll();
7788
7788
  return poller;
@@ -7797,7 +7797,7 @@ class ServerKeysImpl {
7797
7797
  * @param options The options parameters.
7798
7798
  */
7799
7799
  beginCreateOrUpdateAndWait(serverName, keyName, resourceGroupName, parameters, options) {
7800
- return tslib.__awaiter(this, void 0, void 0, function* () {
7800
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7801
7801
  const poller = yield this.beginCreateOrUpdate(serverName, keyName, resourceGroupName, parameters, options);
7802
7802
  return poller.pollUntilDone();
7803
7803
  });
@@ -7810,17 +7810,17 @@ class ServerKeysImpl {
7810
7810
  * @param options The options parameters.
7811
7811
  */
7812
7812
  beginDelete(serverName, keyName, resourceGroupName, options) {
7813
- return tslib.__awaiter(this, void 0, void 0, function* () {
7814
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7813
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7814
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7815
7815
  return this.client.sendOperationRequest(args, spec);
7816
7816
  });
7817
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7817
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7818
7818
  var _a;
7819
7819
  let currentRawResponse = undefined;
7820
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7820
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7821
7821
  const callback = (rawResponse, flatResponse) => {
7822
7822
  currentRawResponse = rawResponse;
7823
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7823
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7824
7824
  };
7825
7825
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7826
7826
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7835,8 +7835,8 @@ class ServerKeysImpl {
7835
7835
  });
7836
7836
  const lro = new LroImpl(sendOperation, { serverName, keyName, resourceGroupName, options }, deleteOperationSpec);
7837
7837
  const poller = new coreLro.LroEngine(lro, {
7838
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7839
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7838
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7839
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7840
7840
  });
7841
7841
  yield poller.poll();
7842
7842
  return poller;
@@ -7850,7 +7850,7 @@ class ServerKeysImpl {
7850
7850
  * @param options The options parameters.
7851
7851
  */
7852
7852
  beginDeleteAndWait(serverName, keyName, resourceGroupName, options) {
7853
- return tslib.__awaiter(this, void 0, void 0, function* () {
7853
+ return tslib.__awaiter(this, undefined, undefined, function* () {
7854
7854
  const poller = yield this.beginDelete(serverName, keyName, resourceGroupName, options);
7855
7855
  return poller.pollUntilDone();
7856
7856
  });
@@ -8026,10 +8026,10 @@ class MySQLManagementClient extends coreClient__namespace.ServiceClient {
8026
8026
  : `${packageDetails}`;
8027
8027
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
8028
8028
  userAgentPrefix
8029
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
8029
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
8030
8030
  super(optionsWithDefaults);
8031
8031
  let bearerTokenAuthenticationPolicyFound = false;
8032
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
8032
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
8033
8033
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
8034
8034
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
8035
8035
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -8043,7 +8043,7 @@ class MySQLManagementClient extends coreClient__namespace.ServiceClient {
8043
8043
  });
8044
8044
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
8045
8045
  credential: credentials,
8046
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
8046
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
8047
8047
  challengeCallbacks: {
8048
8048
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
8049
8049
  }
@@ -8097,17 +8097,17 @@ class MySQLManagementClient extends coreClient__namespace.ServiceClient {
8097
8097
  * @param options The options parameters.
8098
8098
  */
8099
8099
  beginCreateRecommendedActionSession(resourceGroupName, serverName, advisorName, databaseName, options) {
8100
- return tslib.__awaiter(this, void 0, void 0, function* () {
8101
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8100
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8101
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8102
8102
  return this.sendOperationRequest(args, spec);
8103
8103
  });
8104
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8104
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8105
8105
  var _a;
8106
8106
  let currentRawResponse = undefined;
8107
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8107
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8108
8108
  const callback = (rawResponse, flatResponse) => {
8109
8109
  currentRawResponse = rawResponse;
8110
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8110
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8111
8111
  };
8112
8112
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8113
8113
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8122,8 +8122,8 @@ class MySQLManagementClient extends coreClient__namespace.ServiceClient {
8122
8122
  });
8123
8123
  const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, advisorName, databaseName, options }, createRecommendedActionSessionOperationSpec);
8124
8124
  const poller = new coreLro.LroEngine(lro, {
8125
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8126
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
8125
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8126
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
8127
8127
  });
8128
8128
  yield poller.poll();
8129
8129
  return poller;
@@ -8138,7 +8138,7 @@ class MySQLManagementClient extends coreClient__namespace.ServiceClient {
8138
8138
  * @param options The options parameters.
8139
8139
  */
8140
8140
  beginCreateRecommendedActionSessionAndWait(resourceGroupName, serverName, advisorName, databaseName, options) {
8141
- return tslib.__awaiter(this, void 0, void 0, function* () {
8141
+ return tslib.__awaiter(this, undefined, undefined, function* () {
8142
8142
  const poller = yield this.beginCreateRecommendedActionSession(resourceGroupName, serverName, advisorName, databaseName, options);
8143
8143
  return poller.pollUntilDone();
8144
8144
  });