@azure/arm-visualstudio 3.0.0 → 4.0.0-beta.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 (219) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +1 -1
  4. package/README.md +70 -78
  5. package/dist/index.js +1332 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/samples-dev/checkAvailabilityOfAnAccountName.d.ts +2 -0
  10. package/dist-esm/samples-dev/checkAvailabilityOfAnAccountName.d.ts.map +1 -0
  11. package/dist-esm/samples-dev/checkAvailabilityOfAnAccountName.js +33 -0
  12. package/dist-esm/samples-dev/checkAvailabilityOfAnAccountName.js.map +1 -0
  13. package/dist-esm/samples-dev/createAProjectResource.d.ts +2 -0
  14. package/dist-esm/samples-dev/createAProjectResource.d.ts.map +1 -0
  15. package/dist-esm/samples-dev/createAProjectResource.js +43 -0
  16. package/dist-esm/samples-dev/createAProjectResource.js.map +1 -0
  17. package/dist-esm/samples-dev/createAnAccountResource.d.ts +2 -0
  18. package/dist-esm/samples-dev/createAnAccountResource.d.ts.map +1 -0
  19. package/dist-esm/samples-dev/createAnAccountResource.js +32 -0
  20. package/dist-esm/samples-dev/createAnAccountResource.js.map +1 -0
  21. package/dist-esm/samples-dev/createAnExtensionResource.d.ts +2 -0
  22. package/dist-esm/samples-dev/createAnExtensionResource.d.ts.map +1 -0
  23. package/dist-esm/samples-dev/createAnExtensionResource.js +44 -0
  24. package/dist-esm/samples-dev/createAnExtensionResource.js.map +1 -0
  25. package/dist-esm/samples-dev/deleteAnAccountResource.d.ts +2 -0
  26. package/dist-esm/samples-dev/deleteAnAccountResource.d.ts.map +1 -0
  27. package/dist-esm/samples-dev/deleteAnAccountResource.js +31 -0
  28. package/dist-esm/samples-dev/deleteAnAccountResource.js.map +1 -0
  29. package/dist-esm/samples-dev/deleteAnExtensionResource.d.ts +2 -0
  30. package/dist-esm/samples-dev/deleteAnExtensionResource.d.ts.map +1 -0
  31. package/dist-esm/samples-dev/deleteAnExtensionResource.js +32 -0
  32. package/dist-esm/samples-dev/deleteAnExtensionResource.js.map +1 -0
  33. package/dist-esm/samples-dev/getAListOfAccountResourcesInTheResourceGroup.d.ts +2 -0
  34. package/dist-esm/samples-dev/getAListOfAccountResourcesInTheResourceGroup.d.ts.map +1 -0
  35. package/dist-esm/samples-dev/getAListOfAccountResourcesInTheResourceGroup.js +30 -0
  36. package/dist-esm/samples-dev/getAListOfAccountResourcesInTheResourceGroup.js.map +1 -0
  37. package/dist-esm/samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.d.ts +2 -0
  38. package/dist-esm/samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.d.ts.map +1 -0
  39. package/dist-esm/samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.js +31 -0
  40. package/dist-esm/samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.js.map +1 -0
  41. package/dist-esm/samples-dev/getAListOfOperationsForThisResourceProvider.d.ts +2 -0
  42. package/dist-esm/samples-dev/getAListOfOperationsForThisResourceProvider.d.ts.map +1 -0
  43. package/dist-esm/samples-dev/getAListOfOperationsForThisResourceProvider.js +29 -0
  44. package/dist-esm/samples-dev/getAListOfOperationsForThisResourceProvider.js.map +1 -0
  45. package/dist-esm/samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.d.ts +2 -0
  46. package/dist-esm/samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.d.ts.map +1 -0
  47. package/dist-esm/samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.js +31 -0
  48. package/dist-esm/samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.js.map +1 -0
  49. package/dist-esm/samples-dev/getAProjectResource.d.ts +2 -0
  50. package/dist-esm/samples-dev/getAProjectResource.d.ts.map +1 -0
  51. package/dist-esm/samples-dev/getAProjectResource.js +32 -0
  52. package/dist-esm/samples-dev/getAProjectResource.js.map +1 -0
  53. package/dist-esm/samples-dev/getAnAccountResource.d.ts +2 -0
  54. package/dist-esm/samples-dev/getAnAccountResource.d.ts.map +1 -0
  55. package/dist-esm/samples-dev/getAnAccountResource.js +31 -0
  56. package/dist-esm/samples-dev/getAnAccountResource.js.map +1 -0
  57. package/dist-esm/samples-dev/getAnExtensionResource.d.ts +2 -0
  58. package/dist-esm/samples-dev/getAnExtensionResource.d.ts.map +1 -0
  59. package/dist-esm/samples-dev/getAnExtensionResource.js +32 -0
  60. package/dist-esm/samples-dev/getAnExtensionResource.js.map +1 -0
  61. package/dist-esm/samples-dev/getTheStatusOfTheProjectCreationJob.d.ts +2 -0
  62. package/dist-esm/samples-dev/getTheStatusOfTheProjectCreationJob.d.ts.map +1 -0
  63. package/dist-esm/samples-dev/getTheStatusOfTheProjectCreationJob.js +36 -0
  64. package/dist-esm/samples-dev/getTheStatusOfTheProjectCreationJob.js.map +1 -0
  65. package/dist-esm/samples-dev/updateAProjectResource.d.ts +2 -0
  66. package/dist-esm/samples-dev/updateAProjectResource.d.ts.map +1 -0
  67. package/dist-esm/samples-dev/updateAProjectResource.js +40 -0
  68. package/dist-esm/samples-dev/updateAProjectResource.js.map +1 -0
  69. package/dist-esm/samples-dev/updateAnExtensionResource.d.ts +2 -0
  70. package/dist-esm/samples-dev/updateAnExtensionResource.d.ts.map +1 -0
  71. package/dist-esm/samples-dev/updateAnExtensionResource.js +44 -0
  72. package/dist-esm/samples-dev/updateAnExtensionResource.js.map +1 -0
  73. package/dist-esm/src/index.d.ts +4 -0
  74. package/dist-esm/src/index.d.ts.map +1 -0
  75. package/dist-esm/src/index.js +11 -0
  76. package/dist-esm/src/index.js.map +1 -0
  77. package/dist-esm/src/lroImpl.d.ts +16 -0
  78. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  79. package/dist-esm/src/lroImpl.js +29 -0
  80. package/dist-esm/src/lroImpl.js.map +1 -0
  81. package/dist-esm/src/models/index.d.ts +253 -0
  82. package/dist-esm/src/models/index.d.ts.map +1 -0
  83. package/{esm → dist-esm/src}/models/index.js +1 -0
  84. package/dist-esm/src/models/index.js.map +1 -0
  85. package/dist-esm/src/models/mappers.d.ts +18 -0
  86. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  87. package/{esm → dist-esm/src}/models/mappers.js +168 -223
  88. package/dist-esm/src/models/mappers.js.map +1 -0
  89. package/dist-esm/src/models/parameters.d.ts +21 -0
  90. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  91. package/{esm → dist-esm/src}/models/parameters.js +84 -46
  92. package/dist-esm/src/models/parameters.js.map +1 -0
  93. package/dist-esm/src/operations/accounts.d.ts +57 -0
  94. package/dist-esm/src/operations/accounts.d.ts.map +1 -0
  95. package/dist-esm/src/operations/accounts.js +185 -0
  96. package/dist-esm/src/operations/accounts.js.map +1 -0
  97. package/dist-esm/src/operations/extensions.d.ts +54 -0
  98. package/dist-esm/src/operations/extensions.d.ts.map +1 -0
  99. package/dist-esm/src/operations/extensions.js +190 -0
  100. package/dist-esm/src/operations/extensions.js.map +1 -0
  101. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  102. package/dist-esm/src/operations/index.d.ts.map +1 -0
  103. package/{esm → dist-esm/src}/operations/index.js +1 -2
  104. package/dist-esm/src/operations/index.js.map +1 -0
  105. package/dist-esm/src/operations/operations.d.ts +18 -0
  106. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  107. package/dist-esm/src/operations/operations.js +42 -0
  108. package/dist-esm/src/operations/operations.js.map +1 -0
  109. package/dist-esm/src/operations/projects.d.ts +77 -0
  110. package/dist-esm/src/operations/projects.d.ts.map +1 -0
  111. package/dist-esm/src/operations/projects.js +253 -0
  112. package/dist-esm/src/operations/projects.js.map +1 -0
  113. package/dist-esm/src/operationsInterfaces/accounts.d.ts +49 -0
  114. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
  115. package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/accounts.js} +2 -7
  116. package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
  117. package/dist-esm/src/operationsInterfaces/extensions.d.ts +46 -0
  118. package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +1 -0
  119. package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/extensions.js} +2 -2
  120. package/dist-esm/src/operationsInterfaces/extensions.js.map +1 -0
  121. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  122. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  123. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  124. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  125. package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
  126. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  127. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  128. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  129. package/dist-esm/src/operationsInterfaces/projects.d.ts +69 -0
  130. package/dist-esm/src/operationsInterfaces/projects.d.ts.map +1 -0
  131. package/dist-esm/src/operationsInterfaces/projects.js +9 -0
  132. package/dist-esm/src/operationsInterfaces/projects.js.map +1 -0
  133. package/dist-esm/src/visualStudioResourceProviderClient.d.ts +21 -0
  134. package/dist-esm/src/visualStudioResourceProviderClient.d.ts.map +1 -0
  135. package/dist-esm/src/visualStudioResourceProviderClient.js +54 -0
  136. package/dist-esm/src/visualStudioResourceProviderClient.js.map +1 -0
  137. package/dist-esm/test/sampleTest.d.ts +2 -0
  138. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  139. package/dist-esm/test/sampleTest.js +40 -0
  140. package/dist-esm/test/sampleTest.js.map +1 -0
  141. package/package.json +79 -33
  142. package/review/arm-visualstudio.api.md +314 -0
  143. package/rollup.config.js +181 -30
  144. package/src/{models/projectsMappers.ts → index.ts} +3 -10
  145. package/src/lroImpl.ts +34 -0
  146. package/src/models/index.ts +224 -547
  147. package/src/models/mappers.ts +172 -227
  148. package/src/models/parameters.ts +113 -47
  149. package/src/operations/accounts.ts +149 -286
  150. package/src/operations/extensions.ts +130 -231
  151. package/src/operations/index.ts +1 -2
  152. package/src/operations/operations.ts +26 -42
  153. package/src/operations/projects.ts +237 -278
  154. package/src/operationsInterfaces/accounts.ts +96 -0
  155. package/src/operationsInterfaces/extensions.ts +91 -0
  156. package/src/operationsInterfaces/index.ts +12 -0
  157. package/src/operationsInterfaces/operations.ts +21 -0
  158. package/src/operationsInterfaces/projects.ts +128 -0
  159. package/src/visualStudioResourceProviderClient.ts +76 -38
  160. package/tsconfig.json +5 -4
  161. package/types/arm-visualstudio.d.ts +493 -0
  162. package/types/tsdoc-metadata.json +11 -0
  163. package/dist/arm-visualstudio.js +0 -1546
  164. package/dist/arm-visualstudio.js.map +0 -1
  165. package/dist/arm-visualstudio.min.js +0 -1
  166. package/dist/arm-visualstudio.min.js.map +0 -1
  167. package/esm/models/accountsMappers.d.ts +0 -2
  168. package/esm/models/accountsMappers.d.ts.map +0 -1
  169. package/esm/models/accountsMappers.js +0 -9
  170. package/esm/models/accountsMappers.js.map +0 -1
  171. package/esm/models/extensionsMappers.d.ts +0 -2
  172. package/esm/models/extensionsMappers.d.ts.map +0 -1
  173. package/esm/models/extensionsMappers.js +0 -9
  174. package/esm/models/extensionsMappers.js.map +0 -1
  175. package/esm/models/index.d.ts +0 -579
  176. package/esm/models/index.d.ts.map +0 -1
  177. package/esm/models/index.js.map +0 -1
  178. package/esm/models/mappers.d.ts +0 -20
  179. package/esm/models/mappers.d.ts.map +0 -1
  180. package/esm/models/mappers.js.map +0 -1
  181. package/esm/models/operationsMappers.d.ts +0 -2
  182. package/esm/models/operationsMappers.d.ts.map +0 -1
  183. package/esm/models/operationsMappers.js.map +0 -1
  184. package/esm/models/parameters.d.ts +0 -14
  185. package/esm/models/parameters.d.ts.map +0 -1
  186. package/esm/models/parameters.js.map +0 -1
  187. package/esm/models/projectsMappers.d.ts +0 -2
  188. package/esm/models/projectsMappers.d.ts.map +0 -1
  189. package/esm/models/projectsMappers.js +0 -9
  190. package/esm/models/projectsMappers.js.map +0 -1
  191. package/esm/operations/accounts.d.ts +0 -147
  192. package/esm/operations/accounts.d.ts.map +0 -1
  193. package/esm/operations/accounts.js +0 -223
  194. package/esm/operations/accounts.js.map +0 -1
  195. package/esm/operations/extensions.d.ts +0 -141
  196. package/esm/operations/extensions.d.ts.map +0 -1
  197. package/esm/operations/extensions.js +0 -199
  198. package/esm/operations/extensions.js.map +0 -1
  199. package/esm/operations/index.d.ts.map +0 -1
  200. package/esm/operations/index.js.map +0 -1
  201. package/esm/operations/operations.d.ts +0 -29
  202. package/esm/operations/operations.d.ts.map +0 -1
  203. package/esm/operations/operations.js +0 -47
  204. package/esm/operations/operations.js.map +0 -1
  205. package/esm/operations/projects.d.ts +0 -165
  206. package/esm/operations/projects.d.ts.map +0 -1
  207. package/esm/operations/projects.js +0 -243
  208. package/esm/operations/projects.js.map +0 -1
  209. package/esm/visualStudioResourceProviderClient.d.ts +0 -27
  210. package/esm/visualStudioResourceProviderClient.d.ts.map +0 -1
  211. package/esm/visualStudioResourceProviderClient.js +0 -40
  212. package/esm/visualStudioResourceProviderClient.js.map +0 -1
  213. package/esm/visualStudioResourceProviderClientContext.d.ts +0 -22
  214. package/esm/visualStudioResourceProviderClientContext.d.ts.map +0 -1
  215. package/esm/visualStudioResourceProviderClientContext.js +0 -60
  216. package/esm/visualStudioResourceProviderClientContext.js.map +0 -1
  217. package/src/models/accountsMappers.ts +0 -22
  218. package/src/models/extensionsMappers.ts +0 -19
  219. package/src/visualStudioResourceProviderClientContext.ts +0 -67
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Gets all Visual Studio Team Services account resources under the resource group linked to the specified Azure subscription.
13
+ *
14
+ * @summary Gets all Visual Studio Team Services account resources under the resource group linked to the specified Azure subscription.
15
+ * x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/GetResources_List.json
16
+ */
17
+ import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function getAListOfAccountResourcesInTheResourceGroup() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "0de7f055-dbea-498d-8e9e-da287eedca90";
22
+ const resourceGroupName = "VS-Example-Group";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
25
+ const result = yield client.accounts.listByResourceGroup(resourceGroupName);
26
+ console.log(result);
27
+ });
28
+ }
29
+ getAListOfAccountResourcesInTheResourceGroup().catch(console.error);
30
+ //# sourceMappingURL=getAListOfAccountResourcesInTheResourceGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAListOfAccountResourcesInTheResourceGroup.js","sourceRoot":"","sources":["../../samples-dev/getAListOfAccountResourcesInTheResourceGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,4CAA4C;;QACzD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kCAAkC,CACnD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;QAC5E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,4CAA4C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getAListOfExtensionResourcesWithinTheResourceGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAListOfExtensionResourcesWithinTheResourceGroup.d.ts","sourceRoot":"","sources":["../../samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.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
+ /**
12
+ * This sample demonstrates how to Gets the details of the extension resources created within the resource group.
13
+ *
14
+ * @summary Gets the details of the extension resources created within the resource group.
15
+ * x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/GetExtensionResources_List.json
16
+ */
17
+ import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function getAListOfExtensionResourcesWithinTheResourceGroup() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "0de7f055-dbea-498d-8e9e-da287eedca90";
22
+ const resourceGroupName = "VS-Example-Group";
23
+ const accountResourceName = "ExampleAccount";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
26
+ const result = yield client.extensions.listByAccount(resourceGroupName, accountResourceName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ getAListOfExtensionResourcesWithinTheResourceGroup().catch(console.error);
31
+ //# sourceMappingURL=getAListOfExtensionResourcesWithinTheResourceGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAListOfExtensionResourcesWithinTheResourceGroup.js","sourceRoot":"","sources":["../../samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,kDAAkD;;QAC/D,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;QAC7C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kCAAkC,CACnD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,aAAa,CAClD,iBAAiB,EACjB,mBAAmB,CACpB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kDAAkD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getAListOfOperationsForThisResourceProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAListOfOperationsForThisResourceProvider.d.ts","sourceRoot":"","sources":["../../samples-dev/getAListOfOperationsForThisResourceProvider.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Gets the details of all operations possible on the Microsoft.VisualStudio resource provider.
13
+ *
14
+ * @summary Gets the details of all operations possible on the Microsoft.VisualStudio resource provider.
15
+ * x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/GetOperations.json
16
+ */
17
+ import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function getAListOfOperationsForThisResourceProvider() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const credential = new DefaultAzureCredential();
23
+ const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
24
+ const result = yield client.operations.list();
25
+ console.log(result);
26
+ });
27
+ }
28
+ getAListOfOperationsForThisResourceProvider().catch(console.error);
29
+ //# sourceMappingURL=getAListOfOperationsForThisResourceProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAListOfOperationsForThisResourceProvider.js","sourceRoot":"","sources":["../../samples-dev/getAListOfOperationsForThisResourceProvider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,2CAA2C;;QACxD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kCAAkC,CACnD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QAC9C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2CAA2C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getAListOfProjectResourcesInTheTeamServicesAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAListOfProjectResourcesInTheTeamServicesAccount.d.ts","sourceRoot":"","sources":["../../samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.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
+ /**
12
+ * This sample demonstrates how to Gets all Visual Studio Team Services project resources created in the specified Team Services account.
13
+ *
14
+ * @summary Gets all Visual Studio Team Services project resources created in the specified Team Services account.
15
+ * x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/GetProjectResources_List.json
16
+ */
17
+ import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function getAListOfProjectResourcesInTheTeamServicesAccount() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "0de7f055-dbea-498d-8e9e-da287eedca90";
22
+ const resourceGroupName = "VS-Example-Group";
23
+ const rootResourceName = "ExampleAccount";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
26
+ const result = yield client.projects.listByResourceGroup(resourceGroupName, rootResourceName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ getAListOfProjectResourcesInTheTeamServicesAccount().catch(console.error);
31
+ //# sourceMappingURL=getAListOfProjectResourcesInTheTeamServicesAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAListOfProjectResourcesInTheTeamServicesAccount.js","sourceRoot":"","sources":["../../samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,kDAAkD;;QAC/D,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;QAC1C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kCAAkC,CACnD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CACtD,iBAAiB,EACjB,gBAAgB,CACjB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kDAAkD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getAProjectResource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAProjectResource.d.ts","sourceRoot":"","sources":["../../samples-dev/getAProjectResource.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
+ /**
12
+ * This sample demonstrates how to Gets the details of a Team Services project resource.
13
+ *
14
+ * @summary Gets the details of a Team Services project resource.
15
+ * x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/GetProjectResource.json
16
+ */
17
+ import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function getAProjectResource() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "0de7f055-dbea-498d-8e9e-da287eedca90";
22
+ const resourceGroupName = "VS-Example-Group";
23
+ const rootResourceName = "ExampleAccount";
24
+ const resourceName = "ExampleProject";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
27
+ const result = yield client.projects.get(resourceGroupName, rootResourceName, resourceName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ getAProjectResource().catch(console.error);
32
+ //# sourceMappingURL=getAProjectResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAProjectResource.js","sourceRoot":"","sources":["../../samples-dev/getAProjectResource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;QAC1C,MAAM,YAAY,GAAG,gBAAgB,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kCAAkC,CACnD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CACtC,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getAnAccountResource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAnAccountResource.d.ts","sourceRoot":"","sources":["../../samples-dev/getAnAccountResource.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
+ /**
12
+ * This sample demonstrates how to Gets the Visual Studio Team Services account resource details.
13
+ *
14
+ * @summary Gets the Visual Studio Team Services account resource details.
15
+ * x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/GetResource.json
16
+ */
17
+ import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function getAnAccountResource() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "0de7f055-dbea-498d-8e9e-da287eedca90";
22
+ const resourceGroupName = "VS-Example-Group";
23
+ const resourceName = "Example";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
26
+ const result = yield client.accounts.get(resourceGroupName, resourceName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ getAnAccountResource().catch(console.error);
31
+ //# sourceMappingURL=getAnAccountResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAnAccountResource.js","sourceRoot":"","sources":["../../samples-dev/getAnAccountResource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kCAAkC,CACnD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;QAC1E,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=getAnExtensionResource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAnExtensionResource.d.ts","sourceRoot":"","sources":["../../samples-dev/getAnExtensionResource.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
+ /**
12
+ * This sample demonstrates how to Gets the details of an extension associated with a Visual Studio Team Services account resource.
13
+ *
14
+ * @summary Gets the details of an extension associated with a Visual Studio Team Services account resource.
15
+ * x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/GetExtensionResource.json
16
+ */
17
+ import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function getAnExtensionResource() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "0de7f055-dbea-498d-8e9e-da287eedca90";
22
+ const resourceGroupName = "VS-Example-Group";
23
+ const accountResourceName = "ExampleAccount";
24
+ const extensionResourceName = "ms.example";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
27
+ const result = yield client.extensions.get(resourceGroupName, accountResourceName, extensionResourceName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ getAnExtensionResource().catch(console.error);
32
+ //# sourceMappingURL=getAnExtensionResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAnExtensionResource.js","sourceRoot":"","sources":["../../samples-dev/getAnExtensionResource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;QAC7C,MAAM,qBAAqB,GAAG,YAAY,CAAC;QAC3C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kCAAkC,CACnD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,GAAG,CACxC,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,CACtB,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=getTheStatusOfTheProjectCreationJob.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTheStatusOfTheProjectCreationJob.d.ts","sourceRoot":"","sources":["../../samples-dev/getTheStatusOfTheProjectCreationJob.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Gets the status of the project resource creation job.
13
+ *
14
+ * @summary Gets the status of the project resource creation job.
15
+ * x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/GetProjectJobStatus.json
16
+ */
17
+ import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function getTheStatusOfTheProjectCreationJob() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "0de7f055-dbea-498d-8e9e-da287eedca90";
22
+ const resourceGroupName = "VS-Example-Group";
23
+ const rootResourceName = "ExampleAccount";
24
+ const resourceName = "ExampleProject";
25
+ const subContainerName = "ExampleProject";
26
+ const operation = "put";
27
+ const jobId = "126167d2-d710-4b5d-80a8-a1d58717142d";
28
+ const options = { jobId: jobId };
29
+ const credential = new DefaultAzureCredential();
30
+ const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
31
+ const result = yield client.projects.getJobStatus(resourceGroupName, rootResourceName, resourceName, subContainerName, operation, options);
32
+ console.log(result);
33
+ });
34
+ }
35
+ getTheStatusOfTheProjectCreationJob().catch(console.error);
36
+ //# sourceMappingURL=getTheStatusOfTheProjectCreationJob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTheStatusOfTheProjectCreationJob.js","sourceRoot":"","sources":["../../samples-dev/getTheStatusOfTheProjectCreationJob.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,mCAAmC;;QAChD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;QAC1C,MAAM,YAAY,GAAG,gBAAgB,CAAC;QACtC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;QAC1C,MAAM,SAAS,GAAG,KAAK,CAAC;QACxB,MAAM,KAAK,GAAG,sCAAsC,CAAC;QACrD,MAAM,OAAO,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kCAAkC,CACnD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,YAAY,CAC/C,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mCAAmC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=updateAProjectResource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateAProjectResource.d.ts","sourceRoot":"","sources":["../../samples-dev/updateAProjectResource.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Updates the tags of the specified Team Services project.
13
+ *
14
+ * @summary Updates the tags of the specified Team Services project.
15
+ * x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/UpdateProjectResource.json
16
+ */
17
+ import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function updateAProjectResource() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "0de7f055-dbea-498d-8e9e-da287eedca90";
22
+ const resourceGroupName = "VS-Example-Group";
23
+ const rootResourceName = "ExampleAccount";
24
+ const resourceName = "ExampleProject";
25
+ const body = {
26
+ name: "ms.example",
27
+ type: "Microsoft.VisualStudio/account/extension",
28
+ id: "/subscriptions/0de7f055-dbea-498d-8e9e-da287eedca90/resourceGroups/VS-Example-Group/providers/microsoft.visualstudio/account/ExampleAccount/project/ExampleProject",
29
+ location: "Central US",
30
+ properties: {},
31
+ tags: {}
32
+ };
33
+ const credential = new DefaultAzureCredential();
34
+ const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
35
+ const result = yield client.projects.update(resourceGroupName, rootResourceName, resourceName, body);
36
+ console.log(result);
37
+ });
38
+ }
39
+ updateAProjectResource().catch(console.error);
40
+ //# sourceMappingURL=updateAProjectResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateAProjectResource.js","sourceRoot":"","sources":["../../samples-dev/updateAProjectResource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,kCAAkC,EACnC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;QAC1C,MAAM,YAAY,GAAG,gBAAgB,CAAC;QACtC,MAAM,IAAI,GAAoB;YAC5B,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,0CAA0C;YAChD,EAAE,EACA,oKAAoK;YACtK,QAAQ,EAAE,YAAY;YACtB,UAAU,EAAE,EAAE;YACd,IAAI,EAAE,EAAE;SACT,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kCAAkC,CACnD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CACzC,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,IAAI,CACL,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=updateAnExtensionResource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateAnExtensionResource.d.ts","sourceRoot":"","sources":["../../samples-dev/updateAnExtensionResource.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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Updates an existing extension registration for the Visual Studio Team Services account.
13
+ *
14
+ * @summary Updates an existing extension registration for the Visual Studio Team Services account.
15
+ * x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/UpdateExtensionResource.json
16
+ */
17
+ import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function updateAnExtensionResource() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "0de7f055-dbea-498d-8e9e-da287eedca90";
22
+ const resourceGroupName = "VS-Example-Group";
23
+ const accountResourceName = "ExampleAccount";
24
+ const extensionResourceName = "Example";
25
+ const body = {
26
+ location: "Central US",
27
+ plan: {
28
+ name: "ExamplePlan",
29
+ product: "ExampleExtensionName",
30
+ promotionCode: "",
31
+ publisher: "ExampleExtensionPublisher",
32
+ version: "1.0"
33
+ },
34
+ properties: {},
35
+ tags: {}
36
+ };
37
+ const credential = new DefaultAzureCredential();
38
+ const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
39
+ const result = yield client.extensions.update(resourceGroupName, accountResourceName, extensionResourceName, body);
40
+ console.log(result);
41
+ });
42
+ }
43
+ updateAnExtensionResource().catch(console.error);
44
+ //# sourceMappingURL=updateAnExtensionResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateAnExtensionResource.js","sourceRoot":"","sources":["../../samples-dev/updateAnExtensionResource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,kCAAkC,EACnC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,yBAAyB;;QACtC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;QAC7C,MAAM,qBAAqB,GAAG,SAAS,CAAC;QACxC,MAAM,IAAI,GAA6B;YACrC,QAAQ,EAAE,YAAY;YACtB,IAAI,EAAE;gBACJ,IAAI,EAAE,aAAa;gBACnB,OAAO,EAAE,sBAAsB;gBAC/B,aAAa,EAAE,EAAE;gBACjB,SAAS,EAAE,2BAA2B;gBACtC,OAAO,EAAE,KAAK;aACf;YACD,UAAU,EAAE,EAAE;YACd,IAAI,EAAE,EAAE;SACT,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kCAAkC,CACnD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,MAAM,CAC3C,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,IAAI,CACL,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,4 @@
1
+ export * from "./models";
2
+ export { VisualStudioResourceProviderClient } from "./visualStudioResourceProviderClient";
3
+ export * from "./operationsInterfaces";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC1F,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,11 @@
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
+ export * from "./models";
9
+ export { VisualStudioResourceProviderClient } from "./visualStudioResourceProviderClient";
10
+ export * from "./operationsInterfaces";
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC1F,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { LongRunningOperation, LroResponse } from "@azure/core-lro";
2
+ export declare class LroImpl<T> implements LongRunningOperation<T> {
3
+ private sendOperationFn;
4
+ private args;
5
+ private spec;
6
+ requestPath: string;
7
+ requestMethod: string;
8
+ constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
9
+ readonly requestBody?: unknown;
10
+ readonly path?: string;
11
+ readonly httpMethod: string;
12
+ } & Record<string, any>, requestPath?: string, requestMethod?: string);
13
+ sendInitialRequest(): Promise<LroResponse<T>>;
14
+ sendPollRequest(path: string): Promise<LroResponse<T>>;
15
+ }
16
+ //# sourceMappingURL=lroImpl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,qBAAa,OAAO,CAAC,CAAC,CAAE,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAEtD,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,IAAI;IAKL,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,MAAM;gBARpB,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAClE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE;QACZ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAChB,WAAW,GAAE,MAAmB,EAChC,aAAa,GAAE,MAAwB;IAEnC,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAG7C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAQpE"}
@@ -0,0 +1,29 @@
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, __rest } from "tslib";
9
+ export class LroImpl {
10
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
11
+ this.sendOperationFn = sendOperationFn;
12
+ this.args = args;
13
+ this.spec = spec;
14
+ this.requestPath = requestPath;
15
+ this.requestMethod = requestMethod;
16
+ }
17
+ sendInitialRequest() {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ return this.sendOperationFn(this.args, this.spec);
20
+ });
21
+ }
22
+ sendPollRequest(path) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
25
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
26
+ });
27
+ }
28
+ }
29
+ //# sourceMappingURL=lroImpl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACS,kBAAkB;;YAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC;KAAA;IACY,eAAe,CAAC,IAAY;;YACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;YAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;QACL,CAAC;KAAA;CACF"}