@azure/arm-batch 6.0.0 → 7.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 (254) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +70 -82
  4. package/dist/index.js +6873 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/batchManagementClient.d.ts +24 -0
  9. package/dist-esm/src/batchManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/batchManagementClient.js +31 -0
  11. package/dist-esm/src/batchManagementClient.js.map +1 -0
  12. package/dist-esm/src/batchManagementClientContext.d.ts +17 -0
  13. package/dist-esm/src/batchManagementClientContext.d.ts.map +1 -0
  14. package/dist-esm/src/batchManagementClientContext.js +50 -0
  15. package/dist-esm/src/batchManagementClientContext.js.map +1 -0
  16. package/dist-esm/src/index.d.ts +6 -0
  17. package/dist-esm/src/index.d.ts.map +1 -0
  18. package/dist-esm/src/index.js +13 -0
  19. package/dist-esm/src/index.js.map +1 -0
  20. package/dist-esm/src/lroImpl.d.ts +16 -0
  21. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  22. package/dist-esm/src/lroImpl.js +29 -0
  23. package/dist-esm/src/lroImpl.js.map +1 -0
  24. package/dist-esm/src/models/index.d.ts +1780 -0
  25. package/dist-esm/src/models/index.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/index.js +1 -0
  27. package/dist-esm/src/models/index.js.map +1 -0
  28. package/dist-esm/src/models/mappers.d.ts +112 -0
  29. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  30. package/{esm → dist-esm/src}/models/mappers.js +1723 -1885
  31. package/dist-esm/src/models/mappers.js.map +1 -0
  32. package/dist-esm/src/models/parameters.d.ts +34 -0
  33. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  34. package/dist-esm/src/models/parameters.js +303 -0
  35. package/dist-esm/src/models/parameters.js.map +1 -0
  36. package/dist-esm/src/operations/applicationOperations.d.ts +71 -0
  37. package/dist-esm/src/operations/applicationOperations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/applicationOperations.js +269 -0
  39. package/dist-esm/src/operations/applicationOperations.js.map +1 -0
  40. package/dist-esm/src/operations/applicationPackageOperations.d.ts +83 -0
  41. package/dist-esm/src/operations/applicationPackageOperations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/applicationPackageOperations.js +294 -0
  43. package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -0
  44. package/dist-esm/src/operations/batchAccountOperations.d.ts +171 -0
  45. package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/batchAccountOperations.js +681 -0
  47. package/dist-esm/src/operations/batchAccountOperations.js.map +1 -0
  48. package/dist-esm/src/operations/certificateOperations.d.ts +106 -0
  49. package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -0
  50. package/dist-esm/src/operations/certificateOperations.js +388 -0
  51. package/dist-esm/src/operations/certificateOperations.js.map +1 -0
  52. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  53. package/dist-esm/src/operations/index.d.ts.map +1 -0
  54. package/{esm → dist-esm/src}/operations/index.js +1 -2
  55. package/dist-esm/src/operations/index.js.map +1 -0
  56. package/dist-esm/src/operations/location.d.ts +71 -0
  57. package/dist-esm/src/operations/location.d.ts.map +1 -0
  58. package/dist-esm/src/operations/location.js +316 -0
  59. package/dist-esm/src/operations/location.js.map +1 -0
  60. package/dist-esm/src/operations/operations.d.ts +32 -0
  61. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  62. package/dist-esm/src/operations/operations.js +120 -0
  63. package/dist-esm/src/operations/operations.js.map +1 -0
  64. package/dist-esm/src/operations/poolOperations.d.ts +103 -0
  65. package/dist-esm/src/operations/poolOperations.d.ts.map +1 -0
  66. package/dist-esm/src/operations/poolOperations.js +410 -0
  67. package/dist-esm/src/operations/poolOperations.js.map +1 -0
  68. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +70 -0
  69. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -0
  70. package/dist-esm/src/operations/privateEndpointConnectionOperations.js +278 -0
  71. package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -0
  72. package/dist-esm/src/operations/privateLinkResourceOperations.d.ts +47 -0
  73. package/dist-esm/src/operations/privateLinkResourceOperations.d.ts.map +1 -0
  74. package/dist-esm/src/operations/privateLinkResourceOperations.js +170 -0
  75. package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts +46 -0
  77. package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts.map +1 -0
  78. package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/applicationOperations.js} +2 -7
  79. package/dist-esm/src/operationsInterfaces/applicationOperations.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/applicationPackageOperations.d.ts +56 -0
  81. package/dist-esm/src/operationsInterfaces/applicationPackageOperations.d.ts.map +1 -0
  82. package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/applicationPackageOperations.js} +2 -2
  83. package/dist-esm/src/operationsInterfaces/applicationPackageOperations.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +112 -0
  85. package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts.map +1 -0
  86. package/{src/models/locationMappers.ts → dist-esm/src/operationsInterfaces/batchAccountOperations.js} +2 -10
  87. package/dist-esm/src/operationsInterfaces/batchAccountOperations.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts +81 -0
  89. package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/certificateOperations.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/certificateOperations.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/index.d.ts +10 -0
  93. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/index.js +17 -0
  95. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/location.d.ts +31 -0
  97. package/dist-esm/src/operationsInterfaces/location.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/location.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/location.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  101. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/poolOperations.d.ts +78 -0
  105. package/dist-esm/src/operationsInterfaces/poolOperations.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/poolOperations.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/poolOperations.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts +45 -0
  109. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.d.ts +22 -0
  113. package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.js.map +1 -0
  116. package/dist-esm/test/sampleTest.d.ts +4 -0
  117. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  118. package/dist-esm/test/sampleTest.js +479 -0
  119. package/dist-esm/test/sampleTest.js.map +1 -0
  120. package/package.json +66 -32
  121. package/review/arm-batch.api.md +1459 -0
  122. package/rollup.config.js +181 -30
  123. package/src/batchManagementClient.ts +59 -48
  124. package/src/batchManagementClientContext.ts +46 -43
  125. package/src/index.ts +13 -0
  126. package/src/lroImpl.ts +34 -0
  127. package/src/models/index.ts +1460 -3635
  128. package/src/models/mappers.ts +1705 -1851
  129. package/src/models/parameters.ts +216 -117
  130. package/src/operations/applicationOperations.ts +215 -263
  131. package/src/operations/applicationPackageOperations.ts +252 -279
  132. package/src/operations/batchAccountOperations.ts +660 -572
  133. package/src/operations/certificateOperations.ts +360 -359
  134. package/src/operations/index.ts +1 -2
  135. package/src/operations/location.ts +285 -234
  136. package/src/operations/operations.ts +82 -70
  137. package/src/operations/poolOperations.ts +373 -378
  138. package/src/operations/privateEndpointConnectionOperations.ts +269 -169
  139. package/src/operations/privateLinkResourceOperations.ts +156 -126
  140. package/src/operationsInterfaces/applicationOperations.ts +90 -0
  141. package/src/operationsInterfaces/applicationPackageOperations.ts +106 -0
  142. package/src/operationsInterfaces/batchAccountOperations.ts +196 -0
  143. package/src/operationsInterfaces/certificateOperations.ts +139 -0
  144. package/src/operationsInterfaces/index.ts +17 -0
  145. package/src/operationsInterfaces/location.ts +62 -0
  146. package/src/operationsInterfaces/operations.ts +22 -0
  147. package/src/operationsInterfaces/poolOperations.ts +142 -0
  148. package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +87 -0
  149. package/src/operationsInterfaces/privateLinkResourceOperations.ts +45 -0
  150. package/tsconfig.json +3 -3
  151. package/types/arm-batch.d.ts +2528 -0
  152. package/types/tsdoc-metadata.json +11 -0
  153. package/dist/arm-batch.js +0 -6972
  154. package/dist/arm-batch.js.map +0 -1
  155. package/dist/arm-batch.min.js +0 -1
  156. package/dist/arm-batch.min.js.map +0 -1
  157. package/esm/batchManagementClient.d.ts +0 -33
  158. package/esm/batchManagementClient.d.ts.map +0 -1
  159. package/esm/batchManagementClient.js +0 -46
  160. package/esm/batchManagementClient.js.map +0 -1
  161. package/esm/batchManagementClientContext.d.ts +0 -23
  162. package/esm/batchManagementClientContext.d.ts.map +0 -1
  163. package/esm/batchManagementClientContext.js +0 -61
  164. package/esm/batchManagementClientContext.js.map +0 -1
  165. package/esm/models/applicationOperationsMappers.d.ts +0 -2
  166. package/esm/models/applicationOperationsMappers.d.ts.map +0 -1
  167. package/esm/models/applicationOperationsMappers.js +0 -9
  168. package/esm/models/applicationOperationsMappers.js.map +0 -1
  169. package/esm/models/applicationPackageOperationsMappers.d.ts +0 -2
  170. package/esm/models/applicationPackageOperationsMappers.d.ts.map +0 -1
  171. package/esm/models/applicationPackageOperationsMappers.js +0 -9
  172. package/esm/models/applicationPackageOperationsMappers.js.map +0 -1
  173. package/esm/models/batchAccountOperationsMappers.d.ts +0 -2
  174. package/esm/models/batchAccountOperationsMappers.d.ts.map +0 -1
  175. package/esm/models/batchAccountOperationsMappers.js +0 -9
  176. package/esm/models/batchAccountOperationsMappers.js.map +0 -1
  177. package/esm/models/certificateOperationsMappers.d.ts +0 -2
  178. package/esm/models/certificateOperationsMappers.d.ts.map +0 -1
  179. package/esm/models/certificateOperationsMappers.js +0 -9
  180. package/esm/models/certificateOperationsMappers.js.map +0 -1
  181. package/esm/models/index.d.ts +0 -3946
  182. package/esm/models/index.d.ts.map +0 -1
  183. package/esm/models/index.js.map +0 -1
  184. package/esm/models/locationMappers.d.ts +0 -2
  185. package/esm/models/locationMappers.d.ts.map +0 -1
  186. package/esm/models/locationMappers.js +0 -9
  187. package/esm/models/locationMappers.js.map +0 -1
  188. package/esm/models/mappers.d.ts +0 -110
  189. package/esm/models/mappers.d.ts.map +0 -1
  190. package/esm/models/mappers.js.map +0 -1
  191. package/esm/models/operationsMappers.d.ts +0 -2
  192. package/esm/models/operationsMappers.d.ts.map +0 -1
  193. package/esm/models/operationsMappers.js.map +0 -1
  194. package/esm/models/parameters.d.ts +0 -21
  195. package/esm/models/parameters.d.ts.map +0 -1
  196. package/esm/models/parameters.js +0 -250
  197. package/esm/models/parameters.js.map +0 -1
  198. package/esm/models/poolOperationsMappers.d.ts +0 -2
  199. package/esm/models/poolOperationsMappers.d.ts.map +0 -1
  200. package/esm/models/poolOperationsMappers.js +0 -9
  201. package/esm/models/poolOperationsMappers.js.map +0 -1
  202. package/esm/models/privateEndpointConnectionOperationsMappers.d.ts +0 -2
  203. package/esm/models/privateEndpointConnectionOperationsMappers.d.ts.map +0 -1
  204. package/esm/models/privateEndpointConnectionOperationsMappers.js +0 -9
  205. package/esm/models/privateEndpointConnectionOperationsMappers.js.map +0 -1
  206. package/esm/models/privateLinkResourceOperationsMappers.d.ts +0 -2
  207. package/esm/models/privateLinkResourceOperationsMappers.d.ts.map +0 -1
  208. package/esm/models/privateLinkResourceOperationsMappers.js +0 -9
  209. package/esm/models/privateLinkResourceOperationsMappers.js.map +0 -1
  210. package/esm/operations/applicationOperations.d.ts +0 -151
  211. package/esm/operations/applicationOperations.d.ts.map +0 -1
  212. package/esm/operations/applicationOperations.js +0 -232
  213. package/esm/operations/applicationOperations.js.map +0 -1
  214. package/esm/operations/applicationPackageOperations.d.ts +0 -171
  215. package/esm/operations/applicationPackageOperations.d.ts.map +0 -1
  216. package/esm/operations/applicationPackageOperations.js +0 -244
  217. package/esm/operations/applicationPackageOperations.js.map +0 -1
  218. package/esm/operations/batchAccountOperations.d.ts +0 -299
  219. package/esm/operations/batchAccountOperations.d.ts.map +0 -1
  220. package/esm/operations/batchAccountOperations.js +0 -493
  221. package/esm/operations/batchAccountOperations.js.map +0 -1
  222. package/esm/operations/certificateOperations.d.ts +0 -207
  223. package/esm/operations/certificateOperations.d.ts.map +0 -1
  224. package/esm/operations/certificateOperations.js +0 -310
  225. package/esm/operations/certificateOperations.js.map +0 -1
  226. package/esm/operations/index.d.ts.map +0 -1
  227. package/esm/operations/index.js.map +0 -1
  228. package/esm/operations/location.d.ts +0 -124
  229. package/esm/operations/location.d.ts.map +0 -1
  230. package/esm/operations/location.js +0 -216
  231. package/esm/operations/location.js.map +0 -1
  232. package/esm/operations/operations.d.ts +0 -46
  233. package/esm/operations/operations.d.ts.map +0 -1
  234. package/esm/operations/operations.js +0 -79
  235. package/esm/operations/operations.js.map +0 -1
  236. package/esm/operations/poolOperations.d.ts +0 -206
  237. package/esm/operations/poolOperations.d.ts.map +0 -1
  238. package/esm/operations/poolOperations.js +0 -341
  239. package/esm/operations/poolOperations.js.map +0 -1
  240. package/esm/operations/privateEndpointConnectionOperations.d.ts +0 -104
  241. package/esm/operations/privateEndpointConnectionOperations.d.ts.map +0 -1
  242. package/esm/operations/privateEndpointConnectionOperations.js +0 -195
  243. package/esm/operations/privateEndpointConnectionOperations.js.map +0 -1
  244. package/esm/operations/privateLinkResourceOperations.d.ts +0 -79
  245. package/esm/operations/privateLinkResourceOperations.d.ts.map +0 -1
  246. package/esm/operations/privateLinkResourceOperations.js +0 -121
  247. package/esm/operations/privateLinkResourceOperations.js.map +0 -1
  248. package/src/models/applicationOperationsMappers.ts +0 -79
  249. package/src/models/applicationPackageOperationsMappers.ts +0 -80
  250. package/src/models/batchAccountOperationsMappers.ts +0 -89
  251. package/src/models/certificateOperationsMappers.ts +0 -84
  252. package/src/models/poolOperationsMappers.ts +0 -85
  253. package/src/models/privateEndpointConnectionOperationsMappers.ts +0 -80
  254. package/src/models/privateLinkResourceOperationsMappers.ts +0 -79
