@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moveCollectionsInitiateMoveSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsInitiateMoveSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"moveCollectionsInitiateMoveSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsInitiateMoveSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,2BAA2B;;QACxC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,OAAO,CAAC;QAC1D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,KAAK,CAAC;QACvD,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,IAAI,GAAwB;YAChC,aAAa,EAAE;gBACb,iIAAiI;aAClI;YACD,YAAY,EAAE,KAAK;SACpB,CAAC;QACF,MAAM,OAAO,GAA8C,EAAE,IAAI,EAAE,CAAC;QACpE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,wBAAwB,CAClE,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,2BAA2B,EAAE,CAAC;IAChC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,31 +10,28 @@ import { __asyncValues, __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Get all the Move Collections in the resource group.
|
|
15
17
|
*
|
|
16
18
|
* @summary Get all the Move Collections in the resource group.
|
|
17
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/
|
|
19
|
+
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveCollections_ListMoveCollectionsByResourceGroup.json
|
|
18
20
|
*/
|
|
19
21
|
function moveCollectionsListMoveCollectionsByResourceGroup() {
|
|
20
22
|
var _a, e_1, _b, _c;
|
|
21
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "subid";
|
|
23
|
-
const resourceGroupName = "rg1";
|
|
24
|
+
const subscriptionId = process.env["RESOURCEMOVER_SUBSCRIPTION_ID"] || "subid";
|
|
25
|
+
const resourceGroupName = process.env["RESOURCEMOVER_RESOURCE_GROUP"] || "rg1";
|
|
24
26
|
const credential = new DefaultAzureCredential();
|
|
25
27
|
const client = new ResourceMoverServiceAPI(credential, subscriptionId);
|
|
26
28
|
const resArray = new Array();
|
|
27
29
|
try {
|
|
28
|
-
for (var _d = true, _e = __asyncValues(client.moveCollections.listMoveCollectionsByResourceGroup(resourceGroupName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
30
|
+
for (var _d = true, _e = __asyncValues(client.moveCollections.listMoveCollectionsByResourceGroup(resourceGroupName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
29
31
|
_c = _f.value;
|
|
30
32
|
_d = false;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
resArray.push(item);
|
|
34
|
-
}
|
|
35
|
-
finally {
|
|
36
|
-
_d = true;
|
|
37
|
-
}
|
|
33
|
+
let item = _c;
|
|
34
|
+
resArray.push(item);
|
|
38
35
|
}
|
|
39
36
|
}
|
|
40
37
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
@@ -47,5 +44,10 @@ function moveCollectionsListMoveCollectionsByResourceGroup() {
|
|
|
47
44
|
console.log(resArray);
|
|
48
45
|
});
|
|
49
46
|
}
|
|
50
|
-
|
|
47
|
+
function main() {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
moveCollectionsListMoveCollectionsByResourceGroup();
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
main().catch(console.error);
|
|
51
53
|
//# sourceMappingURL=moveCollectionsListMoveCollectionsByResourceGroupSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moveCollectionsListMoveCollectionsByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsListMoveCollectionsByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"moveCollectionsListMoveCollectionsByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsListMoveCollectionsByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iDAAiD;;;QAC9D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,OAAO,CAAC;QAC1D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,KAAK,CAAC;QACvD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,kCAAkC,CAC9E,iBAAiB,CAClB,CAAA,IAAA,sDAAE;gBAFoB,cAEtB;gBAFsB,WAEtB;gBAFU,IAAI,IAAI,KAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,iDAAiD,EAAE,CAAC;IACtD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,30 +10,27 @@ import { __asyncValues, __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Get all the Move Collections in the subscription.
|
|
15
17
|
*
|
|
16
18
|
* @summary Get all the Move Collections in the subscription.
|
|
17
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/
|
|
19
|
+
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveCollections_ListMoveCollectionsBySubscription.json
|
|
18
20
|
*/
|
|
19
21
|
function moveCollectionsListMoveCollectionsBySubscription() {
|
|
20
22
|
var _a, e_1, _b, _c;
|
|
21
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "subid";
|
|
24
|
+
const subscriptionId = process.env["RESOURCEMOVER_SUBSCRIPTION_ID"] || "subid";
|
|
23
25
|
const credential = new DefaultAzureCredential();
|
|
24
26
|
const client = new ResourceMoverServiceAPI(credential, subscriptionId);
|
|
25
27
|
const resArray = new Array();
|
|
26
28
|
try {
|
|
27
|
-
for (var _d = true, _e = __asyncValues(client.moveCollections.listMoveCollectionsBySubscription()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
29
|
+
for (var _d = true, _e = __asyncValues(client.moveCollections.listMoveCollectionsBySubscription()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
28
30
|
_c = _f.value;
|
|
29
31
|
_d = false;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
resArray.push(item);
|
|
33
|
-
}
|
|
34
|
-
finally {
|
|
35
|
-
_d = true;
|
|
36
|
-
}
|
|
32
|
+
let item = _c;
|
|
33
|
+
resArray.push(item);
|
|
37
34
|
}
|
|
38
35
|
}
|
|
39
36
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
@@ -46,5 +43,10 @@ function moveCollectionsListMoveCollectionsBySubscription() {
|
|
|
46
43
|
console.log(resArray);
|
|
47
44
|
});
|
|
48
45
|
}
|
|
49
|
-
|
|
46
|
+
function main() {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
moveCollectionsListMoveCollectionsBySubscription();
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
main().catch(console.error);
|
|
50
52
|
//# sourceMappingURL=moveCollectionsListMoveCollectionsBySubscriptionSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moveCollectionsListMoveCollectionsBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsListMoveCollectionsBySubscriptionSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"moveCollectionsListMoveCollectionsBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsListMoveCollectionsBySubscriptionSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gDAAgD;;;QAC7D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,OAAO,CAAC;QAC1D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,iCAAiC,EAAE,CAAA,IAAA,sDAAE;gBAA5D,cAA0D;gBAA1D,WAA0D;gBAAtE,IAAI,IAAI,KAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,gDAAgD,EAAE,CAAC;IACrD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to List of the move resources for which an arm resource is required for.
|
|
15
17
|
*
|
|
16
18
|
* @summary List of the move resources for which an arm resource is required for.
|
|
17
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/
|
|
19
|
+
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/RequiredFor_Get.json
|
|
18
20
|
*/
|
|
19
21
|
function requiredForGet() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "rg1";
|
|
23
|
+
const subscriptionId = process.env["RESOURCEMOVER_SUBSCRIPTION_ID"] || "subid";
|
|
24
|
+
const resourceGroupName = process.env["RESOURCEMOVER_RESOURCE_GROUP"] || "rg1";
|
|
23
25
|
const moveCollectionName = "movecollection1";
|
|
24
26
|
const sourceId = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/nic1";
|
|
25
27
|
const credential = new DefaultAzureCredential();
|
|
@@ -28,5 +30,10 @@ function requiredForGet() {
|
|
|
28
30
|
console.log(result);
|
|
29
31
|
});
|
|
30
32
|
}
|
|
31
|
-
|
|
33
|
+
function main() {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
requiredForGet();
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
main().catch(console.error);
|
|
32
39
|
//# sourceMappingURL=moveCollectionsListRequiredForSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moveCollectionsListRequiredForSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsListRequiredForSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"moveCollectionsListRequiredForSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsListRequiredForSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,cAAc;;QAC3B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,OAAO,CAAC;QAC1D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,KAAK,CAAC;QACvD,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,QAAQ,GACZ,0FAA0F,CAAC;QAC7F,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,eAAe,CACzD,iBAAiB,EACjB,kBAAkB,EAClB,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,cAAc,EAAE,CAAC;IACnB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Initiates prepare for the set of resources included in the request body. The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
|
|
15
17
|
*
|
|
16
18
|
* @summary Initiates prepare for the set of resources included in the request body. The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
|
|
17
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/
|
|
19
|
+
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveCollections_Prepare.json
|
|
18
20
|
*/
|
|
19
21
|
function moveCollectionsPrepare() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "rg1";
|
|
23
|
+
const subscriptionId = process.env["RESOURCEMOVER_SUBSCRIPTION_ID"] || "subid";
|
|
24
|
+
const resourceGroupName = process.env["RESOURCEMOVER_RESOURCE_GROUP"] || "rg1";
|
|
23
25
|
const moveCollectionName = "movecollection1";
|
|
24
26
|
const body = {
|
|
25
27
|
moveResources: [
|
|
@@ -34,5 +36,10 @@ function moveCollectionsPrepare() {
|
|
|
34
36
|
console.log(result);
|
|
35
37
|
});
|
|
36
38
|
}
|
|
37
|
-
|
|
39
|
+
function main() {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
moveCollectionsPrepare();
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
main().catch(console.error);
|
|
38
45
|
//# sourceMappingURL=moveCollectionsPrepareSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moveCollectionsPrepareSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsPrepareSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"moveCollectionsPrepareSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsPrepareSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,OAAO,CAAC;QAC1D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,KAAK,CAAC;QACvD,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,IAAI,GAAmB;YAC3B,aAAa,EAAE;gBACb,iIAAiI;aAClI;YACD,YAAY,EAAE,KAAK;SACpB,CAAC;QACF,MAAM,OAAO,GAAyC,EAAE,IAAI,EAAE,CAAC;QAC/D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,mBAAmB,CAC7D,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,sBAAsB,EAAE,CAAC;IAC3B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Computes, resolves and validate the dependencies of the moveResources in the move collection.
|
|
15
17
|
*
|
|
16
18
|
* @summary Computes, resolves and validate the dependencies of the moveResources in the move collection.
|
|
17
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/
|
|
19
|
+
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveCollections_ResolveDependencies.json
|
|
18
20
|
*/
|
|
19
21
|
function moveCollectionsResolveDependencies() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "rg1";
|
|
23
|
+
const subscriptionId = process.env["RESOURCEMOVER_SUBSCRIPTION_ID"] || "subid";
|
|
24
|
+
const resourceGroupName = process.env["RESOURCEMOVER_RESOURCE_GROUP"] || "rg1";
|
|
23
25
|
const moveCollectionName = "movecollection1";
|
|
24
26
|
const credential = new DefaultAzureCredential();
|
|
25
27
|
const client = new ResourceMoverServiceAPI(credential, subscriptionId);
|
|
@@ -27,5 +29,10 @@ function moveCollectionsResolveDependencies() {
|
|
|
27
29
|
console.log(result);
|
|
28
30
|
});
|
|
29
31
|
}
|
|
30
|
-
|
|
32
|
+
function main() {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
moveCollectionsResolveDependencies();
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
main().catch(console.error);
|
|
31
38
|
//# sourceMappingURL=moveCollectionsResolveDependenciesSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moveCollectionsResolveDependenciesSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsResolveDependenciesSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"moveCollectionsResolveDependenciesSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsResolveDependenciesSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,kCAAkC;;QAC/C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,OAAO,CAAC;QAC1D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,KAAK,CAAC;QACvD,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,+BAA+B,CACzE,iBAAiB,EACjB,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,kCAAkC,EAAE,CAAC;IACvC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Updates a move collection.
|
|
15
17
|
*
|
|
16
18
|
* @summary Updates a move collection.
|
|
17
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/
|
|
19
|
+
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveCollections_Update.json
|
|
18
20
|
*/
|
|
19
21
|
function moveCollectionsUpdate() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "rg1";
|
|
23
|
+
const subscriptionId = process.env["RESOURCEMOVER_SUBSCRIPTION_ID"] || "subid";
|
|
24
|
+
const resourceGroupName = process.env["RESOURCEMOVER_RESOURCE_GROUP"] || "rg1";
|
|
23
25
|
const moveCollectionName = "movecollection1";
|
|
24
26
|
const body = {
|
|
25
27
|
identity: { type: "SystemAssigned" },
|
|
@@ -32,5 +34,10 @@ function moveCollectionsUpdate() {
|
|
|
32
34
|
console.log(result);
|
|
33
35
|
});
|
|
34
36
|
}
|
|
35
|
-
|
|
37
|
+
function main() {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
moveCollectionsUpdate();
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
main().catch(console.error);
|
|
36
43
|
//# sourceMappingURL=moveCollectionsUpdateSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moveCollectionsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"moveCollectionsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,OAAO,CAAC;QAC1D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,KAAK,CAAC;QACvD,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,IAAI,GAAgC;YACxC,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;YACpC,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;SACtB,CAAC;QACF,MAAM,OAAO,GAAwC,EAAE,IAAI,EAAE,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,MAAM,CAChD,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,qBAAqB,EAAE,CAAC;IAC1B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Creates or updates a Move Resource in the move collection.
|
|
15
17
|
*
|
|
16
18
|
* @summary Creates or updates a Move Resource in the move collection.
|
|
17
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/
|
|
19
|
+
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveResources_Create.json
|
|
18
20
|
*/
|
|
19
21
|
function moveResourcesCreate() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "rg1";
|
|
23
|
+
const subscriptionId = process.env["RESOURCEMOVER_SUBSCRIPTION_ID"] || "subid";
|
|
24
|
+
const resourceGroupName = process.env["RESOURCEMOVER_RESOURCE_GROUP"] || "rg1";
|
|
23
25
|
const moveCollectionName = "movecollection1";
|
|
24
26
|
const moveResourceName = "moveresourcename1";
|
|
25
27
|
const body = {
|
|
@@ -50,5 +52,10 @@ function moveResourcesCreate() {
|
|
|
50
52
|
console.log(result);
|
|
51
53
|
});
|
|
52
54
|
}
|
|
53
|
-
|
|
55
|
+
function main() {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
moveResourcesCreate();
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
main().catch(console.error);
|
|
54
61
|
//# sourceMappingURL=moveResourcesCreateSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moveResourcesCreateSample.js","sourceRoot":"","sources":["../../samples-dev/moveResourcesCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"moveResourcesCreateSample.js","sourceRoot":"","sources":["../../samples-dev/moveResourcesCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,OAAO,CAAC;QAC1D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,KAAK,CAAC;QACvD,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,gBAAgB,GAAG,mBAAmB,CAAC;QAC7C,MAAM,IAAI,GAAiB;YACzB,UAAU,EAAE;gBACV,kBAAkB,EAAE;oBAClB;wBACE,EAAE,EACA,uIAAuI;wBACzI,QAAQ,EACN,uIAAuI;qBAC1I;iBACF;gBACD,gBAAgB,EAAE;oBAChB,YAAY,EAAE,mCAAmC;oBACjD,uBAAuB,EACrB,kGAAkG;oBACpG,sBAAsB,EAAE,GAAG;oBAC3B,kBAAkB,EAAE,WAAW;oBAC/B,YAAY,EAAE,SAAS;oBACvB,qBAAqB,EAAE;wBACrB,8GAA8G;qBAC/G;iBACF;gBACD,QAAQ,EACN,oGAAoG;aACvG;SACF,CAAC;QACF,MAAM,OAAO,GAAsC,EAAE,IAAI,EAAE,CAAC;QAC5D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAC1D,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Deletes a Move Resource from the move collection.
|
|
15
17
|
*
|
|
16
18
|
* @summary Deletes a Move Resource from the move collection.
|
|
17
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/
|
|
19
|
+
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveResources_Delete.json
|
|
18
20
|
*/
|
|
19
21
|
function moveResourcesDelete() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "rg1";
|
|
23
|
+
const subscriptionId = process.env["RESOURCEMOVER_SUBSCRIPTION_ID"] || "subid";
|
|
24
|
+
const resourceGroupName = process.env["RESOURCEMOVER_RESOURCE_GROUP"] || "rg1";
|
|
23
25
|
const moveCollectionName = "movecollection1";
|
|
24
26
|
const moveResourceName = "moveresourcename1";
|
|
25
27
|
const credential = new DefaultAzureCredential();
|
|
@@ -28,5 +30,10 @@ function moveResourcesDelete() {
|
|
|
28
30
|
console.log(result);
|
|
29
31
|
});
|
|
30
32
|
}
|
|
31
|
-
|
|
33
|
+
function main() {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
moveResourcesDelete();
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
main().catch(console.error);
|
|
32
39
|
//# sourceMappingURL=moveResourcesDeleteSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moveResourcesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/moveResourcesDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"moveResourcesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/moveResourcesDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,OAAO,CAAC;QAC1D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,KAAK,CAAC;QACvD,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,gBAAgB,GAAG,mBAAmB,CAAC;QAC7C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAC1D,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,CACjB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Gets the Move Resource.
|
|
15
17
|
*
|
|
16
18
|
* @summary Gets the Move Resource.
|
|
17
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/
|
|
19
|
+
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveResources_Get.json
|
|
18
20
|
*/
|
|
19
21
|
function moveResourcesGet() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "rg1";
|
|
23
|
+
const subscriptionId = process.env["RESOURCEMOVER_SUBSCRIPTION_ID"] || "subid";
|
|
24
|
+
const resourceGroupName = process.env["RESOURCEMOVER_RESOURCE_GROUP"] || "rg1";
|
|
23
25
|
const moveCollectionName = "movecollection1";
|
|
24
26
|
const moveResourceName = "moveresourcename1";
|
|
25
27
|
const credential = new DefaultAzureCredential();
|
|
@@ -28,5 +30,10 @@ function moveResourcesGet() {
|
|
|
28
30
|
console.log(result);
|
|
29
31
|
});
|
|
30
32
|
}
|
|
31
|
-
|
|
33
|
+
function main() {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
moveResourcesGet();
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
main().catch(console.error);
|
|
32
39
|
//# sourceMappingURL=moveResourcesGetSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moveResourcesGetSample.js","sourceRoot":"","sources":["../../samples-dev/moveResourcesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"moveResourcesGetSample.js","sourceRoot":"","sources":["../../samples-dev/moveResourcesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gBAAgB;;QAC7B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,OAAO,CAAC;QAC1D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,KAAK,CAAC;QACvD,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,gBAAgB,GAAG,mBAAmB,CAAC;QAC7C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,GAAG,CAC3C,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,CACjB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,gBAAgB,EAAE,CAAC;IACrB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,32 +10,29 @@ import { __asyncValues, __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Lists the Move Resources in the move collection.
|
|
15
17
|
*
|
|
16
18
|
* @summary Lists the Move Resources in the move collection.
|
|
17
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/
|
|
19
|
+
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveResources_List.json
|
|
18
20
|
*/
|
|
19
21
|
function moveResourcesList() {
|
|
20
22
|
var _a, e_1, _b, _c;
|
|
21
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "subid";
|
|
23
|
-
const resourceGroupName = "rg1";
|
|
24
|
+
const subscriptionId = process.env["RESOURCEMOVER_SUBSCRIPTION_ID"] || "subid";
|
|
25
|
+
const resourceGroupName = process.env["RESOURCEMOVER_RESOURCE_GROUP"] || "rg1";
|
|
24
26
|
const moveCollectionName = "movecollection1";
|
|
25
27
|
const credential = new DefaultAzureCredential();
|
|
26
28
|
const client = new ResourceMoverServiceAPI(credential, subscriptionId);
|
|
27
29
|
const resArray = new Array();
|
|
28
30
|
try {
|
|
29
|
-
for (var _d = true, _e = __asyncValues(client.moveResources.list(resourceGroupName, moveCollectionName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
31
|
+
for (var _d = true, _e = __asyncValues(client.moveResources.list(resourceGroupName, moveCollectionName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
30
32
|
_c = _f.value;
|
|
31
33
|
_d = false;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
resArray.push(item);
|
|
35
|
-
}
|
|
36
|
-
finally {
|
|
37
|
-
_d = true;
|
|
38
|
-
}
|
|
34
|
+
let item = _c;
|
|
35
|
+
resArray.push(item);
|
|
39
36
|
}
|
|
40
37
|
}
|
|
41
38
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
@@ -48,5 +45,10 @@ function moveResourcesList() {
|
|
|
48
45
|
console.log(resArray);
|
|
49
46
|
});
|
|
50
47
|
}
|
|
51
|
-
|
|
48
|
+
function main() {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
moveResourcesList();
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
main().catch(console.error);
|
|
52
54
|
//# sourceMappingURL=moveResourcesListSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moveResourcesListSample.js","sourceRoot":"","sources":["../../samples-dev/moveResourcesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"moveResourcesListSample.js","sourceRoot":"","sources":["../../samples-dev/moveResourcesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iBAAiB;;;QAC9B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,OAAO,CAAC;QAC1D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,KAAK,CAAC;QACvD,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,aAAa,CAAC,IAAI,CAC9C,iBAAiB,EACjB,kBAAkB,CACnB,CAAA,IAAA,sDAAE;gBAHoB,cAGtB;gBAHsB,WAGtB;gBAHU,IAAI,IAAI,KAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;IACtB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,20 +10,26 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to
|
|
15
17
|
*
|
|
16
18
|
* @summary
|
|
17
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/
|
|
19
|
+
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/OperationsDiscovery_Get.json
|
|
18
20
|
*/
|
|
19
21
|
function operationsDiscoveryGet() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
22
23
|
const credential = new DefaultAzureCredential();
|
|
23
|
-
const client = new ResourceMoverServiceAPI(credential
|
|
24
|
+
const client = new ResourceMoverServiceAPI(credential);
|
|
24
25
|
const result = yield client.operationsDiscoveryOperations.get();
|
|
25
26
|
console.log(result);
|
|
26
27
|
});
|
|
27
28
|
}
|
|
28
|
-
|
|
29
|
+
function main() {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
operationsDiscoveryGet();
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
main().catch(console.error);
|
|
29
35
|
//# sourceMappingURL=operationsDiscoveryGetSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operationsDiscoveryGetSample.js","sourceRoot":"","sources":["../../samples-dev/operationsDiscoveryGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"operationsDiscoveryGetSample.js","sourceRoot":"","sources":["../../samples-dev/operationsDiscoveryGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,CAAC,CAAC;QACvD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,6BAA6B,CAAC,GAAG,EAAE,CAAC;QAChE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,sBAAsB,EAAE,CAAC;IAC3B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,32 +10,29 @@ import { __asyncValues, __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Gets a list of unresolved dependencies.
|
|
15
17
|
*
|
|
16
18
|
* @summary Gets a list of unresolved dependencies.
|
|
17
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/
|
|
19
|
+
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/UnresolvedDependencies_Get.json
|
|
18
20
|
*/
|
|
19
21
|
function unresolvedDependenciesGet() {
|
|
20
22
|
var _a, e_1, _b, _c;
|
|
21
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "subid";
|
|
23
|
-
const resourceGroupName = "rg1";
|
|
24
|
+
const subscriptionId = process.env["RESOURCEMOVER_SUBSCRIPTION_ID"] || "subid";
|
|
25
|
+
const resourceGroupName = process.env["RESOURCEMOVER_RESOURCE_GROUP"] || "rg1";
|
|
24
26
|
const moveCollectionName = "movecollection1";
|
|
25
27
|
const credential = new DefaultAzureCredential();
|
|
26
28
|
const client = new ResourceMoverServiceAPI(credential, subscriptionId);
|
|
27
29
|
const resArray = new Array();
|
|
28
30
|
try {
|
|
29
|
-
for (var _d = true, _e = __asyncValues(client.unresolvedDependencies.list(resourceGroupName, moveCollectionName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
31
|
+
for (var _d = true, _e = __asyncValues(client.unresolvedDependencies.list(resourceGroupName, moveCollectionName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
30
32
|
_c = _f.value;
|
|
31
33
|
_d = false;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
resArray.push(item);
|
|
35
|
-
}
|
|
36
|
-
finally {
|
|
37
|
-
_d = true;
|
|
38
|
-
}
|
|
34
|
+
let item = _c;
|
|
35
|
+
resArray.push(item);
|
|
39
36
|
}
|
|
40
37
|
}
|
|
41
38
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
@@ -48,5 +45,10 @@ function unresolvedDependenciesGet() {
|
|
|
48
45
|
console.log(resArray);
|
|
49
46
|
});
|
|
50
47
|
}
|
|
51
|
-
|
|
48
|
+
function main() {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
unresolvedDependenciesGet();
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
main().catch(console.error);
|
|
52
54
|
//# sourceMappingURL=unresolvedDependenciesGetSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unresolvedDependenciesGetSample.js","sourceRoot":"","sources":["../../samples-dev/unresolvedDependenciesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"unresolvedDependenciesGetSample.js","sourceRoot":"","sources":["../../samples-dev/unresolvedDependenciesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,yBAAyB;;;QACtC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,OAAO,CAAC;QAC1D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,KAAK,CAAC;QACvD,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,sBAAsB,CAAC,IAAI,CACvD,iBAAiB,EACjB,kBAAkB,CACnB,CAAA,IAAA,sDAAE;gBAHoB,cAGtB;gBAHsB,WAGtB;gBAHU,IAAI,IAAI,KAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,yBAAyB,EAAE,CAAC;IAC9B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
requestPath: string;
|
|
7
|
-
requestMethod: string;
|
|
8
|
-
constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
|
|
2
|
+
export declare function createLroSpec<T>(inputs: {
|
|
3
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
4
|
+
args: Record<string, unknown>;
|
|
5
|
+
spec: {
|
|
9
6
|
readonly requestBody?: unknown;
|
|
10
7
|
readonly path?: string;
|
|
11
8
|
readonly httpMethod: string;
|
|
12
|
-
} & Record<string, any
|
|
13
|
-
|
|
14
|
-
sendPollRequest(path: string): Promise<LroResponse<T>>;
|
|
15
|
-
}
|
|
9
|
+
} & Record<string, any>;
|
|
10
|
+
}): LongRunningOperation<T>;
|
|
16
11
|
//# sourceMappingURL=lroImpl.d.ts.map
|