@azure/arm-resourcemover 2.0.0-alpha.20220421.1 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +11 -0
  3. package/dist/index.js +134 -55
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/moveCollectionsBulkRemoveSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/moveCollectionsBulkRemoveSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/moveCollectionsBulkRemoveSample.js +38 -0
  10. package/dist-esm/samples-dev/moveCollectionsBulkRemoveSample.js.map +1 -0
  11. package/dist-esm/samples-dev/moveCollectionsCommitSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/moveCollectionsCommitSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/moveCollectionsCommitSample.js +38 -0
  14. package/dist-esm/samples-dev/moveCollectionsCommitSample.js.map +1 -0
  15. package/dist-esm/samples-dev/moveCollectionsCreateSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/moveCollectionsCreateSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/moveCollectionsCreateSample.js +37 -0
  18. package/dist-esm/samples-dev/moveCollectionsCreateSample.js.map +1 -0
  19. package/dist-esm/samples-dev/moveCollectionsDeleteSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/moveCollectionsDeleteSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/moveCollectionsDeleteSample.js +31 -0
  22. package/dist-esm/samples-dev/moveCollectionsDeleteSample.js.map +1 -0
  23. package/dist-esm/samples-dev/moveCollectionsDiscardSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/moveCollectionsDiscardSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/moveCollectionsDiscardSample.js +38 -0
  26. package/dist-esm/samples-dev/moveCollectionsDiscardSample.js.map +1 -0
  27. package/dist-esm/samples-dev/moveCollectionsGetSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/moveCollectionsGetSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/moveCollectionsGetSample.js +31 -0
  30. package/dist-esm/samples-dev/moveCollectionsGetSample.js.map +1 -0
  31. package/dist-esm/samples-dev/moveCollectionsInitiateMoveSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/moveCollectionsInitiateMoveSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/moveCollectionsInitiateMoveSample.js +38 -0
  34. package/dist-esm/samples-dev/moveCollectionsInitiateMoveSample.js.map +1 -0
  35. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroupSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroupSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroupSample.js +44 -0
  38. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsByResourceGroupSample.js.map +1 -0
  39. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscriptionSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscriptionSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscriptionSample.js +43 -0
  42. package/dist-esm/samples-dev/moveCollectionsListMoveCollectionsBySubscriptionSample.js.map +1 -0
  43. package/dist-esm/samples-dev/moveCollectionsListRequiredForSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/moveCollectionsListRequiredForSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/moveCollectionsListRequiredForSample.js +32 -0
  46. package/dist-esm/samples-dev/moveCollectionsListRequiredForSample.js.map +1 -0
  47. package/dist-esm/samples-dev/moveCollectionsPrepareSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/moveCollectionsPrepareSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/moveCollectionsPrepareSample.js +38 -0
  50. package/dist-esm/samples-dev/moveCollectionsPrepareSample.js.map +1 -0
  51. package/dist-esm/samples-dev/moveCollectionsResolveDependenciesSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/moveCollectionsResolveDependenciesSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/moveCollectionsResolveDependenciesSample.js +31 -0
  54. package/dist-esm/samples-dev/moveCollectionsResolveDependenciesSample.js.map +1 -0
  55. package/dist-esm/samples-dev/moveCollectionsUpdateSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/moveCollectionsUpdateSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/moveCollectionsUpdateSample.js +36 -0
  58. package/dist-esm/samples-dev/moveCollectionsUpdateSample.js.map +1 -0
  59. package/dist-esm/samples-dev/moveResourcesCreateSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/moveResourcesCreateSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/moveResourcesCreateSample.js +54 -0
  62. package/dist-esm/samples-dev/moveResourcesCreateSample.js.map +1 -0
  63. package/dist-esm/samples-dev/moveResourcesDeleteSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/moveResourcesDeleteSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/moveResourcesDeleteSample.js +32 -0
  66. package/dist-esm/samples-dev/moveResourcesDeleteSample.js.map +1 -0
  67. package/dist-esm/samples-dev/moveResourcesGetSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/moveResourcesGetSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/moveResourcesGetSample.js +32 -0
  70. package/dist-esm/samples-dev/moveResourcesGetSample.js.map +1 -0
  71. package/dist-esm/samples-dev/moveResourcesListSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/moveResourcesListSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/moveResourcesListSample.js +45 -0
  74. package/dist-esm/samples-dev/moveResourcesListSample.js.map +1 -0
  75. package/dist-esm/samples-dev/operationsDiscoveryGetSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/operationsDiscoveryGetSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/operationsDiscoveryGetSample.js +29 -0
  78. package/dist-esm/samples-dev/operationsDiscoveryGetSample.js.map +1 -0
  79. package/dist-esm/samples-dev/unresolvedDependenciesGetSample.d.ts +2 -0
  80. package/dist-esm/samples-dev/unresolvedDependenciesGetSample.d.ts.map +1 -0
  81. package/dist-esm/samples-dev/unresolvedDependenciesGetSample.js +45 -0
  82. package/dist-esm/samples-dev/unresolvedDependenciesGetSample.js.map +1 -0
  83. package/dist-esm/src/operations/moveCollections.d.ts.map +1 -1
  84. package/dist-esm/src/operations/moveCollections.js +21 -7
  85. package/dist-esm/src/operations/moveCollections.js.map +1 -1
  86. package/dist-esm/src/operations/moveResources.d.ts.map +1 -1
  87. package/dist-esm/src/operations/moveResources.js +6 -2
  88. package/dist-esm/src/operations/moveResources.js.map +1 -1
  89. package/dist-esm/src/resourceMoverServiceAPI.d.ts.map +1 -1
  90. package/dist-esm/src/resourceMoverServiceAPI.js +20 -2
  91. package/dist-esm/src/resourceMoverServiceAPI.js.map +1 -1
  92. package/package.json +10 -10
  93. package/rollup.config.js +6 -72
  94. package/src/operations/moveCollections.ts +21 -7
  95. package/src/operations/moveResources.ts +6 -2
  96. package/src/resourceMoverServiceAPI.ts +27 -2
  97. package/tsconfig.json +18 -5
  98. package/LICENSE.txt +0 -21
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsBulkRemoveSample.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsBulkRemoveSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
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
+ import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Removes the set of move resources included in the request body from move collection. The orchestration is done by service. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
15
+ *
16
+ * @summary Removes the set of move resources included in the request body from move collection. The orchestration is done by service. 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/2021-08-01/examples/MoveCollections_BulkRemove.json
18
+ */
19
+ function moveCollectionsBulkRemove() {
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 };
31
+ const credential = new DefaultAzureCredential();
32
+ const client = new ResourceMoverServiceAPI(credential, subscriptionId);
33
+ const result = yield client.moveCollections.beginBulkRemoveAndWait(resourceGroupName, moveCollectionName, options);
34
+ console.log(result);
35
+ });
36
+ }
37
+ moveCollectionsBulkRemove().catch(console.error);
38
+ //# sourceMappingURL=moveCollectionsBulkRemoveSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsBulkRemoveSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsBulkRemoveSample.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;AAEzD;;;;;GAKG;AACH,SAAe,yBAAyB;;QACtC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,IAAI,GAAsB;YAC9B,aAAa,EAAE;gBACb,iIAAiI;aAClI;YACD,YAAY,EAAE,KAAK;SACpB,CAAC;QACF,MAAM,OAAO,GAA4C,EAAE,IAAI,EAAE,CAAC;QAClE,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,sBAAsB,CAChE,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,yBAAyB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moveCollectionsCommitSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsCommitSample.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsCommitSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
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
+ import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Commits the set of resources included in the request body. The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
15
+ *
16
+ * @summary Commits the set of resources included in the request body. The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. 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/2021-08-01/examples/MoveCollections_Commit.json
18
+ */
19
+ function moveCollectionsCommit() {
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 };
31
+ const credential = new DefaultAzureCredential();
32
+ const client = new ResourceMoverServiceAPI(credential, subscriptionId);
33
+ const result = yield client.moveCollections.beginCommitAndWait(resourceGroupName, moveCollectionName, options);
34
+ console.log(result);
35
+ });
36
+ }
37
+ moveCollectionsCommit().catch(console.error);
38
+ //# sourceMappingURL=moveCollectionsCommitSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsCommitSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsCommitSample.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;AAEzD;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,IAAI,GAAkB;YAC1B,aAAa,EAAE;gBACb,iIAAiI;aAClI;YACD,YAAY,EAAE,KAAK;SACpB,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,kBAAkB,CAC5D,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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moveCollectionsCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsCreateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
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
+ import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Creates or updates a move collection.
15
+ *
16
+ * @summary Creates or updates a move collection.
17
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_Create.json
18
+ */
19
+ function moveCollectionsCreate() {
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
+ location: "eastus2",
27
+ properties: { sourceRegion: "eastus", targetRegion: "westus" }
28
+ };
29
+ const options = { body };
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new ResourceMoverServiceAPI(credential, subscriptionId);
32
+ const result = yield client.moveCollections.create(resourceGroupName, moveCollectionName, options);
33
+ console.log(result);
34
+ });
35
+ }
36
+ moveCollectionsCreate().catch(console.error);
37
+ //# sourceMappingURL=moveCollectionsCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsCreateSample.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;AAEzD;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;QAC7C,MAAM,IAAI,GAAmB;YAC3B,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;YACpC,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE;SAC/D,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,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moveCollectionsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
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
+ import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Deletes a move collection.
15
+ *
16
+ * @summary Deletes a move collection.
17
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_Delete.json
18
+ */
19
+ function moveCollectionsDelete() {
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.beginDeleteAndWait(resourceGroupName, moveCollectionName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ moveCollectionsDelete().catch(console.error);
31
+ //# sourceMappingURL=moveCollectionsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsDeleteSample.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;AAEzD;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,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,kBAAkB,CAC5D,iBAAiB,EACjB,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moveCollectionsDiscardSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsDiscardSample.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsDiscardSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
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
+ import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Discards the set of resources included in the request body. The discard operation is triggered on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', 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
+ *
16
+ * @summary Discards the set of resources included in the request body. The discard operation is triggered on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', 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/2021-08-01/examples/MoveCollections_Discard.json
18
+ */
19
+ function moveCollectionsDiscard() {
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 };
31
+ const credential = new DefaultAzureCredential();
32
+ const client = new ResourceMoverServiceAPI(credential, subscriptionId);
33
+ const result = yield client.moveCollections.beginDiscardAndWait(resourceGroupName, moveCollectionName, options);
34
+ console.log(result);
35
+ });
36
+ }
37
+ moveCollectionsDiscard().catch(console.error);
38
+ //# sourceMappingURL=moveCollectionsDiscardSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsDiscardSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsDiscardSample.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;AAEzD;;;;;GAKG;AACH,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,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,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moveCollectionsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
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
+ import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets the move collection.
15
+ *
16
+ * @summary Gets the move collection.
17
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_Get.json
18
+ */
19
+ function moveCollectionsGet() {
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.get(resourceGroupName, moveCollectionName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ moveCollectionsGet().catch(console.error);
31
+ //# sourceMappingURL=moveCollectionsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/moveCollectionsGetSample.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;AAEzD;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,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,GAAG,CAC7C,iBAAiB,EACjB,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moveCollectionsInitiateMoveSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsInitiateMoveSample.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsInitiateMoveSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
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
+ import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Moves the set of resources included in the request body. The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.
15
+ *
16
+ * @summary Moves the set of resources included in the request body. The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending. 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/2021-08-01/examples/MoveCollections_InitiateMove.json
18
+ */
19
+ function moveCollectionsInitiateMove() {
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 };
31
+ const credential = new DefaultAzureCredential();
32
+ const client = new ResourceMoverServiceAPI(credential, subscriptionId);
33
+ const result = yield client.moveCollections.beginInitiateMoveAndWait(resourceGroupName, moveCollectionName, options);
34
+ console.log(result);
35
+ });
36
+ }
37
+ moveCollectionsInitiateMove().catch(console.error);
38
+ //# sourceMappingURL=moveCollectionsInitiateMoveSample.js.map
@@ -0,0 +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;AAEzD;;;;;GAKG;AACH,SAAe,2BAA2B;;QACxC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,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,2BAA2B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moveCollectionsListMoveCollectionsByResourceGroupSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsListMoveCollectionsByResourceGroupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsListMoveCollectionsByResourceGroupSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,44 @@
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
+ import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get all the Move Collections in the resource group.
15
+ *
16
+ * @summary Get all the Move Collections in the resource group.
17
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_ListMoveCollectionsByResourceGroup.json
18
+ */
19
+ function moveCollectionsListMoveCollectionsByResourceGroup() {
20
+ var e_1, _a;
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 _b = __asyncValues(client.moveCollections.listMoveCollectionsByResourceGroup(resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
29
+ let item = _c.value;
30
+ resArray.push(item);
31
+ }
32
+ }
33
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
34
+ finally {
35
+ try {
36
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
37
+ }
38
+ finally { if (e_1) throw e_1.error; }
39
+ }
40
+ console.log(resArray);
41
+ });
42
+ }
43
+ moveCollectionsListMoveCollectionsByResourceGroup().catch(console.error);
44
+ //# sourceMappingURL=moveCollectionsListMoveCollectionsByResourceGroupSample.js.map
@@ -0,0 +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;AAEzD;;;;;GAKG;AACH,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,IAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,kCAAkC,CAC9E,iBAAiB,CAClB,CAAA,IAAA;gBAFU,IAAI,IAAI,WAAA,CAAA;gBAGjB,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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moveCollectionsListMoveCollectionsBySubscriptionSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsListMoveCollectionsBySubscriptionSample.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsListMoveCollectionsBySubscriptionSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
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
+ import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get all the Move Collections in the subscription.
15
+ *
16
+ * @summary Get all the Move Collections in the subscription.
17
+ * x-ms-original-file: specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveCollections_ListMoveCollectionsBySubscription.json
18
+ */
19
+ function moveCollectionsListMoveCollectionsBySubscription() {
20
+ var e_1, _a;
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 _b = __asyncValues(client.moveCollections.listMoveCollectionsBySubscription()), _c; _c = yield _b.next(), !_c.done;) {
28
+ let item = _c.value;
29
+ resArray.push(item);
30
+ }
31
+ }
32
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
33
+ finally {
34
+ try {
35
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
36
+ }
37
+ finally { if (e_1) throw e_1.error; }
38
+ }
39
+ console.log(resArray);
40
+ });
41
+ }
42
+ moveCollectionsListMoveCollectionsBySubscription().catch(console.error);
43
+ //# sourceMappingURL=moveCollectionsListMoveCollectionsBySubscriptionSample.js.map
@@ -0,0 +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;AAEzD;;;;;GAKG;AACH,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,IAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,iCAAiC,EAAE,CAAA,IAAA;gBAAtE,IAAI,IAAI,WAAA,CAAA;gBACjB,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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moveCollectionsListRequiredForSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsListRequiredForSample.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsListRequiredForSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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
+ import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to List of the move resources for which an arm resource is required for.
15
+ *
16
+ * @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/2021-08-01/examples/RequiredFor_Get.json
18
+ */
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=moveCollectionsListRequiredForSample.js.map
@@ -0,0 +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;AAEzD;;;;;GAKG;AACH,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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moveCollectionsPrepareSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsPrepareSample.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsPrepareSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
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
+ import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * 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
+ *
16
+ * @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/2021-08-01/examples/MoveCollections_Prepare.json
18
+ */
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 };
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=moveCollectionsPrepareSample.js.map
@@ -0,0 +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;AAEzD;;;;;GAKG;AACH,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,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,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moveCollectionsResolveDependenciesSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsResolveDependenciesSample.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsResolveDependenciesSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
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
+ import { ResourceMoverServiceAPI } from "@azure/arm-resourcemover";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Computes, resolves and validate the dependencies of the moveResources in the move collection.
15
+ *
16
+ * @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/2021-08-01/examples/MoveCollections_ResolveDependencies.json
18
+ */
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=moveCollectionsResolveDependenciesSample.js.map
@@ -0,0 +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;AAEzD;;;;;GAKG;AACH,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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moveCollectionsUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveCollectionsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/moveCollectionsUpdateSample.ts"],"names":[],"mappings":""}