@azure/arm-batch 5.1.0 → 7.0.0-alpha.20211215.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 (258) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +69 -83
  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/dist-esm/src/models/index.js +9 -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 +1814 -1452
  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 +3 -5
  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/dist-esm/src/operationsInterfaces/applicationOperations.js +9 -0
  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/dist-esm/src/operationsInterfaces/applicationPackageOperations.js +9 -0
  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/dist-esm/src/operationsInterfaces/batchAccountOperations.js +9 -0
  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 +65 -30
  121. package/review/arm-batch.api.md +1459 -0
  122. package/rollup.config.js +181 -30
  123. package/src/batchManagementClient.ts +61 -51
  124. package/src/batchManagementClientContext.ts +48 -46
  125. package/src/index.ts +13 -0
  126. package/src/lroImpl.ts +34 -0
  127. package/src/models/index.ts +1469 -3055
  128. package/src/models/mappers.ts +1967 -1573
  129. package/src/models/parameters.ts +218 -120
  130. package/src/operations/applicationOperations.ts +217 -262
  131. package/src/operations/applicationPackageOperations.ts +254 -277
  132. package/src/operations/batchAccountOperations.ts +682 -466
  133. package/src/operations/certificateOperations.ts +365 -353
  134. package/src/operations/index.ts +3 -5
  135. package/src/operations/location.ts +344 -78
  136. package/src/operations/operations.ts +84 -70
  137. package/src/operations/poolOperations.ts +379 -375
  138. package/src/operations/privateEndpointConnectionOperations.ts +271 -168
  139. package/src/operations/privateLinkResourceOperations.ts +158 -125
  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 -6219
  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 -47
  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 -62
  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 -3392
  182. package/esm/models/index.d.ts.map +0 -1
  183. package/esm/models/index.js +0 -8
  184. package/esm/models/index.js.map +0 -1
  185. package/esm/models/locationMappers.d.ts +0 -2
  186. package/esm/models/locationMappers.d.ts.map +0 -1
  187. package/esm/models/locationMappers.js +0 -9
  188. package/esm/models/locationMappers.js.map +0 -1
  189. package/esm/models/mappers.d.ts +0 -96
  190. package/esm/models/mappers.d.ts.map +0 -1
  191. package/esm/models/mappers.js.map +0 -1
  192. package/esm/models/operationsMappers.d.ts +0 -2
  193. package/esm/models/operationsMappers.d.ts.map +0 -1
  194. package/esm/models/operationsMappers.js +0 -9
  195. package/esm/models/operationsMappers.js.map +0 -1
  196. package/esm/models/parameters.d.ts +0 -21
  197. package/esm/models/parameters.d.ts.map +0 -1
  198. package/esm/models/parameters.js +0 -251
  199. package/esm/models/parameters.js.map +0 -1
  200. package/esm/models/poolOperationsMappers.d.ts +0 -2
  201. package/esm/models/poolOperationsMappers.d.ts.map +0 -1
  202. package/esm/models/poolOperationsMappers.js +0 -9
  203. package/esm/models/poolOperationsMappers.js.map +0 -1
  204. package/esm/models/privateEndpointConnectionOperationsMappers.d.ts +0 -2
  205. package/esm/models/privateEndpointConnectionOperationsMappers.d.ts.map +0 -1
  206. package/esm/models/privateEndpointConnectionOperationsMappers.js +0 -9
  207. package/esm/models/privateEndpointConnectionOperationsMappers.js.map +0 -1
  208. package/esm/models/privateLinkResourceOperationsMappers.d.ts +0 -2
  209. package/esm/models/privateLinkResourceOperationsMappers.d.ts.map +0 -1
  210. package/esm/models/privateLinkResourceOperationsMappers.js +0 -9
  211. package/esm/models/privateLinkResourceOperationsMappers.js.map +0 -1
  212. package/esm/operations/applicationOperations.d.ts +0 -151
  213. package/esm/operations/applicationOperations.d.ts.map +0 -1
  214. package/esm/operations/applicationOperations.js +0 -229
  215. package/esm/operations/applicationOperations.js.map +0 -1
  216. package/esm/operations/applicationPackageOperations.d.ts +0 -170
  217. package/esm/operations/applicationPackageOperations.d.ts.map +0 -1
  218. package/esm/operations/applicationPackageOperations.js +0 -241
  219. package/esm/operations/applicationPackageOperations.js.map +0 -1
  220. package/esm/operations/batchAccountOperations.d.ts +0 -246
  221. package/esm/operations/batchAccountOperations.d.ts.map +0 -1
  222. package/esm/operations/batchAccountOperations.js +0 -428
  223. package/esm/operations/batchAccountOperations.js.map +0 -1
  224. package/esm/operations/certificateOperations.d.ts +0 -198
  225. package/esm/operations/certificateOperations.d.ts.map +0 -1
  226. package/esm/operations/certificateOperations.js +0 -331
  227. package/esm/operations/certificateOperations.js.map +0 -1
  228. package/esm/operations/index.d.ts.map +0 -1
  229. package/esm/operations/index.js.map +0 -1
  230. package/esm/operations/location.d.ts +0 -52
  231. package/esm/operations/location.d.ts.map +0 -1
  232. package/esm/operations/location.js +0 -93
  233. package/esm/operations/location.js.map +0 -1
  234. package/esm/operations/operations.d.ts +0 -46
  235. package/esm/operations/operations.d.ts.map +0 -1
  236. package/esm/operations/operations.js +0 -77
  237. package/esm/operations/operations.js.map +0 -1
  238. package/esm/operations/poolOperations.d.ts +0 -199
  239. package/esm/operations/poolOperations.d.ts.map +0 -1
  240. package/esm/operations/poolOperations.js +0 -358
  241. package/esm/operations/poolOperations.js.map +0 -1
  242. package/esm/operations/privateEndpointConnectionOperations.d.ts +0 -104
  243. package/esm/operations/privateEndpointConnectionOperations.d.ts.map +0 -1
  244. package/esm/operations/privateEndpointConnectionOperations.js +0 -192
  245. package/esm/operations/privateEndpointConnectionOperations.js.map +0 -1
  246. package/esm/operations/privateLinkResourceOperations.d.ts +0 -79
  247. package/esm/operations/privateLinkResourceOperations.d.ts.map +0 -1
  248. package/esm/operations/privateLinkResourceOperations.js +0 -118
  249. package/esm/operations/privateLinkResourceOperations.js.map +0 -1
  250. package/src/models/applicationOperationsMappers.ts +0 -72
  251. package/src/models/applicationPackageOperationsMappers.ts +0 -73
  252. package/src/models/batchAccountOperationsMappers.ts +0 -78
  253. package/src/models/certificateOperationsMappers.ts +0 -77
  254. package/src/models/locationMappers.ts +0 -14
  255. package/src/models/operationsMappers.ts +0 -14
  256. package/src/models/poolOperationsMappers.ts +0 -78
  257. package/src/models/privateEndpointConnectionOperationsMappers.ts +0 -73
  258. package/src/models/privateLinkResourceOperationsMappers.ts +0 -72
