@azure/arm-migrate 2.0.0 → 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 (199) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +11 -0
  3. package/dist/index.js +236 -137
  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/assessedMachinesGetSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/assessedMachinesGetSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/assessedMachinesGetSample.js +34 -0
  10. package/dist-esm/samples-dev/assessedMachinesGetSample.js.map +1 -0
  11. package/dist-esm/samples-dev/assessedMachinesListByAssessmentSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/assessedMachinesListByAssessmentSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/assessedMachinesListByAssessmentSample.js +55 -0
  14. package/dist-esm/samples-dev/assessedMachinesListByAssessmentSample.js.map +1 -0
  15. package/dist-esm/samples-dev/assessmentsCreateSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/assessmentsCreateSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/assessmentsCreateSample.js +79 -0
  18. package/dist-esm/samples-dev/assessmentsCreateSample.js.map +1 -0
  19. package/dist-esm/samples-dev/assessmentsDeleteSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/assessmentsDeleteSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/assessmentsDeleteSample.js +39 -0
  22. package/dist-esm/samples-dev/assessmentsDeleteSample.js.map +1 -0
  23. package/dist-esm/samples-dev/assessmentsGetReportDownloadUrlSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/assessmentsGetReportDownloadUrlSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/assessmentsGetReportDownloadUrlSample.js +33 -0
  26. package/dist-esm/samples-dev/assessmentsGetReportDownloadUrlSample.js.map +1 -0
  27. package/dist-esm/samples-dev/assessmentsGetSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/assessmentsGetSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/assessmentsGetSample.js +33 -0
  30. package/dist-esm/samples-dev/assessmentsGetSample.js.map +1 -0
  31. package/dist-esm/samples-dev/assessmentsListByGroupSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/assessmentsListByGroupSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/assessmentsListByGroupSample.js +52 -0
  34. package/dist-esm/samples-dev/assessmentsListByGroupSample.js.map +1 -0
  35. package/dist-esm/samples-dev/assessmentsListByProjectSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/assessmentsListByProjectSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/assessmentsListByProjectSample.js +51 -0
  38. package/dist-esm/samples-dev/assessmentsListByProjectSample.js.map +1 -0
  39. package/dist-esm/samples-dev/groupsCreateSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/groupsCreateSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/groupsCreateSample.js +43 -0
  42. package/dist-esm/samples-dev/groupsCreateSample.js.map +1 -0
  43. package/dist-esm/samples-dev/groupsDeleteSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/groupsDeleteSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/groupsDeleteSample.js +38 -0
  46. package/dist-esm/samples-dev/groupsDeleteSample.js.map +1 -0
  47. package/dist-esm/samples-dev/groupsGetSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/groupsGetSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/groupsGetSample.js +32 -0
  50. package/dist-esm/samples-dev/groupsGetSample.js.map +1 -0
  51. package/dist-esm/samples-dev/groupsListByProjectSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/groupsListByProjectSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/groupsListByProjectSample.js +45 -0
  54. package/dist-esm/samples-dev/groupsListByProjectSample.js.map +1 -0
  55. package/dist-esm/samples-dev/groupsUpdateMachinesSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/groupsUpdateMachinesSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/groupsUpdateMachinesSample.js +32 -0
  58. package/dist-esm/samples-dev/groupsUpdateMachinesSample.js.map +1 -0
  59. package/dist-esm/samples-dev/hyperVCollectorsCreateSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/hyperVCollectorsCreateSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/hyperVCollectorsCreateSample.js +48 -0
  62. package/dist-esm/samples-dev/hyperVCollectorsCreateSample.js.map +1 -0
  63. package/dist-esm/samples-dev/hyperVCollectorsDeleteSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/hyperVCollectorsDeleteSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/hyperVCollectorsDeleteSample.js +32 -0
  66. package/dist-esm/samples-dev/hyperVCollectorsDeleteSample.js.map +1 -0
  67. package/dist-esm/samples-dev/hyperVCollectorsGetSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/hyperVCollectorsGetSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/hyperVCollectorsGetSample.js +32 -0
  70. package/dist-esm/samples-dev/hyperVCollectorsGetSample.js.map +1 -0
  71. package/dist-esm/samples-dev/hyperVCollectorsListByProjectSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/hyperVCollectorsListByProjectSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/hyperVCollectorsListByProjectSample.js +45 -0
  74. package/dist-esm/samples-dev/hyperVCollectorsListByProjectSample.js.map +1 -0
  75. package/dist-esm/samples-dev/importCollectorsCreateSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/importCollectorsCreateSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/importCollectorsCreateSample.js +42 -0
  78. package/dist-esm/samples-dev/importCollectorsCreateSample.js.map +1 -0
  79. package/dist-esm/samples-dev/importCollectorsDeleteSample.d.ts +2 -0
  80. package/dist-esm/samples-dev/importCollectorsDeleteSample.d.ts.map +1 -0
  81. package/dist-esm/samples-dev/importCollectorsDeleteSample.js +32 -0
  82. package/dist-esm/samples-dev/importCollectorsDeleteSample.js.map +1 -0
  83. package/dist-esm/samples-dev/importCollectorsGetSample.d.ts +2 -0
  84. package/dist-esm/samples-dev/importCollectorsGetSample.d.ts.map +1 -0
  85. package/dist-esm/samples-dev/importCollectorsGetSample.js +32 -0
  86. package/dist-esm/samples-dev/importCollectorsGetSample.js.map +1 -0
  87. package/dist-esm/samples-dev/importCollectorsListByProjectSample.d.ts +2 -0
  88. package/dist-esm/samples-dev/importCollectorsListByProjectSample.d.ts.map +1 -0
  89. package/dist-esm/samples-dev/importCollectorsListByProjectSample.js +45 -0
  90. package/dist-esm/samples-dev/importCollectorsListByProjectSample.js.map +1 -0
  91. package/dist-esm/samples-dev/machinesGetSample.d.ts +2 -0
  92. package/dist-esm/samples-dev/machinesGetSample.d.ts.map +1 -0
  93. package/dist-esm/samples-dev/machinesGetSample.js +32 -0
  94. package/dist-esm/samples-dev/machinesGetSample.js.map +1 -0
  95. package/dist-esm/samples-dev/machinesListByProjectSample.d.ts +2 -0
  96. package/dist-esm/samples-dev/machinesListByProjectSample.d.ts.map +1 -0
  97. package/dist-esm/samples-dev/machinesListByProjectSample.js +45 -0
  98. package/dist-esm/samples-dev/machinesListByProjectSample.js.map +1 -0
  99. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  100. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  101. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  102. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  103. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.d.ts +2 -0
  104. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.d.ts.map +1 -0
  105. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +34 -0
  106. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js.map +1 -0
  107. package/dist-esm/samples-dev/privateEndpointConnectionGetSample.d.ts +2 -0
  108. package/dist-esm/samples-dev/privateEndpointConnectionGetSample.d.ts.map +1 -0
  109. package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +32 -0
  110. package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js.map +1 -0
  111. package/dist-esm/samples-dev/privateEndpointConnectionListByProjectSample.d.ts +2 -0
  112. package/dist-esm/samples-dev/privateEndpointConnectionListByProjectSample.d.ts.map +1 -0
  113. package/dist-esm/samples-dev/privateEndpointConnectionListByProjectSample.js +31 -0
  114. package/dist-esm/samples-dev/privateEndpointConnectionListByProjectSample.js.map +1 -0
  115. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.d.ts +2 -0
  116. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.d.ts.map +1 -0
  117. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +45 -0
  118. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js.map +1 -0
  119. package/dist-esm/samples-dev/privateLinkResourceGetSample.d.ts +2 -0
  120. package/dist-esm/samples-dev/privateLinkResourceGetSample.d.ts.map +1 -0
  121. package/dist-esm/samples-dev/privateLinkResourceGetSample.js +32 -0
  122. package/dist-esm/samples-dev/privateLinkResourceGetSample.js.map +1 -0
  123. package/dist-esm/samples-dev/privateLinkResourceListByProjectSample.d.ts +2 -0
  124. package/dist-esm/samples-dev/privateLinkResourceListByProjectSample.d.ts.map +1 -0
  125. package/dist-esm/samples-dev/privateLinkResourceListByProjectSample.js +31 -0
  126. package/dist-esm/samples-dev/privateLinkResourceListByProjectSample.js.map +1 -0
  127. package/dist-esm/samples-dev/projectsAssessmentOptionsListSample.d.ts +2 -0
  128. package/dist-esm/samples-dev/projectsAssessmentOptionsListSample.d.ts.map +1 -0
  129. package/dist-esm/samples-dev/projectsAssessmentOptionsListSample.js +45 -0
  130. package/dist-esm/samples-dev/projectsAssessmentOptionsListSample.js.map +1 -0
  131. package/dist-esm/samples-dev/projectsAssessmentOptionsSample.d.ts +2 -0
  132. package/dist-esm/samples-dev/projectsAssessmentOptionsSample.d.ts.map +1 -0
  133. package/dist-esm/samples-dev/projectsAssessmentOptionsSample.js +32 -0
  134. package/dist-esm/samples-dev/projectsAssessmentOptionsSample.js.map +1 -0
  135. package/dist-esm/samples-dev/projectsCreateSample.d.ts +2 -0
  136. package/dist-esm/samples-dev/projectsCreateSample.d.ts.map +1 -0
  137. package/dist-esm/samples-dev/projectsCreateSample.js +43 -0
  138. package/dist-esm/samples-dev/projectsCreateSample.js.map +1 -0
  139. package/dist-esm/samples-dev/projectsDeleteSample.d.ts +2 -0
  140. package/dist-esm/samples-dev/projectsDeleteSample.d.ts.map +1 -0
  141. package/dist-esm/samples-dev/projectsDeleteSample.js +31 -0
  142. package/dist-esm/samples-dev/projectsDeleteSample.js.map +1 -0
  143. package/dist-esm/samples-dev/projectsGetSample.d.ts +2 -0
  144. package/dist-esm/samples-dev/projectsGetSample.d.ts.map +1 -0
  145. package/dist-esm/samples-dev/projectsGetSample.js +31 -0
  146. package/dist-esm/samples-dev/projectsGetSample.js.map +1 -0
  147. package/dist-esm/samples-dev/projectsListBySubscriptionSample.d.ts +2 -0
  148. package/dist-esm/samples-dev/projectsListBySubscriptionSample.d.ts.map +1 -0
  149. package/dist-esm/samples-dev/projectsListBySubscriptionSample.js +43 -0
  150. package/dist-esm/samples-dev/projectsListBySubscriptionSample.js.map +1 -0
  151. package/dist-esm/samples-dev/projectsListSample.d.ts +2 -0
  152. package/dist-esm/samples-dev/projectsListSample.d.ts.map +1 -0
  153. package/dist-esm/samples-dev/projectsListSample.js +44 -0
  154. package/dist-esm/samples-dev/projectsListSample.js.map +1 -0
  155. package/dist-esm/samples-dev/projectsUpdateSample.d.ts +2 -0
  156. package/dist-esm/samples-dev/projectsUpdateSample.d.ts.map +1 -0
  157. package/dist-esm/samples-dev/projectsUpdateSample.js +43 -0
  158. package/dist-esm/samples-dev/projectsUpdateSample.js.map +1 -0
  159. package/dist-esm/samples-dev/serverCollectorsCreateSample.d.ts +2 -0
  160. package/dist-esm/samples-dev/serverCollectorsCreateSample.d.ts.map +1 -0
  161. package/dist-esm/samples-dev/serverCollectorsCreateSample.js +48 -0
  162. package/dist-esm/samples-dev/serverCollectorsCreateSample.js.map +1 -0
  163. package/dist-esm/samples-dev/serverCollectorsDeleteSample.d.ts +2 -0
  164. package/dist-esm/samples-dev/serverCollectorsDeleteSample.d.ts.map +1 -0
  165. package/dist-esm/samples-dev/serverCollectorsDeleteSample.js +32 -0
  166. package/dist-esm/samples-dev/serverCollectorsDeleteSample.js.map +1 -0
  167. package/dist-esm/samples-dev/serverCollectorsGetSample.d.ts +2 -0
  168. package/dist-esm/samples-dev/serverCollectorsGetSample.d.ts.map +1 -0
  169. package/dist-esm/samples-dev/serverCollectorsGetSample.js +32 -0
  170. package/dist-esm/samples-dev/serverCollectorsGetSample.js.map +1 -0
  171. package/dist-esm/samples-dev/serverCollectorsListByProjectSample.d.ts +2 -0
  172. package/dist-esm/samples-dev/serverCollectorsListByProjectSample.d.ts.map +1 -0
  173. package/dist-esm/samples-dev/serverCollectorsListByProjectSample.js +45 -0
  174. package/dist-esm/samples-dev/serverCollectorsListByProjectSample.js.map +1 -0
  175. package/dist-esm/samples-dev/vMwareCollectorsCreateSample.d.ts +2 -0
  176. package/dist-esm/samples-dev/vMwareCollectorsCreateSample.d.ts.map +1 -0
  177. package/dist-esm/samples-dev/vMwareCollectorsCreateSample.js +48 -0
  178. package/dist-esm/samples-dev/vMwareCollectorsCreateSample.js.map +1 -0
  179. package/dist-esm/samples-dev/vMwareCollectorsDeleteSample.d.ts +2 -0
  180. package/dist-esm/samples-dev/vMwareCollectorsDeleteSample.d.ts.map +1 -0
  181. package/dist-esm/samples-dev/vMwareCollectorsDeleteSample.js +32 -0
  182. package/dist-esm/samples-dev/vMwareCollectorsDeleteSample.js.map +1 -0
  183. package/dist-esm/samples-dev/vMwareCollectorsGetSample.d.ts +2 -0
  184. package/dist-esm/samples-dev/vMwareCollectorsGetSample.d.ts.map +1 -0
  185. package/dist-esm/samples-dev/vMwareCollectorsGetSample.js +32 -0
  186. package/dist-esm/samples-dev/vMwareCollectorsGetSample.js.map +1 -0
  187. package/dist-esm/samples-dev/vMwareCollectorsListByProjectSample.d.ts +2 -0
  188. package/dist-esm/samples-dev/vMwareCollectorsListByProjectSample.d.ts.map +1 -0
  189. package/dist-esm/samples-dev/vMwareCollectorsListByProjectSample.js +45 -0
  190. package/dist-esm/samples-dev/vMwareCollectorsListByProjectSample.js.map +1 -0
  191. package/dist-esm/src/azureMigrateV2.d.ts.map +1 -1
  192. package/dist-esm/src/azureMigrateV2.js +20 -2
  193. package/dist-esm/src/azureMigrateV2.js.map +1 -1
  194. package/package.json +30 -15
  195. package/rollup.config.js +6 -72
  196. package/src/azureMigrateV2.ts +27 -2
  197. package/tsconfig.json +18 -5
  198. package/types/tsdoc-metadata.json +1 -1
  199. package/LICENSE.txt +0 -21
