@azure/arm-resourcemover 2.2.0-alpha.20250103.1 → 2.2.0-alpha.20250106.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +87 -87
- package/dist/index.js.map +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
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 ===
|
|
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 !==
|
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
|
|
58
58
|
pageInfo.continuationToken = continuationToken;
|
|
59
59
|
pageMap.set(page, pageInfo);
|
|
60
60
|
}
|
|
@@ -2483,7 +2483,7 @@ function createLroSpec(inputs) {
|
|
|
2483
2483
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
2484
2484
|
sendPollRequest: (path, options) => {
|
|
2485
2485
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
2486
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
2486
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
|
2487
2487
|
}
|
|
2488
2488
|
};
|
|
2489
2489
|
}
|
|
@@ -2519,7 +2519,7 @@ class MoveCollectionsImpl {
|
|
|
2519
2519
|
return this;
|
|
2520
2520
|
},
|
|
2521
2521
|
byPage: (settings) => {
|
|
2522
|
-
if (settings === null || settings ===
|
|
2522
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
2523
2523
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2524
2524
|
}
|
|
2525
2525
|
return this.listMoveCollectionsBySubscriptionPagingPage(options, settings);
|
|
@@ -2529,7 +2529,7 @@ class MoveCollectionsImpl {
|
|
|
2529
2529
|
listMoveCollectionsBySubscriptionPagingPage(options, settings) {
|
|
2530
2530
|
return tslib.__asyncGenerator(this, arguments, function* listMoveCollectionsBySubscriptionPagingPage_1() {
|
|
2531
2531
|
let result;
|
|
2532
|
-
let continuationToken = settings === null || settings ===
|
|
2532
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
2533
2533
|
if (!continuationToken) {
|
|
2534
2534
|
result = yield tslib.__await(this._listMoveCollectionsBySubscription(options));
|
|
2535
2535
|
let page = result.value || [];
|
|
@@ -2581,7 +2581,7 @@ class MoveCollectionsImpl {
|
|
|
2581
2581
|
return this;
|
|
2582
2582
|
},
|
|
2583
2583
|
byPage: (settings) => {
|
|
2584
|
-
if (settings === null || settings ===
|
|
2584
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
2585
2585
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2586
2586
|
}
|
|
2587
2587
|
return this.listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -2591,7 +2591,7 @@ class MoveCollectionsImpl {
|
|
|
2591
2591
|
listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
2592
2592
|
return tslib.__asyncGenerator(this, arguments, function* listMoveCollectionsByResourceGroupPagingPage_1() {
|
|
2593
2593
|
let result;
|
|
2594
|
-
let continuationToken = settings === null || settings ===
|
|
2594
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
2595
2595
|
if (!continuationToken) {
|
|
2596
2596
|
result = yield tslib.__await(this._listMoveCollectionsByResourceGroup(resourceGroupName, options));
|
|
2597
2597
|
let page = result.value || [];
|
|
@@ -2653,17 +2653,17 @@ class MoveCollectionsImpl {
|
|
|
2653
2653
|
* @param options The options parameters.
|
|
2654
2654
|
*/
|
|
2655
2655
|
beginDelete(resourceGroupName, moveCollectionName, options) {
|
|
2656
|
-
return tslib.__awaiter(this,
|
|
2657
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2656
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2657
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2658
2658
|
return this.client.sendOperationRequest(args, spec);
|
|
2659
2659
|
});
|
|
2660
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2660
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2661
2661
|
var _a;
|
|
2662
2662
|
let currentRawResponse = undefined;
|
|
2663
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2663
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2664
2664
|
const callback = (rawResponse, flatResponse) => {
|
|
2665
2665
|
currentRawResponse = rawResponse;
|
|
2666
|
-
providedCallback === null || providedCallback ===
|
|
2666
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2667
2667
|
};
|
|
2668
2668
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2669
2669
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2682,8 +2682,8 @@ class MoveCollectionsImpl {
|
|
|
2682
2682
|
spec: deleteOperationSpec$1
|
|
2683
2683
|
});
|
|
2684
2684
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2685
|
-
restoreFrom: options === null || options ===
|
|
2686
|
-
intervalInMs: options === null || options ===
|
|
2685
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2686
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2687
2687
|
resourceLocationConfig: "azure-async-operation"
|
|
2688
2688
|
});
|
|
2689
2689
|
yield poller.poll();
|
|
@@ -2697,7 +2697,7 @@ class MoveCollectionsImpl {
|
|
|
2697
2697
|
* @param options The options parameters.
|
|
2698
2698
|
*/
|
|
2699
2699
|
beginDeleteAndWait(resourceGroupName, moveCollectionName, options) {
|
|
2700
|
-
return tslib.__awaiter(this,
|
|
2700
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2701
2701
|
const poller = yield this.beginDelete(resourceGroupName, moveCollectionName, options);
|
|
2702
2702
|
return poller.pollUntilDone();
|
|
2703
2703
|
});
|
|
@@ -2721,17 +2721,17 @@ class MoveCollectionsImpl {
|
|
|
2721
2721
|
* @param options The options parameters.
|
|
2722
2722
|
*/
|
|
2723
2723
|
beginPrepare(resourceGroupName, moveCollectionName, options) {
|
|
2724
|
-
return tslib.__awaiter(this,
|
|
2725
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2724
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2725
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2726
2726
|
return this.client.sendOperationRequest(args, spec);
|
|
2727
2727
|
});
|
|
2728
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2728
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2729
2729
|
var _a;
|
|
2730
2730
|
let currentRawResponse = undefined;
|
|
2731
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2731
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2732
2732
|
const callback = (rawResponse, flatResponse) => {
|
|
2733
2733
|
currentRawResponse = rawResponse;
|
|
2734
|
-
providedCallback === null || providedCallback ===
|
|
2734
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2735
2735
|
};
|
|
2736
2736
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2737
2737
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2750,8 +2750,8 @@ class MoveCollectionsImpl {
|
|
|
2750
2750
|
spec: prepareOperationSpec
|
|
2751
2751
|
});
|
|
2752
2752
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2753
|
-
restoreFrom: options === null || options ===
|
|
2754
|
-
intervalInMs: options === null || options ===
|
|
2753
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2754
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2755
2755
|
resourceLocationConfig: "azure-async-operation"
|
|
2756
2756
|
});
|
|
2757
2757
|
yield poller.poll();
|
|
@@ -2768,7 +2768,7 @@ class MoveCollectionsImpl {
|
|
|
2768
2768
|
* @param options The options parameters.
|
|
2769
2769
|
*/
|
|
2770
2770
|
beginPrepareAndWait(resourceGroupName, moveCollectionName, options) {
|
|
2771
|
-
return tslib.__awaiter(this,
|
|
2771
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2772
2772
|
const poller = yield this.beginPrepare(resourceGroupName, moveCollectionName, options);
|
|
2773
2773
|
return poller.pollUntilDone();
|
|
2774
2774
|
});
|
|
@@ -2783,17 +2783,17 @@ class MoveCollectionsImpl {
|
|
|
2783
2783
|
* @param options The options parameters.
|
|
2784
2784
|
*/
|
|
2785
2785
|
beginInitiateMove(resourceGroupName, moveCollectionName, options) {
|
|
2786
|
-
return tslib.__awaiter(this,
|
|
2787
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2786
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2787
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2788
2788
|
return this.client.sendOperationRequest(args, spec);
|
|
2789
2789
|
});
|
|
2790
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2790
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2791
2791
|
var _a;
|
|
2792
2792
|
let currentRawResponse = undefined;
|
|
2793
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2793
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2794
2794
|
const callback = (rawResponse, flatResponse) => {
|
|
2795
2795
|
currentRawResponse = rawResponse;
|
|
2796
|
-
providedCallback === null || providedCallback ===
|
|
2796
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2797
2797
|
};
|
|
2798
2798
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2799
2799
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2812,8 +2812,8 @@ class MoveCollectionsImpl {
|
|
|
2812
2812
|
spec: initiateMoveOperationSpec
|
|
2813
2813
|
});
|
|
2814
2814
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2815
|
-
restoreFrom: options === null || options ===
|
|
2816
|
-
intervalInMs: options === null || options ===
|
|
2815
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2816
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2817
2817
|
resourceLocationConfig: "azure-async-operation"
|
|
2818
2818
|
});
|
|
2819
2819
|
yield poller.poll();
|
|
@@ -2830,7 +2830,7 @@ class MoveCollectionsImpl {
|
|
|
2830
2830
|
* @param options The options parameters.
|
|
2831
2831
|
*/
|
|
2832
2832
|
beginInitiateMoveAndWait(resourceGroupName, moveCollectionName, options) {
|
|
2833
|
-
return tslib.__awaiter(this,
|
|
2833
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2834
2834
|
const poller = yield this.beginInitiateMove(resourceGroupName, moveCollectionName, options);
|
|
2835
2835
|
return poller.pollUntilDone();
|
|
2836
2836
|
});
|
|
@@ -2845,17 +2845,17 @@ class MoveCollectionsImpl {
|
|
|
2845
2845
|
* @param options The options parameters.
|
|
2846
2846
|
*/
|
|
2847
2847
|
beginCommit(resourceGroupName, moveCollectionName, options) {
|
|
2848
|
-
return tslib.__awaiter(this,
|
|
2849
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2848
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2849
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2850
2850
|
return this.client.sendOperationRequest(args, spec);
|
|
2851
2851
|
});
|
|
2852
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2852
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2853
2853
|
var _a;
|
|
2854
2854
|
let currentRawResponse = undefined;
|
|
2855
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2855
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2856
2856
|
const callback = (rawResponse, flatResponse) => {
|
|
2857
2857
|
currentRawResponse = rawResponse;
|
|
2858
|
-
providedCallback === null || providedCallback ===
|
|
2858
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2859
2859
|
};
|
|
2860
2860
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2861
2861
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2874,8 +2874,8 @@ class MoveCollectionsImpl {
|
|
|
2874
2874
|
spec: commitOperationSpec
|
|
2875
2875
|
});
|
|
2876
2876
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2877
|
-
restoreFrom: options === null || options ===
|
|
2878
|
-
intervalInMs: options === null || options ===
|
|
2877
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2878
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2879
2879
|
resourceLocationConfig: "azure-async-operation"
|
|
2880
2880
|
});
|
|
2881
2881
|
yield poller.poll();
|
|
@@ -2892,7 +2892,7 @@ class MoveCollectionsImpl {
|
|
|
2892
2892
|
* @param options The options parameters.
|
|
2893
2893
|
*/
|
|
2894
2894
|
beginCommitAndWait(resourceGroupName, moveCollectionName, options) {
|
|
2895
|
-
return tslib.__awaiter(this,
|
|
2895
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2896
2896
|
const poller = yield this.beginCommit(resourceGroupName, moveCollectionName, options);
|
|
2897
2897
|
return poller.pollUntilDone();
|
|
2898
2898
|
});
|
|
@@ -2907,17 +2907,17 @@ class MoveCollectionsImpl {
|
|
|
2907
2907
|
* @param options The options parameters.
|
|
2908
2908
|
*/
|
|
2909
2909
|
beginDiscard(resourceGroupName, moveCollectionName, options) {
|
|
2910
|
-
return tslib.__awaiter(this,
|
|
2911
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2910
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2911
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2912
2912
|
return this.client.sendOperationRequest(args, spec);
|
|
2913
2913
|
});
|
|
2914
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2914
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2915
2915
|
var _a;
|
|
2916
2916
|
let currentRawResponse = undefined;
|
|
2917
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2917
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2918
2918
|
const callback = (rawResponse, flatResponse) => {
|
|
2919
2919
|
currentRawResponse = rawResponse;
|
|
2920
|
-
providedCallback === null || providedCallback ===
|
|
2920
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2921
2921
|
};
|
|
2922
2922
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2923
2923
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2936,8 +2936,8 @@ class MoveCollectionsImpl {
|
|
|
2936
2936
|
spec: discardOperationSpec
|
|
2937
2937
|
});
|
|
2938
2938
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2939
|
-
restoreFrom: options === null || options ===
|
|
2940
|
-
intervalInMs: options === null || options ===
|
|
2939
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2940
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2941
2941
|
resourceLocationConfig: "azure-async-operation"
|
|
2942
2942
|
});
|
|
2943
2943
|
yield poller.poll();
|
|
@@ -2954,7 +2954,7 @@ class MoveCollectionsImpl {
|
|
|
2954
2954
|
* @param options The options parameters.
|
|
2955
2955
|
*/
|
|
2956
2956
|
beginDiscardAndWait(resourceGroupName, moveCollectionName, options) {
|
|
2957
|
-
return tslib.__awaiter(this,
|
|
2957
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2958
2958
|
const poller = yield this.beginDiscard(resourceGroupName, moveCollectionName, options);
|
|
2959
2959
|
return poller.pollUntilDone();
|
|
2960
2960
|
});
|
|
@@ -2966,17 +2966,17 @@ class MoveCollectionsImpl {
|
|
|
2966
2966
|
* @param options The options parameters.
|
|
2967
2967
|
*/
|
|
2968
2968
|
beginResolveDependencies(resourceGroupName, moveCollectionName, options) {
|
|
2969
|
-
return tslib.__awaiter(this,
|
|
2970
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2969
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2970
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2971
2971
|
return this.client.sendOperationRequest(args, spec);
|
|
2972
2972
|
});
|
|
2973
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2973
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2974
2974
|
var _a;
|
|
2975
2975
|
let currentRawResponse = undefined;
|
|
2976
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2976
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2977
2977
|
const callback = (rawResponse, flatResponse) => {
|
|
2978
2978
|
currentRawResponse = rawResponse;
|
|
2979
|
-
providedCallback === null || providedCallback ===
|
|
2979
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2980
2980
|
};
|
|
2981
2981
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2982
2982
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2995,8 +2995,8 @@ class MoveCollectionsImpl {
|
|
|
2995
2995
|
spec: resolveDependenciesOperationSpec
|
|
2996
2996
|
});
|
|
2997
2997
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2998
|
-
restoreFrom: options === null || options ===
|
|
2999
|
-
intervalInMs: options === null || options ===
|
|
2998
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2999
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3000
3000
|
resourceLocationConfig: "azure-async-operation"
|
|
3001
3001
|
});
|
|
3002
3002
|
yield poller.poll();
|
|
@@ -3010,7 +3010,7 @@ class MoveCollectionsImpl {
|
|
|
3010
3010
|
* @param options The options parameters.
|
|
3011
3011
|
*/
|
|
3012
3012
|
beginResolveDependenciesAndWait(resourceGroupName, moveCollectionName, options) {
|
|
3013
|
-
return tslib.__awaiter(this,
|
|
3013
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3014
3014
|
const poller = yield this.beginResolveDependencies(resourceGroupName, moveCollectionName, options);
|
|
3015
3015
|
return poller.pollUntilDone();
|
|
3016
3016
|
});
|
|
@@ -3024,17 +3024,17 @@ class MoveCollectionsImpl {
|
|
|
3024
3024
|
* @param options The options parameters.
|
|
3025
3025
|
*/
|
|
3026
3026
|
beginBulkRemove(resourceGroupName, moveCollectionName, options) {
|
|
3027
|
-
return tslib.__awaiter(this,
|
|
3028
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3027
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3028
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3029
3029
|
return this.client.sendOperationRequest(args, spec);
|
|
3030
3030
|
});
|
|
3031
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3031
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3032
3032
|
var _a;
|
|
3033
3033
|
let currentRawResponse = undefined;
|
|
3034
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3034
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3035
3035
|
const callback = (rawResponse, flatResponse) => {
|
|
3036
3036
|
currentRawResponse = rawResponse;
|
|
3037
|
-
providedCallback === null || providedCallback ===
|
|
3037
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3038
3038
|
};
|
|
3039
3039
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3040
3040
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3053,8 +3053,8 @@ class MoveCollectionsImpl {
|
|
|
3053
3053
|
spec: bulkRemoveOperationSpec
|
|
3054
3054
|
});
|
|
3055
3055
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3056
|
-
restoreFrom: options === null || options ===
|
|
3057
|
-
intervalInMs: options === null || options ===
|
|
3056
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3057
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3058
3058
|
resourceLocationConfig: "azure-async-operation"
|
|
3059
3059
|
});
|
|
3060
3060
|
yield poller.poll();
|
|
@@ -3070,7 +3070,7 @@ class MoveCollectionsImpl {
|
|
|
3070
3070
|
* @param options The options parameters.
|
|
3071
3071
|
*/
|
|
3072
3072
|
beginBulkRemoveAndWait(resourceGroupName, moveCollectionName, options) {
|
|
3073
|
-
return tslib.__awaiter(this,
|
|
3073
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3074
3074
|
const poller = yield this.beginBulkRemove(resourceGroupName, moveCollectionName, options);
|
|
3075
3075
|
return poller.pollUntilDone();
|
|
3076
3076
|
});
|
|
@@ -3542,7 +3542,7 @@ class MoveResourcesImpl {
|
|
|
3542
3542
|
return this;
|
|
3543
3543
|
},
|
|
3544
3544
|
byPage: (settings) => {
|
|
3545
|
-
if (settings === null || settings ===
|
|
3545
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3546
3546
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3547
3547
|
}
|
|
3548
3548
|
return this.listPagingPage(resourceGroupName, moveCollectionName, options, settings);
|
|
@@ -3552,7 +3552,7 @@ class MoveResourcesImpl {
|
|
|
3552
3552
|
listPagingPage(resourceGroupName, moveCollectionName, options, settings) {
|
|
3553
3553
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3554
3554
|
let result;
|
|
3555
|
-
let continuationToken = settings === null || settings ===
|
|
3555
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3556
3556
|
if (!continuationToken) {
|
|
3557
3557
|
result = yield tslib.__await(this._list(resourceGroupName, moveCollectionName, options));
|
|
3558
3558
|
let page = result.value || [];
|
|
@@ -3606,17 +3606,17 @@ class MoveResourcesImpl {
|
|
|
3606
3606
|
* @param options The options parameters.
|
|
3607
3607
|
*/
|
|
3608
3608
|
beginCreate(resourceGroupName, moveCollectionName, moveResourceName, options) {
|
|
3609
|
-
return tslib.__awaiter(this,
|
|
3610
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3609
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3610
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3611
3611
|
return this.client.sendOperationRequest(args, spec);
|
|
3612
3612
|
});
|
|
3613
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3613
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3614
3614
|
var _a;
|
|
3615
3615
|
let currentRawResponse = undefined;
|
|
3616
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3616
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3617
3617
|
const callback = (rawResponse, flatResponse) => {
|
|
3618
3618
|
currentRawResponse = rawResponse;
|
|
3619
|
-
providedCallback === null || providedCallback ===
|
|
3619
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3620
3620
|
};
|
|
3621
3621
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3622
3622
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3640,8 +3640,8 @@ class MoveResourcesImpl {
|
|
|
3640
3640
|
spec: createOperationSpec
|
|
3641
3641
|
});
|
|
3642
3642
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3643
|
-
restoreFrom: options === null || options ===
|
|
3644
|
-
intervalInMs: options === null || options ===
|
|
3643
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3644
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3645
3645
|
resourceLocationConfig: "azure-async-operation"
|
|
3646
3646
|
});
|
|
3647
3647
|
yield poller.poll();
|
|
@@ -3656,7 +3656,7 @@ class MoveResourcesImpl {
|
|
|
3656
3656
|
* @param options The options parameters.
|
|
3657
3657
|
*/
|
|
3658
3658
|
beginCreateAndWait(resourceGroupName, moveCollectionName, moveResourceName, options) {
|
|
3659
|
-
return tslib.__awaiter(this,
|
|
3659
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3660
3660
|
const poller = yield this.beginCreate(resourceGroupName, moveCollectionName, moveResourceName, options);
|
|
3661
3661
|
return poller.pollUntilDone();
|
|
3662
3662
|
});
|
|
@@ -3669,17 +3669,17 @@ class MoveResourcesImpl {
|
|
|
3669
3669
|
* @param options The options parameters.
|
|
3670
3670
|
*/
|
|
3671
3671
|
beginDelete(resourceGroupName, moveCollectionName, moveResourceName, options) {
|
|
3672
|
-
return tslib.__awaiter(this,
|
|
3673
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3672
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3673
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3674
3674
|
return this.client.sendOperationRequest(args, spec);
|
|
3675
3675
|
});
|
|
3676
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3676
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3677
3677
|
var _a;
|
|
3678
3678
|
let currentRawResponse = undefined;
|
|
3679
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3679
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3680
3680
|
const callback = (rawResponse, flatResponse) => {
|
|
3681
3681
|
currentRawResponse = rawResponse;
|
|
3682
|
-
providedCallback === null || providedCallback ===
|
|
3682
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3683
3683
|
};
|
|
3684
3684
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3685
3685
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3703,8 +3703,8 @@ class MoveResourcesImpl {
|
|
|
3703
3703
|
spec: deleteOperationSpec
|
|
3704
3704
|
});
|
|
3705
3705
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3706
|
-
restoreFrom: options === null || options ===
|
|
3707
|
-
intervalInMs: options === null || options ===
|
|
3706
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3707
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3708
3708
|
resourceLocationConfig: "azure-async-operation"
|
|
3709
3709
|
});
|
|
3710
3710
|
yield poller.poll();
|
|
@@ -3719,7 +3719,7 @@ class MoveResourcesImpl {
|
|
|
3719
3719
|
* @param options The options parameters.
|
|
3720
3720
|
*/
|
|
3721
3721
|
beginDeleteAndWait(resourceGroupName, moveCollectionName, moveResourceName, options) {
|
|
3722
|
-
return tslib.__awaiter(this,
|
|
3722
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3723
3723
|
const poller = yield this.beginDelete(resourceGroupName, moveCollectionName, moveResourceName, options);
|
|
3724
3724
|
return poller.pollUntilDone();
|
|
3725
3725
|
});
|
|
@@ -3909,7 +3909,7 @@ class UnresolvedDependenciesImpl {
|
|
|
3909
3909
|
return this;
|
|
3910
3910
|
},
|
|
3911
3911
|
byPage: (settings) => {
|
|
3912
|
-
if (settings === null || settings ===
|
|
3912
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3913
3913
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3914
3914
|
}
|
|
3915
3915
|
return this.getPagingPage(resourceGroupName, moveCollectionName, options, settings);
|
|
@@ -3919,7 +3919,7 @@ class UnresolvedDependenciesImpl {
|
|
|
3919
3919
|
getPagingPage(resourceGroupName, moveCollectionName, options, settings) {
|
|
3920
3920
|
return tslib.__asyncGenerator(this, arguments, function* getPagingPage_1() {
|
|
3921
3921
|
let result;
|
|
3922
|
-
let continuationToken = settings === null || settings ===
|
|
3922
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3923
3923
|
if (!continuationToken) {
|
|
3924
3924
|
result = yield tslib.__await(this._get(resourceGroupName, moveCollectionName, options));
|
|
3925
3925
|
let page = result.value || [];
|
|
@@ -4100,10 +4100,10 @@ class ResourceMoverServiceAPI extends coreClient__namespace.ServiceClient {
|
|
|
4100
4100
|
: `${packageDetails}`;
|
|
4101
4101
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
4102
4102
|
userAgentPrefix
|
|
4103
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
4103
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
4104
4104
|
super(optionsWithDefaults);
|
|
4105
4105
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
4106
|
-
if ((options === null || options ===
|
|
4106
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
4107
4107
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
4108
4108
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
4109
4109
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -4117,7 +4117,7 @@ class ResourceMoverServiceAPI extends coreClient__namespace.ServiceClient {
|
|
|
4117
4117
|
});
|
|
4118
4118
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
4119
4119
|
credential: credentials,
|
|
4120
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
4120
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
4121
4121
|
challengeCallbacks: {
|
|
4122
4122
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
4123
4123
|
}
|
|
@@ -4142,7 +4142,7 @@ class ResourceMoverServiceAPI extends coreClient__namespace.ServiceClient {
|
|
|
4142
4142
|
const apiVersionPolicy = {
|
|
4143
4143
|
name: "CustomApiVersionPolicy",
|
|
4144
4144
|
sendRequest(request, next) {
|
|
4145
|
-
return tslib.__awaiter(this,
|
|
4145
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4146
4146
|
const param = request.url.split("?");
|
|
4147
4147
|
if (param.length > 1) {
|
|
4148
4148
|
const newParams = param[1].split("&").map((item) => {
|