@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,96 @@
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
+
9
+ import {
10
+ CheckNameAvailabilityParameter,
11
+ AccountsCheckNameAvailabilityOptionalParams,
12
+ AccountsCheckNameAvailabilityResponse,
13
+ AccountsListByResourceGroupOptionalParams,
14
+ AccountsListByResourceGroupResponse,
15
+ AccountResourceRequest,
16
+ AccountsCreateOrUpdateOptionalParams,
17
+ AccountsCreateOrUpdateResponse,
18
+ AccountsDeleteOptionalParams,
19
+ AccountsGetOptionalParams,
20
+ AccountsGetResponse,
21
+ AccountTagRequest,
22
+ AccountsUpdateOptionalParams,
23
+ AccountsUpdateResponse
24
+ } from "../models";
25
+
26
+ /** Interface representing a Accounts. */
27
+ export interface Accounts {
28
+ /**
29
+ * Checks if the specified Visual Studio Team Services account name is available. Resource name can be
30
+ * either an account name or an account name and PUID.
31
+ * @param body Parameters describing the name to check availability for.
32
+ * @param options The options parameters.
33
+ */
34
+ checkNameAvailability(
35
+ body: CheckNameAvailabilityParameter,
36
+ options?: AccountsCheckNameAvailabilityOptionalParams
37
+ ): Promise<AccountsCheckNameAvailabilityResponse>;
38
+ /**
39
+ * Gets all Visual Studio Team Services account resources under the resource group linked to the
40
+ * specified Azure subscription.
41
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
42
+ * @param options The options parameters.
43
+ */
44
+ listByResourceGroup(
45
+ resourceGroupName: string,
46
+ options?: AccountsListByResourceGroupOptionalParams
47
+ ): Promise<AccountsListByResourceGroupResponse>;
48
+ /**
49
+ * Creates or updates a Visual Studio Team Services account resource.
50
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
51
+ * @param resourceName Name of the resource.
52
+ * @param body The request data.
53
+ * @param options The options parameters.
54
+ */
55
+ createOrUpdate(
56
+ resourceGroupName: string,
57
+ resourceName: string,
58
+ body: AccountResourceRequest,
59
+ options?: AccountsCreateOrUpdateOptionalParams
60
+ ): Promise<AccountsCreateOrUpdateResponse>;
61
+ /**
62
+ * Deletes a Visual Studio Team Services account resource.
63
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
64
+ * @param resourceName Name of the resource.
65
+ * @param options The options parameters.
66
+ */
67
+ delete(
68
+ resourceGroupName: string,
69
+ resourceName: string,
70
+ options?: AccountsDeleteOptionalParams
71
+ ): Promise<void>;
72
+ /**
73
+ * Gets the Visual Studio Team Services account resource details.
74
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
75
+ * @param resourceName Name of the resource.
76
+ * @param options The options parameters.
77
+ */
78
+ get(
79
+ resourceGroupName: string,
80
+ resourceName: string,
81
+ options?: AccountsGetOptionalParams
82
+ ): Promise<AccountsGetResponse>;
83
+ /**
84
+ * Updates tags for Visual Studio Team Services account resource.
85
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
86
+ * @param resourceName Name of the resource.
87
+ * @param body The request data.
88
+ * @param options The options parameters.
89
+ */
90
+ update(
91
+ resourceGroupName: string,
92
+ resourceName: string,
93
+ body: AccountTagRequest,
94
+ options?: AccountsUpdateOptionalParams
95
+ ): Promise<AccountsUpdateResponse>;
96
+ }
@@ -0,0 +1,91 @@
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
+
9
+ import {
10
+ ExtensionsListByAccountOptionalParams,
11
+ ExtensionsListByAccountResponse,
12
+ ExtensionResourceRequest,
13
+ ExtensionsCreateOptionalParams,
14
+ ExtensionsCreateResponse,
15
+ ExtensionsDeleteOptionalParams,
16
+ ExtensionsGetOptionalParams,
17
+ ExtensionsGetResponse,
18
+ ExtensionsUpdateOptionalParams,
19
+ ExtensionsUpdateResponse
20
+ } from "../models";
21
+
22
+ /** Interface representing a Extensions. */
23
+ export interface Extensions {
24
+ /**
25
+ * Gets the details of the extension resources created within the resource group.
26
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
27
+ * @param accountResourceName The name of the Visual Studio Team Services account resource.
28
+ * @param options The options parameters.
29
+ */
30
+ listByAccount(
31
+ resourceGroupName: string,
32
+ accountResourceName: string,
33
+ options?: ExtensionsListByAccountOptionalParams
34
+ ): Promise<ExtensionsListByAccountResponse>;
35
+ /**
36
+ * Registers the extension with a Visual Studio Team Services account.
37
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
38
+ * @param accountResourceName The name of the Visual Studio Team Services account resource.
39
+ * @param extensionResourceName The name of the extension.
40
+ * @param body An object containing additional information related to the extension request.
41
+ * @param options The options parameters.
42
+ */
43
+ create(
44
+ resourceGroupName: string,
45
+ accountResourceName: string,
46
+ extensionResourceName: string,
47
+ body: ExtensionResourceRequest,
48
+ options?: ExtensionsCreateOptionalParams
49
+ ): Promise<ExtensionsCreateResponse>;
50
+ /**
51
+ * Removes an extension resource registration for a Visual Studio Team Services account.
52
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
53
+ * @param accountResourceName The name of the Visual Studio Team Services account resource.
54
+ * @param extensionResourceName The name of the extension.
55
+ * @param options The options parameters.
56
+ */
57
+ delete(
58
+ resourceGroupName: string,
59
+ accountResourceName: string,
60
+ extensionResourceName: string,
61
+ options?: ExtensionsDeleteOptionalParams
62
+ ): Promise<void>;
63
+ /**
64
+ * Gets the details of an extension associated with a Visual Studio Team Services account resource.
65
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
66
+ * @param accountResourceName The name of the Visual Studio Team Services account resource.
67
+ * @param extensionResourceName The name of the extension.
68
+ * @param options The options parameters.
69
+ */
70
+ get(
71
+ resourceGroupName: string,
72
+ accountResourceName: string,
73
+ extensionResourceName: string,
74
+ options?: ExtensionsGetOptionalParams
75
+ ): Promise<ExtensionsGetResponse>;
76
+ /**
77
+ * Updates an existing extension registration for the Visual Studio Team Services account.
78
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
79
+ * @param accountResourceName The name of the Visual Studio Team Services account resource.
80
+ * @param extensionResourceName The name of the extension.
81
+ * @param body An object containing additional information related to the extension request.
82
+ * @param options The options parameters.
83
+ */
84
+ update(
85
+ resourceGroupName: string,
86
+ accountResourceName: string,
87
+ extensionResourceName: string,
88
+ body: ExtensionResourceRequest,
89
+ options?: ExtensionsUpdateOptionalParams
90
+ ): Promise<ExtensionsUpdateResponse>;
91
+ }
@@ -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
+
9
+ export * from "./operations";
10
+ export * from "./accounts";
11
+ export * from "./extensions";
12
+ export * from "./projects";
@@ -0,0 +1,21 @@
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
+
9
+ import {
10
+ OperationsListOptionalParams,
11
+ OperationsListResponse
12
+ } from "../models";
13
+
14
+ /** Interface representing a Operations. */
15
+ export interface Operations {
16
+ /**
17
+ * Gets the details of all operations possible on the Microsoft.VisualStudio resource provider.
18
+ * @param options The options parameters.
19
+ */
20
+ list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
21
+ }
@@ -0,0 +1,128 @@
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
+
9
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import {
11
+ ProjectsListByResourceGroupOptionalParams,
12
+ ProjectsListByResourceGroupResponse,
13
+ ProjectResource,
14
+ ProjectsCreateOptionalParams,
15
+ ProjectsCreateResponse,
16
+ ProjectsGetOptionalParams,
17
+ ProjectsGetResponse,
18
+ ProjectsUpdateOptionalParams,
19
+ ProjectsUpdateResponse,
20
+ ProjectsGetJobStatusOptionalParams,
21
+ ProjectsGetJobStatusResponse
22
+ } from "../models";
23
+
24
+ /** Interface representing a Projects. */
25
+ export interface Projects {
26
+ /**
27
+ * Gets all Visual Studio Team Services project resources created in the specified Team Services
28
+ * account.
29
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
30
+ * @param rootResourceName Name of the Team Services account.
31
+ * @param options The options parameters.
32
+ */
33
+ listByResourceGroup(
34
+ resourceGroupName: string,
35
+ rootResourceName: string,
36
+ options?: ProjectsListByResourceGroupOptionalParams
37
+ ): Promise<ProjectsListByResourceGroupResponse>;
38
+ /**
39
+ * Creates a Team Services project in the collection with the specified name. 'VersionControlOption'
40
+ * and 'ProcessTemplateId' must be specified in the resource properties. Valid values for
41
+ * VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
42
+ * 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
43
+ * 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
44
+ * templates).
45
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
46
+ * @param rootResourceName Name of the Team Services account.
47
+ * @param resourceName Name of the Team Services project.
48
+ * @param body The request data.
49
+ * @param options The options parameters.
50
+ */
51
+ beginCreate(
52
+ resourceGroupName: string,
53
+ rootResourceName: string,
54
+ resourceName: string,
55
+ body: ProjectResource,
56
+ options?: ProjectsCreateOptionalParams
57
+ ): Promise<
58
+ PollerLike<
59
+ PollOperationState<ProjectsCreateResponse>,
60
+ ProjectsCreateResponse
61
+ >
62
+ >;
63
+ /**
64
+ * Creates a Team Services project in the collection with the specified name. 'VersionControlOption'
65
+ * and 'ProcessTemplateId' must be specified in the resource properties. Valid values for
66
+ * VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
67
+ * 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
68
+ * 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
69
+ * templates).
70
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
71
+ * @param rootResourceName Name of the Team Services account.
72
+ * @param resourceName Name of the Team Services project.
73
+ * @param body The request data.
74
+ * @param options The options parameters.
75
+ */
76
+ beginCreateAndWait(
77
+ resourceGroupName: string,
78
+ rootResourceName: string,
79
+ resourceName: string,
80
+ body: ProjectResource,
81
+ options?: ProjectsCreateOptionalParams
82
+ ): Promise<ProjectsCreateResponse>;
83
+ /**
84
+ * Gets the details of a Team Services project resource.
85
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
86
+ * @param rootResourceName Name of the Team Services account.
87
+ * @param resourceName Name of the Team Services project.
88
+ * @param options The options parameters.
89
+ */
90
+ get(
91
+ resourceGroupName: string,
92
+ rootResourceName: string,
93
+ resourceName: string,
94
+ options?: ProjectsGetOptionalParams
95
+ ): Promise<ProjectsGetResponse>;
96
+ /**
97
+ * Updates the tags of the specified Team Services project.
98
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
99
+ * @param rootResourceName Name of the Team Services account.
100
+ * @param resourceName Name of the Team Services project.
101
+ * @param body The request data.
102
+ * @param options The options parameters.
103
+ */
104
+ update(
105
+ resourceGroupName: string,
106
+ rootResourceName: string,
107
+ resourceName: string,
108
+ body: ProjectResource,
109
+ options?: ProjectsUpdateOptionalParams
110
+ ): Promise<ProjectsUpdateResponse>;
111
+ /**
112
+ * Gets the status of the project resource creation job.
113
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
114
+ * @param rootResourceName Name of the Team Services account.
115
+ * @param resourceName Name of the Team Services project.
116
+ * @param subContainerName This parameter should be set to the resourceName.
117
+ * @param operation The operation type. The only supported value is 'put'.
118
+ * @param options The options parameters.
119
+ */
120
+ getJobStatus(
121
+ resourceGroupName: string,
122
+ rootResourceName: string,
123
+ resourceName: string,
124
+ subContainerName: string,
125
+ operation: string,
126
+ options?: ProjectsGetJobStatusOptionalParams
127
+ ): Promise<ProjectsGetJobStatusResponse>;
128
+ }
@@ -3,51 +3,89 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
 