@@ -0,0 +1,45 @@
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 { AzureMigrateV2 } from "@azure/arm-migrate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Update a specific private endpoint connection in the project.
15
+ *
16
+ * @summary Update a specific private endpoint connection in the project.
17
+ * x-ms-original-file: specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/PrivateEndpointConnections_Create.json
18
+ */
19
+ function privateEndpointConnectionsCreate() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "6393a73f-8d55-47ef-b6dd-179b3e0c7910";
22
+ const resourceGroupName = "abgoyal-westEurope";
23
+ const projectName = "abgoyalWEselfhostb72bproject";
24
+ const privateEndpointConnectionName = "custestpece80project3980pe.7e35576b-3df4-478e-9759-f64351cf4f43";
25
+ const privateEndpointConnectionBody = {
26
+ eTag: '"00009300-0000-0300-0000-602b967b0000"',
27
+ properties: {
28
+ privateLinkServiceConnectionState: {
29
+ description: undefined,
30
+ actionsRequired: "",
31
+ status: "Approved"
32
+ }
33
+ }
34
+ };
35
+ const options = {
36
+ privateEndpointConnectionBody
37
+ };
38
+ const credential = new DefaultAzureCredential();
39
+ const client = new AzureMigrateV2(credential, subscriptionId);
40
+ const result = yield client.privateEndpointConnectionOperations.update(resourceGroupName, projectName, privateEndpointConnectionName, options);
41
+ console.log(result);
42
+ });
43
+ }
44
+ privateEndpointConnectionsCreate().catch(console.error);
45
+ //# sourceMappingURL=privateEndpointConnectionUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,cAAc,EACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;QAC/C,MAAM,WAAW,GAAG,8BAA8B,CAAC;QACnD,MAAM,6BAA6B,GACjC,iEAAiE,CAAC;QACpE,MAAM,6BAA6B,GAA8B;YAC/D,IAAI,EAAE,wCAAwC;YAC9C,UAAU,EAAE;gBACV,iCAAiC,EAAE;oBACjC,WAAW,EAAE,SAAS;oBACtB,eAAe,EAAE,EAAE;oBACnB,MAAM,EAAE,UAAU;iBACnB;aACF;SACF,CAAC;QACF,MAAM,OAAO,GAAkD;YAC7D,6BAA6B;SAC9B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,mCAAmC,CAAC,MAAM,CACpE,iBAAiB,EACjB,WAAW,EACX,6BAA6B,EAC7B,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gCAAgC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateLinkResourceGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourceGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateLinkResourceGetSample.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 { AzureMigrateV2 } from "@azure/arm-migrate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get information related to a specific private Link Resource in the project. Returns a json object of type 'privateLinkResources' as specified in the models section.
15
+ *
16
+ * @summary Get information related to a specific private Link Resource in the project. Returns a json object of type 'privateLinkResources' as specified in the models section.
17
+ * x-ms-original-file: specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/PrivateLinkResources_Get.json
18
+ */
19
+ function privateLinkResourcesGet() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "4bd2aa0f-2bd2-4d67-91a8-5a4533d58600";
22
+ const resourceGroupName = "madhavicus";
23
+ const projectName = "custestpece80project";
24
+ const privateLinkResourceName = "Default";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureMigrateV2(credential, subscriptionId);
27
+ const result = yield client.privateLinkResourceOperations.get(resourceGroupName, projectName, privateLinkResourceName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ privateLinkResourcesGet().catch(console.error);
32
+ //# sourceMappingURL=privateLinkResourceGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourceGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateLinkResourceGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uBAAuB;;QACpC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,MAAM,WAAW,GAAG,sBAAsB,CAAC;QAC3C,MAAM,uBAAuB,GAAG,SAAS,CAAC;QAC1C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,6BAA6B,CAAC,GAAG,CAC3D,iBAAiB,EACjB,WAAW,EACX,uBAAuB,CACxB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateLinkResourceListByProjectSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourceListByProjectSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateLinkResourceListByProjectSample.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 { AzureMigrateV2 } from "@azure/arm-migrate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get all private link resources created in the project. Returns a json array of objects of type 'privateLinkResources' as specified in the Models section.
15
+ *
16
+ * @summary Get all private link resources created in the project. Returns a json array of objects of type 'privateLinkResources' as specified in the Models section.
17
+ * x-ms-original-file: specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/PrivateLinkResources_ListByProject.json
18
+ */
19
+ function privateLinkResourcesListByProject() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "4bd2aa0f-2bd2-4d67-91a8-5a4533d58600";
22
+ const resourceGroupName = "madhavicus";
23
+ const projectName = "custestpece80project";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new AzureMigrateV2(credential, subscriptionId);
26
+ const result = yield client.privateLinkResourceOperations.listByProject(resourceGroupName, projectName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ privateLinkResourcesListByProject().catch(console.error);
31
+ //# sourceMappingURL=privateLinkResourceListByProjectSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourceListByProjectSample.js","sourceRoot":"","sources":["../../samples-dev/privateLinkResourceListByProjectSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iCAAiC;;QAC9C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,MAAM,WAAW,GAAG,sBAAsB,CAAC;QAC3C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,6BAA6B,CAAC,aAAa,CACrE,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iCAAiC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=projectsAssessmentOptionsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsAssessmentOptionsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/projectsAssessmentOptionsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
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 { AzureMigrateV2 } from "@azure/arm-migrate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets list of all available options for the properties of an assessment on a project.
15
+ *
16
+ * @summary Gets list of all available options for the properties of an assessment on a project.
17
+ * x-ms-original-file: specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/AssessmentOptions_List.json
18
+ */
19
+ function assessmentOptionsGet() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "6393a73f-8d55-47ef-b6dd-179b3e0c7910";
23
+ const resourceGroupName = "abgoyal-westEurope";
24
+ const projectName = "abgoyalWEselfhostb72bproject";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureMigrateV2(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.projects.listAssessmentOptionsList(resourceGroupName, projectName)), _c; _c = yield _b.next(), !_c.done;) {
30
+ let item = _c.value;
31
+ resArray.push(item);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ assessmentOptionsGet().catch(console.error);
45
+ //# sourceMappingURL=projectsAssessmentOptionsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsAssessmentOptionsListSample.js","sourceRoot":"","sources":["../../samples-dev/projectsAssessmentOptionsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oBAAoB;;;QACjC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;QAC/C,MAAM,WAAW,GAAG,8BAA8B,CAAC;QACnD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9D,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,yBAAyB,CAC9D,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=projectsAssessmentOptionsSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsAssessmentOptionsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/projectsAssessmentOptionsSample.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 { AzureMigrateV2 } from "@azure/arm-migrate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get all available options for the properties of an assessment on a project.
15
+ *
16
+ * @summary Get all available options for the properties of an assessment on a project.
17
+ * x-ms-original-file: specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/AssessmentOptions_Get.json
18
+ */
19
+ function assessmentOptionsGet() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "6393a73f-8d55-47ef-b6dd-179b3e0c7910";
22
+ const resourceGroupName = "abgoyal-westEurope";
23
+ const projectName = "abgoyalWEselfhostb72bproject";
24
+ const assessmentOptionsName = "default";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureMigrateV2(credential, subscriptionId);
27
+ const result = yield client.projects.assessmentOptions(resourceGroupName, projectName, assessmentOptionsName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ assessmentOptionsGet().catch(console.error);
32
+ //# sourceMappingURL=projectsAssessmentOptionsSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsAssessmentOptionsSample.js","sourceRoot":"","sources":["../../samples-dev/projectsAssessmentOptionsSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;QAC/C,MAAM,WAAW,GAAG,8BAA8B,CAAC;QACnD,MAAM,qBAAqB,GAAG,SAAS,CAAC;QACxC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CACpD,iBAAiB,EACjB,WAAW,EACX,qBAAqB,CACtB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=projectsCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/projectsCreateSample.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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureMigrateV2 } from "@azure/arm-migrate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Create a project with specified name. If a project already exists, update it.
15
+ *
16
+ * @summary Create a project with specified name. If a project already exists, update it.
17
+ * x-ms-original-file: specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Projects_Create.json
18
+ */
19
+ function projectsCreate() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "6393a73f-8d55-47ef-b6dd-179b3e0c7910";
22
+ const resourceGroupName = "abgoyal-westEurope";
23
+ const projectName = "abGoyalProject2";
24
+ const project = {
25
+ eTag: "",
26
+ location: "West Europe",
27
+ properties: {
28
+ assessmentSolutionId: "/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/abgoyal-westeurope/providers/microsoft.migrate/migrateprojects/abgoyalweselfhost/Solutions/Servers-Assessment-ServerAssessment",
29
+ customerWorkspaceId: undefined,
30
+ customerWorkspaceLocation: undefined,
31
+ projectStatus: "Active"
32
+ },
33
+ tags: {}
34
+ };
35
+ const options = { project };
36
+ const credential = new DefaultAzureCredential();
37
+ const client = new AzureMigrateV2(credential, subscriptionId);
38
+ const result = yield client.projects.create(resourceGroupName, projectName, options);
39
+ console.log(result);
40
+ });
41
+ }
42
+ projectsCreate().catch(console.error);
43
+ //# sourceMappingURL=projectsCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/projectsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,cAAc,EACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,cAAc;;QAC3B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;QAC/C,MAAM,WAAW,GAAG,iBAAiB,CAAC;QACtC,MAAM,OAAO,GAAY;YACvB,IAAI,EAAE,EAAE;YACR,QAAQ,EAAE,aAAa;YACvB,UAAU,EAAE;gBACV,oBAAoB,EAClB,mMAAmM;gBACrM,mBAAmB,EAAE,SAAS;gBAC9B,yBAAyB,EAAE,SAAS;gBACpC,aAAa,EAAE,QAAQ;aACxB;YACD,IAAI,EAAE,EAAE;SACT,CAAC;QACF,MAAM,OAAO,GAAiC,EAAE,OAAO,EAAE,CAAC;QAC1D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CACzC,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,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=projectsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/projectsDeleteSample.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 { AzureMigrateV2 } from "@azure/arm-migrate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Delete the project. Deleting non-existent project is a no-operation.
15
+ *
16
+ * @summary Delete the project. Deleting non-existent project is a no-operation.
17
+ * x-ms-original-file: specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Projects_Delete.json
18
+ */
19
+ function projectsDelete() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "6393a73f-8d55-47ef-b6dd-179b3e0c7910";
22
+ const resourceGroupName = "abgoyal-westEurope";
23
+ const projectName = "abGoyalProject2";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new AzureMigrateV2(credential, subscriptionId);
26
+ const result = yield client.projects.delete(resourceGroupName, projectName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ projectsDelete().catch(console.error);
31
+ //# sourceMappingURL=projectsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/projectsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,cAAc;;QAC3B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;QAC/C,MAAM,WAAW,GAAG,iBAAiB,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAAC;QAC5E,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=projectsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/projectsGetSample.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 { AzureMigrateV2 } from "@azure/arm-migrate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get the project with the specified name.
15
+ *
16
+ * @summary Get the project with the specified name.
17
+ * x-ms-original-file: specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Projects_Get.json
18
+ */
19
+ function projectsGet() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "6393a73f-8d55-47ef-b6dd-179b3e0c7910";
22
+ const resourceGroupName = "abgoyal-westEurope";
23
+ const projectName = "abgoyalWEselfhostb72bproject";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new AzureMigrateV2(credential, subscriptionId);
26
+ const result = yield client.projects.get(resourceGroupName, projectName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ projectsGet().catch(console.error);
31
+ //# sourceMappingURL=projectsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsGetSample.js","sourceRoot":"","sources":["../../samples-dev/projectsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,WAAW;;QACxB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;QAC/C,MAAM,WAAW,GAAG,8BAA8B,CAAC;QACnD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAAC;QACzE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,WAAW,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=projectsListBySubscriptionSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsListBySubscriptionSample.d.ts","sourceRoot":"","sources":["../../samples-dev/projectsListBySubscriptionSample.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 { AzureMigrateV2 } from "@azure/arm-migrate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get all the projects in the subscription.
15
+ *
16
+ * @summary Get all the projects in the subscription.
17
+ * x-ms-original-file: specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/ProjectsInSubscription_List.json
18
+ */
19
+ function projectsList() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "6393a73f-8d55-47ef-b6dd-179b3e0c7910";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new AzureMigrateV2(credential, subscriptionId);
25
+ const resArray = new Array();
26
+ try {
27
+ for (var _b = __asyncValues(client.projects.listBySubscription()), _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
+ projectsList().catch(console.error);
43
+ //# sourceMappingURL=projectsListBySubscriptionSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsListBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/projectsListBySubscriptionSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,YAAY;;;QACzB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9D,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAA,IAAA;gBAAhD,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,YAAY,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=projectsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/projectsListSample.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 { AzureMigrateV2 } from "@azure/arm-migrate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get all the projects in the resource group.
15
+ *
16
+ * @summary Get all the projects in the resource group.
17
+ * x-ms-original-file: specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Projects_List.json
18
+ */
19
+ function projectsList() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "6393a73f-8d55-47ef-b6dd-179b3e0c7910";
23
+ const resourceGroupName = "abgoyal-westEurope";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new AzureMigrateV2(credential, subscriptionId);
26
+ const resArray = new Array();
27
+ try {
28
+ for (var _b = __asyncValues(client.projects.list(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
+ projectsList().catch(console.error);
44
+ //# sourceMappingURL=projectsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsListSample.js","sourceRoot":"","sources":["../../samples-dev/projectsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,YAAY;;;QACzB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;QAC/C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9D,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAA,IAAA;gBAAnD,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,YAAY,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=projectsUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/projectsUpdateSample.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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureMigrateV2 } from "@azure/arm-migrate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Update a project with specified name. Supports partial updates, for example only tags can be provided.
15
+ *
16
+ * @summary Update a project with specified name. Supports partial updates, for example only tags can be provided.
17
+ * x-ms-original-file: specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/Projects_Update.json
18
+ */
19
+ function projectsUpdate() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "6393a73f-8d55-47ef-b6dd-179b3e0c7910";
22
+ const resourceGroupName = "abgoyal-westEurope";
23
+ const projectName = "abGoyalProject2";
24
+ const project = {
25
+ eTag: "",
26
+ location: "West Europe",
27
+ properties: {
28
+ assessmentSolutionId: "/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/abgoyal-westeurope/providers/microsoft.migrate/migrateprojects/abgoyalweselfhost/Solutions/Servers-Assessment-ServerAssessment",
29
+ customerWorkspaceId: undefined,
30
+ customerWorkspaceLocation: undefined,
31
+ projectStatus: "Active"
32
+ },
33
+ tags: {}
34
+ };
35
+ const options = { project };
36
+ const credential = new DefaultAzureCredential();
37
+ const client = new AzureMigrateV2(credential, subscriptionId);
38
+ const result = yield client.projects.update(resourceGroupName, projectName, options);
39
+ console.log(result);
40
+ });
41
+ }
42
+ projectsUpdate().catch(console.error);
43
+ //# sourceMappingURL=projectsUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/projectsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,cAAc,EACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,cAAc;;QAC3B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;QAC/C,MAAM,WAAW,GAAG,iBAAiB,CAAC;QACtC,MAAM,OAAO,GAAY;YACvB,IAAI,EAAE,EAAE;YACR,QAAQ,EAAE,aAAa;YACvB,UAAU,EAAE;gBACV,oBAAoB,EAClB,mMAAmM;gBACrM,mBAAmB,EAAE,SAAS;gBAC9B,yBAAyB,EAAE,SAAS;gBACpC,aAAa,EAAE,QAAQ;aACxB;YACD,IAAI,EAAE,EAAE;SACT,CAAC;QACF,MAAM,OAAO,GAAiC,EAAE,OAAO,EAAE,CAAC;QAC1D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CACzC,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,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=serverCollectorsCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverCollectorsCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/serverCollectorsCreateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,48 @@
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 { AzureMigrateV2 } from "@azure/arm-migrate";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Create or Update Server collector
15
+ *
16
+ * @summary Create or Update Server collector
17
+ * x-ms-original-file: specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/examples/ServerCollectors_Create.json
18
+ */
19
+ function serverCollectorsCreate() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "4bd2aa0f-2bd2-4d67-91a8-5a4533d58600";
22
+ const resourceGroupName = "pajindtest";
23
+ const projectName = "app11141project";
24
+ const serverCollectorName = "app23df4collector";
25
+ const collectorBody = {
26
+ eTag: '"00000606-0000-0d00-0000-605999bf0000"',
27
+ properties: {
28
+ agentProperties: {
29
+ spnDetails: {
30
+ applicationId: "ad9f701a-cc08-4421-b51f-b5762d58e9ba",
31
+ audience: "https://72f988bf-86f1-41af-91ab-2d7cd011db47/app23df4authandaccessaadapp",
32
+ authority: "https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47",
33
+ objectId: "b4975e42-9248-4a36-b99f-37eca377ea00",
34
+ tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47"
35
+ }
36
+ },
37
+ discoverySiteId: "/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/pajindTest/providers/Microsoft.OffAzure/ServerSites/app21141site"
38
+ }
39
+ };
40
+ const options = { collectorBody };
41
+ const credential = new DefaultAzureCredential();
42
+ const client = new AzureMigrateV2(credential, subscriptionId);
43
+ const result = yield client.serverCollectors.create(resourceGroupName, projectName, serverCollectorName, options);
44
+ console.log(result);
45
+ });
46
+ }
47
+ serverCollectorsCreate().catch(console.error);
48
+ //# sourceMappingURL=serverCollectorsCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverCollectorsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/serverCollectorsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,cAAc,EACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACvC,MAAM,WAAW,GAAG,iBAAiB,CAAC;QACtC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;QAChD,MAAM,aAAa,GAAoB;YACrC,IAAI,EAAE,wCAAwC;YAC9C,UAAU,EAAE;gBACV,eAAe,EAAE;oBACf,UAAU,EAAE;wBACV,aAAa,EAAE,sCAAsC;wBACrD,QAAQ,EACN,0EAA0E;wBAC5E,SAAS,EACP,gEAAgE;wBAClE,QAAQ,EAAE,sCAAsC;wBAChD,QAAQ,EAAE,sCAAsC;qBACjD;iBACF;gBACD,eAAe,EACb,qIAAqI;aACxI;SACF,CAAC;QACF,MAAM,OAAO,GAAyC,EAAE,aAAa,EAAE,CAAC;QACxE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,MAAM,CACjD,iBAAiB,EACjB,WAAW,EACX,mBAAmB,EACnB,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"}