@azure/arm-resourcemover 2.2.0-alpha.20250206.1 → 2.2.0-alpha.20250210.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
  }
@@ -2476,7 +2476,7 @@ function createLroSpec(inputs) {
2476
2476
  sendInitialRequest: () => sendOperationFn(args, spec),
2477
2477
  sendPollRequest: (path, options) => {
2478
2478
  const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
2479
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
2479
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2480
2480
  }
2481
2481
  };
2482
2482
  }
@@ -2512,7 +2512,7 @@ class MoveCollectionsImpl {
2512
2512
  return this;
2513
2513
  },
2514
2514
  byPage: (settings) => {
2515
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2515
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2516
2516
  throw new Error("maxPageSize is not supported by this operation.");
2517
2517
  }
2518
2518
  return this.listMoveCollectionsBySubscriptionPagingPage(options, settings);
@@ -2522,7 +2522,7 @@ class MoveCollectionsImpl {
2522
2522
  listMoveCollectionsBySubscriptionPagingPage(options, settings) {
2523
2523
  return tslib.__asyncGenerator(this, arguments, function* listMoveCollectionsBySubscriptionPagingPage_1() {
2524
2524
  let result;
2525
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2525
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2526
2526
  if (!continuationToken) {
2527
2527
  result = yield tslib.__await(this._listMoveCollectionsBySubscription(options));
2528
2528
  let page = result.value || [];
@@ -2574,7 +2574,7 @@ class MoveCollectionsImpl {
2574
2574
  return this;
2575
2575
  },
2576
2576
  byPage: (settings) => {
2577
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2577
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2578
2578
  throw new Error("maxPageSize is not supported by this operation.");
2579
2579
  }
2580
2580
  return this.listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -2584,7 +2584,7 @@ class MoveCollectionsImpl {
2584
2584
  listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options, settings) {
2585
2585
  return tslib.__asyncGenerator(this, arguments, function* listMoveCollectionsByResourceGroupPagingPage_1() {
2586
2586
  let result;
2587
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2587
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2588
2588
  if (!continuationToken) {
2589
2589
  result = yield tslib.__await(this._listMoveCollectionsByResourceGroup(resourceGroupName, options));
2590
2590
  let page = result.value || [];
@@ -2646,17 +2646,17 @@ class MoveCollectionsImpl {
2646
2646
  * @param options The options parameters.
2647
2647
  */
2648
2648
  beginDelete(resourceGroupName, moveCollectionName, options) {
2649
- return tslib.__awaiter(this, undefined, undefined, function* () {
2650
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2649
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2650
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2651
2651
  return this.client.sendOperationRequest(args, spec);
2652
2652
  });
2653
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2653
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2654
2654
  var _a;
2655
2655
  let currentRawResponse = undefined;
2656
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2656
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2657
2657
  const callback = (rawResponse, flatResponse) => {
2658
2658
  currentRawResponse = rawResponse;
2659
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2659
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2660
2660
  };
2661
2661
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2662
2662
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2675,8 +2675,8 @@ class MoveCollectionsImpl {
2675
2675
  spec: deleteOperationSpec$1
2676
2676
  });
2677
2677
  const poller = yield coreLro.createHttpPoller(lro, {
2678
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2679
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2678
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2679
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2680
2680
  resourceLocationConfig: "azure-async-operation"
2681
2681
  });
2682
2682
  yield poller.poll();
@@ -2690,7 +2690,7 @@ class MoveCollectionsImpl {
2690
2690
  * @param options The options parameters.
2691
2691
  */
2692
2692
  beginDeleteAndWait(resourceGroupName, moveCollectionName, options) {
2693
- return tslib.__awaiter(this, undefined, undefined, function* () {
2693
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2694
2694
  const poller = yield this.beginDelete(resourceGroupName, moveCollectionName, options);
2695
2695
  return poller.pollUntilDone();
2696
2696
  });
@@ -2714,17 +2714,17 @@ class MoveCollectionsImpl {
2714
2714
  * @param options The options parameters.
2715
2715
  */
2716
2716
  beginPrepare(resourceGroupName, moveCollectionName, options) {
2717
- return tslib.__awaiter(this, undefined, undefined, function* () {
2718
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2717
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2718
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2719
2719
  return this.client.sendOperationRequest(args, spec);
2720
2720
  });
2721
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2721
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2722
2722
  var _a;
2723
2723
  let currentRawResponse = undefined;
2724
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2724
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2725
2725
  const callback = (rawResponse, flatResponse) => {
2726
2726
  currentRawResponse = rawResponse;
2727
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2727
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2728
2728
  };
2729
2729
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2730
2730
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2743,8 +2743,8 @@ class MoveCollectionsImpl {
2743
2743
  spec: prepareOperationSpec
2744
2744
  });
2745
2745
  const poller = yield coreLro.createHttpPoller(lro, {
2746
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2747
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2746
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2747
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2748
2748
  resourceLocationConfig: "azure-async-operation"
2749
2749
  });
2750
2750
  yield poller.poll();
@@ -2761,7 +2761,7 @@ class MoveCollectionsImpl {
2761
2761
  * @param options The options parameters.
2762
2762
  */
2763
2763
  beginPrepareAndWait(resourceGroupName, moveCollectionName, options) {
2764
- return tslib.__awaiter(this, undefined, undefined, function* () {
2764
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2765
2765
  const poller = yield this.beginPrepare(resourceGroupName, moveCollectionName, options);
2766
2766
  return poller.pollUntilDone();
2767
2767
  });
@@ -2776,17 +2776,17 @@ class MoveCollectionsImpl {
2776
2776
  * @param options The options parameters.
2777
2777
  */
2778
2778
  beginInitiateMove(resourceGroupName, moveCollectionName, options) {
2779
- return tslib.__awaiter(this, undefined, undefined, function* () {
2780
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2779
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2780
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2781
2781
  return this.client.sendOperationRequest(args, spec);
2782
2782
  });
2783
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2783
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2784
2784
  var _a;
2785
2785
  let currentRawResponse = undefined;
2786
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2786
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2787
2787
  const callback = (rawResponse, flatResponse) => {
2788
2788
  currentRawResponse = rawResponse;
2789
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2789
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2790
2790
  };
2791
2791
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2792
2792
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2805,8 +2805,8 @@ class MoveCollectionsImpl {
2805
2805
  spec: initiateMoveOperationSpec
2806
2806
  });
2807
2807
  const poller = yield coreLro.createHttpPoller(lro, {
2808
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2809
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2808
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2809
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2810
2810
  resourceLocationConfig: "azure-async-operation"
2811
2811
  });
2812
2812
  yield poller.poll();
@@ -2823,7 +2823,7 @@ class MoveCollectionsImpl {
2823
2823
  * @param options The options parameters.
2824
2824
  */
2825
2825
  beginInitiateMoveAndWait(resourceGroupName, moveCollectionName, options) {
2826
- return tslib.__awaiter(this, undefined, undefined, function* () {
2826
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2827
2827
  const poller = yield this.beginInitiateMove(resourceGroupName, moveCollectionName, options);
2828
2828
  return poller.pollUntilDone();
2829
2829
  });
@@ -2838,17 +2838,17 @@ class MoveCollectionsImpl {
2838
2838
  * @param options The options parameters.
2839
2839
  */
2840
2840
  beginCommit(resourceGroupName, moveCollectionName, options) {
2841
- return tslib.__awaiter(this, undefined, undefined, function* () {
2842
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2841
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2842
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2843
2843
  return this.client.sendOperationRequest(args, spec);
2844
2844
  });
2845
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2845
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2846
2846
  var _a;
2847
2847
  let currentRawResponse = undefined;
2848
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2848
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2849
2849
  const callback = (rawResponse, flatResponse) => {
2850
2850
  currentRawResponse = rawResponse;
2851
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2851
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2852
2852
  };
2853
2853
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2854
2854
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2867,8 +2867,8 @@ class MoveCollectionsImpl {
2867
2867
  spec: commitOperationSpec
2868
2868
  });
2869
2869
  const poller = yield coreLro.createHttpPoller(lro, {
2870
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2871
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2870
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2871
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2872
2872
  resourceLocationConfig: "azure-async-operation"
2873
2873
  });
2874
2874
  yield poller.poll();
@@ -2885,7 +2885,7 @@ class MoveCollectionsImpl {
2885
2885
  * @param options The options parameters.
2886
2886
  */
2887
2887
  beginCommitAndWait(resourceGroupName, moveCollectionName, options) {
2888
- return tslib.__awaiter(this, undefined, undefined, function* () {
2888
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2889
2889
  const poller = yield this.beginCommit(resourceGroupName, moveCollectionName, options);
2890
2890
  return poller.pollUntilDone();
2891
2891
  });
@@ -2900,17 +2900,17 @@ class MoveCollectionsImpl {
2900
2900
  * @param options The options parameters.
2901
2901
  */
2902
2902
  beginDiscard(resourceGroupName, moveCollectionName, options) {
2903
- return tslib.__awaiter(this, undefined, undefined, function* () {
2904
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2903
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2904
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2905
2905
  return this.client.sendOperationRequest(args, spec);
2906
2906
  });
2907
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2907
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2908
2908
  var _a;
2909
2909
  let currentRawResponse = undefined;
2910
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2910
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2911
2911
  const callback = (rawResponse, flatResponse) => {
2912
2912
  currentRawResponse = rawResponse;
2913
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2913
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2914
2914
  };
2915
2915
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2916
2916
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2929,8 +2929,8 @@ class MoveCollectionsImpl {
2929
2929
  spec: discardOperationSpec
2930
2930
  });
2931
2931
  const poller = yield coreLro.createHttpPoller(lro, {
2932
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2933
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2932
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2933
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2934
2934
  resourceLocationConfig: "azure-async-operation"
2935
2935
  });
2936
2936
  yield poller.poll();
@@ -2947,7 +2947,7 @@ class MoveCollectionsImpl {
2947
2947
  * @param options The options parameters.
2948
2948
  */
2949
2949
  beginDiscardAndWait(resourceGroupName, moveCollectionName, options) {
2950
- return tslib.__awaiter(this, undefined, undefined, function* () {
2950
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2951
2951
  const poller = yield this.beginDiscard(resourceGroupName, moveCollectionName, options);
2952
2952
  return poller.pollUntilDone();
2953
2953
  });
@@ -2959,17 +2959,17 @@ class MoveCollectionsImpl {
2959
2959
  * @param options The options parameters.
2960
2960
  */
2961
2961
  beginResolveDependencies(resourceGroupName, moveCollectionName, options) {
2962
- return tslib.__awaiter(this, undefined, undefined, function* () {
2963
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2962
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2963
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2964
2964
  return this.client.sendOperationRequest(args, spec);
2965
2965
  });
2966
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2966
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2967
2967
  var _a;
2968
2968
  let currentRawResponse = undefined;
2969
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2969
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2970
2970
  const callback = (rawResponse, flatResponse) => {
2971
2971
  currentRawResponse = rawResponse;
2972
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2972
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2973
2973
  };
2974
2974
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2975
2975
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2988,8 +2988,8 @@ class MoveCollectionsImpl {
2988
2988
  spec: resolveDependenciesOperationSpec
2989
2989
  });
2990
2990
  const poller = yield coreLro.createHttpPoller(lro, {
2991
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2992
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2991
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2992
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2993
2993
  resourceLocationConfig: "azure-async-operation"
2994
2994
  });
2995
2995
  yield poller.poll();
@@ -3003,7 +3003,7 @@ class MoveCollectionsImpl {
3003
3003
  * @param options The options parameters.
3004
3004
  */
3005
3005
  beginResolveDependenciesAndWait(resourceGroupName, moveCollectionName, options) {
3006
- return tslib.__awaiter(this, undefined, undefined, function* () {
3006
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3007
3007
  const poller = yield this.beginResolveDependencies(resourceGroupName, moveCollectionName, options);
3008
3008
  return poller.pollUntilDone();
3009
3009
  });
@@ -3017,17 +3017,17 @@ class MoveCollectionsImpl {
3017
3017
  * @param options The options parameters.
3018
3018
  */
3019
3019
  beginBulkRemove(resourceGroupName, moveCollectionName, options) {
3020
- return tslib.__awaiter(this, undefined, undefined, function* () {
3021
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3020
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3021
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3022
3022
  return this.client.sendOperationRequest(args, spec);
3023
3023
  });
3024
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3024
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3025
3025
  var _a;
3026
3026
  let currentRawResponse = undefined;
3027
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3027
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3028
3028
  const callback = (rawResponse, flatResponse) => {
3029
3029
  currentRawResponse = rawResponse;
3030
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3030
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3031
3031
  };
3032
3032
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3033
3033
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3046,8 +3046,8 @@ class MoveCollectionsImpl {
3046
3046
  spec: bulkRemoveOperationSpec
3047
3047
  });
3048
3048
  const poller = yield coreLro.createHttpPoller(lro, {
3049
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3050
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3049
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3050
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3051
3051
  resourceLocationConfig: "azure-async-operation"
3052
3052
  });
3053
3053
  yield poller.poll();
@@ -3063,7 +3063,7 @@ class MoveCollectionsImpl {
3063
3063
  * @param options The options parameters.
3064
3064
  */
3065
3065
  beginBulkRemoveAndWait(resourceGroupName, moveCollectionName, options) {
3066
- return tslib.__awaiter(this, undefined, undefined, function* () {
3066
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3067
3067
  const poller = yield this.beginBulkRemove(resourceGroupName, moveCollectionName, options);
3068
3068
  return poller.pollUntilDone();
3069
3069
  });
@@ -3535,7 +3535,7 @@ class MoveResourcesImpl {
3535
3535
  return this;
3536
3536
  },
3537
3537
  byPage: (settings) => {
3538
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3538
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3539
3539
  throw new Error("maxPageSize is not supported by this operation.");
3540
3540
  }
3541
3541
  return this.listPagingPage(resourceGroupName, moveCollectionName, options, settings);
@@ -3545,7 +3545,7 @@ class MoveResourcesImpl {
3545
3545
  listPagingPage(resourceGroupName, moveCollectionName, options, settings) {
3546
3546
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3547
3547
  let result;
3548
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3548
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3549
3549
  if (!continuationToken) {
3550
3550
  result = yield tslib.__await(this._list(resourceGroupName, moveCollectionName, options));
3551
3551
  let page = result.value || [];
@@ -3599,17 +3599,17 @@ class MoveResourcesImpl {
3599
3599
  * @param options The options parameters.
3600
3600
  */
3601
3601
  beginCreate(resourceGroupName, moveCollectionName, moveResourceName, options) {
3602
- return tslib.__awaiter(this, undefined, undefined, function* () {
3603
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3602
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3603
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3604
3604
  return this.client.sendOperationRequest(args, spec);
3605
3605
  });
3606
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3606
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3607
3607
  var _a;
3608
3608
  let currentRawResponse = undefined;
3609
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3609
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3610
3610
  const callback = (rawResponse, flatResponse) => {
3611
3611
  currentRawResponse = rawResponse;
3612
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3612
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3613
3613
  };
3614
3614
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3615
3615
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3633,8 +3633,8 @@ class MoveResourcesImpl {
3633
3633
  spec: createOperationSpec
3634
3634
  });
3635
3635
  const poller = yield coreLro.createHttpPoller(lro, {
3636
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3637
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3636
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3637
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3638
3638
  resourceLocationConfig: "azure-async-operation"
3639
3639
  });
3640
3640
  yield poller.poll();
@@ -3649,7 +3649,7 @@ class MoveResourcesImpl {
3649
3649
  * @param options The options parameters.
3650
3650
  */
3651
3651
  beginCreateAndWait(resourceGroupName, moveCollectionName, moveResourceName, options) {
3652
- return tslib.__awaiter(this, undefined, undefined, function* () {
3652
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3653
3653
  const poller = yield this.beginCreate(resourceGroupName, moveCollectionName, moveResourceName, options);
3654
3654
  return poller.pollUntilDone();
3655
3655
  });
@@ -3662,17 +3662,17 @@ class MoveResourcesImpl {
3662
3662
  * @param options The options parameters.
3663
3663
  */
3664
3664
  beginDelete(resourceGroupName, moveCollectionName, moveResourceName, options) {
3665
- return tslib.__awaiter(this, undefined, undefined, function* () {
3666
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3665
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3666
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3667
3667
  return this.client.sendOperationRequest(args, spec);
3668
3668
  });
3669
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3669
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3670
3670
  var _a;
3671
3671
  let currentRawResponse = undefined;
3672
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3672
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3673
3673
  const callback = (rawResponse, flatResponse) => {
3674
3674
  currentRawResponse = rawResponse;
3675
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3675
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3676
3676
  };
3677
3677
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3678
3678
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3696,8 +3696,8 @@ class MoveResourcesImpl {
3696
3696
  spec: deleteOperationSpec
3697
3697
  });
3698
3698
  const poller = yield coreLro.createHttpPoller(lro, {
3699
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3700
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3699
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3700
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3701
3701
  resourceLocationConfig: "azure-async-operation"
3702
3702
  });
3703
3703
  yield poller.poll();
@@ -3712,7 +3712,7 @@ class MoveResourcesImpl {
3712
3712
  * @param options The options parameters.
3713
3713
  */
3714
3714
  beginDeleteAndWait(resourceGroupName, moveCollectionName, moveResourceName, options) {
3715
- return tslib.__awaiter(this, undefined, undefined, function* () {
3715
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3716
3716
  const poller = yield this.beginDelete(resourceGroupName, moveCollectionName, moveResourceName, options);
3717
3717
  return poller.pollUntilDone();
3718
3718
  });
@@ -3902,7 +3902,7 @@ class UnresolvedDependenciesImpl {
3902
3902
  return this;
3903
3903
  },
3904
3904
  byPage: (settings) => {
3905
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3905
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3906
3906
  throw new Error("maxPageSize is not supported by this operation.");
3907
3907
  }
3908
3908
  return this.getPagingPage(resourceGroupName, moveCollectionName, options, settings);
@@ -3912,7 +3912,7 @@ class UnresolvedDependenciesImpl {
3912
3912
  getPagingPage(resourceGroupName, moveCollectionName, options, settings) {
3913
3913
  return tslib.__asyncGenerator(this, arguments, function* getPagingPage_1() {
3914
3914
  let result;
3915
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3915
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3916
3916
  if (!continuationToken) {
3917
3917
  result = yield tslib.__await(this._get(resourceGroupName, moveCollectionName, options));
3918
3918
  let page = result.value || [];
@@ -4093,10 +4093,10 @@ class ResourceMoverServiceAPI extends coreClient__namespace.ServiceClient {
4093
4093
  : `${packageDetails}`;
4094
4094
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
4095
4095
  userAgentPrefix
4096
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
4096
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
4097
4097
  super(optionsWithDefaults);
4098
4098
  let bearerTokenAuthenticationPolicyFound = false;
4099
- if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4099
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4100
4100
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
4101
4101
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
4102
4102
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -4110,7 +4110,7 @@ class ResourceMoverServiceAPI extends coreClient__namespace.ServiceClient {
4110
4110
  });
4111
4111
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
4112
4112
  credential: credentials,
4113
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
4113
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
4114
4114
  challengeCallbacks: {
4115
4115
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
4116
4116
  }
@@ -4135,7 +4135,7 @@ class ResourceMoverServiceAPI extends coreClient__namespace.ServiceClient {
4135
4135
  const apiVersionPolicy = {
4136
4136
  name: "CustomApiVersionPolicy",
4137
4137
  sendRequest(request, next) {
4138
- return tslib.__awaiter(this, undefined, undefined, function* () {
4138
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4139
4139
  const param = request.url.split("?");
4140
4140
  if (param.length > 1) {
4141
4141
  const newParams = param[1].split("&").map((item) => {