@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,190 @@
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 * as Mappers from "../models/mappers";
10
+ import * as Parameters from "../models/parameters";
11
+ /** Class containing Extensions operations. */
12
+ export class ExtensionsImpl {
13
+ /**
14
+ * Initialize a new instance of the class Extensions class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Gets the details of the extension resources created within the resource group.
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 options The options parameters.
25
+ */
26
+ listByAccount(resourceGroupName, accountResourceName, options) {
27
+ return this.client.sendOperationRequest({ resourceGroupName, accountResourceName, options }, listByAccountOperationSpec);
28
+ }
29
+ /**
30
+ * Registers the extension with a Visual Studio Team Services account.
31
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
32
+ * @param accountResourceName The name of the Visual Studio Team Services account resource.
33
+ * @param extensionResourceName The name of the extension.
34
+ * @param body An object containing additional information related to the extension request.
35
+ * @param options The options parameters.
36
+ */
37
+ create(resourceGroupName, accountResourceName, extensionResourceName, body, options) {
38
+ return this.client.sendOperationRequest({
39
+ resourceGroupName,
40
+ accountResourceName,
41
+ extensionResourceName,
42
+ body,
43
+ options
44
+ }, createOperationSpec);
45
+ }
46
+ /**
47
+ * Removes an extension resource registration for a Visual Studio Team Services account.
48
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
49
+ * @param accountResourceName The name of the Visual Studio Team Services account resource.
50
+ * @param extensionResourceName The name of the extension.
51
+ * @param options The options parameters.
52
+ */
53
+ delete(resourceGroupName, accountResourceName, extensionResourceName, options) {
54
+ return this.client.sendOperationRequest({
55
+ resourceGroupName,
56
+ accountResourceName,
57
+ extensionResourceName,
58
+ options
59
+ }, deleteOperationSpec);
60
+ }
61
+ /**
62
+ * Gets the details of an extension associated with a Visual Studio Team Services account resource.
63
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
64
+ * @param accountResourceName The name of the Visual Studio Team Services account resource.
65
+ * @param extensionResourceName The name of the extension.
66
+ * @param options The options parameters.
67
+ */
68
+ get(resourceGroupName, accountResourceName, extensionResourceName, options) {
69
+ return this.client.sendOperationRequest({
70
+ resourceGroupName,
71
+ accountResourceName,
72
+ extensionResourceName,
73
+ options
74
+ }, getOperationSpec);
75
+ }
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(resourceGroupName, accountResourceName, extensionResourceName, body, options) {
85
+ return this.client.sendOperationRequest({
86
+ resourceGroupName,
87
+ accountResourceName,
88
+ extensionResourceName,
89
+ body,
90
+ options
91
+ }, updateOperationSpec);
92
+ }
93
+ }
94
+ // Operation Specifications
95
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
96
+ const listByAccountOperationSpec = {
97
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension",
98
+ httpMethod: "GET",
99
+ responses: {
100
+ 200: {
101
+ bodyMapper: Mappers.ExtensionResourceListResult
102
+ }
103
+ },
104
+ queryParameters: [Parameters.apiVersion],
105
+ urlParameters: [
106
+ Parameters.$host,
107
+ Parameters.subscriptionId,
108
+ Parameters.resourceGroupName,
109
+ Parameters.accountResourceName
110
+ ],
111
+ headerParameters: [Parameters.accept],
112
+ serializer
113
+ };
114
+ const createOperationSpec = {
115
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}",
116
+ httpMethod: "PUT",
117
+ responses: {
118
+ 200: {
119
+ bodyMapper: Mappers.ExtensionResource
120
+ }
121
+ },
122
+ requestBody: Parameters.body3,
123
+ queryParameters: [Parameters.apiVersion],
124
+ urlParameters: [
125
+ Parameters.$host,
126
+ Parameters.subscriptionId,
127
+ Parameters.resourceGroupName,
128
+ Parameters.accountResourceName,
129
+ Parameters.extensionResourceName
130
+ ],
131
+ headerParameters: [Parameters.accept, Parameters.contentType],
132
+ mediaType: "json",
133
+ serializer
134
+ };
135
+ const deleteOperationSpec = {
136
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}",
137
+ httpMethod: "DELETE",
138
+ responses: { 200: {} },
139
+ queryParameters: [Parameters.apiVersion],
140
+ urlParameters: [
141
+ Parameters.$host,
142
+ Parameters.subscriptionId,
143
+ Parameters.resourceGroupName,
144
+ Parameters.accountResourceName,
145
+ Parameters.extensionResourceName
146
+ ],
147
+ serializer
148
+ };
149
+ const getOperationSpec = {
150
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}",
151
+ httpMethod: "GET",
152
+ responses: {
153
+ 200: {
154
+ bodyMapper: Mappers.ExtensionResource
155
+ },
156
+ 404: {}
157
+ },
158
+ queryParameters: [Parameters.apiVersion],
159
+ urlParameters: [
160
+ Parameters.$host,
161
+ Parameters.subscriptionId,
162
+ Parameters.resourceGroupName,
163
+ Parameters.accountResourceName,
164
+ Parameters.extensionResourceName
165
+ ],
166
+ headerParameters: [Parameters.accept],
167
+ serializer
168
+ };
169
+ const updateOperationSpec = {
170
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}",
171
+ httpMethod: "PATCH",
172
+ responses: {
173
+ 200: {
174
+ bodyMapper: Mappers.ExtensionResource
175
+ }
176
+ },
177
+ requestBody: Parameters.body3,
178
+ queryParameters: [Parameters.apiVersion],
179
+ urlParameters: [
180
+ Parameters.$host,
181
+ Parameters.subscriptionId,
182
+ Parameters.resourceGroupName,
183
+ Parameters.accountResourceName,
184
+ Parameters.extensionResourceName
185
+ ],
186
+ headerParameters: [Parameters.accept, Parameters.contentType],
187
+ mediaType: "json",
188
+ serializer
189
+ };
190
+ //# sourceMappingURL=extensions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions.js","sourceRoot":"","sources":["../../../src/operations/extensions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAenD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA0C;QACpD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,iBAAyB,EACzB,mBAA2B,EAC3B,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,OAAO,EAAE,EACnD,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAyB,EACzB,mBAA2B,EAC3B,qBAA6B,EAC7B,IAA8B,EAC9B,OAAwC;QAExC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,mBAAmB;YACnB,qBAAqB;YACrB,IAAI;YACJ,OAAO;SACR,EACD,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,iBAAyB,EACzB,mBAA2B,EAC3B,qBAA6B,EAC7B,OAAwC;QAExC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,mBAAmB;YACnB,qBAAqB;YACrB,OAAO;SACR,EACD,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,mBAA2B,EAC3B,qBAA6B,EAC7B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AAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC"}
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
@@ -3,8 +3,7 @@
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
  export * from "./operations";