@@ -1,27 +1,46 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as msRestAzure from "@azure/ms-rest-azure-js";
13
- import * as Models from "../models";
14
- import * as Mappers from "../models/poolOperationsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PoolOperations } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
15
13
  import * as Parameters from "../models/parameters";
16
14
  import { BatchManagementClientContext } from "../batchManagementClientContext";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ Pool,
19
+ PoolListByBatchAccountNextOptionalParams,
20
+ PoolListByBatchAccountOptionalParams,
21
+ PoolListByBatchAccountResponse,
22
+ PoolCreateOptionalParams,
23
+ PoolCreateResponse,
24
+ PoolUpdateOptionalParams,
25
+ PoolUpdateResponse,
26
+ PoolDeleteOptionalParams,
27
+ PoolGetOptionalParams,
28
+ PoolGetResponse,
29
+ PoolDisableAutoScaleOptionalParams,
30
+ PoolDisableAutoScaleResponse,
31
+ PoolStopResizeOptionalParams,
32
+ PoolStopResizeResponse,
33
+ PoolListByBatchAccountNextResponse
34
+ } from "../models";
17
35
 
18
- /** Class representing a PoolOperations. */
19
- export class PoolOperations {
36
+ /// <reference lib="esnext.asynciterable" />
37
+ /** Class containing PoolOperations operations. */
38
+ export class PoolOperationsImpl implements PoolOperations {
20
39
  private readonly client: BatchManagementClientContext;
21
40
 
22
41
  /**
23
- * Create a PoolOperations.
24
- * @param {BatchManagementClientContext} client Reference to the service client.
42
+ * Initialize a new instance of the class PoolOperations class.
43
+ * @param client Reference to the service client
25
44
  */
26
45
  constructor(client: BatchManagementClientContext) {
27
46
  this.client = client;
@@ -31,32 +50,88 @@ export class PoolOperations {
31
50
  * Lists all of the pools in the specified account.
32
51
  * @param resourceGroupName The name of the resource group that contains the Batch account.
33
52
  * @param accountName The name of the Batch account.
34
- * @param [options] The optional parameters
35
- * @returns Promise<Models.PoolListByBatchAccountResponse>
53
+ * @param options The options parameters.
36
54
  */
37
- listByBatchAccount(resourceGroupName: string, accountName: string, options?: Models.PoolListByBatchAccountOptionalParams): Promise<Models.PoolListByBatchAccountResponse>;
38
- /**
39
- * @param resourceGroupName The name of the resource group that contains the Batch account.
40
- * @param accountName The name of the Batch account.
41
- * @param callback The callback
42
- */
43
- listByBatchAccount(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.ListPoolsResult>): void;
55
+ public listByBatchAccount(
56
+ resourceGroupName: string,
57
+ accountName: string,
58
+ options?: PoolListByBatchAccountOptionalParams
59
+ ): PagedAsyncIterableIterator<Pool> {
60
+ const iter = this.listByBatchAccountPagingAll(
61
+ resourceGroupName,
62
+ accountName,
63
+ options
64
+ );
65
+ return {
66
+ next() {
67
+ return iter.next();
68
+ },
69
+ [Symbol.asyncIterator]() {
70
+ return this;
71
+ },
72
+ byPage: () => {
73
+ return this.listByBatchAccountPagingPage(
74
+ resourceGroupName,
75
+ accountName,
76
+ options
77
+ );
78
+ }
79
+ };
80
+ }
81
+
82
+ private async *listByBatchAccountPagingPage(
83
+ resourceGroupName: string,
84
+ accountName: string,
85
+ options?: PoolListByBatchAccountOptionalParams
86
+ ): AsyncIterableIterator<Pool[]> {
87
+ let result = await this._listByBatchAccount(
88
+ resourceGroupName,
89
+ accountName,
90
+ options
91
+ );
92
+ yield result.value || [];
93
+ let continuationToken = result.nextLink;
94
+ while (continuationToken) {
95
+ result = await this._listByBatchAccountNext(
96
+ resourceGroupName,
97
+ accountName,
98
+ continuationToken,
99
+ options
100
+ );
101
+ continuationToken = result.nextLink;
102
+ yield result.value || [];
103
+ }
104
+ }
105
+
106
+ private async *listByBatchAccountPagingAll(
107
+ resourceGroupName: string,
108
+ accountName: string,
109
+ options?: PoolListByBatchAccountOptionalParams
110
+ ): AsyncIterableIterator<Pool> {
111
+ for await (const page of this.listByBatchAccountPagingPage(
112
+ resourceGroupName,
113
+ accountName,
114
+ options
115
+ )) {
116
+ yield* page;
117
+ }
118
+ }
119
+
44
120
  /**
121
+ * Lists all of the pools in the specified account.
45
122
  * @param resourceGroupName The name of the resource group that contains the Batch account.
46
123
  * @param accountName The name of the Batch account.
47
- * @param options The optional parameters
48
- * @param callback The callback
124
+ * @param options The options parameters.
49
125
  */
50
- listByBatchAccount(resourceGroupName: string, accountName: string, options: Models.PoolListByBatchAccountOptionalParams, callback: msRest.ServiceCallback<Models.ListPoolsResult>): void;
51
- listByBatchAccount(resourceGroupName: string, accountName: string, options?: Models.PoolListByBatchAccountOptionalParams | msRest.ServiceCallback<Models.ListPoolsResult>, callback?: msRest.ServiceCallback<Models.ListPoolsResult>): Promise<Models.PoolListByBatchAccountResponse> {
126
+ private _listByBatchAccount(
127
+ resourceGroupName: string,
128
+ accountName: string,
129
+ options?: PoolListByBatchAccountOptionalParams
130
+ ): Promise<PoolListByBatchAccountResponse> {
52
131
  return this.client.sendOperationRequest(
53
- {
54
- resourceGroupName,
55
- accountName,
56
- options
57
- },
58
- listByBatchAccountOperationSpec,
59
- callback) as Promise<Models.PoolListByBatchAccountResponse>;
132
+ { resourceGroupName, accountName, options },
133
+ listByBatchAccountOperationSpec
134
+ );
60
135
  }
61
136
 
62
137
  /**
@@ -65,12 +140,19 @@ export class PoolOperations {
65
140
  * @param accountName The name of the Batch account.
66
141
  * @param poolName The pool name. This must be unique within the account.
67
142
  * @param parameters Additional parameters for pool creation.
68
- * @param [options] The optional parameters
69
- * @returns Promise<Models.PoolCreateResponse>
143
+ * @param options The options parameters.
70
144
  */
71
- create(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, options?: Models.PoolCreateOptionalParams): Promise<Models.PoolCreateResponse> {
72
- return this.beginCreate(resourceGroupName,accountName,poolName,parameters,options)
73
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.PoolCreateResponse>;
145
+ create(
146
+ resourceGroupName: string,
147
+ accountName: string,
148
+ poolName: string,
149
+ parameters: Pool,
150
+ options?: PoolCreateOptionalParams
151
+ ): Promise<PoolCreateResponse> {
152
+ return this.client.sendOperationRequest(
153
+ { resourceGroupName, accountName, poolName, parameters, options },
154
+ createOperationSpec
155
+ );
74
156
  }
75
157
 
76
158
  /**
@@ -79,41 +161,20 @@ export class PoolOperations {
79
161
  * @param accountName The name of the Batch account.
80
162
  * @param poolName The pool name. This must be unique within the account.
81
163
  * @param parameters Pool properties that should be updated. Properties that are supplied will be
82
- * updated, any property not supplied will be unchanged.
83
- * @param [options] The optional parameters
84
- * @returns Promise<Models.PoolUpdateResponse>
164
+ * updated, any property not supplied will be unchanged.
165
+ * @param options The options parameters.
85
166
  */
86
- update(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, options?: Models.PoolUpdateOptionalParams): Promise<Models.PoolUpdateResponse>;
87
- /**
88
- * @param resourceGroupName The name of the resource group that contains the Batch account.
89
- * @param accountName The name of the Batch account.
90
- * @param poolName The pool name. This must be unique within the account.
91
- * @param parameters Pool properties that should be updated. Properties that are supplied will be
92
- * updated, any property not supplied will be unchanged.
93
- * @param callback The callback
94
- */
95
- update(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, callback: msRest.ServiceCallback<Models.Pool>): void;
96
- /**
97
- * @param resourceGroupName The name of the resource group that contains the Batch account.
98
- * @param accountName The name of the Batch account.
99
- * @param poolName The pool name. This must be unique within the account.
100
- * @param parameters Pool properties that should be updated. Properties that are supplied will be
101
- * updated, any property not supplied will be unchanged.
102
- * @param options The optional parameters
103
- * @param callback The callback
104
- */
105
- update(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, options: Models.PoolUpdateOptionalParams, callback: msRest.ServiceCallback<Models.Pool>): void;
106
- update(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, options?: Models.PoolUpdateOptionalParams | msRest.ServiceCallback<Models.Pool>, callback?: msRest.ServiceCallback<Models.Pool>): Promise<Models.PoolUpdateResponse> {
167
+ update(
168
+ resourceGroupName: string,
169
+ accountName: string,
170
+ poolName: string,
171
+ parameters: Pool,
172
+ options?: PoolUpdateOptionalParams
173
+ ): Promise<PoolUpdateResponse> {
107
174
  return this.client.sendOperationRequest(
108
- {
109
- resourceGroupName,
110
- accountName,
111
- poolName,
112
- parameters,
113
- options
114
- },
115
- updateOperationSpec,
116
- callback) as Promise<Models.PoolUpdateResponse>;
175
+ { resourceGroupName, accountName, poolName, parameters, options },
176
+ updateOperationSpec
177
+ );
117
178
  }
118
179
 
119
180
  /**
@@ -121,429 +182,358 @@ export class PoolOperations {
121
182
  * @param resourceGroupName The name of the resource group that contains the Batch account.
122
183
  * @param accountName The name of the Batch account.
123
184
  * @param poolName The pool name. This must be unique within the account.
124
- * @param [options] The optional parameters
125
- * @returns Promise<Models.PoolDeleteResponse>
185
+ * @param options The options parameters.
126
186
  */
127
- deleteMethod(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise<Models.PoolDeleteResponse> {
128
- return this.beginDeleteMethod(resourceGroupName,accountName,poolName,options)
129
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.PoolDeleteResponse>;
187
+ async beginDelete(
188
+ resourceGroupName: string,
189
+ accountName: string,
190
+ poolName: string,
191
+ options?: PoolDeleteOptionalParams
192
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
193
+ const directSendOperation = async (
194
+ args: coreClient.OperationArguments,
195
+ spec: coreClient.OperationSpec
196
+ ): Promise<void> => {
197
+ return this.client.sendOperationRequest(args, spec);
198
+ };
199
+ const sendOperation = async (
200
+ args: coreClient.OperationArguments,
201
+ spec: coreClient.OperationSpec
202
+ ) => {
203
+ let currentRawResponse:
204
+ | coreClient.FullOperationResponse
205
+ | undefined = undefined;
206
+ const providedCallback = args.options?.onResponse;
207
+ const callback: coreClient.RawResponseCallback = (
208
+ rawResponse: coreClient.FullOperationResponse,
209
+ flatResponse: unknown
210
+ ) => {
211
+ currentRawResponse = rawResponse;
212
+ providedCallback?.(rawResponse, flatResponse);
213
+ };
214
+ const updatedArgs = {
215
+ ...args,
216
+ options: {
217
+ ...args.options,
218
+ onResponse: callback
219
+ }
220
+ };
221
+ const flatResponse = await directSendOperation(updatedArgs, spec);
222
+ return {
223
+ flatResponse,
224
+ rawResponse: {
225
+ statusCode: currentRawResponse!.status,
226
+ body: currentRawResponse!.parsedBody,
227
+ headers: currentRawResponse!.headers.toJSON()
228
+ }
229
+ };
230
+ };
231
+
232
+ const lro = new LroImpl(
233
+ sendOperation,
234
+ { resourceGroupName, accountName, poolName, options },
235
+ deleteOperationSpec
236
+ );
237
+ return new LroEngine(lro, {
238
+ resumeFrom: options?.resumeFrom,
239
+ intervalInMs: options?.updateIntervalInMs,
240
+ lroResourceLocationConfig: "location"
241
+ });
130
242
  }
131
243
 
132
244
  /**
133
- * Gets information about the specified pool.
134
- * @param resourceGroupName The name of the resource group that contains the Batch account.
135
- * @param accountName The name of the Batch account.
136
- * @param poolName The pool name. This must be unique within the account.
137
- * @param [options] The optional parameters
138
- * @returns Promise<Models.PoolGetResponse>
139
- */
140
- get(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise<Models.PoolGetResponse>;
141
- /**
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 poolName The pool name. This must be unique within the account.
145
- * @param callback The callback
146
- */
147
- get(resourceGroupName: string, accountName: string, poolName: string, callback: msRest.ServiceCallback<Models.Pool>): void;
148
- /**
245
+ * Deletes the specified pool.
149
246
  * @param resourceGroupName The name of the resource group that contains the Batch account.
150
247
  * @param accountName The name of the Batch account.
151
248
  * @param poolName The pool name. This must be unique within the account.
152
- * @param options The optional parameters
153
- * @param callback The callback
249
+ * @param options The options parameters.
154
250
  */
155
- get(resourceGroupName: string, accountName: string, poolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Pool>): void;
156
- get(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Pool>, callback?: msRest.ServiceCallback<Models.Pool>): Promise<Models.PoolGetResponse> {
157
- return this.client.sendOperationRequest(
158
- {
159
- resourceGroupName,
160
- accountName,
161
- poolName,
162
- options
163
- },
164
- getOperationSpec,
165
- callback) as Promise<Models.PoolGetResponse>;
251
+ async beginDeleteAndWait(
252
+ resourceGroupName: string,
253
+ accountName: string,
254
+ poolName: string,
255
+ options?: PoolDeleteOptionalParams
256
+ ): Promise<void> {
257
+ const poller = await this.beginDelete(
258
+ resourceGroupName,
259
+ accountName,
260
+ poolName,
261
+ options
262
+ );
263
+ return poller.pollUntilDone();
166
264
  }
167
265
 
168
266
  /**
169
- * Disables automatic scaling for a pool.
170
- * @param resourceGroupName The name of the resource group that contains the Batch account.
171
- * @param accountName The name of the Batch account.
172
- * @param poolName The pool name. This must be unique within the account.
173
- * @param [options] The optional parameters
174
- * @returns Promise<Models.PoolDisableAutoScaleResponse>
175
- */
176
- disableAutoScale(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise<Models.PoolDisableAutoScaleResponse>;
177
- /**
178
- * @param resourceGroupName The name of the resource group that contains the Batch account.
179
- * @param accountName The name of the Batch account.
180
- * @param poolName The pool name. This must be unique within the account.
181
- * @param callback The callback
182
- */
183
- disableAutoScale(resourceGroupName: string, accountName: string, poolName: string, callback: msRest.ServiceCallback<Models.Pool>): void;
184
- /**
267
+ * Gets information about the specified pool.
185
268
  * @param resourceGroupName The name of the resource group that contains the Batch account.
186
269
  * @param accountName The name of the Batch account.
187
270
  * @param poolName The pool name. This must be unique within the account.
188
- * @param options The optional parameters
189
- * @param callback The callback
271
+ * @param options The options parameters.
190
272
  */
191
- disableAutoScale(resourceGroupName: string, accountName: string, poolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Pool>): void;
192
- disableAutoScale(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Pool>, callback?: msRest.ServiceCallback<Models.Pool>): Promise<Models.PoolDisableAutoScaleResponse> {
273
+ get(
274
+ resourceGroupName: string,
275
+ accountName: string,
276
+ poolName: string,
277
+ options?: PoolGetOptionalParams
278
+ ): Promise<PoolGetResponse> {
193
279
  return this.client.sendOperationRequest(
194
- {
195
- resourceGroupName,
196
- accountName,
197
- poolName,
198
- options
199
- },
200
- disableAutoScaleOperationSpec,
201
- callback) as Promise<Models.PoolDisableAutoScaleResponse>;
280
+ { resourceGroupName, accountName, poolName, options },
281
+ getOperationSpec
282
+ );
202
283
  }
203
284
 
204
285
  /**
205
- * This does not restore the pool to its previous state before the resize operation: it only stops
206
- * any further changes being made, and the pool maintains its current state. After stopping, the
207
- * pool stabilizes at the number of nodes it was at when the stop operation was done. During the
208
- * stop operation, the pool allocation state changes first to stopping and then to steady. A resize
209
- * operation need not be an explicit resize pool request; this API can also be used to halt the
210
- * initial sizing of the pool when it is created.
211
- * @summary Stops an ongoing resize operation on the pool.
212
- * @param resourceGroupName The name of the resource group that contains the Batch account.
213
- * @param accountName The name of the Batch account.
214
- * @param poolName The pool name. This must be unique within the account.
215
- * @param [options] The optional parameters
216
- * @returns Promise<Models.PoolStopResizeResponse>
217
- */
218
- stopResize(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise<Models.PoolStopResizeResponse>;
219
- /**
220
- * @param resourceGroupName The name of the resource group that contains the Batch account.
221
- * @param accountName The name of the Batch account.
222
- * @param poolName The pool name. This must be unique within the account.
223
- * @param callback The callback
224
- */
225
- stopResize(resourceGroupName: string, accountName: string, poolName: string, callback: msRest.ServiceCallback<Models.Pool>): void;
226
- /**
286
+ * Disables automatic scaling for a pool.
227
287
  * @param resourceGroupName The name of the resource group that contains the Batch account.
228
288
  * @param accountName The name of the Batch account.
229
289
  * @param poolName The pool name. This must be unique within the account.
230
- * @param options The optional parameters
231
- * @param callback The callback
290
+ * @param options The options parameters.
232
291
  */
233
- stopResize(resourceGroupName: string, accountName: string, poolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Pool>): void;
234
- stopResize(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Pool>, callback?: msRest.ServiceCallback<Models.Pool>): Promise<Models.PoolStopResizeResponse> {
292
+ disableAutoScale(
293
+ resourceGroupName: string,
294
+ accountName: string,
295
+ poolName: string,
296
+ options?: PoolDisableAutoScaleOptionalParams
297
+ ): Promise<PoolDisableAutoScaleResponse> {
235
298
  return this.client.sendOperationRequest(
236
- {
237
- resourceGroupName,
238
- accountName,
239
- poolName,
240
- options
241
- },
242
- stopResizeOperationSpec,
243
- callback) as Promise<Models.PoolStopResizeResponse>;
299
+ { resourceGroupName, accountName, poolName, options },
300
+ disableAutoScaleOperationSpec
301
+ );
244
302
  }
245
303
 
246
304
  /**
247
- * Creates a new pool inside the specified account.
305
+ * This does not restore the pool to its previous state before the resize operation: it only stops any
306
+ * further changes being made, and the pool maintains its current state. After stopping, the pool
307
+ * stabilizes at the number of nodes it was at when the stop operation was done. During the stop
308
+ * operation, the pool allocation state changes first to stopping and then to steady. A resize
309
+ * operation need not be an explicit resize pool request; this API can also be used to halt the initial
310
+ * sizing of the pool when it is created.
248
311
  * @param resourceGroupName The name of the resource group that contains the Batch account.
249
312
  * @param accountName The name of the Batch account.
250
313
  * @param poolName The pool name. This must be unique within the account.
251
- * @param parameters Additional parameters for pool creation.
252
- * @param [options] The optional parameters
253
- * @returns Promise<msRestAzure.LROPoller>
314
+ * @param options The options parameters.
254
315
  */
255
- beginCreate(resourceGroupName: string, accountName: string, poolName: string, parameters: Models.Pool, options?: Models.PoolBeginCreateOptionalParams): Promise<msRestAzure.LROPoller> {
256
- return this.client.sendLRORequest(
257
- {
258
- resourceGroupName,
259
- accountName,
260
- poolName,
261
- parameters,
262
- options
263
- },
264
- beginCreateOperationSpec,
265
- options);
316
+ stopResize(
317
+ resourceGroupName: string,
318
+ accountName: string,
319
+ poolName: string,
320
+ options?: PoolStopResizeOptionalParams
321
+ ): Promise<PoolStopResizeResponse> {
322
+ return this.client.sendOperationRequest(
323
+ { resourceGroupName, accountName, poolName, options },
324
+ stopResizeOperationSpec
325
+ );
266
326
  }
267
327
 
268
328
  /**
269
- * Deletes the specified pool.
329
+ * ListByBatchAccountNext
270
330
  * @param resourceGroupName The name of the resource group that contains the Batch account.
271
331
  * @param accountName The name of the Batch account.
272
- * @param poolName The pool name. This must be unique within the account.
273
- * @param [options] The optional parameters
274
- * @returns Promise<msRestAzure.LROPoller>
275
- */
276
- beginDeleteMethod(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
277
- return this.client.sendLRORequest(
278
- {
279
- resourceGroupName,
280
- accountName,
281
- poolName,
282
- options
283
- },
284
- beginDeleteMethodOperationSpec,
285
- options);
286
- }
287
-
288
- /**
289
- * Lists all of the pools in the specified account.
290
- * @param nextPageLink The NextLink from the previous successful call to List operation.
291
- * @param [options] The optional parameters
292
- * @returns Promise<Models.PoolListByBatchAccountNextResponse>
332
+ * @param nextLink The nextLink from the previous successful call to the ListByBatchAccount method.
333
+ * @param options The options parameters.
293
334
  */
294
- listByBatchAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.PoolListByBatchAccountNextResponse>;
295
- /**
296
- * @param nextPageLink The NextLink from the previous successful call to List operation.
297
- * @param callback The callback
298
- */
299
- listByBatchAccountNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ListPoolsResult>): void;
300
- /**
301
- * @param nextPageLink The NextLink from the previous successful call to List operation.
302
- * @param options The optional parameters
303
- * @param callback The callback
304
- */
305
- listByBatchAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ListPoolsResult>): void;
306
- listByBatchAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ListPoolsResult>, callback?: msRest.ServiceCallback<Models.ListPoolsResult>): Promise<Models.PoolListByBatchAccountNextResponse> {
335
+ private _listByBatchAccountNext(
336
+ resourceGroupName: string,
337
+ accountName: string,
338
+ nextLink: string,
339
+ options?: PoolListByBatchAccountNextOptionalParams
340
+ ): Promise<PoolListByBatchAccountNextResponse> {
307
341
  return this.client.sendOperationRequest(
308
- {
309
- nextPageLink,
310
- options
311
- },
312
- listByBatchAccountNextOperationSpec,
313
- callback) as Promise<Models.PoolListByBatchAccountNextResponse>;
342
+ { resourceGroupName, accountName, nextLink, options },
343
+ listByBatchAccountNextOperationSpec
344
+ );
314
345
  }
315
346
  }
316
-
317
347
  // Operation Specifications
318
- const serializer = new msRest.Serializer(Mappers);
319
- const listByBatchAccountOperationSpec: msRest.OperationSpec = {
348
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
349
+
350
+ const listByBatchAccountOperationSpec: coreClient.OperationSpec = {
351
+ path:
352
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools",
320
353
  httpMethod: "GET",
321
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools",
322
- urlParameters: [
323
- Parameters.resourceGroupName,
324
- Parameters.accountName1,
325
- Parameters.subscriptionId
326
- ],
354
+ responses: {
355
+ 200: {
356
+ bodyMapper: Mappers.ListPoolsResult
357
+ },
358
+ default: {
359
+ bodyMapper: Mappers.CloudError
360
+ }
361
+ },
327
362
  queryParameters: [
363
+ Parameters.apiVersion,
328
364
  Parameters.maxresults,
329
- Parameters.select,
330
365
  Parameters.filter,
331
- Parameters.apiVersion
366
+ Parameters.select
332
367
  ],
333
- headerParameters: [
334
- Parameters.acceptLanguage
368
+ urlParameters: [
369
+ Parameters.$host,
370
+ Parameters.resourceGroupName,
371
+ Parameters.subscriptionId,
372
+ Parameters.accountName1
335
373
  ],
374
+ headerParameters: [Parameters.accept],
375
+ serializer
376
+ };
377
+ const createOperationSpec: coreClient.OperationSpec = {
378
+ path:
379
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
380
+ httpMethod: "PUT",
336
381
  responses: {
337
382
  200: {
338
- bodyMapper: Mappers.ListPoolsResult
383
+ bodyMapper: Mappers.Pool,
384
+ headersMapper: Mappers.PoolCreateHeaders
339
385
  },
340
386
  default: {
341
387
  bodyMapper: Mappers.CloudError
342
388
  }
343
389
  },
344
- serializer
345
- };
346
-
347
- const updateOperationSpec: msRest.OperationSpec = {
348
- httpMethod: "PATCH",
349
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
390
+ requestBody: Parameters.parameters10,
391
+ queryParameters: [Parameters.apiVersion],
350
392
  urlParameters: [
393
+ Parameters.$host,
351
394
  Parameters.resourceGroupName,
395
+ Parameters.subscriptionId,
352
396
  Parameters.accountName1,
353
- Parameters.poolName,
354
- Parameters.subscriptionId
355
- ],
356
- queryParameters: [
357
- Parameters.apiVersion
397
+ Parameters.poolName
358
398
  ],
359
399
  headerParameters: [
400
+ Parameters.contentType,
401
+ Parameters.accept,
360
402
  Parameters.ifMatch,
361
- Parameters.acceptLanguage
403
+ Parameters.ifNoneMatch
362
404
  ],
363
- requestBody: {
364
- parameterPath: "parameters",
365
- mapper: {
366
- ...Mappers.Pool,
367
- required: true
368
- }
369
- },
405
+ mediaType: "json",
406
+ serializer
407
+ };
408
+ const updateOperationSpec: coreClient.OperationSpec = {
409
+ path:
410
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
411
+ httpMethod: "PATCH",
370
412
  responses: {
371
413
  200: {
372
414
  bodyMapper: Mappers.Pool,
373
415
  headersMapper: Mappers.PoolUpdateHeaders
374
416
  },
375
417
  default: {
376
- bodyMapper: Mappers.CloudError,
377
- headersMapper: Mappers.PoolUpdateHeaders
418
+ bodyMapper: Mappers.CloudError
378
419
  }
379
420
  },
380
- serializer
381
- };
382
-
383
- const getOperationSpec: msRest.OperationSpec = {
384
- httpMethod: "GET",
385
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
421
+ requestBody: Parameters.parameters10,
422
+ queryParameters: [Parameters.apiVersion],
386
423
  urlParameters: [
424
+ Parameters.$host,
387
425
  Parameters.resourceGroupName,
426
+ Parameters.subscriptionId,
388
427
  Parameters.accountName1,
389
- Parameters.poolName,
390
- Parameters.subscriptionId
391
- ],
392
- queryParameters: [
393
- Parameters.apiVersion
428
+ Parameters.poolName
394
429
  ],
395
430
  headerParameters: [
396
- Parameters.acceptLanguage
431
+ Parameters.contentType,
432
+ Parameters.accept,
433
+ Parameters.ifMatch
397
434
  ],
435
+ mediaType: "json",
436
+ serializer
437
+ };
438
+ const deleteOperationSpec: coreClient.OperationSpec = {
439
+ path:
440
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
441
+ httpMethod: "DELETE",
398
442
  responses: {
399
- 200: {
400
- bodyMapper: Mappers.Pool,
401
- headersMapper: Mappers.PoolGetHeaders
402
- },
443
+ 200: {},
444
+ 201: {},
445
+ 202: {},
446
+ 204: {},
403
447
  default: {
404
- bodyMapper: Mappers.CloudError,
405
- headersMapper: Mappers.PoolGetHeaders
448
+ bodyMapper: Mappers.CloudError
406
449
  }
407
450
  },
408
- serializer
409
- };
410
-
411
- const disableAutoScaleOperationSpec: msRest.OperationSpec = {
412
- httpMethod: "POST",
413
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale",
451
+ queryParameters: [Parameters.apiVersion],
414
452
  urlParameters: [
453
+ Parameters.$host,
415
454
  Parameters.resourceGroupName,
455
+ Parameters.subscriptionId,
416
456
  Parameters.accountName1,
417
- Parameters.poolName,
418
- Parameters.subscriptionId
419
- ],
420
- queryParameters: [
421
- Parameters.apiVersion
422
- ],
423
- headerParameters: [
424
- Parameters.acceptLanguage
457
+ Parameters.poolName
425
458
  ],
459
+ headerParameters: [Parameters.accept],
460
+ serializer
461
+ };
462
+ const getOperationSpec: coreClient.OperationSpec = {
463
+ path:
464
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
465
+ httpMethod: "GET",
426
466
  responses: {
427
467
  200: {
428
468
  bodyMapper: Mappers.Pool,
429
- headersMapper: Mappers.PoolDisableAutoScaleHeaders
469
+ headersMapper: Mappers.PoolGetHeaders
430
470
  },
431
471
  default: {
432
- bodyMapper: Mappers.CloudError,
433
- headersMapper: Mappers.PoolDisableAutoScaleHeaders
472
+ bodyMapper: Mappers.CloudError
434
473
  }
435
474
  },
436
- serializer
437
- };
438
-
439
- const stopResizeOperationSpec: msRest.OperationSpec = {
440
- httpMethod: "POST",
441
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize",
475
+ queryParameters: [Parameters.apiVersion],
442
476
  urlParameters: [
477
+ Parameters.$host,
443
478
  Parameters.resourceGroupName,
479
+ Parameters.subscriptionId,
444
480
  Parameters.accountName1,
445
- Parameters.poolName,
446
- Parameters.subscriptionId
447
- ],
448
- queryParameters: [
449
- Parameters.apiVersion
450
- ],
451
- headerParameters: [
452
- Parameters.acceptLanguage
481
+ Parameters.poolName
453
482
  ],
483
+ headerParameters: [Parameters.accept],
484
+ serializer
485
+ };
486
+ const disableAutoScaleOperationSpec: coreClient.OperationSpec = {
487
+ path:
488
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale",
489
+ httpMethod: "POST",
454
490
  responses: {
455
491
  200: {
456
492
  bodyMapper: Mappers.Pool,
457
- headersMapper: Mappers.PoolStopResizeHeaders
493
+ headersMapper: Mappers.PoolDisableAutoScaleHeaders
458
494
  },
459
495
  default: {
460
- bodyMapper: Mappers.CloudError,
461
- headersMapper: Mappers.PoolStopResizeHeaders
496
+ bodyMapper: Mappers.CloudError
462
497
  }
463
498
  },
464
- serializer
465
- };
466
-
467
- const beginCreateOperationSpec: msRest.OperationSpec = {
468
- httpMethod: "PUT",
469
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
499
+ queryParameters: [Parameters.apiVersion],
470
500
  urlParameters: [
501
+ Parameters.$host,
471
502
  Parameters.resourceGroupName,
503
+ Parameters.subscriptionId,
472
504
  Parameters.accountName1,
473
- Parameters.poolName,
474
- Parameters.subscriptionId
505
+ Parameters.poolName
475
506
  ],
476
- queryParameters: [
477
- Parameters.apiVersion
478
- ],
479
- headerParameters: [
480
- Parameters.ifMatch,
481
- Parameters.ifNoneMatch,
482
- Parameters.acceptLanguage
483
- ],
484
- requestBody: {
485
- parameterPath: "parameters",
486
- mapper: {
487
- ...Mappers.Pool,
488
- required: true
489
- }
490
- },
507
+ headerParameters: [Parameters.accept],
508
+ serializer
509
+ };
510
+ const stopResizeOperationSpec: coreClient.OperationSpec = {
511
+ path:
512
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize",
513
+ httpMethod: "POST",
491
514
  responses: {
492
515
  200: {
493
516
  bodyMapper: Mappers.Pool,
494
- headersMapper: Mappers.PoolCreateHeaders
517
+ headersMapper: Mappers.PoolStopResizeHeaders
495
518
  },
496
519
  default: {
497
- bodyMapper: Mappers.CloudError,
498
- headersMapper: Mappers.PoolCreateHeaders
520
+ bodyMapper: Mappers.CloudError
499
521
  }
500
522
  },
501
- serializer
502
- };
503
-
504
- const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
505
- httpMethod: "DELETE",
506
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
523
+ queryParameters: [Parameters.apiVersion],
507
524
  urlParameters: [
525
+ Parameters.$host,
508
526
  Parameters.resourceGroupName,
527
+ Parameters.subscriptionId,
509
528
  Parameters.accountName1,
510
- Parameters.poolName,
511
- Parameters.subscriptionId
512
- ],
513
- queryParameters: [
514
- Parameters.apiVersion
515
- ],
516
- headerParameters: [
517
- Parameters.acceptLanguage
529
+ Parameters.poolName
518
530
  ],
519
- responses: {
520
- 200: {
521
- headersMapper: Mappers.PoolDeleteHeaders
522
- },
523
- 202: {
524
- headersMapper: Mappers.PoolDeleteHeaders
525
- },
526
- 204: {
527
- headersMapper: Mappers.PoolDeleteHeaders
528
- },
529
- default: {
530
- bodyMapper: Mappers.CloudError,
531
- headersMapper: Mappers.PoolDeleteHeaders
532
- }
533
- },
531
+ headerParameters: [Parameters.accept],
534
532
  serializer
535
533
  };
536
-
537
- const listByBatchAccountNextOperationSpec: msRest.OperationSpec = {
538
- httpMethod: "GET",
539
- baseUrl: "https://management.azure.com",
534
+ const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = {
540
535
  path: "{nextLink}",
541
- urlParameters: [
542
- Parameters.nextPageLink
543
- ],
544
- headerParameters: [
545
- Parameters.acceptLanguage
546
- ],
536
+ httpMethod: "GET",
547
537
  responses: {
548
538
  200: {
549
539
  bodyMapper: Mappers.ListPoolsResult
@@ -552,5 +542,19 @@ const listByBatchAccountNextOperationSpec: msRest.OperationSpec = {
552
542
  bodyMapper: Mappers.CloudError
553
543
  }
554
544
  },
545
+ queryParameters: [
546
+ Parameters.apiVersion,
547
+ Parameters.maxresults,
548
+ Parameters.filter,
549
+ Parameters.select
550
+ ],
551
+ urlParameters: [
552
+ Parameters.$host,
553
+ Parameters.resourceGroupName,
554
+ Parameters.subscriptionId,
555
+ Parameters.accountName1,
556
+ Parameters.nextLink
557
+ ],
558
+ headerParameters: [Parameters.accept],
555
559
  serializer
556
560
  };