@@ -0,0 +1,269 @@
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } 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
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing ApplicationOperations operations. */
14
+ export class ApplicationOperationsImpl {
15
+ /**
16
+ * Initialize a new instance of the class ApplicationOperations class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Lists all of the applications in the specified account.
24
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
25
+ * @param accountName The name of the Batch account.
26
+ * @param options The options parameters.
27
+ */
28
+ list(resourceGroupName, accountName, options) {
29
+ const iter = this.listPagingAll(resourceGroupName, accountName, options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: () => {
38
+ return this.listPagingPage(resourceGroupName, accountName, options);
39
+ }
40
+ };
41
+ }
42
+ listPagingPage(resourceGroupName, accountName, options) {
43
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
44
+ let result = yield __await(this._list(resourceGroupName, accountName, options));
45
+ yield yield __await(result.value || []);
46
+ let continuationToken = result.nextLink;
47
+ while (continuationToken) {
48
+ result = yield __await(this._listNext(resourceGroupName, accountName, continuationToken, options));
49
+ continuationToken = result.nextLink;
50
+ yield yield __await(result.value || []);
51
+ }
52
+ });
53
+ }
54
+ listPagingAll(resourceGroupName, accountName, options) {
55
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
56
+ var e_1, _a;
57
+ try {
58
+ for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
59
+ const page = _c.value;
60
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
61
+ }
62
+ }
63
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
+ finally {
65
+ try {
66
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
67
+ }
68
+ finally { if (e_1) throw e_1.error; }
69
+ }
70
+ });
71
+ }
72
+ /**
73
+ * Adds an application to the specified Batch account.
74
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
75
+ * @param accountName The name of the Batch account.
76
+ * @param applicationName The name of the application. This must be unique within the account.
77
+ * @param options The options parameters.
78
+ */
79
+ create(resourceGroupName, accountName, applicationName, options) {
80
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, applicationName, options }, createOperationSpec);
81
+ }
82
+ /**
83
+ * Deletes an application.
84
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
85
+ * @param accountName The name of the Batch account.
86
+ * @param applicationName The name of the application. This must be unique within the account.
87
+ * @param options The options parameters.
88
+ */
89
+ delete(resourceGroupName, accountName, applicationName, options) {
90
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, applicationName, options }, deleteOperationSpec);
91
+ }
92
+ /**
93
+ * Gets information about the specified application.
94
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
95
+ * @param accountName The name of the Batch account.
96
+ * @param applicationName The name of the application. This must be unique within the account.
97
+ * @param options The options parameters.
98
+ */
99
+ get(resourceGroupName, accountName, applicationName, options) {
100
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, applicationName, options }, getOperationSpec);
101
+ }
102
+ /**
103
+ * Updates settings for the specified application.
104
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
105
+ * @param accountName The name of the Batch account.
106
+ * @param applicationName The name of the application. This must be unique within the account.
107
+ * @param parameters The parameters for the request.
108
+ * @param options The options parameters.
109
+ */
110
+ update(resourceGroupName, accountName, applicationName, parameters, options) {
111
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, applicationName, parameters, options }, updateOperationSpec);
112
+ }
113
+ /**
114
+ * Lists all of the applications in the specified account.
115
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
116
+ * @param accountName The name of the Batch account.
117
+ * @param options The options parameters.
118
+ */
119
+ _list(resourceGroupName, accountName, options) {
120
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
121
+ }
122
+ /**
123
+ * ListNext
124
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
125
+ * @param accountName The name of the Batch account.
126
+ * @param nextLink The nextLink from the previous successful call to the List method.
127
+ * @param options The options parameters.
128
+ */
129
+ _listNext(resourceGroupName, accountName, nextLink, options) {
130
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listNextOperationSpec);
131
+ }
132
+ }
133
+ // Operation Specifications
134
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
135
+ const createOperationSpec = {
136
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}",
137
+ httpMethod: "PUT",
138
+ responses: {
139
+ 200: {
140
+ bodyMapper: Mappers.Application
141
+ },
142
+ default: {
143
+ bodyMapper: Mappers.CloudError
144
+ }
145
+ },
146
+ requestBody: Parameters.parameters5,
147
+ queryParameters: [Parameters.apiVersion],
148
+ urlParameters: [
149
+ Parameters.$host,
150
+ Parameters.resourceGroupName,
151
+ Parameters.subscriptionId,
152
+ Parameters.accountName1,
153
+ Parameters.applicationName
154
+ ],
155
+ headerParameters: [Parameters.contentType, Parameters.accept],
156
+ mediaType: "json",
157
+ serializer
158
+ };
159
+ const deleteOperationSpec = {
160
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}",
161
+ httpMethod: "DELETE",
162
+ responses: {
163
+ 200: {},
164
+ 204: {},
165
+ default: {
166
+ bodyMapper: Mappers.CloudError
167
+ }
168
+ },
169
+ queryParameters: [Parameters.apiVersion],
170
+ urlParameters: [
171
+ Parameters.$host,
172
+ Parameters.resourceGroupName,
173
+ Parameters.subscriptionId,
174
+ Parameters.accountName1,
175
+ Parameters.applicationName
176
+ ],
177
+ headerParameters: [Parameters.accept],
178
+ serializer
179
+ };
180
+ const getOperationSpec = {
181
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}",
182
+ httpMethod: "GET",
183
+ responses: {
184
+ 200: {
185
+ bodyMapper: Mappers.Application
186
+ },
187
+ default: {
188
+ bodyMapper: Mappers.CloudError
189
+ }
190
+ },
191
+ queryParameters: [Parameters.apiVersion],
192
+ urlParameters: [
193
+ Parameters.$host,
194
+ Parameters.resourceGroupName,
195
+ Parameters.subscriptionId,
196
+ Parameters.accountName1,
197
+ Parameters.applicationName
198
+ ],
199
+ headerParameters: [Parameters.accept],
200
+ serializer
201
+ };
202
+ const updateOperationSpec = {
203
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}",
204
+ httpMethod: "PATCH",
205
+ responses: {
206
+ 200: {
207
+ bodyMapper: Mappers.Application
208
+ },
209
+ default: {
210
+ bodyMapper: Mappers.CloudError
211
+ }
212
+ },
213
+ requestBody: Parameters.parameters6,
214
+ queryParameters: [Parameters.apiVersion],
215
+ urlParameters: [
216
+ Parameters.$host,
217
+ Parameters.resourceGroupName,
218
+ Parameters.subscriptionId,
219
+ Parameters.accountName1,
220
+ Parameters.applicationName
221
+ ],
222
+ headerParameters: [Parameters.contentType, Parameters.accept],
223
+ mediaType: "json",
224
+ serializer
225
+ };
226
+ const listOperationSpec = {
227
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications",
228
+ httpMethod: "GET",
229
+ responses: {
230
+ 200: {
231
+ bodyMapper: Mappers.ListApplicationsResult
232
+ },
233
+ default: {
234
+ bodyMapper: Mappers.CloudError
235
+ }
236
+ },
237
+ queryParameters: [Parameters.apiVersion, Parameters.maxresults],
238
+ urlParameters: [
239
+ Parameters.$host,
240
+ Parameters.resourceGroupName,
241
+ Parameters.subscriptionId,
242
+ Parameters.accountName1
243
+ ],
244
+ headerParameters: [Parameters.accept],
245
+ serializer
246
+ };
247
+ const listNextOperationSpec = {
248
+ path: "{nextLink}",
249
+ httpMethod: "GET",
250
+ responses: {
251
+ 200: {
252
+ bodyMapper: Mappers.ListApplicationsResult
253
+ },
254
+ default: {
255
+ bodyMapper: Mappers.CloudError
256
+ }
257
+ },
258
+ queryParameters: [Parameters.apiVersion, Parameters.maxresults],
259
+ urlParameters: [
260
+ Parameters.$host,
261
+ Parameters.resourceGroupName,
262
+ Parameters.subscriptionId,
263
+ Parameters.accountName1,
264
+ Parameters.nextLink
265
+ ],
266
+ headerParameters: [Parameters.accept],
267
+ serializer
268
+ };
269
+ //# sourceMappingURL=applicationOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicationOperations.js","sourceRoot":"","sources":["../../../src/operations/applicationOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAiBnD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAuC;QAEvC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;YACtE,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,WAAmB,EACnB,OAAuC;;YAEvC,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAA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E;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;IAC/D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,83 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { ApplicationPackageOperations } from "../operationsInterfaces";
3
+ import { BatchManagementClientContext } from "../batchManagementClientContext";
4
+ import { ApplicationPackage, ApplicationPackageListOptionalParams, ActivateApplicationPackageParameters, ApplicationPackageActivateOptionalParams, ApplicationPackageActivateResponse, ApplicationPackageCreateOptionalParams, ApplicationPackageCreateResponse, ApplicationPackageDeleteOptionalParams, ApplicationPackageGetOptionalParams, ApplicationPackageGetResponse } from "../models";
5
+ /** Class containing ApplicationPackageOperations operations. */
6
+ export declare class ApplicationPackageOperationsImpl implements ApplicationPackageOperations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class ApplicationPackageOperations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: BatchManagementClientContext);
13
+ /**
14
+ * Lists all of the application packages in the specified application.
15
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
16
+ * @param accountName The name of the Batch account.
17
+ * @param applicationName The name of the application. This must be unique within the account.
18
+ * @param options The options parameters.
19
+ */
20
+ list(resourceGroupName: string, accountName: string, applicationName: string, options?: ApplicationPackageListOptionalParams): PagedAsyncIterableIterator<ApplicationPackage>;
21
+ private listPagingPage;
22
+ private listPagingAll;
23
+ /**
24
+ * Activates the specified application package. This should be done after the `ApplicationPackage` was
25
+ * created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or
26
+ * Tasks.
27
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
28
+ * @param accountName The name of the Batch account.
29
+ * @param applicationName The name of the application. This must be unique within the account.
30
+ * @param versionName The version of the application.
31
+ * @param parameters The parameters for the request.
32
+ * @param options The options parameters.
33
+ */
34
+ activate(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, parameters: ActivateApplicationPackageParameters, options?: ApplicationPackageActivateOptionalParams): Promise<ApplicationPackageActivateResponse>;
35
+ /**
36
+ * Creates an application package record. The record contains a storageUrl where the package should be
37
+ * uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using
38
+ * `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use
39
+ * storage keys, the URL returned will contain a SAS.
40
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
41
+ * @param accountName The name of the Batch account.
42
+ * @param applicationName The name of the application. This must be unique within the account.
43
+ * @param versionName The version of the application.
44
+ * @param options The options parameters.
45
+ */
46
+ create(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options?: ApplicationPackageCreateOptionalParams): Promise<ApplicationPackageCreateResponse>;
47
+ /**
48
+ * Deletes an application package record and its associated binary file.
49
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
50
+ * @param accountName The name of the Batch account.
51
+ * @param applicationName The name of the application. This must be unique within the account.
52
+ * @param versionName The version of the application.
53
+ * @param options The options parameters.
54
+ */
55
+ delete(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options?: ApplicationPackageDeleteOptionalParams): Promise<void>;
56
+ /**
57
+ * Gets information about the specified application package.
58
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
59
+ * @param accountName The name of the Batch account.
60
+ * @param applicationName The name of the application. This must be unique within the account.
61
+ * @param versionName The version of the application.
62
+ * @param options The options parameters.
63
+ */
64
+ get(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options?: ApplicationPackageGetOptionalParams): Promise<ApplicationPackageGetResponse>;
65
+ /**
66
+ * Lists all of the application packages in the specified application.
67
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
68
+ * @param accountName The name of the Batch account.
69
+ * @param applicationName The name of the application. This must be unique within the account.
70
+ * @param options The options parameters.
71
+ */
72
+ private _list;
73
+ /**
74
+ * ListNext
75
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
76
+ * @param accountName The name of the Batch account.
77
+ * @param applicationName The name of the application. This must be unique within the account.
78
+ * @param nextLink The nextLink from the previous successful call to the List method.
79
+ * @param options The options parameters.
80
+ */
81
+ private _listNext;
82
+ }
83
+ //# sourceMappingURL=applicationPackageOperations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicationPackageOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/applicationPackageOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAIvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EACL,kBAAkB,EAElB,oCAAoC,EACpC,oCAAoC,EACpC,wCAAwC,EACxC,kCAAkC,EAClC,sCAAsC,EACtC,gCAAgC,EAChC,sCAAsC,EACtC,mCAAmC,EACnC,6BAA6B,EAG9B,MAAM,WAAW,CAAC;AAGnB,gEAAgE;AAChE,qBAAa,gCACX,YAAW,4BAA4B;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;IAEtD;;;OAGG;gBACS,MAAM,EAAE,4BAA4B;IAIhD;;;;;;OAMG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,0BAA0B,CAAC,kBAAkB,CAAC;YAyBlC,cAAc;YA2Bd,aAAa;IAgB5B;;;;;;;;;;OAUG;IACH,QAAQ,CACN,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,oCAAoC,EAChD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC;IAc9C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;IAO5C;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC;IAOzC;;;;;;OAMG;IACH,OAAO,CAAC,KAAK;IAYb;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;CAYlB"}
@@ -0,0 +1,294 @@
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } 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
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing ApplicationPackageOperations operations. */
14
+ export class ApplicationPackageOperationsImpl {
15
+ /**
16
+ * Initialize a new instance of the class ApplicationPackageOperations class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Lists all of the application packages in the specified application.
24
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
25
+ * @param accountName The name of the Batch account.
26
+ * @param applicationName The name of the application. This must be unique within the account.
27
+ * @param options The options parameters.
28
+ */
29
+ list(resourceGroupName, accountName, applicationName, options) {
30
+ const iter = this.listPagingAll(resourceGroupName, accountName, applicationName, options);
31
+ return {
32
+ next() {
33
+ return iter.next();
34
+ },
35
+ [Symbol.asyncIterator]() {
36
+ return this;
37
+ },
38
+ byPage: () => {
39
+ return this.listPagingPage(resourceGroupName, accountName, applicationName, options);
40
+ }
41
+ };
42
+ }
43
+ listPagingPage(resourceGroupName, accountName, applicationName, options) {
44
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
45
+ let result = yield __await(this._list(resourceGroupName, accountName, applicationName, options));
46
+ yield yield __await(result.value || []);
47
+ let continuationToken = result.nextLink;
48
+ while (continuationToken) {
49
+ result = yield __await(this._listNext(resourceGroupName, accountName, applicationName, continuationToken, options));
50
+ continuationToken = result.nextLink;
51
+ yield yield __await(result.value || []);
52
+ }
53
+ });
54
+ }
55
+ listPagingAll(resourceGroupName, accountName, applicationName, options) {
56
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
57
+ var e_1, _a;
58
+ try {
59
+ for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, applicationName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
60
+ const page = _c.value;
61
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
62
+ }
63
+ }
64
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
65
+ finally {
66
+ try {
67
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
68
+ }
69
+ finally { if (e_1) throw e_1.error; }
70
+ }
71
+ });
72
+ }
73
+ /**
74
+ * Activates the specified application package. This should be done after the `ApplicationPackage` was
75
+ * created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or
76
+ * Tasks.
77
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
78
+ * @param accountName The name of the Batch account.
79
+ * @param applicationName The name of the application. This must be unique within the account.
80
+ * @param versionName The version of the application.
81
+ * @param parameters The parameters for the request.
82
+ * @param options The options parameters.
83
+ */
84
+ activate(resourceGroupName, accountName, applicationName, versionName, parameters, options) {
85
+ return this.client.sendOperationRequest({
86
+ resourceGroupName,
87
+ accountName,
88
+ applicationName,
89
+ versionName,
90
+ parameters,
91
+ options
92
+ }, activateOperationSpec);
93
+ }
94
+ /**
95
+ * Creates an application package record. The record contains a storageUrl where the package should be
96
+ * uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using
97
+ * `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use
98
+ * storage keys, the URL returned will contain a SAS.
99
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
100
+ * @param accountName The name of the Batch account.
101
+ * @param applicationName The name of the application. This must be unique within the account.
102
+ * @param versionName The version of the application.
103
+ * @param options The options parameters.
104
+ */
105
+ create(resourceGroupName, accountName, applicationName, versionName, options) {
106
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, applicationName, versionName, options }, createOperationSpec);
107
+ }
108
+ /**
109
+ * Deletes an application package record and its associated binary file.
110
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
111
+ * @param accountName The name of the Batch account.
112
+ * @param applicationName The name of the application. This must be unique within the account.
113
+ * @param versionName The version of the application.
114
+ * @param options The options parameters.
115
+ */
116
+ delete(resourceGroupName, accountName, applicationName, versionName, options) {
117
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, applicationName, versionName, options }, deleteOperationSpec);
118
+ }
119
+ /**
120
+ * Gets information about the specified application package.
121
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
122
+ * @param accountName The name of the Batch account.
123
+ * @param applicationName The name of the application. This must be unique within the account.
124
+ * @param versionName The version of the application.
125
+ * @param options The options parameters.
126
+ */
127
+ get(resourceGroupName, accountName, applicationName, versionName, options) {
128
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, applicationName, versionName, options }, getOperationSpec);
129
+ }
130
+ /**
131
+ * Lists all of the application packages in the specified application.
132
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
133
+ * @param accountName The name of the Batch account.
134
+ * @param applicationName The name of the application. This must be unique within the account.
135
+ * @param options The options parameters.
136
+ */
137
+ _list(resourceGroupName, accountName, applicationName, options) {
138
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, applicationName, options }, listOperationSpec);
139
+ }
140
+ /**
141
+ * ListNext
142
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
143
+ * @param accountName The name of the Batch account.
144
+ * @param applicationName The name of the application. This must be unique within the account.
145
+ * @param nextLink The nextLink from the previous successful call to the List method.
146
+ * @param options The options parameters.
147
+ */
148
+ _listNext(resourceGroupName, accountName, applicationName, nextLink, options) {
149
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, applicationName, nextLink, options }, listNextOperationSpec);
150
+ }
151
+ }
152
+ // Operation Specifications
153
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
154
+ const activateOperationSpec = {
155
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate",
156
+ httpMethod: "POST",
157
+ responses: {
158
+ 200: {
159
+ bodyMapper: Mappers.ApplicationPackage
160
+ },
161
+ default: {
162
+ bodyMapper: Mappers.CloudError
163
+ }
164
+ },
165
+ requestBody: Parameters.parameters3,
166
+ queryParameters: [Parameters.apiVersion],
167
+ urlParameters: [
168
+ Parameters.$host,
169
+ Parameters.resourceGroupName,
170
+ Parameters.subscriptionId,
171
+ Parameters.accountName1,
172
+ Parameters.applicationName,
173
+ Parameters.versionName
174
+ ],
175
+ headerParameters: [Parameters.contentType, Parameters.accept],
176
+ mediaType: "json",
177
+ serializer
178
+ };
179
+ const createOperationSpec = {
180
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}",
181
+ httpMethod: "PUT",
182
+ responses: {
183
+ 200: {
184
+ bodyMapper: Mappers.ApplicationPackage
185
+ },
186
+ default: {
187
+ bodyMapper: Mappers.CloudError
188
+ }
189
+ },
190
+ requestBody: Parameters.parameters4,
191
+ queryParameters: [Parameters.apiVersion],
192
+ urlParameters: [
193
+ Parameters.$host,
194
+ Parameters.resourceGroupName,
195
+ Parameters.subscriptionId,
196
+ Parameters.accountName1,
197
+ Parameters.applicationName,
198
+ Parameters.versionName
199
+ ],
200
+ headerParameters: [Parameters.contentType, Parameters.accept],
201
+ mediaType: "json",
202
+ serializer
203
+ };
204
+ const deleteOperationSpec = {
205
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}",
206
+ httpMethod: "DELETE",
207
+ responses: {
208
+ 200: {},
209
+ 204: {},
210
+ default: {
211
+ bodyMapper: Mappers.CloudError
212
+ }
213
+ },
214
+ queryParameters: [Parameters.apiVersion],
215
+ urlParameters: [
216
+ Parameters.$host,
217
+ Parameters.resourceGroupName,
218
+ Parameters.subscriptionId,
219
+ Parameters.accountName1,
220
+ Parameters.applicationName,
221
+ Parameters.versionName
222
+ ],
223
+ headerParameters: [Parameters.accept],
224
+ serializer
225
+ };
226
+ const getOperationSpec = {
227
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}",
228
+ httpMethod: "GET",
229
+ responses: {
230
+ 200: {
231
+ bodyMapper: Mappers.ApplicationPackage
232
+ },
233
+ default: {
234
+ bodyMapper: Mappers.CloudError
235
+ }
236
+ },
237
+ queryParameters: [Parameters.apiVersion],
238
+ urlParameters: [
239
+ Parameters.$host,
240
+ Parameters.resourceGroupName,
241
+ Parameters.subscriptionId,
242
+ Parameters.accountName1,
243
+ Parameters.applicationName,
244
+ Parameters.versionName
245
+ ],
246
+ headerParameters: [Parameters.accept],
247
+ serializer
248
+ };
249
+ const listOperationSpec = {
250
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions",
251
+ httpMethod: "GET",
252
+ responses: {
253
+ 200: {
254
+ bodyMapper: Mappers.ListApplicationPackagesResult
255
+ },
256
+ default: {
257
+ bodyMapper: Mappers.CloudError
258
+ }
259
+ },
260
+ queryParameters: [Parameters.apiVersion, Parameters.maxresults],
261
+ urlParameters: [
262
+ Parameters.$host,
263
+ Parameters.resourceGroupName,
264
+ Parameters.subscriptionId,
265
+ Parameters.accountName1,
266
+ Parameters.applicationName
267
+ ],
268
+ headerParameters: [Parameters.accept],
269
+ serializer
270
+ };
271
+ const listNextOperationSpec = {
272
+ path: "{nextLink}",
273
+ httpMethod: "GET",
274
+ responses: {
275
+ 200: {
276
+ bodyMapper: Mappers.ListApplicationPackagesResult
277
+ },
278
+ default: {
279
+ bodyMapper: Mappers.CloudError
280
+ }
281
+ },
282
+ queryParameters: [Parameters.apiVersion, Parameters.maxresults],
283
+ urlParameters: [
284
+ Parameters.$host,
285
+ Parameters.resourceGroupName,
286
+ Parameters.subscriptionId,
287
+ Parameters.accountName1,
288
+ Parameters.nextLink,
289
+ Parameters.applicationName
290
+ ],
291
+ headerParameters: [Parameters.accept],
292
+ serializer
293
+ };
294
+ //# sourceMappingURL=applicationPackageOperations.js.map