@azure/arm-visualstudio 2.2.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 (230) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +21 -21
  4. package/README.md +98 -96
  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/dist-esm/src/models/index.js +9 -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 +171 -228
  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 +86 -49
  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 +3 -5
  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/dist-esm/src/operationsInterfaces/accounts.js +9 -0
  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/dist-esm/src/operationsInterfaces/extensions.js +9 -0
  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 +83 -34
  142. package/review/arm-visualstudio.api.md +314 -0
  143. package/rollup.config.js +184 -27
  144. package/src/index.ts +11 -0
  145. package/src/lroImpl.ts +34 -0
  146. package/src/models/index.ts +298 -0
  147. package/{lib → src}/models/mappers.ts +175 -232
  148. package/src/models/parameters.ts +201 -0
  149. package/src/operations/accounts.ts +261 -0
  150. package/src/operations/extensions.ts +259 -0
  151. package/{lib → src}/operations/index.ts +3 -5
  152. package/src/operations/operations.ts +55 -0
  153. package/src/operations/projects.ts +356 -0
  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 +91 -0
  160. package/tsconfig.json +6 -5
  161. package/types/arm-visualstudio.d.ts +493 -0
  162. package/types/tsdoc-metadata.json +11 -0
  163. package/dist/arm-visualstudio.js +0 -1562
  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 -11
  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 -11
  174. package/esm/models/extensionsMappers.js.map +0 -1
  175. package/esm/models/index.d.ts +0 -671
  176. package/esm/models/index.d.ts.map +0 -1
  177. package/esm/models/index.js +0 -10
  178. package/esm/models/index.js.map +0 -1
  179. package/esm/models/mappers.d.ts +0 -20
  180. package/esm/models/mappers.d.ts.map +0 -1
  181. package/esm/models/mappers.js.map +0 -1
  182. package/esm/models/operationsMappers.d.ts +0 -2
  183. package/esm/models/operationsMappers.d.ts.map +0 -1
  184. package/esm/models/operationsMappers.js +0 -11
  185. package/esm/models/operationsMappers.js.map +0 -1
  186. package/esm/models/parameters.d.ts +0 -14
  187. package/esm/models/parameters.d.ts.map +0 -1
  188. package/esm/models/parameters.js.map +0 -1
  189. package/esm/models/projectsMappers.d.ts +0 -2
  190. package/esm/models/projectsMappers.d.ts.map +0 -1
  191. package/esm/models/projectsMappers.js +0 -11
  192. package/esm/models/projectsMappers.js.map +0 -1
  193. package/esm/operations/accounts.d.ts +0 -147
  194. package/esm/operations/accounts.d.ts.map +0 -1
  195. package/esm/operations/accounts.js +0 -224
  196. package/esm/operations/accounts.js.map +0 -1
  197. package/esm/operations/extensions.d.ts +0 -141
  198. package/esm/operations/extensions.d.ts.map +0 -1
  199. package/esm/operations/extensions.js +0 -200
  200. package/esm/operations/extensions.js.map +0 -1
  201. package/esm/operations/index.d.ts.map +0 -1
  202. package/esm/operations/index.js.map +0 -1
  203. package/esm/operations/operations.d.ts +0 -29
  204. package/esm/operations/operations.d.ts.map +0 -1
  205. package/esm/operations/operations.js +0 -48
  206. package/esm/operations/operations.js.map +0 -1
  207. package/esm/operations/projects.d.ts +0 -153
  208. package/esm/operations/projects.d.ts.map +0 -1
  209. package/esm/operations/projects.js +0 -244
  210. package/esm/operations/projects.js.map +0 -1
  211. package/esm/visualStudioResourceProviderClient.d.ts +0 -21
  212. package/esm/visualStudioResourceProviderClient.d.ts.map +0 -1
  213. package/esm/visualStudioResourceProviderClient.js +0 -36
  214. package/esm/visualStudioResourceProviderClient.js.map +0 -1
  215. package/esm/visualStudioResourceProviderClientContext.d.ts +0 -16
  216. package/esm/visualStudioResourceProviderClientContext.d.ts.map +0 -1
  217. package/esm/visualStudioResourceProviderClientContext.js +0 -56
  218. package/esm/visualStudioResourceProviderClientContext.js.map +0 -1
  219. package/lib/models/accountsMappers.ts +0 -25
  220. package/lib/models/extensionsMappers.ts +0 -22
  221. package/lib/models/index.ts +0 -701
  222. package/lib/models/operationsMappers.ts +0 -17
  223. package/lib/models/parameters.ts +0 -136
  224. package/lib/models/projectsMappers.ts +0 -21
  225. package/lib/operations/accounts.ts +0 -399
  226. package/lib/operations/extensions.ts +0 -361
  227. package/lib/operations/operations.ts +0 -72
  228. package/lib/operations/projects.ts +0 -386
  229. package/lib/visualStudioResourceProviderClient.ts +0 -48
  230. package/lib/visualStudioResourceProviderClientContext.ts +0 -62
