@azure/arm-resourcemover 2.1.1-alpha.20231016.1 → 2.2.0
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/CHANGELOG.md +14 -11
- package/LICENSE +1 -1
- package/dist/index.js +156 -111
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/moveCollectionsBulkRemoveSample.js +11 -4
- package/dist-esm/samples-dev/moveCollectionsBulkRemoveSample.js.map +1 -1
- package/dist-esm/samples-dev/moveCollectionsCommitSample.js +11 -4
- package/dist-esm/samples-dev/moveCollectionsCommitSample.js.map +1 -1
- package/dist-esm/samples-dev/moveCollectionsCreateSample.js +16 -5
- package/dist-esm/samples-dev/moveCollectionsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/moveCollectionsDeleteSample.js +11 -4
- package/dist-esm/samples-dev/moveCollectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/moveCollectionsDiscardSample.js +11 -4
- package/dist-esm/samples-dev/moveCollectionsDiscardSample.js.map +1 -1
- package/dist-esm/samples-dev/moveCollectionsGetSample.js +11 -4
- package/dist-esm/samples-dev/moveCollectionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/moveCollectionsInitiateMoveSample.js +11 -4
- package/dist-esm/samples-dev/moveCollectionsInitiateMoveSample.js.map +1 -1
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroupSample.js +14 -12
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscriptionSample.js +13 -11
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/moveCollectionsListRequiredForSample.js +11 -4
- package/dist-esm/samples-dev/moveCollectionsListRequiredForSample.js.map +1 -1
- package/dist-esm/samples-dev/moveCollectionsPrepareSample.js +11 -4
- package/dist-esm/samples-dev/moveCollectionsPrepareSample.js.map +1 -1
- package/dist-esm/samples-dev/moveCollectionsResolveDependenciesSample.js +11 -4
- package/dist-esm/samples-dev/moveCollectionsResolveDependenciesSample.js.map +1 -1
- package/dist-esm/samples-dev/moveCollectionsUpdateSample.js +11 -4
- package/dist-esm/samples-dev/moveCollectionsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/moveResourcesCreateSample.js +11 -4
- package/dist-esm/samples-dev/moveResourcesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/moveResourcesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/moveResourcesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/moveResourcesGetSample.js +11 -4
- package/dist-esm/samples-dev/moveResourcesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/moveResourcesListSample.js +14 -12
- package/dist-esm/samples-dev/moveResourcesListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsDiscoveryGetSample.js +10 -4
- package/dist-esm/samples-dev/operationsDiscoveryGetSample.js.map +1 -1
- package/dist-esm/samples-dev/unresolvedDependenciesGetSample.js +14 -12
- package/dist-esm/samples-dev/unresolvedDependenciesGetSample.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +27 -3
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +8 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +24 -3
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/operations/moveCollections.d.ts +8 -8
- package/dist-esm/src/operations/moveCollections.d.ts.map +1 -1
- package/dist-esm/src/operations/moveCollections.js +71 -53
- package/dist-esm/src/operations/moveCollections.js.map +1 -1
- package/dist-esm/src/operations/moveResources.d.ts +3 -3
- package/dist-esm/src/operations/moveResources.d.ts.map +1 -1
- package/dist-esm/src/operations/moveResources.js +33 -20
- package/dist-esm/src/operations/moveResources.js.map +1 -1
- package/dist-esm/src/operations/unresolvedDependencies.js +3 -8
- package/dist-esm/src/operations/unresolvedDependencies.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/moveCollections.d.ts +8 -8
- package/dist-esm/src/operationsInterfaces/moveCollections.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/moveResources.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/moveResources.d.ts.map +1 -1
- package/dist-esm/src/resourceMoverServiceAPI.d.ts +2 -1
- package/dist-esm/src/resourceMoverServiceAPI.d.ts.map +1 -1
- package/dist-esm/src/resourceMoverServiceAPI.js +9 -11
- package/dist-esm/src/resourceMoverServiceAPI.js.map +1 -1
- package/dist-esm/test/resourcemover_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/resourcemover_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/resourcemover_operations_test.spec.js +118 -0
- package/dist-esm/test/resourcemover_operations_test.spec.js.map +1 -0
- package/package.json +11 -10
- package/review/arm-resourcemover.api.md +29 -15
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +29 -3
- package/src/models/mappers.ts +24 -3
- package/src/models/parameters.ts +1 -1
- package/src/operations/moveCollections.ts +104 -79
- package/src/operations/moveResources.ts +44 -24
- package/src/operationsInterfaces/moveCollections.ts +15 -15
- package/src/operationsInterfaces/moveResources.ts +5 -5
- package/src/resourceMoverServiceAPI.ts +19 -5
- package/types/arm-resourcemover.d.ts +42 -15
- package/dist-esm/samples-dev/moveCollectionsBulkRemove.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsBulkRemove.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsBulkRemove.js +0 -38
- package/dist-esm/samples-dev/moveCollectionsBulkRemove.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsCommit.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsCommit.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsCommit.js +0 -38
- package/dist-esm/samples-dev/moveCollectionsCommit.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsCreate.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsCreate.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsCreate.js +0 -37
- package/dist-esm/samples-dev/moveCollectionsCreate.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsDelete.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsDelete.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsDelete.js +0 -31
- package/dist-esm/samples-dev/moveCollectionsDelete.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsDiscard.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsDiscard.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsDiscard.js +0 -38
- package/dist-esm/samples-dev/moveCollectionsDiscard.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsGet.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsGet.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsGet.js +0 -31
- package/dist-esm/samples-dev/moveCollectionsGet.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsInitiateMove.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsInitiateMove.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsInitiateMove.js +0 -38
- package/dist-esm/samples-dev/moveCollectionsInitiateMove.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.js +0 -51
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscription.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscription.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscription.js +0 -50
- package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscription.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsPrepare.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsPrepare.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsPrepare.js +0 -38
- package/dist-esm/samples-dev/moveCollectionsPrepare.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsResolveDependencies.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsResolveDependencies.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsResolveDependencies.js +0 -31
- package/dist-esm/samples-dev/moveCollectionsResolveDependencies.js.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsUpdate.d.ts +0 -2
- package/dist-esm/samples-dev/moveCollectionsUpdate.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveCollectionsUpdate.js +0 -36
- package/dist-esm/samples-dev/moveCollectionsUpdate.js.map +0 -1
- package/dist-esm/samples-dev/moveResourcesCreate.d.ts +0 -2
- package/dist-esm/samples-dev/moveResourcesCreate.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveResourcesCreate.js +0 -54
- package/dist-esm/samples-dev/moveResourcesCreate.js.map +0 -1
- package/dist-esm/samples-dev/moveResourcesDelete.d.ts +0 -2
- package/dist-esm/samples-dev/moveResourcesDelete.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveResourcesDelete.js +0 -32
- package/dist-esm/samples-dev/moveResourcesDelete.js.map +0 -1
- package/dist-esm/samples-dev/moveResourcesGet.d.ts +0 -2
- package/dist-esm/samples-dev/moveResourcesGet.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveResourcesGet.js +0 -32
- package/dist-esm/samples-dev/moveResourcesGet.js.map +0 -1
- package/dist-esm/samples-dev/moveResourcesList.d.ts +0 -2
- package/dist-esm/samples-dev/moveResourcesList.d.ts.map +0 -1
- package/dist-esm/samples-dev/moveResourcesList.js +0 -52
- package/dist-esm/samples-dev/moveResourcesList.js.map +0 -1
- package/dist-esm/samples-dev/operationsDiscoveryGet.d.ts +0 -2
- package/dist-esm/samples-dev/operationsDiscoveryGet.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsDiscoveryGet.js +0 -29
- package/dist-esm/samples-dev/operationsDiscoveryGet.js.map +0 -1
- package/dist-esm/samples-dev/requiredForGet.d.ts +0 -2
- package/dist-esm/samples-dev/requiredForGet.d.ts.map +0 -1
- package/dist-esm/samples-dev/requiredForGet.js +0 -32
- package/dist-esm/samples-dev/requiredForGet.js.map +0 -1
- package/dist-esm/samples-dev/unresolvedDependenciesGet.d.ts +0 -2
- package/dist-esm/samples-dev/unresolvedDependenciesGet.d.ts.map +0 -1
- package/dist-esm/samples-dev/unresolvedDependenciesGet.js +0 -52
- package/dist-esm/samples-dev/unresolvedDependenciesGet.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
# Release History
|
|
2
|
+
|
|
3
|
+
## 2.2.0 (2023-10-24)
|
|
4
|
+
|
|
5
|
+
**Features**
|
|
2
6
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
- Added Type Alias MoveType
|
|
8
|
+
- Interface MoveCollectionProperties has a new optional parameter moveRegion
|
|
9
|
+
- Interface MoveCollectionProperties has a new optional parameter moveType
|
|
10
|
+
- Interface MoveCollectionProperties has a new optional parameter version
|
|
11
|
+
- Interface ResourceSettings has a new optional parameter targetResourceGroupName
|
|
12
|
+
- Added Enum KnownMoveType
|
|
13
|
+
- Class ResourceMoverServiceAPI has a new signature
|
|
14
|
+
|
|
15
|
+
|
|
13
16
|
## 2.1.0 (2022-12-12)
|
|
14
17
|
|
|
15
18
|
**Features**
|
|
@@ -55,4 +58,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka.
|
|
|
55
58
|
|
|
56
59
|
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
|
|
57
60
|
|
|
58
|
-
To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart
|
|
61
|
+
To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
|
package/LICENSE
CHANGED
package/dist/index.js
CHANGED
|
@@ -86,6 +86,14 @@ exports.KnownProvisioningState = void 0;
|
|
|
86
86
|
/** Failed */
|
|
87
87
|
KnownProvisioningState["Failed"] = "Failed";
|
|
88
88
|
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
89
|
+
/** Known values of {@link MoveType} that the service accepts. */
|
|
90
|
+
exports.KnownMoveType = void 0;
|
|
91
|
+
(function (KnownMoveType) {
|
|
92
|
+
/** RegionToRegion */
|
|
93
|
+
KnownMoveType["RegionToRegion"] = "RegionToRegion";
|
|
94
|
+
/** RegionToZone */
|
|
95
|
+
KnownMoveType["RegionToZone"] = "RegionToZone";
|
|
96
|
+
})(exports.KnownMoveType || (exports.KnownMoveType = {}));
|
|
89
97
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
90
98
|
exports.KnownCreatedByType = void 0;
|
|
91
99
|
(function (KnownCreatedByType) {
|
|
@@ -301,14 +309,18 @@ const MoveCollectionProperties = {
|
|
|
301
309
|
modelProperties: {
|
|
302
310
|
sourceRegion: {
|
|
303
311
|
serializedName: "sourceRegion",
|
|
304
|
-
required: true,
|
|
305
312
|
type: {
|
|
306
313
|
name: "String"
|
|
307
314
|
}
|
|
308
315
|
},
|
|
309
316
|
targetRegion: {
|
|
310
317
|
serializedName: "targetRegion",
|
|
311
|
-
|
|
318
|
+
type: {
|
|
319
|
+
name: "String"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
moveRegion: {
|
|
323
|
+
serializedName: "moveRegion",
|
|
312
324
|
type: {
|
|
313
325
|
name: "String"
|
|
314
326
|
}
|
|
@@ -320,6 +332,18 @@ const MoveCollectionProperties = {
|
|
|
320
332
|
name: "String"
|
|
321
333
|
}
|
|
322
334
|
},
|
|
335
|
+
version: {
|
|
336
|
+
serializedName: "version",
|
|
337
|
+
type: {
|
|
338
|
+
name: "String"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
moveType: {
|
|
342
|
+
serializedName: "moveType",
|
|
343
|
+
type: {
|
|
344
|
+
name: "String"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
323
347
|
errors: {
|
|
324
348
|
serializedName: "errors",
|
|
325
349
|
type: {
|
|
@@ -1015,7 +1039,12 @@ const ResourceSettings = {
|
|
|
1015
1039
|
},
|
|
1016
1040
|
targetResourceName: {
|
|
1017
1041
|
serializedName: "targetResourceName",
|
|
1018
|
-
|
|
1042
|
+
type: {
|
|
1043
|
+
name: "String"
|
|
1044
|
+
}
|
|
1045
|
+
},
|
|
1046
|
+
targetResourceGroupName: {
|
|
1047
|
+
serializedName: "targetResourceGroupName",
|
|
1019
1048
|
type: {
|
|
1020
1049
|
name: "String"
|
|
1021
1050
|
}
|
|
@@ -2342,7 +2371,7 @@ const moveCollectionName = {
|
|
|
2342
2371
|
const apiVersion = {
|
|
2343
2372
|
parameterPath: "apiVersion",
|
|
2344
2373
|
mapper: {
|
|
2345
|
-
defaultValue: "
|
|
2374
|
+
defaultValue: "2023-08-01",
|
|
2346
2375
|
isConstant: true,
|
|
2347
2376
|
serializedName: "api-version",
|
|
2348
2377
|
type: {
|
|
@@ -2444,25 +2473,17 @@ const orderby = {
|
|
|
2444
2473
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2445
2474
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2446
2475
|
*/
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
});
|
|
2459
|
-
}
|
|
2460
|
-
sendPollRequest(path) {
|
|
2461
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2462
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
2463
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
2464
|
-
});
|
|
2465
|
-
}
|
|
2476
|
+
function createLroSpec(inputs) {
|
|
2477
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
2478
|
+
return {
|
|
2479
|
+
requestMethod: spec.httpMethod,
|
|
2480
|
+
requestPath: spec.path,
|
|
2481
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
2482
|
+
sendPollRequest: (path, options) => {
|
|
2483
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
2484
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
2485
|
+
}
|
|
2486
|
+
};
|
|
2466
2487
|
}
|
|
2467
2488
|
|
|
2468
2489
|
/*
|
|
@@ -2527,16 +2548,11 @@ class MoveCollectionsImpl {
|
|
|
2527
2548
|
return tslib.__asyncGenerator(this, arguments, function* listMoveCollectionsBySubscriptionPagingAll_1() {
|
|
2528
2549
|
var _a, e_1, _b, _c;
|
|
2529
2550
|
try {
|
|
2530
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listMoveCollectionsBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2551
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listMoveCollectionsBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2531
2552
|
_c = _f.value;
|
|
2532
2553
|
_d = false;
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2536
|
-
}
|
|
2537
|
-
finally {
|
|
2538
|
-
_d = true;
|
|
2539
|
-
}
|
|
2554
|
+
const page = _c;
|
|
2555
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2540
2556
|
}
|
|
2541
2557
|
}
|
|
2542
2558
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
@@ -2594,16 +2610,11 @@ class MoveCollectionsImpl {
|
|
|
2594
2610
|
return tslib.__asyncGenerator(this, arguments, function* listMoveCollectionsByResourceGroupPagingAll_1() {
|
|
2595
2611
|
var _a, e_2, _b, _c;
|
|
2596
2612
|
try {
|
|
2597
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2613
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listMoveCollectionsByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2598
2614
|
_c = _f.value;
|
|
2599
2615
|
_d = false;
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2603
|
-
}
|
|
2604
|
-
finally {
|
|
2605
|
-
_d = true;
|
|
2606
|
-
}
|
|
2616
|
+
const page = _c;
|
|
2617
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2607
2618
|
}
|
|
2608
2619
|
}
|
|
2609
2620
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
@@ -2644,7 +2655,7 @@ class MoveCollectionsImpl {
|
|
|
2644
2655
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2645
2656
|
return this.client.sendOperationRequest(args, spec);
|
|
2646
2657
|
});
|
|
2647
|
-
const
|
|
2658
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2648
2659
|
var _a;
|
|
2649
2660
|
let currentRawResponse = undefined;
|
|
2650
2661
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2663,11 +2674,15 @@ class MoveCollectionsImpl {
|
|
|
2663
2674
|
}
|
|
2664
2675
|
};
|
|
2665
2676
|
});
|
|
2666
|
-
const lro =
|
|
2667
|
-
|
|
2668
|
-
|
|
2677
|
+
const lro = createLroSpec({
|
|
2678
|
+
sendOperationFn,
|
|
2679
|
+
args: { resourceGroupName, moveCollectionName, options },
|
|
2680
|
+
spec: deleteOperationSpec$1
|
|
2681
|
+
});
|
|
2682
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2683
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2669
2684
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2670
|
-
|
|
2685
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2671
2686
|
});
|
|
2672
2687
|
yield poller.poll();
|
|
2673
2688
|
return poller;
|
|
@@ -2708,7 +2723,7 @@ class MoveCollectionsImpl {
|
|
|
2708
2723
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2709
2724
|
return this.client.sendOperationRequest(args, spec);
|
|
2710
2725
|
});
|
|
2711
|
-
const
|
|
2726
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2712
2727
|
var _a;
|
|
2713
2728
|
let currentRawResponse = undefined;
|
|
2714
2729
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2727,11 +2742,15 @@ class MoveCollectionsImpl {
|
|
|
2727
2742
|
}
|
|
2728
2743
|
};
|
|
2729
2744
|
});
|
|
2730
|
-
const lro =
|
|
2731
|
-
|
|
2732
|
-
|
|
2745
|
+
const lro = createLroSpec({
|
|
2746
|
+
sendOperationFn,
|
|
2747
|
+
args: { resourceGroupName, moveCollectionName, options },
|
|
2748
|
+
spec: prepareOperationSpec
|
|
2749
|
+
});
|
|
2750
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2751
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2733
2752
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2734
|
-
|
|
2753
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2735
2754
|
});
|
|
2736
2755
|
yield poller.poll();
|
|
2737
2756
|
return poller;
|
|
@@ -2766,7 +2785,7 @@ class MoveCollectionsImpl {
|
|
|
2766
2785
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2767
2786
|
return this.client.sendOperationRequest(args, spec);
|
|
2768
2787
|
});
|
|
2769
|
-
const
|
|
2788
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2770
2789
|
var _a;
|
|
2771
2790
|
let currentRawResponse = undefined;
|
|
2772
2791
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2785,11 +2804,15 @@ class MoveCollectionsImpl {
|
|
|
2785
2804
|
}
|
|
2786
2805
|
};
|
|
2787
2806
|
});
|
|
2788
|
-
const lro =
|
|
2789
|
-
|
|
2790
|
-
|
|
2807
|
+
const lro = createLroSpec({
|
|
2808
|
+
sendOperationFn,
|
|
2809
|
+
args: { resourceGroupName, moveCollectionName, options },
|
|
2810
|
+
spec: initiateMoveOperationSpec
|
|
2811
|
+
});
|
|
2812
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2813
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2791
2814
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2792
|
-
|
|
2815
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2793
2816
|
});
|
|
2794
2817
|
yield poller.poll();
|
|
2795
2818
|
return poller;
|
|
@@ -2824,7 +2847,7 @@ class MoveCollectionsImpl {
|
|
|
2824
2847
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2825
2848
|
return this.client.sendOperationRequest(args, spec);
|
|
2826
2849
|
});
|
|
2827
|
-
const
|
|
2850
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2828
2851
|
var _a;
|
|
2829
2852
|
let currentRawResponse = undefined;
|
|
2830
2853
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2843,11 +2866,15 @@ class MoveCollectionsImpl {
|
|
|
2843
2866
|
}
|
|
2844
2867
|
};
|
|
2845
2868
|
});
|
|
2846
|
-
const lro =
|
|
2847
|
-
|
|
2848
|
-
|
|
2869
|
+
const lro = createLroSpec({
|
|
2870
|
+
sendOperationFn,
|
|
2871
|
+
args: { resourceGroupName, moveCollectionName, options },
|
|
2872
|
+
spec: commitOperationSpec
|
|
2873
|
+
});
|
|
2874
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2875
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2849
2876
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2850
|
-
|
|
2877
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2851
2878
|
});
|
|
2852
2879
|
yield poller.poll();
|
|
2853
2880
|
return poller;
|
|
@@ -2882,7 +2909,7 @@ class MoveCollectionsImpl {
|
|
|
2882
2909
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2883
2910
|
return this.client.sendOperationRequest(args, spec);
|
|
2884
2911
|
});
|
|
2885
|
-
const
|
|
2912
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2886
2913
|
var _a;
|
|
2887
2914
|
let currentRawResponse = undefined;
|
|
2888
2915
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2901,11 +2928,15 @@ class MoveCollectionsImpl {
|
|
|
2901
2928
|
}
|
|
2902
2929
|
};
|
|
2903
2930
|
});
|
|
2904
|
-
const lro =
|
|
2905
|
-
|
|
2906
|
-
|
|
2931
|
+
const lro = createLroSpec({
|
|
2932
|
+
sendOperationFn,
|
|
2933
|
+
args: { resourceGroupName, moveCollectionName, options },
|
|
2934
|
+
spec: discardOperationSpec
|
|
2935
|
+
});
|
|
2936
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2937
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2907
2938
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2908
|
-
|
|
2939
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2909
2940
|
});
|
|
2910
2941
|
yield poller.poll();
|
|
2911
2942
|
return poller;
|
|
@@ -2937,7 +2968,7 @@ class MoveCollectionsImpl {
|
|
|
2937
2968
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2938
2969
|
return this.client.sendOperationRequest(args, spec);
|
|
2939
2970
|
});
|
|
2940
|
-
const
|
|
2971
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2941
2972
|
var _a;
|
|
2942
2973
|
let currentRawResponse = undefined;
|
|
2943
2974
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2956,11 +2987,15 @@ class MoveCollectionsImpl {
|
|
|
2956
2987
|
}
|
|
2957
2988
|
};
|
|
2958
2989
|
});
|
|
2959
|
-
const lro =
|
|
2960
|
-
|
|
2961
|
-
|
|
2990
|
+
const lro = createLroSpec({
|
|
2991
|
+
sendOperationFn,
|
|
2992
|
+
args: { resourceGroupName, moveCollectionName, options },
|
|
2993
|
+
spec: resolveDependenciesOperationSpec
|
|
2994
|
+
});
|
|
2995
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2996
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2962
2997
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2963
|
-
|
|
2998
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2964
2999
|
});
|
|
2965
3000
|
yield poller.poll();
|
|
2966
3001
|
return poller;
|
|
@@ -2991,7 +3026,7 @@ class MoveCollectionsImpl {
|
|
|
2991
3026
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2992
3027
|
return this.client.sendOperationRequest(args, spec);
|
|
2993
3028
|
});
|
|
2994
|
-
const
|
|
3029
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2995
3030
|
var _a;
|
|
2996
3031
|
let currentRawResponse = undefined;
|
|
2997
3032
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3010,11 +3045,15 @@ class MoveCollectionsImpl {
|
|
|
3010
3045
|
}
|
|
3011
3046
|
};
|
|
3012
3047
|
});
|
|
3013
|
-
const lro =
|
|
3014
|
-
|
|
3015
|
-
|
|
3048
|
+
const lro = createLroSpec({
|
|
3049
|
+
sendOperationFn,
|
|
3050
|
+
args: { resourceGroupName, moveCollectionName, options },
|
|
3051
|
+
spec: bulkRemoveOperationSpec
|
|
3052
|
+
});
|
|
3053
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3054
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3016
3055
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3017
|
-
|
|
3056
|
+
resourceLocationConfig: "azure-async-operation"
|
|
3018
3057
|
});
|
|
3019
3058
|
yield poller.poll();
|
|
3020
3059
|
return poller;
|
|
@@ -3532,16 +3571,11 @@ class MoveResourcesImpl {
|
|
|
3532
3571
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
3533
3572
|
var _a, e_1, _b, _c;
|
|
3534
3573
|
try {
|
|
3535
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, moveCollectionName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
3574
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, moveCollectionName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
3536
3575
|
_c = _f.value;
|
|
3537
3576
|
_d = false;
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3541
|
-
}
|
|
3542
|
-
finally {
|
|
3543
|
-
_d = true;
|
|
3544
|
-
}
|
|
3577
|
+
const page = _c;
|
|
3578
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3545
3579
|
}
|
|
3546
3580
|
}
|
|
3547
3581
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
@@ -3574,7 +3608,7 @@ class MoveResourcesImpl {
|
|
|
3574
3608
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3575
3609
|
return this.client.sendOperationRequest(args, spec);
|
|
3576
3610
|
});
|
|
3577
|
-
const
|
|
3611
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3578
3612
|
var _a;
|
|
3579
3613
|
let currentRawResponse = undefined;
|
|
3580
3614
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3593,11 +3627,20 @@ class MoveResourcesImpl {
|
|
|
3593
3627
|
}
|
|
3594
3628
|
};
|
|
3595
3629
|
});
|
|
3596
|
-
const lro =
|
|
3597
|
-
|
|
3598
|
-
|
|
3630
|
+
const lro = createLroSpec({
|
|
3631
|
+
sendOperationFn,
|
|
3632
|
+
args: {
|
|
3633
|
+
resourceGroupName,
|
|
3634
|
+
moveCollectionName,
|
|
3635
|
+
moveResourceName,
|
|
3636
|
+
options
|
|
3637
|
+
},
|
|
3638
|
+
spec: createOperationSpec
|
|
3639
|
+
});
|
|
3640
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3641
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3599
3642
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3600
|
-
|
|
3643
|
+
resourceLocationConfig: "azure-async-operation"
|
|
3601
3644
|
});
|
|
3602
3645
|
yield poller.poll();
|
|
3603
3646
|
return poller;
|
|
@@ -3628,7 +3671,7 @@ class MoveResourcesImpl {
|
|
|
3628
3671
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3629
3672
|
return this.client.sendOperationRequest(args, spec);
|
|
3630
3673
|
});
|
|
3631
|
-
const
|
|
3674
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3632
3675
|
var _a;
|
|
3633
3676
|
let currentRawResponse = undefined;
|
|
3634
3677
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3647,11 +3690,20 @@ class MoveResourcesImpl {
|
|
|
3647
3690
|
}
|
|
3648
3691
|
};
|
|
3649
3692
|
});
|
|
3650
|
-
const lro =
|
|
3651
|
-
|
|
3652
|
-
|
|
3693
|
+
const lro = createLroSpec({
|
|
3694
|
+
sendOperationFn,
|
|
3695
|
+
args: {
|
|
3696
|
+
resourceGroupName,
|
|
3697
|
+
moveCollectionName,
|
|
3698
|
+
moveResourceName,
|
|
3699
|
+
options
|
|
3700
|
+
},
|
|
3701
|
+
spec: deleteOperationSpec
|
|
3702
|
+
});
|
|
3703
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3704
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3653
3705
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3654
|
-
|
|
3706
|
+
resourceLocationConfig: "azure-async-operation"
|
|
3655
3707
|
});
|
|
3656
3708
|
yield poller.poll();
|
|
3657
3709
|
return poller;
|
|
@@ -3886,16 +3938,11 @@ class UnresolvedDependenciesImpl {
|
|
|
3886
3938
|
return tslib.__asyncGenerator(this, arguments, function* getPagingAll_1() {
|
|
3887
3939
|
var _a, e_1, _b, _c;
|
|
3888
3940
|
try {
|
|
3889
|
-
for (var _d = true, _e = tslib.__asyncValues(this.getPagingPage(resourceGroupName, moveCollectionName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
3941
|
+
for (var _d = true, _e = tslib.__asyncValues(this.getPagingPage(resourceGroupName, moveCollectionName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
3890
3942
|
_c = _f.value;
|
|
3891
3943
|
_d = false;
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3895
|
-
}
|
|
3896
|
-
finally {
|
|
3897
|
-
_d = true;
|
|
3898
|
-
}
|
|
3944
|
+
const page = _c;
|
|
3945
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3899
3946
|
}
|
|
3900
3947
|
}
|
|
3901
3948
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
@@ -4025,19 +4072,17 @@ const getOperationSpec = {
|
|
|
4025
4072
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4026
4073
|
*/
|
|
4027
4074
|
class ResourceMoverServiceAPI extends coreClient__namespace.ServiceClient {
|
|
4028
|
-
|
|
4029
|
-
* Initializes a new instance of the ResourceMoverServiceAPI class.
|
|
4030
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
4031
|
-
* @param subscriptionId The Subscription ID.
|
|
4032
|
-
* @param options The parameter options
|
|
4033
|
-
*/
|
|
4034
|
-
constructor(credentials, subscriptionId, options) {
|
|
4075
|
+
constructor(credentials, subscriptionIdOrOptions, options) {
|
|
4035
4076
|
var _a, _b, _c;
|
|
4036
4077
|
if (credentials === undefined) {
|
|
4037
4078
|
throw new Error("'credentials' cannot be null");
|
|
4038
4079
|
}
|
|
4039
|
-
|
|
4040
|
-
|
|
4080
|
+
let subscriptionId;
|
|
4081
|
+
if (typeof subscriptionIdOrOptions === "string") {
|
|
4082
|
+
subscriptionId = subscriptionIdOrOptions;
|
|
4083
|
+
}
|
|
4084
|
+
else if (typeof subscriptionIdOrOptions === "object") {
|
|
4085
|
+
options = subscriptionIdOrOptions;
|
|
4041
4086
|
}
|
|
4042
4087
|
// Initializing default values for options
|
|
4043
4088
|
if (!options) {
|
|
@@ -4047,7 +4092,7 @@ class ResourceMoverServiceAPI extends coreClient__namespace.ServiceClient {
|
|
|
4047
4092
|
requestContentType: "application/json; charset=utf-8",
|
|
4048
4093
|
credential: credentials
|
|
4049
4094
|
};
|
|
4050
|
-
const packageDetails = `azsdk-js-arm-resourcemover/2.
|
|
4095
|
+
const packageDetails = `azsdk-js-arm-resourcemover/2.2.0`;
|
|
4051
4096
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
4052
4097
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
4053
4098
|
: `${packageDetails}`;
|
|
@@ -4080,7 +4125,7 @@ class ResourceMoverServiceAPI extends coreClient__namespace.ServiceClient {
|
|
|
4080
4125
|
this.subscriptionId = subscriptionId;
|
|
4081
4126
|
// Assigning values to Constant parameters
|
|
4082
4127
|
this.$host = options.$host || "https://management.azure.com";
|
|
4083
|
-
this.apiVersion = options.apiVersion || "
|
|
4128
|
+
this.apiVersion = options.apiVersion || "2023-08-01";
|
|
4084
4129
|
this.moveCollections = new MoveCollectionsImpl(this);
|
|
4085
4130
|
this.moveResources = new MoveResourcesImpl(this);
|
|
4086
4131
|
this.unresolvedDependencies = new UnresolvedDependenciesImpl(this);
|