10
- import * as msRest from "@azure/ms-rest-js";
11
- import { TokenCredential } from "@azure/core-auth";
12
- import * as Models from "./models";
13
- import * as Mappers from "./models/mappers";
14
- import * as operations from "./operations";
15
- import { VisualStudioResourceProviderClientContext } from "./visualStudioResourceProviderClientContext";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as coreAuth from "@azure/core-auth";
11
+ import {
12
+ OperationsImpl,
13
+ AccountsImpl,
14
+ ExtensionsImpl,
15
+ ProjectsImpl
16
+ } from "./operations";
17
+ import {
18
+ Operations,
19
+ Accounts,
20
+ Extensions,
21
+ Projects
22
+ } from "./operationsInterfaces";
23
+ import { VisualStudioResourceProviderClientOptionalParams } from "./models";
16
24
 
17
-
18
- class VisualStudioResourceProviderClient extends VisualStudioResourceProviderClientContext {
19
- // Operation groups
20
- operations: operations.Operations;
21
- accounts: operations.Accounts;
22
- extensions: operations.Extensions;
23
- projects: operations.Projects;
25
+ export class VisualStudioResourceProviderClient extends coreClient.ServiceClient {
26
+ $host: string;
27
+ subscriptionId: string;
28
+ apiVersion: string;
24
29
 
25
30
  /**
26
31
  * Initializes a new instance of the VisualStudioResourceProviderClient class.
27
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
28
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
29
- * more information about these credentials, see
30
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
31
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
32
- * @azure/ms-rest-browserauth are also supported.
32
+ * @param credentials Subscription credentials which uniquely identify client subscription.
33
33
  * @param subscriptionId The Azure subscription identifier.
34
- * @param [options] The parameter options
34
+ * @param options The parameter options
35
35
  */
36
- constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.VisualStudioResourceProviderClientOptions) {
37
- super(credentials, subscriptionId, options);
38
- this.operations = new operations.Operations(this);
39
- this.accounts = new operations.Accounts(this);
40
- this.extensions = new operations.Extensions(this);
41
- this.projects = new operations.Projects(this);
42
- }
43
- }
36
+ constructor(
37
+ credentials: coreAuth.TokenCredential,
38
+ subscriptionId: string,
39
+ options?: VisualStudioResourceProviderClientOptionalParams
40
+ ) {
41
+ if (credentials === undefined) {
42
+ throw new Error("'credentials' cannot be null");
43
+ }
44
+ if (subscriptionId === undefined) {
45
+ throw new Error("'subscriptionId' cannot be null");
46
+ }
47
+
48
+ // Initializing default values for options
49
+ if (!options) {
50
+ options = {};
51
+ }
52
+ const defaults: VisualStudioResourceProviderClientOptionalParams = {
53
+ requestContentType: "application/json; charset=utf-8",
54
+ credential: credentials
55
+ };
44
56
 
45
- // Operation Specifications
57
+ const packageDetails = `azsdk-js-arm-visualstudio/4.0.0-beta.1`;
58
+ const userAgentPrefix =
59
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
60
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
61
+ : `${packageDetails}`;
46
62
 
47
- export {
48
- VisualStudioResourceProviderClient,
49
- VisualStudioResourceProviderClientContext,
50
- Models as VisualStudioResourceProviderModels,
51
- Mappers as VisualStudioResourceProviderMappers
52
- };
53
- export * from "./operations";
63
+ if (!options.credentialScopes) {
64
+ options.credentialScopes = ["https://management.azure.com/.default"];
65
+ }
66
+ const optionsWithDefaults = {
67
+ ...defaults,
68
+ ...options,
69
+ userAgentOptions: {
70
+ userAgentPrefix
71
+ },
72
+ baseUri: options.endpoint || "https://management.azure.com"
73
+ };
74
+ super(optionsWithDefaults);
75
+ // Parameter assignments
76
+ this.subscriptionId = subscriptionId;
77
+
78
+ // Assigning values to Constant parameters
79
+ this.$host = options.$host || "https://management.azure.com";
80
+ this.apiVersion = options.apiVersion || "2014-04-01-preview";
81
+ this.operations = new OperationsImpl(this);
82
+ this.accounts = new AccountsImpl(this);
83
+ this.extensions = new ExtensionsImpl(this);
84
+ this.projects = new ProjectsImpl(this);
85
+ }
86
+
87
+ operations: Operations;
88
+ accounts: Accounts;
89
+ extensions: Extensions;
90
+ projects: Projects;
91
+ }
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "module": "es6",
4
4
  "moduleResolution": "node",
5
5
  "strict": true,
6
- "target": "es5",
6
+ "target": "es6",
7
7
  "sourceMap": true,
8
8
  "declarationMap": true,
9
9
  "esModuleInterop": true,
@@ -11,9 +11,10 @@
11
11
  "forceConsistentCasingInFileNames": true,
12
12
  "lib": ["es6", "dom"],
13
13
  "declaration": true,
14
- "outDir": "./esm",
15
- "importHelpers": true
14
+ "outDir": "./dist-esm",
15
+ "importHelpers": true,
16
+ "paths": { "@azure/arm-visualstudio": ["./src/index"] }
16
17
  },
17
- "include": ["./src/**/*.ts"],
18
+ "include": ["./src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"],
18
19
  "exclude": ["node_modules"]
19
20
  }