@azure/arm-sqlvirtualmachine 5.0.0-alpha.20250207.1 → 5.0.0-alpha.20250211.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 === undefined ? undefined : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _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 !== undefined ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -2204,7 +2204,7 @@ function createLroSpec(inputs) {
2204
2204
  sendInitialRequest: () => sendOperationFn(args, spec),
2205
2205
  sendPollRequest: (path, options) => {
2206
2206
  const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
2207
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
2207
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2208
2208
  }
2209
2209
  };
2210
2210
  }
@@ -2243,7 +2243,7 @@ class AvailabilityGroupListenersImpl {
2243
2243
  return this;
2244
2244
  },
2245
2245
  byPage: (settings) => {
2246
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2246
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2247
2247
  throw new Error("maxPageSize is not supported by this operation.");
2248
2248
  }
2249
2249
  return this.listByGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings);
@@ -2253,7 +2253,7 @@ class AvailabilityGroupListenersImpl {
2253
2253
  listByGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings) {
2254
2254
  return tslib.__asyncGenerator(this, arguments, function* listByGroupPagingPage_1() {
2255
2255
  let result;
2256
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2256
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2257
2257
  if (!continuationToken) {
2258
2258
  result = yield tslib.__await(this._listByGroup(resourceGroupName, sqlVirtualMachineGroupName, options));
2259
2259
  let page = result.value || [];
@@ -2316,17 +2316,17 @@ class AvailabilityGroupListenersImpl {
2316
2316
  * @param options The options parameters.
2317
2317
  */
2318
2318
  beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters, options) {
2319
- return tslib.__awaiter(this, undefined, undefined, function* () {
2320
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2319
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2320
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2321
2321
  return this.client.sendOperationRequest(args, spec);
2322
2322
  });
2323
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2323
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2324
2324
  var _a;
2325
2325
  let currentRawResponse = undefined;
2326
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2326
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2327
2327
  const callback = (rawResponse, flatResponse) => {
2328
2328
  currentRawResponse = rawResponse;
2329
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2329
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2330
2330
  };
2331
2331
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2332
2332
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2351,8 +2351,8 @@ class AvailabilityGroupListenersImpl {
2351
2351
  spec: createOrUpdateOperationSpec$2
2352
2352
  });
2353
2353
  const poller = yield coreLro.createHttpPoller(lro, {
2354
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2355
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2354
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2355
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2356
2356
  resourceLocationConfig: "azure-async-operation"
2357
2357
  });
2358
2358
  yield poller.poll();
@@ -2369,7 +2369,7 @@ class AvailabilityGroupListenersImpl {
2369
2369
  * @param options The options parameters.
2370
2370
  */
2371
2371
  beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters, options) {
2372
- return tslib.__awaiter(this, undefined, undefined, function* () {
2372
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2373
2373
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, parameters, options);
2374
2374
  return poller.pollUntilDone();
2375
2375
  });
@@ -2383,17 +2383,17 @@ class AvailabilityGroupListenersImpl {
2383
2383
  * @param options The options parameters.
2384
2384
  */
2385
2385
  beginDelete(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, options) {
2386
- return tslib.__awaiter(this, undefined, undefined, function* () {
2387
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2386
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2387
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2388
2388
  return this.client.sendOperationRequest(args, spec);
2389
2389
  });
2390
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2390
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2391
2391
  var _a;
2392
2392
  let currentRawResponse = undefined;
2393
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2393
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2394
2394
  const callback = (rawResponse, flatResponse) => {
2395
2395
  currentRawResponse = rawResponse;
2396
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2396
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2397
2397
  };
2398
2398
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2399
2399
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2417,8 +2417,8 @@ class AvailabilityGroupListenersImpl {
2417
2417
  spec: deleteOperationSpec$2
2418
2418
  });
2419
2419
  const poller = yield coreLro.createHttpPoller(lro, {
2420
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2421
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2420
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2421
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2422
2422
  resourceLocationConfig: "location"
2423
2423
  });
2424
2424
  yield poller.poll();
@@ -2434,7 +2434,7 @@ class AvailabilityGroupListenersImpl {
2434
2434
  * @param options The options parameters.
2435
2435
  */
2436
2436
  beginDeleteAndWait(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, options) {
2437
- return tslib.__awaiter(this, undefined, undefined, function* () {
2437
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2438
2438
  const poller = yield this.beginDelete(resourceGroupName, sqlVirtualMachineGroupName, availabilityGroupListenerName, options);
2439
2439
  return poller.pollUntilDone();
2440
2440
  });
@@ -2615,7 +2615,7 @@ class OperationsImpl {
2615
2615
  return this;
2616
2616
  },
2617
2617
  byPage: (settings) => {
2618
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2618
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2619
2619
  throw new Error("maxPageSize is not supported by this operation.");
2620
2620
  }
2621
2621
  return this.listPagingPage(options, settings);
@@ -2625,7 +2625,7 @@ class OperationsImpl {
2625
2625
  listPagingPage(options, settings) {
2626
2626
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2627
2627
  let result;
2628
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2628
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2629
2629
  if (!continuationToken) {
2630
2630
  result = yield tslib.__await(this._list(options));
2631
2631
  let page = result.value || [];
@@ -2745,7 +2745,7 @@ class SqlVirtualMachineGroupsImpl {
2745
2745
  return this;
2746
2746
  },
2747
2747
  byPage: (settings) => {
2748
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2748
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2749
2749
  throw new Error("maxPageSize is not supported by this operation.");
2750
2750
  }
2751
2751
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -2755,7 +2755,7 @@ class SqlVirtualMachineGroupsImpl {
2755
2755
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
2756
2756
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2757
2757
  let result;
2758
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2758
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2759
2759
  if (!continuationToken) {
2760
2760
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2761
2761
  let page = result.value || [];
@@ -2806,7 +2806,7 @@ class SqlVirtualMachineGroupsImpl {
2806
2806
  return this;
2807
2807
  },
2808
2808
  byPage: (settings) => {
2809
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2809
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2810
2810
  throw new Error("maxPageSize is not supported by this operation.");
2811
2811
  }
2812
2812
  return this.listPagingPage(options, settings);
@@ -2816,7 +2816,7 @@ class SqlVirtualMachineGroupsImpl {
2816
2816
  listPagingPage(options, settings) {
2817
2817
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2818
2818
  let result;
2819
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2819
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2820
2820
  if (!continuationToken) {
2821
2821
  result = yield tslib.__await(this._list(options));
2822
2822
  let page = result.value || [];
@@ -2872,17 +2872,17 @@ class SqlVirtualMachineGroupsImpl {
2872
2872
  * @param options The options parameters.
2873
2873
  */
2874
2874
  beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
2875
- return tslib.__awaiter(this, undefined, undefined, function* () {
2876
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2875
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2876
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2877
2877
  return this.client.sendOperationRequest(args, spec);
2878
2878
  });
2879
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2879
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2880
2880
  var _a;
2881
2881
  let currentRawResponse = undefined;
2882
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2882
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2883
2883
  const callback = (rawResponse, flatResponse) => {
2884
2884
  currentRawResponse = rawResponse;
2885
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2885
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2886
2886
  };
2887
2887
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2888
2888
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2906,8 +2906,8 @@ class SqlVirtualMachineGroupsImpl {
2906
2906
  spec: createOrUpdateOperationSpec$1
2907
2907
  });
2908
2908
  const poller = yield coreLro.createHttpPoller(lro, {
2909
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2910
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2909
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2910
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2911
2911
  resourceLocationConfig: "azure-async-operation"
2912
2912
  });
2913
2913
  yield poller.poll();
@@ -2923,7 +2923,7 @@ class SqlVirtualMachineGroupsImpl {
2923
2923
  * @param options The options parameters.
2924
2924
  */
2925
2925
  beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
2926
- return tslib.__awaiter(this, undefined, undefined, function* () {
2926
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2927
2927
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options);
2928
2928
  return poller.pollUntilDone();
2929
2929
  });
@@ -2936,17 +2936,17 @@ class SqlVirtualMachineGroupsImpl {
2936
2936
  * @param options The options parameters.
2937
2937
  */
2938
2938
  beginDelete(resourceGroupName, sqlVirtualMachineGroupName, options) {
2939
- return tslib.__awaiter(this, undefined, undefined, function* () {
2940
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2939
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2940
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2941
2941
  return this.client.sendOperationRequest(args, spec);
2942
2942
  });
2943
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2943
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2944
2944
  var _a;
2945
2945
  let currentRawResponse = undefined;
2946
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2946
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2947
2947
  const callback = (rawResponse, flatResponse) => {
2948
2948
  currentRawResponse = rawResponse;
2949
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2949
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2950
2950
  };
2951
2951
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2952
2952
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2965,8 +2965,8 @@ class SqlVirtualMachineGroupsImpl {
2965
2965
  spec: deleteOperationSpec$1
2966
2966
  });
2967
2967
  const poller = yield coreLro.createHttpPoller(lro, {
2968
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2969
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2968
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2969
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2970
2970
  resourceLocationConfig: "location"
2971
2971
  });
2972
2972
  yield poller.poll();
@@ -2981,7 +2981,7 @@ class SqlVirtualMachineGroupsImpl {
2981
2981
  * @param options The options parameters.
2982
2982
  */
2983
2983
  beginDeleteAndWait(resourceGroupName, sqlVirtualMachineGroupName, options) {
2984
- return tslib.__awaiter(this, undefined, undefined, function* () {
2984
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2985
2985
  const poller = yield this.beginDelete(resourceGroupName, sqlVirtualMachineGroupName, options);
2986
2986
  return poller.pollUntilDone();
2987
2987
  });
@@ -2995,17 +2995,17 @@ class SqlVirtualMachineGroupsImpl {
2995
2995
  * @param options The options parameters.
2996
2996
  */
2997
2997
  beginUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
2998
- return tslib.__awaiter(this, undefined, undefined, function* () {
2999
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2998
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2999
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3000
3000
  return this.client.sendOperationRequest(args, spec);
3001
3001
  });
3002
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3002
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3003
3003
  var _a;
3004
3004
  let currentRawResponse = undefined;
3005
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3005
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3006
3006
  const callback = (rawResponse, flatResponse) => {
3007
3007
  currentRawResponse = rawResponse;
3008
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3008
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3009
3009
  };
3010
3010
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3011
3011
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3029,8 +3029,8 @@ class SqlVirtualMachineGroupsImpl {
3029
3029
  spec: updateOperationSpec$1
3030
3030
  });
3031
3031
  const poller = yield coreLro.createHttpPoller(lro, {
3032
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3033
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3032
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3033
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3034
3034
  resourceLocationConfig: "azure-async-operation"
3035
3035
  });
3036
3036
  yield poller.poll();
@@ -3046,7 +3046,7 @@ class SqlVirtualMachineGroupsImpl {
3046
3046
  * @param options The options parameters.
3047
3047
  */
3048
3048
  beginUpdateAndWait(resourceGroupName, sqlVirtualMachineGroupName, parameters, options) {
3049
- return tslib.__awaiter(this, undefined, undefined, function* () {
3049
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3050
3050
  const poller = yield this.beginUpdate(resourceGroupName, sqlVirtualMachineGroupName, parameters, options);
3051
3051
  return poller.pollUntilDone();
3052
3052
  });
@@ -3305,7 +3305,7 @@ class SqlVirtualMachinesImpl {
3305
3305
  return this;
3306
3306
  },
3307
3307
  byPage: (settings) => {
3308
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3308
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3309
3309
  throw new Error("maxPageSize is not supported by this operation.");
3310
3310
  }
3311
3311
  return this.listBySqlVmGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings);
@@ -3315,7 +3315,7 @@ class SqlVirtualMachinesImpl {
3315
3315
  listBySqlVmGroupPagingPage(resourceGroupName, sqlVirtualMachineGroupName, options, settings) {
3316
3316
  return tslib.__asyncGenerator(this, arguments, function* listBySqlVmGroupPagingPage_1() {
3317
3317
  let result;
3318
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3318
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3319
3319
  if (!continuationToken) {
3320
3320
  result = yield tslib.__await(this._listBySqlVmGroup(resourceGroupName, sqlVirtualMachineGroupName, options));
3321
3321
  let page = result.value || [];
@@ -3366,7 +3366,7 @@ class SqlVirtualMachinesImpl {
3366
3366
  return this;
3367
3367
  },
3368
3368
  byPage: (settings) => {
3369
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3369
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3370
3370
  throw new Error("maxPageSize is not supported by this operation.");
3371
3371
  }
3372
3372
  return this.listPagingPage(options, settings);
@@ -3376,7 +3376,7 @@ class SqlVirtualMachinesImpl {
3376
3376
  listPagingPage(options, settings) {
3377
3377
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3378
3378
  let result;
3379
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3379
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3380
3380
  if (!continuationToken) {
3381
3381
  result = yield tslib.__await(this._list(options));
3382
3382
  let page = result.value || [];
@@ -3429,7 +3429,7 @@ class SqlVirtualMachinesImpl {
3429
3429
  return this;
3430
3430
  },
3431
3431
  byPage: (settings) => {
3432
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3432
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3433
3433
  throw new Error("maxPageSize is not supported by this operation.");
3434
3434
  }
3435
3435
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -3439,7 +3439,7 @@ class SqlVirtualMachinesImpl {
3439
3439
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
3440
3440
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
3441
3441
  let result;
3442
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3442
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3443
3443
  if (!continuationToken) {
3444
3444
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
3445
3445
  let page = result.value || [];
@@ -3512,17 +3512,17 @@ class SqlVirtualMachinesImpl {
3512
3512
  * @param options The options parameters.
3513
3513
  */
3514
3514
  beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
3515
- return tslib.__awaiter(this, undefined, undefined, function* () {
3516
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3515
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3516
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3517
3517
  return this.client.sendOperationRequest(args, spec);
3518
3518
  });
3519
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3519
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3520
3520
  var _a;
3521
3521
  let currentRawResponse = undefined;
3522
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3522
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3523
3523
  const callback = (rawResponse, flatResponse) => {
3524
3524
  currentRawResponse = rawResponse;
3525
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3525
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3526
3526
  };
3527
3527
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3528
3528
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3541,8 +3541,8 @@ class SqlVirtualMachinesImpl {
3541
3541
  spec: createOrUpdateOperationSpec
3542
3542
  });
3543
3543
  const poller = yield coreLro.createHttpPoller(lro, {
3544
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3545
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3544
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3545
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3546
3546
  resourceLocationConfig: "azure-async-operation"
3547
3547
  });
3548
3548
  yield poller.poll();
@@ -3558,7 +3558,7 @@ class SqlVirtualMachinesImpl {
3558
3558
  * @param options The options parameters.
3559
3559
  */
3560
3560
  beginCreateOrUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
3561
- return tslib.__awaiter(this, undefined, undefined, function* () {
3561
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3562
3562
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
3563
3563
  return poller.pollUntilDone();
3564
3564
  });
@@ -3571,17 +3571,17 @@ class SqlVirtualMachinesImpl {
3571
3571
  * @param options The options parameters.
3572
3572
  */
3573
3573
  beginDelete(resourceGroupName, sqlVirtualMachineName, options) {
3574
- return tslib.__awaiter(this, undefined, undefined, function* () {
3575
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3574
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3575
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3576
3576
  return this.client.sendOperationRequest(args, spec);
3577
3577
  });
3578
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3578
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3579
3579
  var _a;
3580
3580
  let currentRawResponse = undefined;
3581
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3581
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3582
3582
  const callback = (rawResponse, flatResponse) => {
3583
3583
  currentRawResponse = rawResponse;
3584
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3584
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3585
3585
  };
3586
3586
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3587
3587
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3600,8 +3600,8 @@ class SqlVirtualMachinesImpl {
3600
3600
  spec: deleteOperationSpec
3601
3601
  });
3602
3602
  const poller = yield coreLro.createHttpPoller(lro, {
3603
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3604
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3603
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3604
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3605
3605
  resourceLocationConfig: "location"
3606
3606
  });
3607
3607
  yield poller.poll();
@@ -3616,7 +3616,7 @@ class SqlVirtualMachinesImpl {
3616
3616
  * @param options The options parameters.
3617
3617
  */
3618
3618
  beginDeleteAndWait(resourceGroupName, sqlVirtualMachineName, options) {
3619
- return tslib.__awaiter(this, undefined, undefined, function* () {
3619
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3620
3620
  const poller = yield this.beginDelete(resourceGroupName, sqlVirtualMachineName, options);
3621
3621
  return poller.pollUntilDone();
3622
3622
  });
@@ -3630,17 +3630,17 @@ class SqlVirtualMachinesImpl {
3630
3630
  * @param options The options parameters.
3631
3631
  */
3632
3632
  beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options) {
3633
- return tslib.__awaiter(this, undefined, undefined, function* () {
3634
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3633
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3634
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3635
3635
  return this.client.sendOperationRequest(args, spec);
3636
3636
  });
3637
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3637
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3638
3638
  var _a;
3639
3639
  let currentRawResponse = undefined;
3640
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3640
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3641
3641
  const callback = (rawResponse, flatResponse) => {
3642
3642
  currentRawResponse = rawResponse;
3643
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3643
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3644
3644
  };
3645
3645
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3646
3646
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3659,8 +3659,8 @@ class SqlVirtualMachinesImpl {
3659
3659
  spec: updateOperationSpec
3660
3660
  });
3661
3661
  const poller = yield coreLro.createHttpPoller(lro, {
3662
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3663
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3662
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3663
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3664
3664
  resourceLocationConfig: "azure-async-operation"
3665
3665
  });
3666
3666
  yield poller.poll();
@@ -3676,7 +3676,7 @@ class SqlVirtualMachinesImpl {
3676
3676
  * @param options The options parameters.
3677
3677
  */
3678
3678
  beginUpdateAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
3679
- return tslib.__awaiter(this, undefined, undefined, function* () {
3679
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3680
3680
  const poller = yield this.beginUpdate(resourceGroupName, sqlVirtualMachineName, parameters, options);
3681
3681
  return poller.pollUntilDone();
3682
3682
  });
@@ -3698,17 +3698,17 @@ class SqlVirtualMachinesImpl {
3698
3698
  * @param options The options parameters.
3699
3699
  */
3700
3700
  beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options) {
3701
- return tslib.__awaiter(this, undefined, undefined, function* () {
3702
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3701
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3702
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3703
3703
  return this.client.sendOperationRequest(args, spec);
3704
3704
  });
3705
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3705
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3706
3706
  var _a;
3707
3707
  let currentRawResponse = undefined;
3708
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3708
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3709
3709
  const callback = (rawResponse, flatResponse) => {
3710
3710
  currentRawResponse = rawResponse;
3711
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3711
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3712
3712
  };
3713
3713
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3714
3714
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3727,8 +3727,8 @@ class SqlVirtualMachinesImpl {
3727
3727
  spec: startAssessmentOperationSpec
3728
3728
  });
3729
3729
  const poller = yield coreLro.createHttpPoller(lro, {
3730
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3731
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3730
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3731
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3732
3732
  resourceLocationConfig: "location"
3733
3733
  });
3734
3734
  yield poller.poll();
@@ -3743,7 +3743,7 @@ class SqlVirtualMachinesImpl {
3743
3743
  * @param options The options parameters.
3744
3744
  */
3745
3745
  beginStartAssessmentAndWait(resourceGroupName, sqlVirtualMachineName, options) {
3746
- return tslib.__awaiter(this, undefined, undefined, function* () {
3746
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3747
3747
  const poller = yield this.beginStartAssessment(resourceGroupName, sqlVirtualMachineName, options);
3748
3748
  return poller.pollUntilDone();
3749
3749
  });
@@ -3756,17 +3756,17 @@ class SqlVirtualMachinesImpl {
3756
3756
  * @param options The options parameters.
3757
3757
  */
3758
3758
  beginRedeploy(resourceGroupName, sqlVirtualMachineName, options) {
3759
- return tslib.__awaiter(this, undefined, undefined, function* () {
3760
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3759
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3760
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3761
3761
  return this.client.sendOperationRequest(args, spec);
3762
3762
  });
3763
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3763
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3764
3764
  var _a;
3765
3765
  let currentRawResponse = undefined;
3766
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3766
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3767
3767
  const callback = (rawResponse, flatResponse) => {
3768
3768
  currentRawResponse = rawResponse;
3769
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3769
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3770
3770
  };
3771
3771
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3772
3772
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3785,8 +3785,8 @@ class SqlVirtualMachinesImpl {
3785
3785
  spec: redeployOperationSpec
3786
3786
  });
3787
3787
  const poller = yield coreLro.createHttpPoller(lro, {
3788
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3789
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3788
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3789
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3790
3790
  resourceLocationConfig: "location"
3791
3791
  });
3792
3792
  yield poller.poll();
@@ -3801,7 +3801,7 @@ class SqlVirtualMachinesImpl {
3801
3801
  * @param options The options parameters.
3802
3802
  */
3803
3803
  beginRedeployAndWait(resourceGroupName, sqlVirtualMachineName, options) {
3804
- return tslib.__awaiter(this, undefined, undefined, function* () {
3804
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3805
3805
  const poller = yield this.beginRedeploy(resourceGroupName, sqlVirtualMachineName, options);
3806
3806
  return poller.pollUntilDone();
3807
3807
  });
@@ -4132,17 +4132,17 @@ class SqlVirtualMachineTroubleshootImpl {
4132
4132
  * @param options The options parameters.
4133
4133
  */
4134
4134
  beginTroubleshoot(resourceGroupName, sqlVirtualMachineName, parameters, options) {
4135
- return tslib.__awaiter(this, undefined, undefined, function* () {
4136
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4135
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4136
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4137
4137
  return this.client.sendOperationRequest(args, spec);
4138
4138
  });
4139
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4139
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4140
4140
  var _a;
4141
4141
  let currentRawResponse = undefined;
4142
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4142
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4143
4143
  const callback = (rawResponse, flatResponse) => {
4144
4144
  currentRawResponse = rawResponse;
4145
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4145
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4146
4146
  };
4147
4147
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4148
4148
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4161,8 +4161,8 @@ class SqlVirtualMachineTroubleshootImpl {
4161
4161
  spec: troubleshootOperationSpec
4162
4162
  });
4163
4163
  const poller = yield coreLro.createHttpPoller(lro, {
4164
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4165
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4164
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4165
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4166
4166
  resourceLocationConfig: "location"
4167
4167
  });
4168
4168
  yield poller.poll();
@@ -4178,7 +4178,7 @@ class SqlVirtualMachineTroubleshootImpl {
4178
4178
  * @param options The options parameters.
4179
4179
  */
4180
4180
  beginTroubleshootAndWait(resourceGroupName, sqlVirtualMachineName, parameters, options) {
4181
- return tslib.__awaiter(this, undefined, undefined, function* () {
4181
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4182
4182
  const poller = yield this.beginTroubleshoot(resourceGroupName, sqlVirtualMachineName, parameters, options);
4183
4183
  return poller.pollUntilDone();
4184
4184
  });
@@ -4255,10 +4255,10 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
4255
4255
  : `${packageDetails}`;
4256
4256
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
4257
4257
  userAgentPrefix
4258
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
4258
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
4259
4259
  super(optionsWithDefaults);
4260
4260
  let bearerTokenAuthenticationPolicyFound = false;
4261
- if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4261
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4262
4262
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
4263
4263
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
4264
4264
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -4272,7 +4272,7 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
4272
4272
  });
4273
4273
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
4274
4274
  credential: credentials,
4275
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
4275
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
4276
4276
  challengeCallbacks: {
4277
4277
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
4278
4278
  }
@@ -4298,7 +4298,7 @@ class SqlVirtualMachineManagementClient extends coreClient__namespace.ServiceCli
4298
4298
  const apiVersionPolicy = {
4299
4299
  name: "CustomApiVersionPolicy",
4300
4300
  sendRequest(request, next) {
4301
- return tslib.__awaiter(this, undefined, undefined, function* () {
4301
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4302
4302
  const param = request.url.split("?");
4303
4303
  if (param.length > 1) {
4304
4304
  const newParams = param[1].split("&").map((item) => {