@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,51 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Get all the Move Collections in the resource group.
|
|
13
|
-
*
|
|
14
|
-
* @summary Get all the Move Collections in the resource group.
|
|
15
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_ListMoveCollectionsByResourceGroup.json
|
|
16
|
-
*/
|
|
17
|
-
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function moveCollectionsListMoveCollectionsByResourceGroup() {
|
|
20
|
-
var _a, e_1, _b, _c;
|
|
21
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "subid";
|
|
23
|
-
const resourceGroupName = "rg1";
|
|
24
|
-
const credential = new DefaultAzureCredential();
|
|
25
|
-
const client = new ResourceMoverServiceAPI(credential, subscriptionId);
|
|
26
|
-
const resArray = new Array();
|
|
27
|
-
try {
|
|
28
|
-
for (var _d = true, _e = __asyncValues(client.moveCollections.listMoveCollectionsByResourceGroup(resourceGroupName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
29
|
-
_c = _f.value;
|
|
30
|
-
_d = false;
|
|
31
|
-
try {
|
|
32
|
-
let item = _c;
|
|
33
|
-
resArray.push(item);
|
|
34
|
-
}
|
|
35
|
-
finally {
|
|
36
|
-
_d = true;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
41
|
-
finally {
|
|
42
|
-
try {
|
|
43
|
-
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
44
|
-
}
|
|
45
|
-
finally { if (e_1) throw e_1.error; }
|
|
46
|
-
}
|
|
47
|
-
console.log(resArray);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
moveCollectionsListMoveCollectionsByResourceGroup().catch(console.error);
|
|
51
|
-
//# sourceMappingURL=moveCollectionsListMoveCollectionsByResourceGroup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moveCollectionsListMoveCollectionsByResourceGroup.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,iDAAiD;;;QAC9D,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,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;gBAFsB,cAEtB;gBAFsB,WAEtB;;oBAFU,IAAI,IAAI,KAAA,CAAA;oBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,iDAAiD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moveCollectionsListMoveCollectionsBySubscription.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsListMoveCollectionsBySubscription.ts"],"names":[],"mappings":""}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Get all the Move Collections in the subscription.
|
|
13
|
-
*
|
|
14
|
-
* @summary Get all the Move Collections in the subscription.
|
|
15
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_ListMoveCollectionsBySubscription.json
|
|
16
|
-
*/
|
|
17
|
-
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function moveCollectionsListMoveCollectionsBySubscription() {
|
|
20
|
-
var _a, e_1, _b, _c;
|
|
21
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "subid";
|
|
23
|
-
const credential = new DefaultAzureCredential();
|
|
24
|
-
const client = new ResourceMoverServiceAPI(credential, subscriptionId);
|
|
25
|
-
const resArray = new Array();
|
|
26
|
-
try {
|
|
27
|
-
for (var _d = true, _e = __asyncValues(client.moveCollections.listMoveCollectionsBySubscription()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
28
|
-
_c = _f.value;
|
|
29
|
-
_d = false;
|
|
30
|
-
try {
|
|
31
|
-
let item = _c;
|
|
32
|
-
resArray.push(item);
|
|
33
|
-
}
|
|
34
|
-
finally {
|
|
35
|
-
_d = true;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
40
|
-
finally {
|
|
41
|
-
try {
|
|
42
|
-
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
43
|
-
}
|
|
44
|
-
finally { if (e_1) throw e_1.error; }
|
|
45
|
-
}
|
|
46
|
-
console.log(resArray);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
moveCollectionsListMoveCollectionsBySubscription().catch(console.error);
|
|
50
|
-
//# sourceMappingURL=moveCollectionsListMoveCollectionsBySubscription.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moveCollectionsListMoveCollectionsBySubscription.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsListMoveCollectionsBySubscription.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,gDAAgD;;;QAC7D,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,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;gBAA1D,cAA0D;gBAA1D,WAA0D;;oBAAtE,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,gDAAgD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moveCollectionsPrepare.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsPrepare.ts"],"names":[],"mappings":""}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* 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.
|
|
13
|
-
*
|
|
14
|
-
* @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.
|
|
15
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_Prepare.json
|
|
16
|
-
*/
|
|
17
|
-
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function moveCollectionsPrepare() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "rg1";
|
|
23
|
-
const moveCollectionName = "movecollection1";
|
|
24
|
-
const body = {
|
|
25
|
-
moveResources: [
|
|
26
|
-
"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"
|
|
27
|
-
],
|
|
28
|
-
validateOnly: false
|
|
29
|
-
};
|
|
30
|
-
const options = { body: body };
|
|
31
|
-
const credential = new DefaultAzureCredential();
|
|
32
|
-
const client = new ResourceMoverServiceAPI(credential, subscriptionId);
|
|
33
|
-
const result = yield client.moveCollections.beginPrepareAndWait(resourceGroupName, moveCollectionName, options);
|
|
34
|
-
console.log(result);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
moveCollectionsPrepare().catch(console.error);
|
|
38
|
-
//# sourceMappingURL=moveCollectionsPrepare.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moveCollectionsPrepare.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsPrepare.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,IAAI,GAAmB;YAC3B,aAAa,EAAE;gBACb,iIAAiI;aAClI;YACD,YAAY,EAAE,KAAK;SACpB,CAAC;QACF,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAC/B,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,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moveCollectionsResolveDependencies.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsResolveDependencies.ts"],"names":[],"mappings":""}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Computes, resolves and validate the dependencies of the moveResources in the move collection.
|
|
13
|
-
*
|
|
14
|
-
* @summary Computes, resolves and validate the dependencies of the moveResources in the move collection.
|
|
15
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_ResolveDependencies.json
|
|
16
|
-
*/
|
|
17
|
-
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function moveCollectionsResolveDependencies() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "rg1";
|
|
23
|
-
const moveCollectionName = "movecollection1";
|
|
24
|
-
const credential = new DefaultAzureCredential();
|
|
25
|
-
const client = new ResourceMoverServiceAPI(credential, subscriptionId);
|
|
26
|
-
const result = yield client.moveCollections.beginResolveDependenciesAndWait(resourceGroupName, moveCollectionName);
|
|
27
|
-
console.log(result);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
moveCollectionsResolveDependencies().catch(console.error);
|
|
31
|
-
//# sourceMappingURL=moveCollectionsResolveDependencies.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moveCollectionsResolveDependencies.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsResolveDependencies.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,kCAAkC;;QAC/C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,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,kCAAkC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moveCollectionsUpdate.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsUpdate.ts"],"names":[],"mappings":""}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Updates a move collection.
|
|
13
|
-
*
|
|
14
|
-
* @summary Updates a move collection.
|
|
15
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_Update.json
|
|
16
|
-
*/
|
|
17
|
-
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function moveCollectionsUpdate() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "rg1";
|
|
23
|
-
const moveCollectionName = "movecollection1";
|
|
24
|
-
const body = {
|
|
25
|
-
identity: { type: "SystemAssigned" },
|
|
26
|
-
tags: { key1: "mc1" }
|
|
27
|
-
};
|
|
28
|
-
const options = { body: body };
|
|
29
|
-
const credential = new DefaultAzureCredential();
|
|
30
|
-
const client = new ResourceMoverServiceAPI(credential, subscriptionId);
|
|
31
|
-
const result = yield client.moveCollections.update(resourceGroupName, moveCollectionName, options);
|
|
32
|
-
console.log(result);
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
moveCollectionsUpdate().catch(console.error);
|
|
36
|
-
//# sourceMappingURL=moveCollectionsUpdate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moveCollectionsUpdate.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsUpdate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,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,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAC/B,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,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moveResourcesCreate.d.ts","sourceRoot":"","sources":["../../samples-dev/moveResourcesCreate.ts"],"names":[],"mappings":""}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Creates or updates a Move Resource in the move collection.
|
|
13
|
-
*
|
|
14
|
-
* @summary Creates or updates a Move Resource in the move collection.
|
|
15
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveResources_Create.json
|
|
16
|
-
*/
|
|
17
|
-
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function moveResourcesCreate() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "rg1";
|
|
23
|
-
const moveCollectionName = "movecollection1";
|
|
24
|
-
const moveResourceName = "moveresourcename1";
|
|
25
|
-
const body = {
|
|
26
|
-
properties: {
|
|
27
|
-
dependsOnOverrides: [
|
|
28
|
-
{
|
|
29
|
-
id: "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastusRG/providers/Microsoft.Network/networkInterfaces/eastusvm140",
|
|
30
|
-
targetId: "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/westusRG/providers/Microsoft.Network/networkInterfaces/eastusvm140"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
resourceSettings: {
|
|
34
|
-
resourceType: "Microsoft.Compute/virtualMachines",
|
|
35
|
-
targetAvailabilitySetId: "/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.Compute/availabilitySets/avset1",
|
|
36
|
-
targetAvailabilityZone: "2",
|
|
37
|
-
targetResourceName: "westusvm1",
|
|
38
|
-
targetVmSize: undefined,
|
|
39
|
-
userManagedIdentities: [
|
|
40
|
-
"/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/umi1"
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
sourceId: "/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.Compute/virtualMachines/eastusvm1"
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
const options = { body: body };
|
|
47
|
-
const credential = new DefaultAzureCredential();
|
|
48
|
-
const client = new ResourceMoverServiceAPI(credential, subscriptionId);
|
|
49
|
-
const result = yield client.moveResources.beginCreateAndWait(resourceGroupName, moveCollectionName, moveResourceName, options);
|
|
50
|
-
console.log(result);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
moveResourcesCreate().catch(console.error);
|
|
54
|
-
//# sourceMappingURL=moveResourcesCreate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moveResourcesCreate.js","sourceRoot":"","sources":["../../samples-dev/moveResourcesCreate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,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,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAC/B,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,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moveResourcesDelete.d.ts","sourceRoot":"","sources":["../../samples-dev/moveResourcesDelete.ts"],"names":[],"mappings":""}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Deletes a Move Resource from the move collection.
|
|
13
|
-
*
|
|
14
|
-
* @summary Deletes a Move Resource from the move collection.
|
|
15
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveResources_Delete.json
|
|
16
|
-
*/
|
|
17
|
-
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function moveResourcesDelete() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "rg1";
|
|
23
|
-
const moveCollectionName = "movecollection1";
|
|
24
|
-
const moveResourceName = "moveresourcename1";
|
|
25
|
-
const credential = new DefaultAzureCredential();
|
|
26
|
-
const client = new ResourceMoverServiceAPI(credential, subscriptionId);
|
|
27
|
-
const result = yield client.moveResources.beginDeleteAndWait(resourceGroupName, moveCollectionName, moveResourceName);
|
|
28
|
-
console.log(result);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
moveResourcesDelete().catch(console.error);
|
|
32
|
-
//# sourceMappingURL=moveResourcesDelete.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moveResourcesDelete.js","sourceRoot":"","sources":["../../samples-dev/moveResourcesDelete.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,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,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moveResourcesGet.d.ts","sourceRoot":"","sources":["../../samples-dev/moveResourcesGet.ts"],"names":[],"mappings":""}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Gets the Move Resource.
|
|
13
|
-
*
|
|
14
|
-
* @summary Gets the Move Resource.
|
|
15
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveResources_Get.json
|
|
16
|
-
*/
|
|
17
|
-
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function moveResourcesGet() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "rg1";
|
|
23
|
-
const moveCollectionName = "movecollection1";
|
|
24
|
-
const moveResourceName = "moveresourcename1";
|
|
25
|
-
const credential = new DefaultAzureCredential();
|
|
26
|
-
const client = new ResourceMoverServiceAPI(credential, subscriptionId);
|
|
27
|
-
const result = yield client.moveResources.get(resourceGroupName, moveCollectionName, moveResourceName);
|
|
28
|
-
console.log(result);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
moveResourcesGet().catch(console.error);
|
|
32
|
-
//# sourceMappingURL=moveResourcesGet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moveResourcesGet.js","sourceRoot":"","sources":["../../samples-dev/moveResourcesGet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,gBAAgB;;QAC7B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,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,gBAAgB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moveResourcesList.d.ts","sourceRoot":"","sources":["../../samples-dev/moveResourcesList.ts"],"names":[],"mappings":""}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Lists the Move Resources in the move collection.
|
|
13
|
-
*
|
|
14
|
-
* @summary Lists the Move Resources in the move collection.
|
|
15
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveResources_List.json
|
|
16
|
-
*/
|
|
17
|
-
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function moveResourcesList() {
|
|
20
|
-
var _a, e_1, _b, _c;
|
|
21
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "subid";
|
|
23
|
-
const resourceGroupName = "rg1";
|
|
24
|
-
const moveCollectionName = "movecollection1";
|
|
25
|
-
const credential = new DefaultAzureCredential();
|
|
26
|
-
const client = new ResourceMoverServiceAPI(credential, subscriptionId);
|
|
27
|
-
const resArray = new Array();
|
|
28
|
-
try {
|
|
29
|
-
for (var _d = true, _e = __asyncValues(client.moveResources.list(resourceGroupName, moveCollectionName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
30
|
-
_c = _f.value;
|
|
31
|
-
_d = false;
|
|
32
|
-
try {
|
|
33
|
-
let item = _c;
|
|
34
|
-
resArray.push(item);
|
|
35
|
-
}
|
|
36
|
-
finally {
|
|
37
|
-
_d = true;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
42
|
-
finally {
|
|
43
|
-
try {
|
|
44
|
-
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
45
|
-
}
|
|
46
|
-
finally { if (e_1) throw e_1.error; }
|
|
47
|
-
}
|
|
48
|
-
console.log(resArray);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
moveResourcesList().catch(console.error);
|
|
52
|
-
//# sourceMappingURL=moveResourcesList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moveResourcesList.js","sourceRoot":"","sources":["../../samples-dev/moveResourcesList.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,iBAAiB;;;QAC9B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,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;gBAHsB,cAGtB;gBAHsB,WAGtB;;oBAHU,IAAI,IAAI,KAAA,CAAA;oBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,iBAAiB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operationsDiscoveryGet.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsDiscoveryGet.ts"],"names":[],"mappings":""}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to
|
|
13
|
-
*
|
|
14
|
-
* @summary
|
|
15
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/OperationsDiscovery_Get.json
|
|
16
|
-
*/
|
|
17
|
-
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function operationsDiscoveryGet() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
22
|
-
const credential = new DefaultAzureCredential();
|
|
23
|
-
const client = new ResourceMoverServiceAPI(credential, subscriptionId);
|
|
24
|
-
const result = yield client.operationsDiscoveryOperations.get();
|
|
25
|
-
console.log(result);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
operationsDiscoveryGet().catch(console.error);
|
|
29
|
-
//# sourceMappingURL=operationsDiscoveryGet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operationsDiscoveryGet.js","sourceRoot":"","sources":["../../samples-dev/operationsDiscoveryGet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,sCAAsC,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,6BAA6B,CAAC,GAAG,EAAE,CAAC;QAChE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"requiredForGet.d.ts","sourceRoot":"","sources":["../../samples-dev/requiredForGet.ts"],"names":[],"mappings":""}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* This sample demonstrates how to List of the move resources for which an arm resource is required for.
|
|
13
|
-
*
|
|
14
|
-
* @summary List of the move resources for which an arm resource is required for.
|
|
15
|
-
* x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/RequiredFor_Get.json
|
|
16
|
-
*/
|
|
17
|
-
import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function requiredForGet() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "rg1";
|
|
23
|
-
const moveCollectionName = "movecollection1";
|
|
24
|
-
const sourceId = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/nic1";
|
|
25
|
-
const credential = new DefaultAzureCredential();
|
|
26
|
-
const client = new ResourceMoverServiceAPI(credential, subscriptionId);
|
|
27
|
-
const result = yield client.moveCollections.listRequiredFor(resourceGroupName, moveCollectionName, sourceId);
|
|
28
|
-
console.log(result);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
requiredForGet().catch(console.error);
|
|
32
|
-
//# sourceMappingURL=requiredForGet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"requiredForGet.js","sourceRoot":"","sources":["../../samples-dev/requiredForGet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,cAAc;;QAC3B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,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,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unresolvedDependenciesGet.d.ts","sourceRoot":"","sources":["../../samples-dev/unresolvedDependenciesGet.ts"],"names":[],"mappings":""}
|