@azure/arm-labservices 3.1.1-alpha.20250106.1 → 3.1.1-alpha.20250108.1

Sign up to get free protection for your applications and to get access to all the features.
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
  }
@@ -3233,7 +3233,7 @@ class ImagesImpl {
3233
3233
  return this;
3234
3234
  },
3235
3235
  byPage: (settings) => {
3236
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3236
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3237
3237
  throw new Error("maxPageSize is not supported by this operation.");
3238
3238
  }
3239
3239
  return this.listByLabPlanPagingPage(resourceGroupName, labPlanName, options, settings);
@@ -3243,7 +3243,7 @@ class ImagesImpl {
3243
3243
  listByLabPlanPagingPage(resourceGroupName, labPlanName, options, settings) {
3244
3244
  return tslib.__asyncGenerator(this, arguments, function* listByLabPlanPagingPage_1() {
3245
3245
  let result;
3246
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3246
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3247
3247
  if (!continuationToken) {
3248
3248
  result = yield tslib.__await(this._listByLabPlan(resourceGroupName, labPlanName, options));
3249
3249
  let page = result.value || [];
@@ -3468,12 +3468,12 @@ class LroImpl {
3468
3468
  this.requestMethod = requestMethod;
3469
3469
  }
3470
3470
  sendInitialRequest() {
3471
- return tslib.__awaiter(this, void 0, void 0, function* () {
3471
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3472
3472
  return this.sendOperationFn(this.args, this.spec);
3473
3473
  });
3474
3474
  }
3475
3475
  sendPollRequest(path) {
3476
- return tslib.__awaiter(this, void 0, void 0, function* () {
3476
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3477
3477
  const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
3478
3478
  return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
3479
3479
  });
@@ -3511,7 +3511,7 @@ class LabPlansImpl {
3511
3511
  return this;
3512
3512
  },
3513
3513
  byPage: (settings) => {
3514
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3514
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3515
3515
  throw new Error("maxPageSize is not supported by this operation.");
3516
3516
  }
3517
3517
  return this.listBySubscriptionPagingPage(options, settings);
@@ -3521,7 +3521,7 @@ class LabPlansImpl {
3521
3521
  listBySubscriptionPagingPage(options, settings) {
3522
3522
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
3523
3523
  let result;
3524
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3524
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3525
3525
  if (!continuationToken) {
3526
3526
  result = yield tslib.__await(this._listBySubscription(options));
3527
3527
  let page = result.value || [];
@@ -3573,7 +3573,7 @@ class LabPlansImpl {
3573
3573
  return this;
3574
3574
  },
3575
3575
  byPage: (settings) => {
3576
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3576
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3577
3577
  throw new Error("maxPageSize is not supported by this operation.");
3578
3578
  }
3579
3579
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -3583,7 +3583,7 @@ class LabPlansImpl {
3583
3583
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
3584
3584
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
3585
3585
  let result;
3586
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3586
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3587
3587
  if (!continuationToken) {
3588
3588
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
3589
3589
  let page = result.value || [];
@@ -3654,17 +3654,17 @@ class LabPlansImpl {
3654
3654
  * @param options The options parameters.
3655
3655
  */
3656
3656
  beginCreateOrUpdate(resourceGroupName, labPlanName, body, options) {
3657
- return tslib.__awaiter(this, void 0, void 0, function* () {
3658
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3657
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3658
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3659
3659
  return this.client.sendOperationRequest(args, spec);
3660
3660
  });
3661
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3661
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3662
3662
  var _a;
3663
3663
  let currentRawResponse = undefined;
3664
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3664
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3665
3665
  const callback = (rawResponse, flatResponse) => {
3666
3666
  currentRawResponse = rawResponse;
3667
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3667
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3668
3668
  };
3669
3669
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3670
3670
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3679,8 +3679,8 @@ class LabPlansImpl {
3679
3679
  });
3680
3680
  const lro = new LroImpl(sendOperation, { resourceGroupName, labPlanName, body, options }, createOrUpdateOperationSpec$3);
3681
3681
  const poller = new coreLro.LroEngine(lro, {
3682
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3683
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3682
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3683
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3684
3684
  lroResourceLocationConfig: "original-uri"
3685
3685
  });
3686
3686
  yield poller.poll();
@@ -3696,7 +3696,7 @@ class LabPlansImpl {
3696
3696
  * @param options The options parameters.
3697
3697
  */
3698
3698
  beginCreateOrUpdateAndWait(resourceGroupName, labPlanName, body, options) {
3699
- return tslib.__awaiter(this, void 0, void 0, function* () {
3699
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3700
3700
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, labPlanName, body, options);
3701
3701
  return poller.pollUntilDone();
3702
3702
  });
@@ -3710,17 +3710,17 @@ class LabPlansImpl {
3710
3710
  * @param options The options parameters.
3711
3711
  */
3712
3712
  beginUpdate(resourceGroupName, labPlanName, body, options) {
3713
- return tslib.__awaiter(this, void 0, void 0, function* () {
3714
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3713
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3714
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3715
3715
  return this.client.sendOperationRequest(args, spec);
3716
3716
  });
3717
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3717
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3718
3718
  var _a;
3719
3719
  let currentRawResponse = undefined;
3720
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3720
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3721
3721
  const callback = (rawResponse, flatResponse) => {
3722
3722
  currentRawResponse = rawResponse;
3723
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3723
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3724
3724
  };
3725
3725
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3726
3726
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3735,8 +3735,8 @@ class LabPlansImpl {
3735
3735
  });
3736
3736
  const lro = new LroImpl(sendOperation, { resourceGroupName, labPlanName, body, options }, updateOperationSpec$3);
3737
3737
  const poller = new coreLro.LroEngine(lro, {
3738
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3739
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3738
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3739
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3740
3740
  lroResourceLocationConfig: "location"
3741
3741
  });
3742
3742
  yield poller.poll();
@@ -3752,7 +3752,7 @@ class LabPlansImpl {
3752
3752
  * @param options The options parameters.
3753
3753
  */
3754
3754
  beginUpdateAndWait(resourceGroupName, labPlanName, body, options) {
3755
- return tslib.__awaiter(this, void 0, void 0, function* () {
3755
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3756
3756
  const poller = yield this.beginUpdate(resourceGroupName, labPlanName, body, options);
3757
3757
  return poller.pollUntilDone();
3758
3758
  });
@@ -3766,17 +3766,17 @@ class LabPlansImpl {
3766
3766
  * @param options The options parameters.
3767
3767
  */
3768
3768
  beginDelete(resourceGroupName, labPlanName, options) {
3769
- return tslib.__awaiter(this, void 0, void 0, function* () {
3770
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3769
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3770
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3771
3771
  return this.client.sendOperationRequest(args, spec);
3772
3772
  });
3773
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3773
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3774
3774
  var _a;
3775
3775
  let currentRawResponse = undefined;
3776
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3776
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3777
3777
  const callback = (rawResponse, flatResponse) => {
3778
3778
  currentRawResponse = rawResponse;
3779
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3779
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3780
3780
  };
3781
3781
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3782
3782
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3791,8 +3791,8 @@ class LabPlansImpl {
3791
3791
  });
3792
3792
  const lro = new LroImpl(sendOperation, { resourceGroupName, labPlanName, options }, deleteOperationSpec$3);
3793
3793
  const poller = new coreLro.LroEngine(lro, {
3794
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3795
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3794
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3795
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3796
3796
  lroResourceLocationConfig: "location"
3797
3797
  });
3798
3798
  yield poller.poll();
@@ -3808,7 +3808,7 @@ class LabPlansImpl {
3808
3808
  * @param options The options parameters.
3809
3809
  */
3810
3810
  beginDeleteAndWait(resourceGroupName, labPlanName, 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.beginDelete(resourceGroupName, labPlanName, options);
3813
3813
  return poller.pollUntilDone();
3814
3814
  });
@@ -3822,17 +3822,17 @@ class LabPlansImpl {
3822
3822
  * @param options The options parameters.
3823
3823
  */
3824
3824
  beginSaveImage(resourceGroupName, labPlanName, body, options) {
3825
- return tslib.__awaiter(this, void 0, void 0, function* () {
3826
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3825
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3826
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3827
3827
  return this.client.sendOperationRequest(args, spec);
3828
3828
  });
3829
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3829
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3830
3830
  var _a;
3831
3831
  let currentRawResponse = undefined;
3832
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3832
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3833
3833
  const callback = (rawResponse, flatResponse) => {
3834
3834
  currentRawResponse = rawResponse;
3835
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3835
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3836
3836
  };
3837
3837
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3838
3838
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3847,8 +3847,8 @@ class LabPlansImpl {
3847
3847
  });
3848
3848
  const lro = new LroImpl(sendOperation, { resourceGroupName, labPlanName, body, options }, saveImageOperationSpec);
3849
3849
  const poller = new coreLro.LroEngine(lro, {
3850
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3851
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3850
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3851
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3852
3852
  lroResourceLocationConfig: "location"
3853
3853
  });
3854
3854
  yield poller.poll();
@@ -3864,7 +3864,7 @@ class LabPlansImpl {
3864
3864
  * @param options The options parameters.
3865
3865
  */
3866
3866
  beginSaveImageAndWait(resourceGroupName, labPlanName, body, options) {
3867
- return tslib.__awaiter(this, void 0, void 0, function* () {
3867
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3868
3868
  const poller = yield this.beginSaveImage(resourceGroupName, labPlanName, body, options);
3869
3869
  return poller.pollUntilDone();
3870
3870
  });
@@ -4127,7 +4127,7 @@ class OperationsImpl {
4127
4127
  return this;
4128
4128
  },
4129
4129
  byPage: (settings) => {
4130
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4130
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4131
4131
  throw new Error("maxPageSize is not supported by this operation.");
4132
4132
  }
4133
4133
  return this.listPagingPage(options, settings);
@@ -4137,7 +4137,7 @@ class OperationsImpl {
4137
4137
  listPagingPage(options, settings) {
4138
4138
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4139
4139
  let result;
4140
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4140
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4141
4141
  if (!continuationToken) {
4142
4142
  result = yield tslib.__await(this._list(options));
4143
4143
  let page = result.value || [];
@@ -4255,7 +4255,7 @@ class LabsImpl {
4255
4255
  return this;
4256
4256
  },
4257
4257
  byPage: (settings) => {
4258
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4258
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4259
4259
  throw new Error("maxPageSize is not supported by this operation.");
4260
4260
  }
4261
4261
  return this.listBySubscriptionPagingPage(options, settings);
@@ -4265,7 +4265,7 @@ class LabsImpl {
4265
4265
  listBySubscriptionPagingPage(options, settings) {
4266
4266
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
4267
4267
  let result;
4268
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4268
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4269
4269
  if (!continuationToken) {
4270
4270
  result = yield tslib.__await(this._listBySubscription(options));
4271
4271
  let page = result.value || [];
@@ -4317,7 +4317,7 @@ class LabsImpl {
4317
4317
  return this;
4318
4318
  },
4319
4319
  byPage: (settings) => {
4320
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4320
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4321
4321
  throw new Error("maxPageSize is not supported by this operation.");
4322
4322
  }
4323
4323
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -4327,7 +4327,7 @@ class LabsImpl {
4327
4327
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
4328
4328
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
4329
4329
  let result;
4330
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4330
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4331
4331
  if (!continuationToken) {
4332
4332
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
4333
4333
  let page = result.value || [];
@@ -4398,17 +4398,17 @@ class LabsImpl {
4398
4398
  * @param options The options parameters.
4399
4399
  */
4400
4400
  beginCreateOrUpdate(resourceGroupName, labName, body, options) {
4401
- return tslib.__awaiter(this, void 0, void 0, function* () {
4402
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4401
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4402
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4403
4403
  return this.client.sendOperationRequest(args, spec);
4404
4404
  });
4405
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4405
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4406
4406
  var _a;
4407
4407
  let currentRawResponse = undefined;
4408
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4408
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4409
4409
  const callback = (rawResponse, flatResponse) => {
4410
4410
  currentRawResponse = rawResponse;
4411
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4411
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4412
4412
  };
4413
4413
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4414
4414
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4423,8 +4423,8 @@ class LabsImpl {
4423
4423
  });
4424
4424
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, body, options }, createOrUpdateOperationSpec$2);
4425
4425
  const poller = new coreLro.LroEngine(lro, {
4426
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4427
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4426
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4427
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4428
4428
  lroResourceLocationConfig: "original-uri"
4429
4429
  });
4430
4430
  yield poller.poll();
@@ -4440,7 +4440,7 @@ class LabsImpl {
4440
4440
  * @param options The options parameters.
4441
4441
  */
4442
4442
  beginCreateOrUpdateAndWait(resourceGroupName, labName, body, options) {
4443
- return tslib.__awaiter(this, void 0, void 0, function* () {
4443
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4444
4444
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, labName, body, options);
4445
4445
  return poller.pollUntilDone();
4446
4446
  });
@@ -4454,17 +4454,17 @@ class LabsImpl {
4454
4454
  * @param options The options parameters.
4455
4455
  */
4456
4456
  beginUpdate(resourceGroupName, labName, body, options) {
4457
- return tslib.__awaiter(this, void 0, void 0, function* () {
4458
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4457
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4458
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4459
4459
  return this.client.sendOperationRequest(args, spec);
4460
4460
  });
4461
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4461
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4462
4462
  var _a;
4463
4463
  let currentRawResponse = undefined;
4464
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4464
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4465
4465
  const callback = (rawResponse, flatResponse) => {
4466
4466
  currentRawResponse = rawResponse;
4467
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4467
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4468
4468
  };
4469
4469
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4470
4470
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4479,8 +4479,8 @@ class LabsImpl {
4479
4479
  });
4480
4480
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, body, options }, updateOperationSpec$2);
4481
4481
  const poller = new coreLro.LroEngine(lro, {
4482
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4483
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4482
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4483
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4484
4484
  lroResourceLocationConfig: "location"
4485
4485
  });
4486
4486
  yield poller.poll();
@@ -4496,7 +4496,7 @@ class LabsImpl {
4496
4496
  * @param options The options parameters.
4497
4497
  */
4498
4498
  beginUpdateAndWait(resourceGroupName, labName, body, options) {
4499
- return tslib.__awaiter(this, void 0, void 0, function* () {
4499
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4500
4500
  const poller = yield this.beginUpdate(resourceGroupName, labName, body, options);
4501
4501
  return poller.pollUntilDone();
4502
4502
  });
@@ -4509,17 +4509,17 @@ class LabsImpl {
4509
4509
  * @param options The options parameters.
4510
4510
  */
4511
4511
  beginDelete(resourceGroupName, labName, options) {
4512
- return tslib.__awaiter(this, void 0, void 0, function* () {
4513
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4512
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4513
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4514
4514
  return this.client.sendOperationRequest(args, spec);
4515
4515
  });
4516
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4516
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4517
4517
  var _a;
4518
4518
  let currentRawResponse = undefined;
4519
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4519
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4520
4520
  const callback = (rawResponse, flatResponse) => {
4521
4521
  currentRawResponse = rawResponse;
4522
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4522
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4523
4523
  };
4524
4524
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4525
4525
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4534,8 +4534,8 @@ class LabsImpl {
4534
4534
  });
4535
4535
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, options }, deleteOperationSpec$2);
4536
4536
  const poller = new coreLro.LroEngine(lro, {
4537
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4538
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4537
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4538
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4539
4539
  lroResourceLocationConfig: "location"
4540
4540
  });
4541
4541
  yield poller.poll();
@@ -4550,7 +4550,7 @@ class LabsImpl {
4550
4550
  * @param options The options parameters.
4551
4551
  */
4552
4552
  beginDeleteAndWait(resourceGroupName, labName, options) {
4553
- return tslib.__awaiter(this, void 0, void 0, function* () {
4553
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4554
4554
  const poller = yield this.beginDelete(resourceGroupName, labName, options);
4555
4555
  return poller.pollUntilDone();
4556
4556
  });
@@ -4563,17 +4563,17 @@ class LabsImpl {
4563
4563
  * @param options The options parameters.
4564
4564
  */
4565
4565
  beginPublish(resourceGroupName, labName, options) {
4566
- return tslib.__awaiter(this, void 0, void 0, function* () {
4567
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4566
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4567
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4568
4568
  return this.client.sendOperationRequest(args, spec);
4569
4569
  });
4570
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4570
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4571
4571
  var _a;
4572
4572
  let currentRawResponse = undefined;
4573
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4573
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4574
4574
  const callback = (rawResponse, flatResponse) => {
4575
4575
  currentRawResponse = rawResponse;
4576
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4576
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4577
4577
  };
4578
4578
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4579
4579
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4588,8 +4588,8 @@ class LabsImpl {
4588
4588
  });
4589
4589
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, options }, publishOperationSpec);
4590
4590
  const poller = new coreLro.LroEngine(lro, {
4591
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4592
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4591
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4592
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4593
4593
  lroResourceLocationConfig: "location"
4594
4594
  });
4595
4595
  yield poller.poll();
@@ -4604,7 +4604,7 @@ class LabsImpl {
4604
4604
  * @param options The options parameters.
4605
4605
  */
4606
4606
  beginPublishAndWait(resourceGroupName, labName, options) {
4607
- return tslib.__awaiter(this, void 0, void 0, function* () {
4607
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4608
4608
  const poller = yield this.beginPublish(resourceGroupName, labName, options);
4609
4609
  return poller.pollUntilDone();
4610
4610
  });
@@ -4617,17 +4617,17 @@ class LabsImpl {
4617
4617
  * @param options The options parameters.
4618
4618
  */
4619
4619
  beginSyncGroup(resourceGroupName, labName, options) {
4620
- return tslib.__awaiter(this, void 0, void 0, function* () {
4621
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4620
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4621
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4622
4622
  return this.client.sendOperationRequest(args, spec);
4623
4623
  });
4624
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4624
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4625
4625
  var _a;
4626
4626
  let currentRawResponse = undefined;
4627
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4627
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4628
4628
  const callback = (rawResponse, flatResponse) => {
4629
4629
  currentRawResponse = rawResponse;
4630
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4630
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4631
4631
  };
4632
4632
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4633
4633
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4642,8 +4642,8 @@ class LabsImpl {
4642
4642
  });
4643
4643
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, options }, syncGroupOperationSpec);
4644
4644
  const poller = new coreLro.LroEngine(lro, {
4645
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4646
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4645
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4646
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
4647
4647
  lroResourceLocationConfig: "location"
4648
4648
  });
4649
4649
  yield poller.poll();
@@ -4658,7 +4658,7 @@ class LabsImpl {
4658
4658
  * @param options The options parameters.
4659
4659
  */
4660
4660
  beginSyncGroupAndWait(resourceGroupName, labName, options) {
4661
- return tslib.__awaiter(this, void 0, void 0, function* () {
4661
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4662
4662
  const poller = yield this.beginSyncGroup(resourceGroupName, labName, options);
4663
4663
  return poller.pollUntilDone();
4664
4664
  });
@@ -4993,7 +4993,7 @@ class SchedulesImpl {
4993
4993
  return this;
4994
4994
  },
4995
4995
  byPage: (settings) => {
4996
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4996
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4997
4997
  throw new Error("maxPageSize is not supported by this operation.");
4998
4998
  }
4999
4999
  return this.listByLabPagingPage(resourceGroupName, labName, options, settings);
@@ -5003,7 +5003,7 @@ class SchedulesImpl {
5003
5003
  listByLabPagingPage(resourceGroupName, labName, options, settings) {
5004
5004
  return tslib.__asyncGenerator(this, arguments, function* listByLabPagingPage_1() {
5005
5005
  let result;
5006
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5006
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5007
5007
  if (!continuationToken) {
5008
5008
  result = yield tslib.__await(this._listByLab(resourceGroupName, labName, options));
5009
5009
  let page = result.value || [];
@@ -5098,17 +5098,17 @@ class SchedulesImpl {
5098
5098
  * @param options The options parameters.
5099
5099
  */
5100
5100
  beginDelete(resourceGroupName, labName, scheduleName, options) {
5101
- return tslib.__awaiter(this, void 0, void 0, function* () {
5102
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5101
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5102
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5103
5103
  return this.client.sendOperationRequest(args, spec);
5104
5104
  });
5105
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5105
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5106
5106
  var _a;
5107
5107
  let currentRawResponse = undefined;
5108
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5108
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5109
5109
  const callback = (rawResponse, flatResponse) => {
5110
5110
  currentRawResponse = rawResponse;
5111
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5111
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5112
5112
  };
5113
5113
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5114
5114
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5123,8 +5123,8 @@ class SchedulesImpl {
5123
5123
  });
5124
5124
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, scheduleName, options }, deleteOperationSpec$1);
5125
5125
  const poller = new coreLro.LroEngine(lro, {
5126
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5127
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5126
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5127
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
5128
5128
  lroResourceLocationConfig: "location"
5129
5129
  });
5130
5130
  yield poller.poll();
@@ -5141,7 +5141,7 @@ class SchedulesImpl {
5141
5141
  * @param options The options parameters.
5142
5142
  */
5143
5143
  beginDeleteAndWait(resourceGroupName, labName, scheduleName, options) {
5144
- return tslib.__awaiter(this, void 0, void 0, function* () {
5144
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5145
5145
  const poller = yield this.beginDelete(resourceGroupName, labName, scheduleName, options);
5146
5146
  return poller.pollUntilDone();
5147
5147
  });
@@ -5330,7 +5330,7 @@ class SkusImpl {
5330
5330
  return this;
5331
5331
  },
5332
5332
  byPage: (settings) => {
5333
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5333
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5334
5334
  throw new Error("maxPageSize is not supported by this operation.");
5335
5335
  }
5336
5336
  return this.listPagingPage(options, settings);
@@ -5340,7 +5340,7 @@ class SkusImpl {
5340
5340
  listPagingPage(options, settings) {
5341
5341
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
5342
5342
  let result;
5343
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5343
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5344
5344
  if (!continuationToken) {
5345
5345
  result = yield tslib.__await(this._list(options));
5346
5346
  let page = result.value || [];
@@ -5463,7 +5463,7 @@ class UsagesImpl {
5463
5463
  return this;
5464
5464
  },
5465
5465
  byPage: (settings) => {
5466
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5466
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5467
5467
  throw new Error("maxPageSize is not supported by this operation.");
5468
5468
  }
5469
5469
  return this.listByLocationPagingPage(location, options, settings);
@@ -5473,7 +5473,7 @@ class UsagesImpl {
5473
5473
  listByLocationPagingPage(location, options, settings) {
5474
5474
  return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
5475
5475
  let result;
5476
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5476
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5477
5477
  if (!continuationToken) {
5478
5478
  result = yield tslib.__await(this._listByLocation(location, options));
5479
5479
  let page = result.value || [];
@@ -5605,7 +5605,7 @@ class UsersImpl {
5605
5605
  return this;
5606
5606
  },
5607
5607
  byPage: (settings) => {
5608
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5608
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5609
5609
  throw new Error("maxPageSize is not supported by this operation.");
5610
5610
  }
5611
5611
  return this.listByLabPagingPage(resourceGroupName, labName, options, settings);
@@ -5615,7 +5615,7 @@ class UsersImpl {
5615
5615
  listByLabPagingPage(resourceGroupName, labName, options, settings) {
5616
5616
  return tslib.__asyncGenerator(this, arguments, function* listByLabPagingPage_1() {
5617
5617
  let result;
5618
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5618
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
5619
5619
  if (!continuationToken) {
5620
5620
  result = yield tslib.__await(this._listByLab(resourceGroupName, labName, options));
5621
5621
  let page = result.value || [];
@@ -5685,17 +5685,17 @@ class UsersImpl {
5685
5685
  * @param options The options parameters.
5686
5686
  */
5687
5687
  beginCreateOrUpdate(resourceGroupName, labName, userName, body, options) {
5688
- return tslib.__awaiter(this, void 0, void 0, function* () {
5689
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5688
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5689
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5690
5690
  return this.client.sendOperationRequest(args, spec);
5691
5691
  });
5692
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5692
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5693
5693
  var _a;
5694
5694
  let currentRawResponse = undefined;
5695
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5695
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5696
5696
  const callback = (rawResponse, flatResponse) => {
5697
5697
  currentRawResponse = rawResponse;
5698
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5698
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5699
5699
  };
5700
5700
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5701
5701
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5710,8 +5710,8 @@ class UsersImpl {
5710
5710
  });
5711
5711
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, userName, body, options }, createOrUpdateOperationSpec);
5712
5712
  const poller = new coreLro.LroEngine(lro, {
5713
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5714
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5713
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5714
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
5715
5715
  lroResourceLocationConfig: "original-uri"
5716
5716
  });
5717
5717
  yield poller.poll();
@@ -5729,7 +5729,7 @@ class UsersImpl {
5729
5729
  * @param options The options parameters.
5730
5730
  */
5731
5731
  beginCreateOrUpdateAndWait(resourceGroupName, labName, userName, body, options) {
5732
- return tslib.__awaiter(this, void 0, void 0, function* () {
5732
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5733
5733
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, labName, userName, body, options);
5734
5734
  return poller.pollUntilDone();
5735
5735
  });
@@ -5745,17 +5745,17 @@ class UsersImpl {
5745
5745
  * @param options The options parameters.
5746
5746
  */
5747
5747
  beginUpdate(resourceGroupName, labName, userName, body, options) {
5748
- return tslib.__awaiter(this, void 0, void 0, function* () {
5749
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5748
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5749
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5750
5750
  return this.client.sendOperationRequest(args, spec);
5751
5751
  });
5752
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5752
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5753
5753
  var _a;
5754
5754
  let currentRawResponse = undefined;
5755
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5755
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5756
5756
  const callback = (rawResponse, flatResponse) => {
5757
5757
  currentRawResponse = rawResponse;
5758
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5758
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5759
5759
  };
5760
5760
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5761
5761
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5770,8 +5770,8 @@ class UsersImpl {
5770
5770
  });
5771
5771
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, userName, body, options }, updateOperationSpec);
5772
5772
  const poller = new coreLro.LroEngine(lro, {
5773
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5774
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5773
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5774
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
5775
5775
  lroResourceLocationConfig: "location"
5776
5776
  });
5777
5777
  yield poller.poll();
@@ -5789,7 +5789,7 @@ class UsersImpl {
5789
5789
  * @param options The options parameters.
5790
5790
  */
5791
5791
  beginUpdateAndWait(resourceGroupName, labName, userName, body, options) {
5792
- return tslib.__awaiter(this, void 0, void 0, function* () {
5792
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5793
5793
  const poller = yield this.beginUpdate(resourceGroupName, labName, userName, body, options);
5794
5794
  return poller.pollUntilDone();
5795
5795
  });
@@ -5804,17 +5804,17 @@ class UsersImpl {
5804
5804
  * @param options The options parameters.
5805
5805
  */
5806
5806
  beginDelete(resourceGroupName, labName, userName, options) {
5807
- return tslib.__awaiter(this, void 0, void 0, function* () {
5808
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5807
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5808
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5809
5809
  return this.client.sendOperationRequest(args, spec);
5810
5810
  });
5811
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5811
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5812
5812
  var _a;
5813
5813
  let currentRawResponse = undefined;
5814
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5814
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5815
5815
  const callback = (rawResponse, flatResponse) => {
5816
5816
  currentRawResponse = rawResponse;
5817
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5817
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5818
5818
  };
5819
5819
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5820
5820
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5829,8 +5829,8 @@ class UsersImpl {
5829
5829
  });
5830
5830
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, userName, options }, deleteOperationSpec);
5831
5831
  const poller = new coreLro.LroEngine(lro, {
5832
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5833
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5832
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5833
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
5834
5834
  lroResourceLocationConfig: "location"
5835
5835
  });
5836
5836
  yield poller.poll();
@@ -5847,7 +5847,7 @@ class UsersImpl {
5847
5847
  * @param options The options parameters.
5848
5848
  */
5849
5849
  beginDeleteAndWait(resourceGroupName, labName, userName, options) {
5850
- return tslib.__awaiter(this, void 0, void 0, function* () {
5850
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5851
5851
  const poller = yield this.beginDelete(resourceGroupName, labName, userName, options);
5852
5852
  return poller.pollUntilDone();
5853
5853
  });
@@ -5863,17 +5863,17 @@ class UsersImpl {
5863
5863
  * @param options The options parameters.
5864
5864
  */
5865
5865
  beginInvite(resourceGroupName, labName, userName, body, options) {
5866
- return tslib.__awaiter(this, void 0, void 0, function* () {
5867
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5866
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5867
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5868
5868
  return this.client.sendOperationRequest(args, spec);
5869
5869
  });
5870
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5870
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5871
5871
  var _a;
5872
5872
  let currentRawResponse = undefined;
5873
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5873
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5874
5874
  const callback = (rawResponse, flatResponse) => {
5875
5875
  currentRawResponse = rawResponse;
5876
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5876
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5877
5877
  };
5878
5878
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5879
5879
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5888,8 +5888,8 @@ class UsersImpl {
5888
5888
  });
5889
5889
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, userName, body, options }, inviteOperationSpec);
5890
5890
  const poller = new coreLro.LroEngine(lro, {
5891
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5892
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5891
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5892
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
5893
5893
  lroResourceLocationConfig: "location"
5894
5894
  });
5895
5895
  yield poller.poll();
@@ -5907,7 +5907,7 @@ class UsersImpl {
5907
5907
  * @param options The options parameters.
5908
5908
  */
5909
5909
  beginInviteAndWait(resourceGroupName, labName, userName, body, options) {
5910
- return tslib.__awaiter(this, void 0, void 0, function* () {
5910
+ return tslib.__awaiter(this, undefined, undefined, function* () {
5911
5911
  const poller = yield this.beginInvite(resourceGroupName, labName, userName, body, options);
5912
5912
  return poller.pollUntilDone();
5913
5913
  });
@@ -6139,7 +6139,7 @@ class VirtualMachinesImpl {
6139
6139
  return this;
6140
6140
  },
6141
6141
  byPage: (settings) => {
6142
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6142
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6143
6143
  throw new Error("maxPageSize is not supported by this operation.");
6144
6144
  }
6145
6145
  return this.listByLabPagingPage(resourceGroupName, labName, options, settings);
@@ -6149,7 +6149,7 @@ class VirtualMachinesImpl {
6149
6149
  listByLabPagingPage(resourceGroupName, labName, options, settings) {
6150
6150
  return tslib.__asyncGenerator(this, arguments, function* listByLabPagingPage_1() {
6151
6151
  let result;
6152
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6152
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6153
6153
  if (!continuationToken) {
6154
6154
  result = yield tslib.__await(this._listByLab(resourceGroupName, labName, options));
6155
6155
  let page = result.value || [];
@@ -6218,17 +6218,17 @@ class VirtualMachinesImpl {
6218
6218
  * @param options The options parameters.
6219
6219
  */
6220
6220
  beginStart(resourceGroupName, labName, virtualMachineName, options) {
6221
- return tslib.__awaiter(this, void 0, void 0, function* () {
6222
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6221
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6222
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6223
6223
  return this.client.sendOperationRequest(args, spec);
6224
6224
  });
6225
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6225
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6226
6226
  var _a;
6227
6227
  let currentRawResponse = undefined;
6228
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6228
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6229
6229
  const callback = (rawResponse, flatResponse) => {
6230
6230
  currentRawResponse = rawResponse;
6231
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6231
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6232
6232
  };
6233
6233
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6234
6234
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6243,8 +6243,8 @@ class VirtualMachinesImpl {
6243
6243
  });
6244
6244
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, options }, startOperationSpec);
6245
6245
  const poller = new coreLro.LroEngine(lro, {
6246
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6247
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
6246
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6247
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
6248
6248
  lroResourceLocationConfig: "location"
6249
6249
  });
6250
6250
  yield poller.poll();
@@ -6261,7 +6261,7 @@ class VirtualMachinesImpl {
6261
6261
  * @param options The options parameters.
6262
6262
  */
6263
6263
  beginStartAndWait(resourceGroupName, labName, virtualMachineName, options) {
6264
- return tslib.__awaiter(this, void 0, void 0, function* () {
6264
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6265
6265
  const poller = yield this.beginStart(resourceGroupName, labName, virtualMachineName, options);
6266
6266
  return poller.pollUntilDone();
6267
6267
  });
@@ -6276,17 +6276,17 @@ class VirtualMachinesImpl {
6276
6276
  * @param options The options parameters.
6277
6277
  */
6278
6278
  beginStop(resourceGroupName, labName, virtualMachineName, options) {
6279
- return tslib.__awaiter(this, void 0, void 0, function* () {
6280
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6279
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6280
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6281
6281
  return this.client.sendOperationRequest(args, spec);
6282
6282
  });
6283
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6283
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6284
6284
  var _a;
6285
6285
  let currentRawResponse = undefined;
6286
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6286
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6287
6287
  const callback = (rawResponse, flatResponse) => {
6288
6288
  currentRawResponse = rawResponse;
6289
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6289
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6290
6290
  };
6291
6291
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6292
6292
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6301,8 +6301,8 @@ class VirtualMachinesImpl {
6301
6301
  });
6302
6302
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, options }, stopOperationSpec);
6303
6303
  const poller = new coreLro.LroEngine(lro, {
6304
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6305
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
6304
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6305
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
6306
6306
  lroResourceLocationConfig: "location"
6307
6307
  });
6308
6308
  yield poller.poll();
@@ -6319,7 +6319,7 @@ class VirtualMachinesImpl {
6319
6319
  * @param options The options parameters.
6320
6320
  */
6321
6321
  beginStopAndWait(resourceGroupName, labName, virtualMachineName, options) {
6322
- return tslib.__awaiter(this, void 0, void 0, function* () {
6322
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6323
6323
  const poller = yield this.beginStop(resourceGroupName, labName, virtualMachineName, options);
6324
6324
  return poller.pollUntilDone();
6325
6325
  });
@@ -6335,17 +6335,17 @@ class VirtualMachinesImpl {
6335
6335
  * @param options The options parameters.
6336
6336
  */
6337
6337
  beginReimage(resourceGroupName, labName, virtualMachineName, options) {
6338
- return tslib.__awaiter(this, void 0, void 0, function* () {
6339
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6338
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6339
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6340
6340
  return this.client.sendOperationRequest(args, spec);
6341
6341
  });
6342
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6342
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6343
6343
  var _a;
6344
6344
  let currentRawResponse = undefined;
6345
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6345
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6346
6346
  const callback = (rawResponse, flatResponse) => {
6347
6347
  currentRawResponse = rawResponse;
6348
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6348
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6349
6349
  };
6350
6350
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6351
6351
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6360,8 +6360,8 @@ class VirtualMachinesImpl {
6360
6360
  });
6361
6361
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, options }, reimageOperationSpec);
6362
6362
  const poller = new coreLro.LroEngine(lro, {
6363
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6364
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
6363
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6364
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
6365
6365
  lroResourceLocationConfig: "location"
6366
6366
  });
6367
6367
  yield poller.poll();
@@ -6379,7 +6379,7 @@ class VirtualMachinesImpl {
6379
6379
  * @param options The options parameters.
6380
6380
  */
6381
6381
  beginReimageAndWait(resourceGroupName, labName, virtualMachineName, options) {
6382
- return tslib.__awaiter(this, void 0, void 0, function* () {
6382
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6383
6383
  const poller = yield this.beginReimage(resourceGroupName, labName, virtualMachineName, options);
6384
6384
  return poller.pollUntilDone();
6385
6385
  });
@@ -6395,17 +6395,17 @@ class VirtualMachinesImpl {
6395
6395
  * @param options The options parameters.
6396
6396
  */
6397
6397
  beginRedeploy(resourceGroupName, labName, virtualMachineName, options) {
6398
- return tslib.__awaiter(this, void 0, void 0, function* () {
6399
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6398
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6399
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6400
6400
  return this.client.sendOperationRequest(args, spec);
6401
6401
  });
6402
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6402
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6403
6403
  var _a;
6404
6404
  let currentRawResponse = undefined;
6405
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6405
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6406
6406
  const callback = (rawResponse, flatResponse) => {
6407
6407
  currentRawResponse = rawResponse;
6408
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6408
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6409
6409
  };
6410
6410
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6411
6411
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6420,8 +6420,8 @@ class VirtualMachinesImpl {
6420
6420
  });
6421
6421
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, options }, redeployOperationSpec);
6422
6422
  const poller = new coreLro.LroEngine(lro, {
6423
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6424
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
6423
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6424
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
6425
6425
  lroResourceLocationConfig: "location"
6426
6426
  });
6427
6427
  yield poller.poll();
@@ -6439,7 +6439,7 @@ class VirtualMachinesImpl {
6439
6439
  * @param options The options parameters.
6440
6440
  */
6441
6441
  beginRedeployAndWait(resourceGroupName, labName, virtualMachineName, options) {
6442
- return tslib.__awaiter(this, void 0, void 0, function* () {
6442
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6443
6443
  const poller = yield this.beginRedeploy(resourceGroupName, labName, virtualMachineName, options);
6444
6444
  return poller.pollUntilDone();
6445
6445
  });
@@ -6455,17 +6455,17 @@ class VirtualMachinesImpl {
6455
6455
  * @param options The options parameters.
6456
6456
  */
6457
6457
  beginResetPassword(resourceGroupName, labName, virtualMachineName, body, options) {
6458
- return tslib.__awaiter(this, void 0, void 0, function* () {
6459
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6458
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6459
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6460
6460
  return this.client.sendOperationRequest(args, spec);
6461
6461
  });
6462
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6462
+ const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6463
6463
  var _a;
6464
6464
  let currentRawResponse = undefined;
6465
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6465
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6466
6466
  const callback = (rawResponse, flatResponse) => {
6467
6467
  currentRawResponse = rawResponse;
6468
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6468
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6469
6469
  };
6470
6470
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6471
6471
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6480,8 +6480,8 @@ class VirtualMachinesImpl {
6480
6480
  });
6481
6481
  const lro = new LroImpl(sendOperation, { resourceGroupName, labName, virtualMachineName, body, options }, resetPasswordOperationSpec);
6482
6482
  const poller = new coreLro.LroEngine(lro, {
6483
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6484
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
6483
+ resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6484
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
6485
6485
  lroResourceLocationConfig: "location"
6486
6486
  });
6487
6487
  yield poller.poll();
@@ -6499,7 +6499,7 @@ class VirtualMachinesImpl {
6499
6499
  * @param options The options parameters.
6500
6500
  */
6501
6501
  beginResetPasswordAndWait(resourceGroupName, labName, virtualMachineName, body, options) {
6502
- return tslib.__awaiter(this, void 0, void 0, function* () {
6502
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6503
6503
  const poller = yield this.beginResetPassword(resourceGroupName, labName, virtualMachineName, body, options);
6504
6504
  return poller.pollUntilDone();
6505
6505
  });
@@ -6736,10 +6736,10 @@ class LabServicesClient extends coreClient__namespace.ServiceClient {
6736
6736
  : `${packageDetails}`;
6737
6737
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
6738
6738
  userAgentPrefix
6739
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
6739
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
6740
6740
  super(optionsWithDefaults);
6741
6741
  let bearerTokenAuthenticationPolicyFound = false;
6742
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
6742
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
6743
6743
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
6744
6744
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
6745
6745
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -6753,7 +6753,7 @@ class LabServicesClient extends coreClient__namespace.ServiceClient {
6753
6753
  });
6754
6754
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
6755
6755
  credential: credentials,
6756
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
6756
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
6757
6757
  challengeCallbacks: {
6758
6758
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
6759
6759
  }
@@ -6784,7 +6784,7 @@ class LabServicesClient extends coreClient__namespace.ServiceClient {
6784
6784
  const apiVersionPolicy = {
6785
6785
  name: "CustomApiVersionPolicy",
6786
6786
  sendRequest(request, next) {
6787
- return tslib.__awaiter(this, void 0, void 0, function* () {
6787
+ return tslib.__awaiter(this, undefined, undefined, function* () {
6788
6788
  const param = request.url.split("?");
6789
6789
  if (param.length > 1) {
6790
6790
  const newParams = param[1].split("&").map((item) => {