10
9
  export * from "./accounts";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/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,18 @@
1
+ import { Operations } from "../operationsInterfaces";
2
+ import { VisualStudioResourceProviderClient } from "../visualStudioResourceProviderClient";
3
+ import { OperationsListOptionalParams, OperationsListResponse } from "../models";
4
+ /** Class containing Operations operations. */
5
+ export declare class OperationsImpl implements Operations {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class Operations class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: VisualStudioResourceProviderClient);
12
+ /**
13
+ * Gets the details of all operations possible on the Microsoft.VisualStudio resource provider.
14
+ * @param options The options parameters.
15
+ */
16
+ list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
17
+ }
18
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,kCAAkC,EAAE,MAAM,uCAAuC,CAAC;AAC3F,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,WAAW,CAAC;AAEnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqC;IAE5D;;;OAGG;gBACS,MAAM,EAAE,kCAAkC;IAItD;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;CAGnC"}
@@ -0,0 +1,42 @@
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 * as Mappers from "../models/mappers";
10
+ import * as Parameters from "../models/parameters";
11
+ /** Class containing Operations operations. */
12
+ export class OperationsImpl {
13
+ /**
14
+ * Initialize a new instance of the class Operations class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Gets the details of all operations possible on the Microsoft.VisualStudio resource provider.
22
+ * @param options The options parameters.
23
+ */
24
+ list(options) {
25
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
26
+ }
27
+ }
28
+ // Operation Specifications
29
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
30
+ const listOperationSpec = {
31
+ path: "/providers/microsoft.visualstudio/operations",
32
+ httpMethod: "GET",
33
+ responses: {
34
+ 200: {
35
+ bodyMapper: Mappers.OperationListResult
36
+ }
37
+ },
38
+ urlParameters: [Parameters.$host],
39
+ headerParameters: [Parameters.accept],
40
+ serializer
41
+ };
42
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAOnD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA0C;QACpD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,8CAA8C;IACpD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,77 @@
1
+ import { Projects } from "../operationsInterfaces";
2
+ import { VisualStudioResourceProviderClient } from "../visualStudioResourceProviderClient";
3
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
4
+ import { ProjectsListByResourceGroupOptionalParams, ProjectsListByResourceGroupResponse, ProjectResource, ProjectsCreateOptionalParams, ProjectsCreateResponse, ProjectsGetOptionalParams, ProjectsGetResponse, ProjectsUpdateOptionalParams, ProjectsUpdateResponse, ProjectsGetJobStatusOptionalParams, ProjectsGetJobStatusResponse } from "../models";
5
+ /** Class containing Projects operations. */
6
+ export declare class ProjectsImpl implements Projects {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Projects class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: VisualStudioResourceProviderClient);
13
+ /**
14
+ * Gets all Visual Studio Team Services project resources created in the specified Team Services
15
+ * account.
16
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
17
+ * @param rootResourceName Name of the Team Services account.
18
+ * @param options The options parameters.
19
+ */
20
+ listByResourceGroup(resourceGroupName: string, rootResourceName: string, options?: ProjectsListByResourceGroupOptionalParams): Promise<ProjectsListByResourceGroupResponse>;
21
+ /**
22
+ * Creates a Team Services project in the collection with the specified name. 'VersionControlOption'
23
+ * and 'ProcessTemplateId' must be specified in the resource properties. Valid values for
24
+ * VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
25
+ * 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
26
+ * 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
27
+ * templates).
28
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
29
+ * @param rootResourceName Name of the Team Services account.
30
+ * @param resourceName Name of the Team Services project.
31
+ * @param body The request data.
32
+ * @param options The options parameters.
33
+ */
34
+ beginCreate(resourceGroupName: string, rootResourceName: string, resourceName: string, body: ProjectResource, options?: ProjectsCreateOptionalParams): Promise<PollerLike<PollOperationState<ProjectsCreateResponse>, ProjectsCreateResponse>>;
35
+ /**
36
+ * Creates a Team Services project in the collection with the specified name. 'VersionControlOption'
37
+ * and 'ProcessTemplateId' must be specified in the resource properties. Valid values for
38
+ * VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
39
+ * 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
40
+ * 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
41
+ * templates).
42
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
43
+ * @param rootResourceName Name of the Team Services account.
44
+ * @param resourceName Name of the Team Services project.
45
+ * @param body The request data.
46
+ * @param options The options parameters.
47
+ */
48
+ beginCreateAndWait(resourceGroupName: string, rootResourceName: string, resourceName: string, body: ProjectResource, options?: ProjectsCreateOptionalParams): Promise<ProjectsCreateResponse>;
49
+ /**
50
+ * Gets the details of a Team Services project resource.
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 options The options parameters.
55
+ */
56
+ get(resourceGroupName: string, rootResourceName: string, resourceName: string, options?: ProjectsGetOptionalParams): Promise<ProjectsGetResponse>;
57
+ /**
58
+ * Updates the tags of the specified Team Services project.
59
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
60
+ * @param rootResourceName Name of the Team Services account.
61
+ * @param resourceName Name of the Team Services project.
62
+ * @param body The request data.
63
+ * @param options The options parameters.
64
+ */
65
+ update(resourceGroupName: string, rootResourceName: string, resourceName: string, body: ProjectResource, options?: ProjectsUpdateOptionalParams): Promise<ProjectsUpdateResponse>;
66
+ /**
67
+ * Gets the status of the project resource creation job.
68
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
69
+ * @param rootResourceName Name of the Team Services account.
70
+ * @param resourceName Name of the Team Services project.
71
+ * @param subContainerName This parameter should be set to the resourceName.
72
+ * @param operation The operation type. The only supported value is 'put'.
73
+ * @param options The options parameters.
74
+ */
75
+ getJobStatus(resourceGroupName: string, rootResourceName: string, resourceName: string, subContainerName: string, operation: string, options?: ProjectsGetJobStatusOptionalParams): Promise<ProjectsGetJobStatusResponse>;
76
+ }
77
+ //# sourceMappingURL=projects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../../src/operations/projects.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAInD,OAAO,EAAE,kCAAkC,EAAE,MAAM,uCAAuC,CAAC;AAC3F,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,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,4CAA4C;AAC5C,qBAAa,YAAa,YAAW,QAAQ;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqC;IAE5D;;;OAGG;gBACS,MAAM,EAAE,kCAAkC;IAItD;;;;;;OAMG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC;IAO/C;;;;;;;;;;;;OAYG;IACG,WAAW,CACf,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;IAmDD;;;;;;;;;;;;OAYG;IACG,kBAAkB,CACtB,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;IAWlC;;;;;;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;IAO/B;;;;;;;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;IAOlC;;;;;;;;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;CAazC"}
@@ -0,0 +1,253 @@
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 * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /** Class containing Projects operations. */
15
+ export class ProjectsImpl {
16
+ /**
17
+ * Initialize a new instance of the class Projects class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * Gets all Visual Studio Team Services project resources created in the specified Team Services
25
+ * account.
26
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
27
+ * @param rootResourceName Name of the Team Services account.
28
+ * @param options The options parameters.
29
+ */
30
+ listByResourceGroup(resourceGroupName, rootResourceName, options) {
31
+ return this.client.sendOperationRequest({ resourceGroupName, rootResourceName, options }, listByResourceGroupOperationSpec);
32
+ }
33
+ /**
34
+ * Creates a Team Services project in the collection with the specified name. 'VersionControlOption'
35
+ * and 'ProcessTemplateId' must be specified in the resource properties. Valid values for
36
+ * VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
37
+ * 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
38
+ * 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
39
+ * templates).
40
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
41
+ * @param rootResourceName Name of the Team Services account.
42
+ * @param resourceName Name of the Team Services project.
43
+ * @param body The request data.
44
+ * @param options The options parameters.
45
+ */
46
+ beginCreate(resourceGroupName, rootResourceName, resourceName, body, options) {
47
+ return __awaiter(this, void 0, void 0, function* () {
48
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
49
+ return this.client.sendOperationRequest(args, spec);
50
+ });
51
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
52
+ var _a;
53
+ let currentRawResponse = undefined;
54
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
55
+ const callback = (rawResponse, flatResponse) => {
56
+ currentRawResponse = rawResponse;
57
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
58
+ };
59
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
60
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
61
+ return {
62
+ flatResponse,
63
+ rawResponse: {
64
+ statusCode: currentRawResponse.status,
65
+ body: currentRawResponse.parsedBody,
66
+ headers: currentRawResponse.headers.toJSON()
67
+ }
68
+ };
69
+ });
70
+ const lro = new LroImpl(sendOperation, { resourceGroupName, rootResourceName, resourceName, body, options }, createOperationSpec);
71
+ return new LroEngine(lro, {
72
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
73
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
74
+ });
75
+ });
76
+ }
77
+ /**
78
+ * Creates a Team Services project in the collection with the specified name. 'VersionControlOption'
79
+ * and 'ProcessTemplateId' must be specified in the resource properties. Valid values for
80
+ * VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
81
+ * 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
82
+ * 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
83
+ * templates).
84
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
85
+ * @param rootResourceName Name of the Team Services account.
86
+ * @param resourceName Name of the Team Services project.
87
+ * @param body The request data.
88
+ * @param options The options parameters.
89
+ */
90
+ beginCreateAndWait(resourceGroupName, rootResourceName, resourceName, body, options) {
91
+ return __awaiter(this, void 0, void 0, function* () {
92
+ const poller = yield this.beginCreate(resourceGroupName, rootResourceName, resourceName, body, options);
93
+ return poller.pollUntilDone();
94
+ });
95
+ }
96
+ /**
97
+ * Gets the details of a Team Services project resource.
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 options The options parameters.
102
+ */
103
+ get(resourceGroupName, rootResourceName, resourceName, options) {
104
+ return this.client.sendOperationRequest({ resourceGroupName, rootResourceName, resourceName, options }, getOperationSpec);
105
+ }
106
+ /**
107
+ * Updates the tags of the specified Team Services project.
108
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
109
+ * @param rootResourceName Name of the Team Services account.
110
+ * @param resourceName Name of the Team Services project.
111
+ * @param body The request data.
112
+ * @param options The options parameters.
113
+ */
114
+ update(resourceGroupName, rootResourceName, resourceName, body, options) {
115
+ return this.client.sendOperationRequest({ resourceGroupName, rootResourceName, resourceName, body, options }, updateOperationSpec);
116
+ }
117
+ /**
118
+ * Gets the status of the project resource creation job.
119
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
120
+ * @param rootResourceName Name of the Team Services account.
121
+ * @param resourceName Name of the Team Services project.
122
+ * @param subContainerName This parameter should be set to the resourceName.
123
+ * @param operation The operation type. The only supported value is 'put'.
124
+ * @param options The options parameters.
125
+ */
126
+ getJobStatus(resourceGroupName, rootResourceName, resourceName, subContainerName, operation, options) {
127
+ return this.client.sendOperationRequest({
128
+ resourceGroupName,
129
+ rootResourceName,
130
+ resourceName,
131
+ subContainerName,
132
+ operation,
133
+ options
134
+ }, getJobStatusOperationSpec);
135
+ }
136
+ }
137
+ // Operation Specifications
138
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
139
+ const listByResourceGroupOperationSpec = {
140
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project",
141
+ httpMethod: "GET",
142
+ responses: {
143
+ 200: {
144
+ bodyMapper: Mappers.ProjectResourceListResult
145
+ }
146
+ },
147
+ queryParameters: [Parameters.apiVersion],
148
+ urlParameters: [
149
+ Parameters.$host,
150
+ Parameters.subscriptionId,
151
+ Parameters.resourceGroupName,
152
+ Parameters.rootResourceName
153
+ ],
154
+ headerParameters: [Parameters.accept],
155
+ serializer
156
+ };
157
+ const createOperationSpec = {
158
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}",
159
+ httpMethod: "PUT",
160
+ responses: {
161
+ 200: {
162
+ bodyMapper: Mappers.ProjectResource
163
+ },
164
+ 201: {
165
+ bodyMapper: Mappers.ProjectResource
166
+ },
167
+ 202: {
168
+ bodyMapper: Mappers.ProjectResource
169
+ },
170
+ 204: {
171
+ bodyMapper: Mappers.ProjectResource
172
+ }
173
+ },
174
+ requestBody: Parameters.body4,
175
+ queryParameters: [Parameters.apiVersion, Parameters.validating],
176
+ urlParameters: [
177
+ Parameters.$host,
178
+ Parameters.subscriptionId,
179
+ Parameters.resourceGroupName,
180
+ Parameters.resourceName,
181
+ Parameters.rootResourceName
182
+ ],
183
+ headerParameters: [Parameters.accept, Parameters.contentType],
184
+ mediaType: "json",
185
+ serializer
186
+ };
187
+ const getOperationSpec = {
188
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}",
189
+ httpMethod: "GET",
190
+ responses: {
191
+ 200: {
192
+ bodyMapper: Mappers.ProjectResource
193
+ },
194
+ 404: {}
195
+ },
196
+ queryParameters: [Parameters.apiVersion],
197
+ urlParameters: [
198
+ Parameters.$host,
199
+ Parameters.subscriptionId,
200
+ Parameters.resourceGroupName,
201
+ Parameters.resourceName,
202
+ Parameters.rootResourceName
203
+ ],
204
+ headerParameters: [Parameters.accept],
205
+ serializer
206
+ };
207
+ const updateOperationSpec = {
208
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}",
209
+ httpMethod: "PATCH",
210
+ responses: {
211
+ 200: {
212
+ bodyMapper: Mappers.ProjectResource
213
+ }
214
+ },
215
+ requestBody: Parameters.body4,
216
+ queryParameters: [Parameters.apiVersion],
217
+ urlParameters: [
218
+ Parameters.$host,
219
+ Parameters.subscriptionId,
220
+ Parameters.resourceGroupName,
221
+ Parameters.resourceName,
222
+ Parameters.rootResourceName
223
+ ],
224
+ headerParameters: [Parameters.accept, Parameters.contentType],
225
+ mediaType: "json",
226
+ serializer
227
+ };
228
+ const getJobStatusOperationSpec = {
229
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}/subContainers/{subContainerName}/status",
230
+ httpMethod: "GET",
231
+ responses: {
232
+ 200: {
233
+ bodyMapper: Mappers.ProjectResource
234
+ },
235
+ 202: {}
236
+ },
237
+ queryParameters: [
238
+ Parameters.apiVersion,
239
+ Parameters.operation,
240
+ Parameters.jobId
241
+ ],
242
+ urlParameters: [
243
+ Parameters.$host,
244
+ Parameters.subscriptionId,
245
+ Parameters.resourceGroupName,
246
+ Parameters.resourceName,
247
+ Parameters.rootResourceName,
248
+ Parameters.subContainerName
249
+ ],
250
+ headerParameters: [Parameters.accept],
251
+ serializer
252
+ };
253
+ //# sourceMappingURL=projects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projects.js","sourceRoot":"","sources":["../../../src/operations/projects.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAerC,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAA0C;QACpD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,mBAAmB,CACjB,iBAAyB,EACzB,gBAAwB,EACxB,OAAmD;QAEnD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,OAAO,EAAE,EAChD,gCAAgC,CACjC,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;OAYG;IACG,WAAW,CACf,iBAAyB,EACzB,gBAAwB,EACxB,YAAoB,EACpB,IAAqB,EACrB,OAAsC;;YAOtC,MAAM,mBAAmB,GAAG,CAC1B,IAAmC,EACnC,IAA8B,EACG,EAAE;gBACnC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI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