@@ -0,0 +1,49 @@
1
+ import { CheckNameAvailabilityParameter, AccountsCheckNameAvailabilityOptionalParams, AccountsCheckNameAvailabilityResponse, AccountsListByResourceGroupOptionalParams, AccountsListByResourceGroupResponse, AccountResourceRequest, AccountsCreateOrUpdateOptionalParams, AccountsCreateOrUpdateResponse, AccountsDeleteOptionalParams, AccountsGetOptionalParams, AccountsGetResponse, AccountTagRequest, AccountsUpdateOptionalParams, AccountsUpdateResponse } from "../models";
2
+ /** Interface representing a Accounts. */
3
+ export interface Accounts {
4
+ /**
5
+ * Checks if the specified Visual Studio Team Services account name is available. Resource name can be
6
+ * either an account name or an account name and PUID.
7
+ * @param body Parameters describing the name to check availability for.
8
+ * @param options The options parameters.
9
+ */
10
+ checkNameAvailability(body: CheckNameAvailabilityParameter, options?: AccountsCheckNameAvailabilityOptionalParams): Promise<AccountsCheckNameAvailabilityResponse>;
11
+ /**
12
+ * Gets all Visual Studio Team Services account resources under the resource group linked to the
13
+ * specified Azure subscription.
14
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
15
+ * @param options The options parameters.
16
+ */
17
+ listByResourceGroup(resourceGroupName: string, options?: AccountsListByResourceGroupOptionalParams): Promise<AccountsListByResourceGroupResponse>;
18
+ /**
19
+ * Creates or updates a Visual Studio Team Services account resource.
20
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
21
+ * @param resourceName Name of the resource.
22
+ * @param body The request data.
23
+ * @param options The options parameters.
24
+ */
25
+ createOrUpdate(resourceGroupName: string, resourceName: string, body: AccountResourceRequest, options?: AccountsCreateOrUpdateOptionalParams): Promise<AccountsCreateOrUpdateResponse>;
26
+ /**
27
+ * Deletes a Visual Studio Team Services account resource.
28
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
29
+ * @param resourceName Name of the resource.
30
+ * @param options The options parameters.
31
+ */
32
+ delete(resourceGroupName: string, resourceName: string, options?: AccountsDeleteOptionalParams): Promise<void>;
33
+ /**
34
+ * Gets the Visual Studio Team Services account resource details.
35
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
36
+ * @param resourceName Name of the resource.
37
+ * @param options The options parameters.
38
+ */
39
+ get(resourceGroupName: string, resourceName: string, options?: AccountsGetOptionalParams): Promise<AccountsGetResponse>;
40
+ /**
41
+ * Updates tags for Visual Studio Team Services account resource.
42
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
43
+ * @param resourceName Name of the resource.
44
+ * @param body The request data.
45
+ * @param options The options parameters.
46
+ */
47
+ update(resourceGroupName: string, resourceName: string, body: AccountTagRequest, options?: AccountsUpdateOptionalParams): Promise<AccountsUpdateResponse>;
48
+ }
49
+ //# sourceMappingURL=accounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/accounts.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,8BAA8B,EAC9B,2CAA2C,EAC3C,qCAAqC,EACrC,yCAAyC,EACzC,mCAAmC,EACnC,sBAAsB,EACtB,oCAAoC,EACpC,8BAA8B,EAC9B,4BAA4B,EAC5B,yBAAyB,EACzB,mBAAmB,EACnB,iBAAiB,EACjB,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,WAAW,CAAC;AAEnB,yCAAyC;AACzC,MAAM,WAAW,QAAQ;IACvB;;;;;OAKG;IACH,qBAAqB,CACnB,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC,CAAC;IAClD;;;;;OAKG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC,CAAC;IAChD;;;;;;OAMG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC,CAAC;IAC3C;;;;;OAKG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACpC"}
@@ -0,0 +1,9 @@
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 {};
9
+ //# sourceMappingURL=accounts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/accounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,46 @@
1
+ import { ExtensionsListByAccountOptionalParams, ExtensionsListByAccountResponse, ExtensionResourceRequest, ExtensionsCreateOptionalParams, ExtensionsCreateResponse, ExtensionsDeleteOptionalParams, ExtensionsGetOptionalParams, ExtensionsGetResponse, ExtensionsUpdateOptionalParams, ExtensionsUpdateResponse } from "../models";
2
+ /** Interface representing a Extensions. */
3
+ export interface Extensions {
4
+ /**
5
+ * Gets the details of the extension resources created within the resource group.
6
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
7
+ * @param accountResourceName The name of the Visual Studio Team Services account resource.
8
+ * @param options The options parameters.
9
+ */
10
+ listByAccount(resourceGroupName: string, accountResourceName: string, options?: ExtensionsListByAccountOptionalParams): Promise<ExtensionsListByAccountResponse>;
11
+ /**
12
+ * Registers the extension with a Visual Studio Team Services account.
13
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
14
+ * @param accountResourceName The name of the Visual Studio Team Services account resource.
15
+ * @param extensionResourceName The name of the extension.
16
+ * @param body An object containing additional information related to the extension request.
17
+ * @param options The options parameters.
18
+ */
19
+ create(resourceGroupName: string, accountResourceName: string, extensionResourceName: string, body: ExtensionResourceRequest, options?: ExtensionsCreateOptionalParams): Promise<ExtensionsCreateResponse>;
20
+ /**
21
+ * Removes an extension resource registration for a Visual Studio Team Services account.
22
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
23
+ * @param accountResourceName The name of the Visual Studio Team Services account resource.
24
+ * @param extensionResourceName The name of the extension.
25
+ * @param options The options parameters.
26
+ */
27
+ delete(resourceGroupName: string, accountResourceName: string, extensionResourceName: string, options?: ExtensionsDeleteOptionalParams): Promise<void>;
28
+ /**
29
+ * Gets the details of an extension associated with a Visual Studio Team Services account resource.
30
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
31
+ * @param accountResourceName The name of the Visual Studio Team Services account resource.
32
+ * @param extensionResourceName The name of the extension.
33
+ * @param options The options parameters.
34
+ */
35
+ get(resourceGroupName: string, accountResourceName: string, extensionResourceName: string, options?: ExtensionsGetOptionalParams): Promise<ExtensionsGetResponse>;
36
+ /**
37
+ * Updates an existing extension registration for the Visual Studio Team Services account.
38
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
39
+ * @param accountResourceName The name of the Visual Studio Team Services account resource.
40
+ * @param extensionResourceName The name of the extension.
41
+ * @param body An object containing additional information related to the extension request.
42
+ * @param options The options parameters.
43
+ */
44
+ update(resourceGroupName: string, accountResourceName: string, extensionResourceName: string, body: ExtensionResourceRequest, options?: ExtensionsUpdateOptionalParams): Promise<ExtensionsUpdateResponse>;
45
+ }
46
+ //# sourceMappingURL=extensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/extensions.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qCAAqC,EACrC,+BAA+B,EAC/B,wBAAwB,EACxB,8BAA8B,EAC9B,wBAAwB,EACxB,8BAA8B,EAC9B,2BAA2B,EAC3B,qBAAqB,EACrB,8BAA8B,EAC9B,wBAAwB,EACzB,MAAM,WAAW,CAAC;AAEnB,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;;;OAKG;IACH,aAAa,CACX,iBAAiB,EAAE,MAAM,EACzB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAC5C;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,mBAAmB,EAAE,MAAM,EAC3B,qBAAqB,EAAE,MAAM,EAC7B,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACrC;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,mBAAmB,EAAE,MAAM,EAC3B,qBAAqB,EAAE,MAAM,EAC7B,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,mBAAmB,EAAE,MAAM,EAC3B,qBAAqB,EAAE,MAAM,EAC7B,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAClC;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,mBAAmB,EAAE,MAAM,EAC3B,qBAAqB,EAAE,MAAM,EAC7B,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACtC"}
@@ -0,0 +1,9 @@
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 {};
9
+ //# sourceMappingURL=extensions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/extensions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,5 @@
1
+ export * from "./operations";
2
+ export * from "./accounts";
3
+ export * from "./extensions";
4
+ export * from "./projects";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,12 @@
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 "./operations";
9
+ export * from "./accounts";
10
+ export * from "./extensions";
11
+ export * from "./projects";
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { OperationsListOptionalParams, OperationsListResponse } from "../models";
2
+ /** Interface representing a Operations. */
3
+ export interface Operations {
4
+ /**
5
+ * Gets the details of all operations possible on the Microsoft.VisualStudio resource provider.
6
+ * @param options The options parameters.
7
+ */
8
+ list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
9
+ }
10
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,WAAW,CAAC;AAEnB,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CAC/E"}
@@ -0,0 +1,9 @@
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 {};
9
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,69 @@
1
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
2
+ import { ProjectsListByResourceGroupOptionalParams, ProjectsListByResourceGroupResponse, ProjectResource, ProjectsCreateOptionalParams, ProjectsCreateResponse, ProjectsGetOptionalParams, ProjectsGetResponse, ProjectsUpdateOptionalParams, ProjectsUpdateResponse, ProjectsGetJobStatusOptionalParams, ProjectsGetJobStatusResponse } from "../models";
3
+ /** Interface representing a Projects. */
4
+ export interface Projects {
5
+ /**
6
+ * Gets all Visual Studio Team Services project resources created in the specified Team Services
7
+ * account.
8
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
9
+ * @param rootResourceName Name of the Team Services account.
10
+ * @param options The options parameters.
11
+ */
12
+ listByResourceGroup(resourceGroupName: string, rootResourceName: string, options?: ProjectsListByResourceGroupOptionalParams): Promise<ProjectsListByResourceGroupResponse>;
13
+ /**
14
+ * Creates a Team Services project in the collection with the specified name. 'VersionControlOption'
15
+ * and 'ProcessTemplateId' must be specified in the resource properties. Valid values for
16
+ * VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
17
+ * 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
18
+ * 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
19
+ * templates).
20
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
21
+ * @param rootResourceName Name of the Team Services account.
22
+ * @param resourceName Name of the Team Services project.
23
+ * @param body The request data.
24
+ * @param options The options parameters.
25
+ */
26
+ beginCreate(resourceGroupName: string, rootResourceName: string, resourceName: string, body: ProjectResource, options?: ProjectsCreateOptionalParams): Promise<PollerLike<PollOperationState<ProjectsCreateResponse>, ProjectsCreateResponse>>;
27
+ /**
28
+ * Creates a Team Services project in the collection with the specified name. 'VersionControlOption'
29
+ * and 'ProcessTemplateId' must be specified in the resource properties. Valid values for
30
+ * VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
31
+ * 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
32
+ * 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
33
+ * templates).
34
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
35
+ * @param rootResourceName Name of the Team Services account.
36
+ * @param resourceName Name of the Team Services project.
37
+ * @param body The request data.
38
+ * @param options The options parameters.
39
+ */
40
+ beginCreateAndWait(resourceGroupName: string, rootResourceName: string, resourceName: string, body: ProjectResource, options?: ProjectsCreateOptionalParams): Promise<ProjectsCreateResponse>;
41
+ /**
42
+ * Gets the details of a Team Services project resource.
43
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
44
+ * @param rootResourceName Name of the Team Services account.
45
+ * @param resourceName Name of the Team Services project.
46
+ * @param options The options parameters.
47
+ */
48
+ get(resourceGroupName: string, rootResourceName: string, resourceName: string, options?: ProjectsGetOptionalParams): Promise<ProjectsGetResponse>;
49
+ /**
50
+ * Updates the tags of the specified Team Services project.
51
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
52
+ * @param rootResourceName Name of the Team Services account.
53
+ * @param resourceName Name of the Team Services project.
54
+ * @param body The request data.
55
+ * @param options The options parameters.
56
+ */
57
+ update(resourceGroupName: string, rootResourceName: string, resourceName: string, body: ProjectResource, options?: ProjectsUpdateOptionalParams): Promise<ProjectsUpdateResponse>;
58
+ /**
59
+ * Gets the status of the project resource creation job.
60
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
61
+ * @param rootResourceName Name of the Team Services account.
62
+ * @param resourceName Name of the Team Services project.
63
+ * @param subContainerName This parameter should be set to the resourceName.
64
+ * @param operation The operation type. The only supported value is 'put'.
65
+ * @param options The options parameters.
66
+ */
67
+ getJobStatus(resourceGroupName: string, rootResourceName: string, resourceName: string, subContainerName: string, operation: string, options?: ProjectsGetJobStatusOptionalParams): Promise<ProjectsGetJobStatusResponse>;
68
+ }
69
+ //# sourceMappingURL=projects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/projects.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,yCAAyC,EACzC,mCAAmC,EACnC,eAAe,EACf,4BAA4B,EAC5B,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACnB,4BAA4B,EAC5B,sBAAsB,EACtB,kCAAkC,EAClC,4BAA4B,EAC7B,MAAM,WAAW,CAAC;AAEnB,yCAAyC;AACzC,MAAM,WAAW,QAAQ;IACvB;;;;;;OAMG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC,CAAC;IAChD;;;;;;;;;;;;OAYG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,sBAAsB,CAAC,EAC1C,sBAAsB,CACvB,CACF,CAAC;IACF;;;;;;;;;;;;OAYG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnC;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnC;;;;;;;;OAQG;IACH,YAAY,CACV,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,MAAM,EACxB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,4BAA4B,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,9 @@
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 {};
9
+ //# sourceMappingURL=projects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projects.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/projects.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,21 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { Operations, Accounts, Extensions, Projects } from "./operationsInterfaces";
4
+ import { VisualStudioResourceProviderClientOptionalParams } from "./models";
5
+ export declare class VisualStudioResourceProviderClient extends coreClient.ServiceClient {
6
+ $host: string;
7
+ subscriptionId: string;
8
+ apiVersion: string;
9
+ /**
10
+ * Initializes a new instance of the VisualStudioResourceProviderClient class.
11
+ * @param credentials Subscription credentials which uniquely identify client subscription.
12
+ * @param subscriptionId The Azure subscription identifier.
13
+ * @param options The parameter options
14
+ */
15
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: VisualStudioResourceProviderClientOptionalParams);
16
+ operations: Operations;
17
+ accounts: Accounts;
18
+ extensions: Extensions;
19
+ projects: Projects;
20
+ }
21
+ //# sourceMappingURL=visualStudioResourceProviderClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visualStudioResourceProviderClient.d.ts","sourceRoot":"","sources":["../../src/visualStudioResourceProviderClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,UAAU,EACV,QAAQ,EACR,UAAU,EACV,QAAQ,EACT,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gDAAgD,EAAE,MAAM,UAAU,CAAC;AAE5E,qBAAa,kCAAmC,SAAQ,UAAU,CAAC,aAAa;IAC9E,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,gDAAgD;IAgD5D,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
@@ -0,0 +1,54 @@
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 * as coreClient from "@azure/core-client";
9
+ import { OperationsImpl, AccountsImpl, ExtensionsImpl, ProjectsImpl } from "./operations";
10
+ export class VisualStudioResourceProviderClient extends coreClient.ServiceClient {
11
+ /**
12
+ * Initializes a new instance of the VisualStudioResourceProviderClient class.
13
+ * @param credentials Subscription credentials which uniquely identify client subscription.
14
+ * @param subscriptionId The Azure subscription identifier.
15
+ * @param options The parameter options
16
+ */
17
+ constructor(credentials, subscriptionId, options) {
18
+ if (credentials === undefined) {
19
+ throw new Error("'credentials' cannot be null");
20
+ }
21
+ if (subscriptionId === undefined) {
22
+ throw new Error("'subscriptionId' cannot be null");
23
+ }
24
+ // Initializing default values for options
25
+ if (!options) {
26
+ options = {};
27
+ }
28
+ const defaults = {
29
+ requestContentType: "application/json; charset=utf-8",
30
+ credential: credentials
31
+ };
32
+ const packageDetails = `azsdk-js-arm-visualstudio/4.0.0-beta.1`;
33
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
34
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
35
+ : `${packageDetails}`;
36
+ if (!options.credentialScopes) {
37
+ options.credentialScopes = ["https://management.azure.com/.default"];
38
+ }
39
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
40
+ userAgentPrefix
41
+ }, baseUri: options.endpoint || "https://management.azure.com" });
42
+ super(optionsWithDefaults);
43
+ // Parameter assignments
44
+ this.subscriptionId = subscriptionId;
45
+ // Assigning values to Constant parameters
46
+ this.$host = options.$host || "https://management.azure.com";
47
+ this.apiVersion = options.apiVersion || "2014-04-01-preview";
48
+ this.operations = new OperationsImpl(this);
49
+ this.accounts = new AccountsImpl(this);
50
+ this.extensions = new ExtensionsImpl(this);
51
+ this.projects = new ProjectsImpl(this);
52
+ }
53
+ }
54
+ //# sourceMappingURL=visualStudioResourceProviderClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visualStudioResourceProviderClient.js","sourceRoot":"","sources":["../../src/visualStudioResourceProviderClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EACL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,YAAY,EACb,MAAM,cAAc,CAAC;AAStB,MAAM,OAAO,kCAAmC,SAAQ,UAAU,CAAC,aAAa;IAK9E;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA0D;QAE1D,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAqD;YACjE,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,wCAAwC,CAAC;QAChE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,8BAA8B,GAC5D,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,oBAAoB,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;CAMF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sampleTest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.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
+ import { record } from "@azure-tools/test-recorder";
10
+ const recorderEnvSetup = {
11
+ replaceableVariables: {
12
+ AZURE_CLIENT_ID: "azure_client_id",
13
+ AZURE_CLIENT_SECRET: "azure_client_secret",
14
+ AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
15
+ SUBSCRIPTION_ID: "azure_subscription_id"
16
+ },
17
+ customizationsOnRecordings: [
18
+ (recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
19
+ ],
20
+ queryParametersToSkip: []
21
+ };
22
+ describe("My test", () => {
23
+ let recorder;
24
+ beforeEach(function () {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ recorder = record(this, recorderEnvSetup);
27
+ });
28
+ });
29
+ afterEach(function () {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ yield recorder.stop();
32
+ });
33
+ });
34
+ it("sample test", function () {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ console.log("Hi, I'm a test!");
37
+ });
38
+ });
39
+ });
40
+ //# sourceMappingURL=sampleTest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAEL,MAAM,EAGP,MAAM,4BAA4B,CAAC;AAGpC,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE,sCAAsC;QACvD,eAAe,EAAE,uBAAuB;KACzC;IACD,0BAA0B,EAAE;QAC1B,CAAC,SAAc,EAAO,EAAE,CACtB,SAAS,CAAC,OAAO,CACf,yBAAyB,EACzB,+BAA+B,CAChC;KACJ;IACD,qBAAqB,EAAE,EAAE;CAC1B,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QAC5C,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,56 +1,105 @@
1
1
  {
2
2
  "name": "@azure/arm-visualstudio",
3
+ "sdk-type": "mgmt",
3
4
  "author": "Microsoft Corporation",
4
- "description": "VisualStudioResourceProviderClient Library with typescript type definitions for node.js and browser.",
5
- "version": "2.2.0",
5
+ "description": "A generated SDK for VisualStudioResourceProviderClient.",
6
+ "version": "4.0.0-beta.1",
7
+ "engines": { "node": ">=12.0.0" },
6
8
  "dependencies": {
7
- "@azure/ms-rest-azure-js": "^1.1.0",
8
- "@azure/ms-rest-js": "^1.1.0",
9
- "tslib": "^1.9.3"
9
+ "@azure/core-lro": "^2.2.0",
10
+ "@azure/abort-controller": "^1.0.0",
11
+ "@azure/core-client": "^1.0.0",
12
+ "@azure/core-auth": "^1.3.0",
13
+ "@azure/core-rest-pipeline": "^1.1.0",
14
+ "tslib": "^2.2.0"
10
15
  },
11
- "keywords": [
12
- "node",
13
- "azure",
14
- "typescript",
15
- "browser",
16
- "isomorphic"
17
- ],
16
+ "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
18
17
  "license": "MIT",
19
- "main": "./dist/arm-visualstudio.js",
20
- "module": "./esm/visualStudioResourceProviderClient.js",
21
- "types": "./esm/visualStudioResourceProviderClient.d.ts",
18
+ "main": "./dist/index.js",
19
+ "module": "./dist-esm/src/index.js",
20
+ "types": "./types/arm-visualstudio.d.ts",
22
21
  "devDependencies": {
23
- "typescript": "^3.1.1",
24
- "rollup": "^0.66.2",
25
- "rollup-plugin-node-resolve": "^3.4.0",
26
- "uglify-js": "^3.4.9"
22
+ "@microsoft/api-extractor": "^7.18.11",
23
+ "@rollup/plugin-commonjs": "11.0.2",
24
+ "@rollup/plugin-json": "^4.0.0",
25
+ "@rollup/plugin-multi-entry": "^3.0.0",
26
+ "@rollup/plugin-node-resolve": "^8.0.0",
27
+ "mkdirp": "^1.0.4",
28
+ "rollup": "^1.16.3",
29
+ "rollup-plugin-sourcemaps": "^0.4.2",
30
+ "typescript": "~4.2.0",
31
+ "uglify-js": "^3.4.9",
32
+ "rimraf": "^3.0.0",
33
+ "@azure/identity": "^2.0.1",
34
+ "@azure-tools/test-recorder": "^1.0.0",
35
+ "mocha": "^7.1.1",
36
+ "cross-env": "^7.0.2"
27
37
  },
28
- "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/arm-visualstudio",
38
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/visualstudio/arm-visualstudio",
29
39
  "repository": {
30
40
  "type": "git",
31
- "url": "https://github.com/azure/azure-sdk-for-js.git"
32
- },
33
- "bugs": {
34
- "url": "https://github.com/azure/azure-sdk-for-js/issues"
41
+ "url": "https://github.com/Azure/azure-sdk-for-js.git"
35
42
  },
43
+ "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
36
44
  "files": [
37
45
  "dist/**/*.js",
38
46
  "dist/**/*.js.map",
39
47
  "dist/**/*.d.ts",
40
48
  "dist/**/*.d.ts.map",
41
- "esm/**/*.js",
42
- "esm/**/*.js.map",
43
- "esm/**/*.d.ts",
44
- "esm/**/*.d.ts.map",
45
- "lib/**/*.ts",
49
+ "dist-esm/**/*.js",
50
+ "dist-esm/**/*.js.map",
51
+ "dist-esm/**/*.d.ts",
52
+ "dist-esm/**/*.d.ts.map",
53
+ "src/**/*.ts",
54
+ "README.md",
55
+ "LICENSE",
46
56
  "rollup.config.js",
47
- "tsconfig.json"
57
+ "tsconfig.json",
58
+ "review/*",
59
+ "CHANGELOG.md",
60
+ "types/*"
48
61
  ],
49
62
  "scripts": {
50
- "build": "tsc && rollup -c rollup.config.js && npm run minify",
51
- "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-visualstudio.js.map'\" -o ./dist/arm-visualstudio.min.js ./dist/arm-visualstudio.js",
52
- "prepack": "npm install && npm run build"
63
+ "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
64
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
65
+ "prepack": "npm run build",
66
+ "pack": "npm pack 2>&1",
67
+ "extract-api": "api-extractor run --local",
68
+ "lint": "echo skipped",
69
+ "audit": "echo skipped",
70
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
71
+ "build:node": "echo skipped",
72
+ "build:browser": "echo skipped",
73
+ "build:test": "echo skipped",
74
+ "build:samples": "echo skipped.",
75
+ "check-format": "echo skipped",
76
+ "execute:samples": "echo skipped",
77
+ "format": "echo skipped",
78
+ "test": "npm run integration-test",
79
+ "test:node": "echo skipped",
80
+ "test:browser": "echo skipped",
81
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
82
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
83
+ "unit-test:browser": "echo skipped",
84
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
85
+ "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
86
+ "integration-test:browser": "echo skipped",
87
+ "docs": "echo skipped"
53
88
  },
54
89
  "sideEffects": false,
55
- "authPublish": true
90
+ "//metadata": {
91
+ "constantPaths": [
92
+ {
93
+ "path": "src/VisualStudioResourceProviderClient.ts",
94
+ "prefix": "packageDetails"
95
+ }
96
+ ]
97
+ },
98
+ "autoPublish": true,
99
+ "//sampleConfiguration": {
100
+ "productName": "",
101
+ "productSlugs": ["azure"],
102
+ "disableDocsMs": true,
103
+ "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-visualstudio?view=azure-node-preview"
104
+ }
56
105
  }