@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,316 @@
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 Location operations. */
14
+ export class LocationImpl {
15
+ /**
16
+ * Initialize a new instance of the class Location class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
24
+ * @param locationName The region for which to retrieve Batch service supported SKUs.
25
+ * @param options The options parameters.
26
+ */
27
+ listSupportedVirtualMachineSkus(locationName, options) {
28
+ const iter = this.listSupportedVirtualMachineSkusPagingAll(locationName, options);
29
+ return {
30
+ next() {
31
+ return iter.next();
32
+ },
33
+ [Symbol.asyncIterator]() {
34
+ return this;
35
+ },
36
+ byPage: () => {
37
+ return this.listSupportedVirtualMachineSkusPagingPage(locationName, options);
38
+ }
39
+ };
40
+ }
41
+ listSupportedVirtualMachineSkusPagingPage(locationName, options) {
42
+ return __asyncGenerator(this, arguments, function* listSupportedVirtualMachineSkusPagingPage_1() {
43
+ let result = yield __await(this._listSupportedVirtualMachineSkus(locationName, options));
44
+ yield yield __await(result.value || []);
45
+ let continuationToken = result.nextLink;
46
+ while (continuationToken) {
47
+ result = yield __await(this._listSupportedVirtualMachineSkusNext(locationName, continuationToken, options));
48
+ continuationToken = result.nextLink;
49
+ yield yield __await(result.value || []);
50
+ }
51
+ });
52
+ }
53
+ listSupportedVirtualMachineSkusPagingAll(locationName, options) {
54
+ return __asyncGenerator(this, arguments, function* listSupportedVirtualMachineSkusPagingAll_1() {
55
+ var e_1, _a;
56
+ try {
57
+ for (var _b = __asyncValues(this.listSupportedVirtualMachineSkusPagingPage(locationName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
58
+ const page = _c.value;
59
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
60
+ }
61
+ }
62
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
63
+ finally {
64
+ try {
65
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
66
+ }
67
+ finally { if (e_1) throw e_1.error; }
68
+ }
69
+ });
70
+ }
71
+ /**
72
+ * Gets the list of Batch supported Cloud Service VM sizes available at the given location.
73
+ * @param locationName The region for which to retrieve Batch service supported SKUs.
74
+ * @param options The options parameters.
75
+ */
76
+ listSupportedCloudServiceSkus(locationName, options) {
77
+ const iter = this.listSupportedCloudServiceSkusPagingAll(locationName, options);
78
+ return {
79
+ next() {
80
+ return iter.next();
81
+ },
82
+ [Symbol.asyncIterator]() {
83
+ return this;
84
+ },
85
+ byPage: () => {
86
+ return this.listSupportedCloudServiceSkusPagingPage(locationName, options);
87
+ }
88
+ };
89
+ }
90
+ listSupportedCloudServiceSkusPagingPage(locationName, options) {
91
+ return __asyncGenerator(this, arguments, function* listSupportedCloudServiceSkusPagingPage_1() {
92
+ let result = yield __await(this._listSupportedCloudServiceSkus(locationName, options));
93
+ yield yield __await(result.value || []);
94
+ let continuationToken = result.nextLink;
95
+ while (continuationToken) {
96
+ result = yield __await(this._listSupportedCloudServiceSkusNext(locationName, continuationToken, options));
97
+ continuationToken = result.nextLink;
98
+ yield yield __await(result.value || []);
99
+ }
100
+ });
101
+ }
102
+ listSupportedCloudServiceSkusPagingAll(locationName, options) {
103
+ return __asyncGenerator(this, arguments, function* listSupportedCloudServiceSkusPagingAll_1() {
104
+ var e_2, _a;
105
+ try {
106
+ for (var _b = __asyncValues(this.listSupportedCloudServiceSkusPagingPage(locationName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
107
+ const page = _c.value;
108
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
109
+ }
110
+ }
111
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
112
+ finally {
113
+ try {
114
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
115
+ }
116
+ finally { if (e_2) throw e_2.error; }
117
+ }
118
+ });
119
+ }
120
+ /**
121
+ * Gets the Batch service quotas for the specified subscription at the given location.
122
+ * @param locationName The region for which to retrieve Batch service quotas.
123
+ * @param options The options parameters.
124
+ */
125
+ getQuotas(locationName, options) {
126
+ return this.client.sendOperationRequest({ locationName, options }, getQuotasOperationSpec);
127
+ }
128
+ /**
129
+ * Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
130
+ * @param locationName The region for which to retrieve Batch service supported SKUs.
131
+ * @param options The options parameters.
132
+ */
133
+ _listSupportedVirtualMachineSkus(locationName, options) {
134
+ return this.client.sendOperationRequest({ locationName, options }, listSupportedVirtualMachineSkusOperationSpec);
135
+ }
136
+ /**
137
+ * Gets the list of Batch supported Cloud Service VM sizes available at the given location.
138
+ * @param locationName The region for which to retrieve Batch service supported SKUs.
139
+ * @param options The options parameters.
140
+ */
141
+ _listSupportedCloudServiceSkus(locationName, options) {
142
+ return this.client.sendOperationRequest({ locationName, options }, listSupportedCloudServiceSkusOperationSpec);
143
+ }
144
+ /**
145
+ * Checks whether the Batch account name is available in the specified region.
146
+ * @param locationName The desired region for the name check.
147
+ * @param parameters Properties needed to check the availability of a name.
148
+ * @param options The options parameters.
149
+ */
150
+ checkNameAvailability(locationName, parameters, options) {
151
+ return this.client.sendOperationRequest({ locationName, parameters, options }, checkNameAvailabilityOperationSpec);
152
+ }
153
+ /**
154
+ * ListSupportedVirtualMachineSkusNext
155
+ * @param locationName The region for which to retrieve Batch service supported SKUs.
156
+ * @param nextLink The nextLink from the previous successful call to the
157
+ * ListSupportedVirtualMachineSkus method.
158
+ * @param options The options parameters.
159
+ */
160
+ _listSupportedVirtualMachineSkusNext(locationName, nextLink, options) {
161
+ return this.client.sendOperationRequest({ locationName, nextLink, options }, listSupportedVirtualMachineSkusNextOperationSpec);
162
+ }
163
+ /**
164
+ * ListSupportedCloudServiceSkusNext
165
+ * @param locationName The region for which to retrieve Batch service supported SKUs.
166
+ * @param nextLink The nextLink from the previous successful call to the ListSupportedCloudServiceSkus
167
+ * method.
168
+ * @param options The options parameters.
169
+ */
170
+ _listSupportedCloudServiceSkusNext(locationName, nextLink, options) {
171
+ return this.client.sendOperationRequest({ locationName, nextLink, options }, listSupportedCloudServiceSkusNextOperationSpec);
172
+ }
173
+ }
174
+ // Operation Specifications
175
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
176
+ const getQuotasOperationSpec = {
177
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas",
178
+ httpMethod: "GET",
179
+ responses: {
180
+ 200: {
181
+ bodyMapper: Mappers.BatchLocationQuota
182
+ },
183
+ default: {
184
+ bodyMapper: Mappers.CloudError
185
+ }
186
+ },
187
+ queryParameters: [Parameters.apiVersion],
188
+ urlParameters: [
189
+ Parameters.$host,
190
+ Parameters.subscriptionId,
191
+ Parameters.locationName
192
+ ],
193
+ headerParameters: [Parameters.accept],
194
+ serializer
195
+ };
196
+ const listSupportedVirtualMachineSkusOperationSpec = {
197
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus",
198
+ httpMethod: "GET",
199
+ responses: {
200
+ 200: {
201
+ bodyMapper: Mappers.SupportedSkusResult
202
+ },
203
+ default: {
204
+ bodyMapper: Mappers.CloudError
205
+ }
206
+ },
207
+ queryParameters: [
208
+ Parameters.apiVersion,
209
+ Parameters.maxresults,
210
+ Parameters.filter
211
+ ],
212
+ urlParameters: [
213
+ Parameters.$host,
214
+ Parameters.subscriptionId,
215
+ Parameters.locationName
216
+ ],
217
+ headerParameters: [Parameters.accept],
218
+ serializer
219
+ };
220
+ const listSupportedCloudServiceSkusOperationSpec = {
221
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus",
222
+ httpMethod: "GET",
223
+ responses: {
224
+ 200: {
225
+ bodyMapper: Mappers.SupportedSkusResult
226
+ },
227
+ default: {
228
+ bodyMapper: Mappers.CloudError
229
+ }
230
+ },
231
+ queryParameters: [
232
+ Parameters.apiVersion,
233
+ Parameters.maxresults,
234
+ Parameters.filter
235
+ ],
236
+ urlParameters: [
237
+ Parameters.$host,
238
+ Parameters.subscriptionId,
239
+ Parameters.locationName
240
+ ],
241
+ headerParameters: [Parameters.accept],
242
+ serializer
243
+ };
244
+ const checkNameAvailabilityOperationSpec = {
245
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability",
246
+ httpMethod: "POST",
247
+ responses: {
248
+ 200: {
249
+ bodyMapper: Mappers.CheckNameAvailabilityResult
250
+ },
251
+ default: {
252
+ bodyMapper: Mappers.CloudError
253
+ }
254
+ },
255
+ requestBody: Parameters.parameters7,
256
+ queryParameters: [Parameters.apiVersion],
257
+ urlParameters: [
258
+ Parameters.$host,
259
+ Parameters.subscriptionId,
260
+ Parameters.locationName
261
+ ],
262
+ headerParameters: [Parameters.contentType, Parameters.accept],
263
+ mediaType: "json",
264
+ serializer
265
+ };
266
+ const listSupportedVirtualMachineSkusNextOperationSpec = {
267
+ path: "{nextLink}",
268
+ httpMethod: "GET",
269
+ responses: {
270
+ 200: {
271
+ bodyMapper: Mappers.SupportedSkusResult
272
+ },
273
+ default: {
274
+ bodyMapper: Mappers.CloudError
275
+ }
276
+ },
277
+ queryParameters: [
278
+ Parameters.apiVersion,
279
+ Parameters.maxresults,
280
+ Parameters.filter
281
+ ],
282
+ urlParameters: [
283
+ Parameters.$host,
284
+ Parameters.subscriptionId,
285
+ Parameters.nextLink,
286
+ Parameters.locationName
287
+ ],
288
+ headerParameters: [Parameters.accept],
289
+ serializer
290
+ };
291
+ const listSupportedCloudServiceSkusNextOperationSpec = {
292
+ path: "{nextLink}",
293
+ httpMethod: "GET",
294
+ responses: {
295
+ 200: {
296
+ bodyMapper: Mappers.SupportedSkusResult
297
+ },
298
+ default: {
299
+ bodyMapper: Mappers.CloudError
300
+ }
301
+ },
302
+ queryParameters: [
303
+ Parameters.apiVersion,
304
+ Parameters.maxresults,
305
+ Parameters.filter
306
+ ],
307
+ urlParameters: [
308
+ Parameters.$host,
309
+ Parameters.subscriptionId,
310
+ Parameters.nextLink,
311
+ Parameters.locationName
312
+ ],
313
+ headerParameters: [Parameters.accept],
314
+ serializer
315
+ };
316
+ //# sourceMappingURL=location.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location.js","sourceRoot":"","sources":["../../../src/operations/location.ts"],"names":[],"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QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8CAA8C,GAA6B;IAC/E,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,MAAM;KAClB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces";
3
+ import { BatchManagementClientContext } from "../batchManagementClientContext";
4
+ import { Operation, OperationsListOptionalParams } from "../models";
5
+ /** Class containing Operations operations. */
6
+ export declare class OperationsImpl implements Operations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Operations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: BatchManagementClientContext);
13
+ /**
14
+ * Lists available operations for the Microsoft.Batch provider
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Lists available operations for the Microsoft.Batch provider
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ /**
26
+ * ListNext
27
+ * @param nextLink The nextLink from the previous successful call to the List method.
28
+ * @param options The options parameters.
29
+ */
30
+ private _listNext;
31
+ }
32
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;IAEtD;;;OAGG;gBACS,MAAM,EAAE,4BAA4B;IAIhD;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAezB,cAAc;YAad,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,120 @@
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 Operations operations. */
14
+ export class OperationsImpl {
15
+ /**
16
+ * Initialize a new instance of the class Operations class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Lists available operations for the Microsoft.Batch provider
24
+ * @param options The options parameters.
25
+ */
26
+ list(options) {
27
+ const iter = this.listPagingAll(options);
28
+ return {
29
+ next() {
30
+ return iter.next();
31
+ },
32
+ [Symbol.asyncIterator]() {
33
+ return this;
34
+ },
35
+ byPage: () => {
36
+ return this.listPagingPage(options);
37
+ }
38
+ };
39
+ }
40
+ listPagingPage(options) {
41
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
42
+ let result = yield __await(this._list(options));
43
+ yield yield __await(result.value || []);
44
+ let continuationToken = result.nextLink;
45
+ while (continuationToken) {
46
+ result = yield __await(this._listNext(continuationToken, options));
47
+ continuationToken = result.nextLink;
48
+ yield yield __await(result.value || []);
49
+ }
50
+ });
51
+ }
52
+ listPagingAll(options) {
53
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
54
+ var e_1, _a;
55
+ try {
56
+ for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
57
+ const page = _c.value;
58
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
59
+ }
60
+ }
61
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
62
+ finally {
63
+ try {
64
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
65
+ }
66
+ finally { if (e_1) throw e_1.error; }
67
+ }
68
+ });
69
+ }
70
+ /**
71
+ * Lists available operations for the Microsoft.Batch provider
72
+ * @param options The options parameters.
73
+ */
74
+ _list(options) {
75
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
76
+ }
77
+ /**
78
+ * ListNext
79
+ * @param nextLink The nextLink from the previous successful call to the List method.
80
+ * @param options The options parameters.
81
+ */
82
+ _listNext(nextLink, options) {
83
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
84
+ }
85
+ }
86
+ // Operation Specifications
87
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
88
+ const listOperationSpec = {
89
+ path: "/providers/Microsoft.Batch/operations",
90
+ httpMethod: "GET",
91
+ responses: {
92
+ 200: {
93
+ bodyMapper: Mappers.OperationListResult
94
+ },
95
+ default: {
96
+ bodyMapper: Mappers.CloudError
97
+ }
98
+ },
99
+ queryParameters: [Parameters.apiVersion],
100
+ urlParameters: [Parameters.$host],
101
+ headerParameters: [Parameters.accept],
102
+ serializer
103
+ };
104
+ const listNextOperationSpec = {
105
+ path: "{nextLink}",
106
+ httpMethod: "GET",
107
+ responses: {
108
+ 200: {
109
+ bodyMapper: Mappers.OperationListResult
110
+ },
111
+ default: {
112
+ bodyMapper: Mappers.CloudError
113
+ }
114
+ },
115
+ queryParameters: [Parameters.apiVersion],
116
+ urlParameters: [Parameters.$host, Parameters.nextLink],
117
+ headerParameters: [Parameters.accept],
118
+ serializer
119
+ };
120
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.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;AAUnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,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,OAAO,CAAC,CAAC;YACtC,CAAC;SACF,C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AK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,103 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PoolOperations } from "../operationsInterfaces";
3
+ import { BatchManagementClientContext } from "../batchManagementClientContext";
4
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
5
+ import { Pool, PoolListByBatchAccountOptionalParams, PoolCreateOptionalParams, PoolCreateResponse, PoolUpdateOptionalParams, PoolUpdateResponse, PoolDeleteOptionalParams, PoolGetOptionalParams, PoolGetResponse, PoolDisableAutoScaleOptionalParams, PoolDisableAutoScaleResponse, PoolStopResizeOptionalParams, PoolStopResizeResponse } from "../models";
6
+ /** Class containing PoolOperations operations. */
7
+ export declare class PoolOperationsImpl implements PoolOperations {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class PoolOperations class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: BatchManagementClientContext);
14
+ /**
15
+ * Lists all of the pools in the specified account.
16
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
17
+ * @param accountName The name of the Batch account.
18
+ * @param options The options parameters.
19
+ */
20
+ listByBatchAccount(resourceGroupName: string, accountName: string, options?: PoolListByBatchAccountOptionalParams): PagedAsyncIterableIterator<Pool>;
21
+ private listByBatchAccountPagingPage;
22
+ private listByBatchAccountPagingAll;
23
+ /**
24
+ * Lists all of the pools in the specified account.
25
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
26
+ * @param accountName The name of the Batch account.
27
+ * @param options The options parameters.
28
+ */
29
+ private _listByBatchAccount;
30
+ /**
31
+ * Creates a new pool inside the specified account.
32
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
33
+ * @param accountName The name of the Batch account.
34
+ * @param poolName The pool name. This must be unique within the account.
35
+ * @param parameters Additional parameters for pool creation.
36
+ * @param options The options parameters.
37
+ */
38
+ create(resourceGroupName: string, accountName: string, poolName: string, parameters: Pool, options?: PoolCreateOptionalParams): Promise<PoolCreateResponse>;
39
+ /**
40
+ * Updates the properties of an existing pool.
41
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
42
+ * @param accountName The name of the Batch account.
43
+ * @param poolName The pool name. This must be unique within the account.
44
+ * @param parameters Pool properties that should be updated. Properties that are supplied will be
45
+ * updated, any property not supplied will be unchanged.
46
+ * @param options The options parameters.
47
+ */
48
+ update(resourceGroupName: string, accountName: string, poolName: string, parameters: Pool, options?: PoolUpdateOptionalParams): Promise<PoolUpdateResponse>;
49
+ /**
50
+ * Deletes the specified pool.
51
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
52
+ * @param accountName The name of the Batch account.
53
+ * @param poolName The pool name. This must be unique within the account.
54
+ * @param options The options parameters.
55
+ */
56
+ beginDelete(resourceGroupName: string, accountName: string, poolName: string, options?: PoolDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
57
+ /**
58
+ * Deletes the specified pool.
59
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
60
+ * @param accountName The name of the Batch account.
61
+ * @param poolName The pool name. This must be unique within the account.
62
+ * @param options The options parameters.
63
+ */
64
+ beginDeleteAndWait(resourceGroupName: string, accountName: string, poolName: string, options?: PoolDeleteOptionalParams): Promise<void>;
65
+ /**
66
+ * Gets information about the specified pool.
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 poolName The pool name. This must be unique within the account.
70
+ * @param options The options parameters.
71
+ */
72
+ get(resourceGroupName: string, accountName: string, poolName: string, options?: PoolGetOptionalParams): Promise<PoolGetResponse>;
73
+ /**
74
+ * Disables automatic scaling for a pool.
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 poolName The pool name. This must be unique within the account.
78
+ * @param options The options parameters.
79
+ */
80
+ disableAutoScale(resourceGroupName: string, accountName: string, poolName: string, options?: PoolDisableAutoScaleOptionalParams): Promise<PoolDisableAutoScaleResponse>;
81
+ /**
82
+ * This does not restore the pool to its previous state before the resize operation: it only stops any
83
+ * further changes being made, and the pool maintains its current state. After stopping, the pool
84
+ * stabilizes at the number of nodes it was at when the stop operation was done. During the stop
85
+ * operation, the pool allocation state changes first to stopping and then to steady. A resize
86
+ * operation need not be an explicit resize pool request; this API can also be used to halt the initial
87
+ * sizing of the pool when it is created.
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 options The options parameters.
92
+ */
93
+ stopResize(resourceGroupName: string, accountName: string, poolName: string, options?: PoolStopResizeOptionalParams): Promise<PoolStopResizeResponse>;
94
+ /**
95
+ * ListByBatchAccountNext
96
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
97
+ * @param accountName The name of the Batch account.
98
+ * @param nextLink The nextLink from the previous successful call to the ListByBatchAccount method.
99
+ * @param options The options parameters.
100
+ */
101
+ private _listByBatchAccountNext;
102
+ }
103
+ //# sourceMappingURL=poolOperations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poolOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/poolOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,IAAI,EAEJ,oCAAoC,EAEpC,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,eAAe,EACf,kCAAkC,EAClC,4BAA4B,EAC5B,4BAA4B,EAC5B,sBAAsB,EAEvB,MAAM,WAAW,CAAC;AAGnB,kDAAkD;AAClD,qBAAa,kBAAmB,YAAW,cAAc;IACvD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;IAEtD;;;OAGG;gBACS,MAAM,EAAE,4BAA4B;IAIhD;;;;;OAKG;IACI,kBAAkB,CACvB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,0BAA0B,CAAC,IAAI,CAAC;YAuBpB,4BAA4B;YAwB5B,2BAA2B;IAc1C;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB;IAW3B;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,IAAI,EAChB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC;IAO9B;;;;;;;;OAQG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAA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