@azure/arm-batch 4.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 (251) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +75 -77
  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 +2357 -1248
  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 +2 -0
  53. package/dist-esm/src/operations/index.d.ts.map +1 -0
  54. package/dist-esm/src/operations/index.js +17 -0
  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 +71 -34
  121. package/review/arm-batch.api.md +1459 -0
  122. package/rollup.config.js +184 -27
  123. package/src/batchManagementClient.ts +75 -0
  124. package/src/batchManagementClientContext.ts +71 -0
  125. package/src/index.ts +13 -0
  126. package/src/lroImpl.ts +34 -0
  127. package/src/models/index.ts +2045 -0
  128. package/{lib → src}/models/mappers.ts +2413 -1223
  129. package/src/models/parameters.ts +351 -0
  130. package/src/operations/applicationOperations.ts +357 -0
  131. package/src/operations/applicationPackageOperations.ts +410 -0
  132. package/src/operations/batchAccountOperations.ts +901 -0
  133. package/src/operations/certificateOperations.ts +527 -0
  134. package/{lib → src}/operations/index.ts +5 -5
  135. package/src/operations/location.ts +413 -0
  136. package/src/operations/operations.ts +137 -0
  137. package/src/operations/poolOperations.ts +560 -0
  138. package/src/operations/privateEndpointConnectionOperations.ts +388 -0
  139. package/src/operations/privateLinkResourceOperations.ts +235 -0
  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/{esm/operations/index.js → src/operationsInterfaces/index.ts} +6 -6
  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 +4 -4
  151. package/types/arm-batch.d.ts +2528 -0
  152. package/types/tsdoc-metadata.json +11 -0
  153. package/dist/arm-batch.js +0 -4689
  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 -25
  158. package/esm/batchManagementClient.d.ts.map +0 -1
  159. package/esm/batchManagementClient.js +0 -40
  160. package/esm/batchManagementClient.js.map +0 -1
  161. package/esm/batchManagementClientContext.d.ts +0 -17
  162. package/esm/batchManagementClientContext.d.ts.map +0 -1
  163. package/esm/batchManagementClientContext.js +0 -57
  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 -11
  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 -11
  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 -11
  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 -11
  180. package/esm/models/certificateOperationsMappers.js.map +0 -1
  181. package/esm/models/index.d.ts +0 -3108
  182. package/esm/models/index.d.ts.map +0 -1
  183. package/esm/models/index.js +0 -10
  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 -11
  188. package/esm/models/locationMappers.js.map +0 -1
  189. package/esm/models/mappers.d.ts +0 -76
  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 -11
  195. package/esm/models/operationsMappers.js.map +0 -1
  196. package/esm/models/parameters.d.ts +0 -18
  197. package/esm/models/parameters.d.ts.map +0 -1
  198. package/esm/models/parameters.js +0 -196
  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 -11
  203. package/esm/models/poolOperationsMappers.js.map +0 -1
  204. package/esm/operations/applicationOperations.d.ts +0 -151
  205. package/esm/operations/applicationOperations.d.ts.map +0 -1
  206. package/esm/operations/applicationOperations.js +0 -226
  207. package/esm/operations/applicationOperations.js.map +0 -1
  208. package/esm/operations/applicationPackageOperations.d.ts +0 -124
  209. package/esm/operations/applicationPackageOperations.d.ts.map +0 -1
  210. package/esm/operations/applicationPackageOperations.js +0 -171
  211. package/esm/operations/applicationPackageOperations.js.map +0 -1
  212. package/esm/operations/batchAccountOperations.d.ts +0 -246
  213. package/esm/operations/batchAccountOperations.d.ts.map +0 -1
  214. package/esm/operations/batchAccountOperations.js +0 -426
  215. package/esm/operations/batchAccountOperations.js.map +0 -1
  216. package/esm/operations/certificateOperations.d.ts +0 -198
  217. package/esm/operations/certificateOperations.d.ts.map +0 -1
  218. package/esm/operations/certificateOperations.js +0 -326
  219. package/esm/operations/certificateOperations.js.map +0 -1
  220. package/esm/operations/index.d.ts.map +0 -1
  221. package/esm/operations/index.js.map +0 -1
  222. package/esm/operations/location.d.ts +0 -52
  223. package/esm/operations/location.d.ts.map +0 -1
  224. package/esm/operations/location.js +0 -93
  225. package/esm/operations/location.js.map +0 -1
  226. package/esm/operations/operations.d.ts +0 -46
  227. package/esm/operations/operations.d.ts.map +0 -1
  228. package/esm/operations/operations.js +0 -77
  229. package/esm/operations/operations.js.map +0 -1
  230. package/esm/operations/poolOperations.d.ts +0 -199
  231. package/esm/operations/poolOperations.d.ts.map +0 -1
  232. package/esm/operations/poolOperations.js +0 -352
  233. package/esm/operations/poolOperations.js.map +0 -1
  234. package/lib/batchManagementClient.ts +0 -55
  235. package/lib/batchManagementClientContext.ts +0 -63
  236. package/lib/models/applicationOperationsMappers.ts +0 -19
  237. package/lib/models/applicationPackageOperationsMappers.ts +0 -16
  238. package/lib/models/batchAccountOperationsMappers.ts +0 -61
  239. package/lib/models/certificateOperationsMappers.ts +0 -60
  240. package/lib/models/index.ts +0 -3252
  241. package/lib/models/locationMappers.ts +0 -17
  242. package/lib/models/operationsMappers.ts +0 -17
  243. package/lib/models/parameters.ts +0 -198
  244. package/lib/models/poolOperationsMappers.ts +0 -61
  245. package/lib/operations/applicationOperations.ts +0 -399
  246. package/lib/operations/applicationPackageOperations.ts +0 -307
  247. package/lib/operations/batchAccountOperations.ts +0 -683
  248. package/lib/operations/certificateOperations.ts +0 -510
  249. package/lib/operations/location.ts +0 -147
  250. package/lib/operations/operations.ts +0 -123
  251. package/lib/operations/poolOperations.ts +0 -550
@@ -0,0 +1,410 @@
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, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing PoolOperations operations. */
16
+ export class PoolOperationsImpl {
17
+ /**
18
+ * Initialize a new instance of the class PoolOperations class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * Lists all of the pools in the specified account.
26
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
27
+ * @param accountName The name of the Batch account.
28
+ * @param options The options parameters.
29
+ */
30
+ listByBatchAccount(resourceGroupName, accountName, options) {
31
+ const iter = this.listByBatchAccountPagingAll(resourceGroupName, accountName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listByBatchAccountPagingPage(resourceGroupName, accountName, options);
41
+ }
42
+ };
43
+ }
44
+ listByBatchAccountPagingPage(resourceGroupName, accountName, options) {
45
+ return __asyncGenerator(this, arguments, function* listByBatchAccountPagingPage_1() {
46
+ let result = yield __await(this._listByBatchAccount(resourceGroupName, accountName, options));
47
+ yield yield __await(result.value || []);
48
+ let continuationToken = result.nextLink;
49
+ while (continuationToken) {
50
+ result = yield __await(this._listByBatchAccountNext(resourceGroupName, accountName, continuationToken, options));
51
+ continuationToken = result.nextLink;
52
+ yield yield __await(result.value || []);
53
+ }
54
+ });
55
+ }
56
+ listByBatchAccountPagingAll(resourceGroupName, accountName, options) {
57
+ return __asyncGenerator(this, arguments, function* listByBatchAccountPagingAll_1() {
58
+ var e_1, _a;
59
+ try {
60
+ for (var _b = __asyncValues(this.listByBatchAccountPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
61
+ const page = _c.value;
62
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
63
+ }
64
+ }
65
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
66
+ finally {
67
+ try {
68
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
69
+ }
70
+ finally { if (e_1) throw e_1.error; }
71
+ }
72
+ });
73
+ }
74
+ /**
75
+ * Lists all of the pools in the specified account.
76
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
77
+ * @param accountName The name of the Batch account.
78
+ * @param options The options parameters.
79
+ */
80
+ _listByBatchAccount(resourceGroupName, accountName, options) {
81
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listByBatchAccountOperationSpec);
82
+ }
83
+ /**
84
+ * Creates a new pool inside the specified account.
85
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
86
+ * @param accountName The name of the Batch account.
87
+ * @param poolName The pool name. This must be unique within the account.
88
+ * @param parameters Additional parameters for pool creation.
89
+ * @param options The options parameters.
90
+ */
91
+ create(resourceGroupName, accountName, poolName, parameters, options) {
92
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, poolName, parameters, options }, createOperationSpec);
93
+ }
94
+ /**
95
+ * Updates the properties of an existing pool.
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 poolName The pool name. This must be unique within the account.
99
+ * @param parameters Pool properties that should be updated. Properties that are supplied will be
100
+ * updated, any property not supplied will be unchanged.
101
+ * @param options The options parameters.
102
+ */
103
+ update(resourceGroupName, accountName, poolName, parameters, options) {
104
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, poolName, parameters, options }, updateOperationSpec);
105
+ }
106
+ /**
107
+ * Deletes the specified pool.
108
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
109
+ * @param accountName The name of the Batch account.
110
+ * @param poolName The pool name. This must be unique within the account.
111
+ * @param options The options parameters.
112
+ */
113
+ beginDelete(resourceGroupName, accountName, poolName, options) {
114
+ return __awaiter(this, void 0, void 0, function* () {
115
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
116
+ return this.client.sendOperationRequest(args, spec);
117
+ });
118
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
119
+ var _a;
120
+ let currentRawResponse = undefined;
121
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
122
+ const callback = (rawResponse, flatResponse) => {
123
+ currentRawResponse = rawResponse;
124
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
125
+ };
126
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
127
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
128
+ return {
129
+ flatResponse,
130
+ rawResponse: {
131
+ statusCode: currentRawResponse.status,
132
+ body: currentRawResponse.parsedBody,
133
+ headers: currentRawResponse.headers.toJSON()
134
+ }
135
+ };
136
+ });
137
+ const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, poolName, options }, deleteOperationSpec);
138
+ return new LroEngine(lro, {
139
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
140
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
141
+ lroResourceLocationConfig: "location"
142
+ });
143
+ });
144
+ }
145
+ /**
146
+ * Deletes the specified pool.
147
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
148
+ * @param accountName The name of the Batch account.
149
+ * @param poolName The pool name. This must be unique within the account.
150
+ * @param options The options parameters.
151
+ */
152
+ beginDeleteAndWait(resourceGroupName, accountName, poolName, options) {
153
+ return __awaiter(this, void 0, void 0, function* () {
154
+ const poller = yield this.beginDelete(resourceGroupName, accountName, poolName, options);
155
+ return poller.pollUntilDone();
156
+ });
157
+ }
158
+ /**
159
+ * Gets information about the specified pool.
160
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
161
+ * @param accountName The name of the Batch account.
162
+ * @param poolName The pool name. This must be unique within the account.
163
+ * @param options The options parameters.
164
+ */
165
+ get(resourceGroupName, accountName, poolName, options) {
166
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, poolName, options }, getOperationSpec);
167
+ }
168
+ /**
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 options parameters.
174
+ */
175
+ disableAutoScale(resourceGroupName, accountName, poolName, options) {
176
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, poolName, options }, disableAutoScaleOperationSpec);
177
+ }
178
+ /**
179
+ * This does not restore the pool to its previous state before the resize operation: it only stops any
180
+ * further changes being made, and the pool maintains its current state. After stopping, the pool
181
+ * stabilizes at the number of nodes it was at when the stop operation was done. During the stop
182
+ * operation, the pool allocation state changes first to stopping and then to steady. A resize
183
+ * operation need not be an explicit resize pool request; this API can also be used to halt the initial
184
+ * sizing of the pool when it is created.
185
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
186
+ * @param accountName The name of the Batch account.
187
+ * @param poolName The pool name. This must be unique within the account.
188
+ * @param options The options parameters.
189
+ */
190
+ stopResize(resourceGroupName, accountName, poolName, options) {
191
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, poolName, options }, stopResizeOperationSpec);
192
+ }
193
+ /**
194
+ * ListByBatchAccountNext
195
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
196
+ * @param accountName The name of the Batch account.
197
+ * @param nextLink The nextLink from the previous successful call to the ListByBatchAccount method.
198
+ * @param options The options parameters.
199
+ */
200
+ _listByBatchAccountNext(resourceGroupName, accountName, nextLink, options) {
201
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listByBatchAccountNextOperationSpec);
202
+ }
203
+ }
204
+ // Operation Specifications
205
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
206
+ const listByBatchAccountOperationSpec = {
207
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools",
208
+ httpMethod: "GET",
209
+ responses: {
210
+ 200: {
211
+ bodyMapper: Mappers.ListPoolsResult
212
+ },
213
+ default: {
214
+ bodyMapper: Mappers.CloudError
215
+ }
216
+ },
217
+ queryParameters: [
218
+ Parameters.apiVersion,
219
+ Parameters.maxresults,
220
+ Parameters.filter,
221
+ Parameters.select
222
+ ],
223
+ urlParameters: [
224
+ Parameters.$host,
225
+ Parameters.resourceGroupName,
226
+ Parameters.subscriptionId,
227
+ Parameters.accountName1
228
+ ],
229
+ headerParameters: [Parameters.accept],
230
+ serializer
231
+ };
232
+ const createOperationSpec = {
233
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
234
+ httpMethod: "PUT",
235
+ responses: {
236
+ 200: {
237
+ bodyMapper: Mappers.Pool,
238
+ headersMapper: Mappers.PoolCreateHeaders
239
+ },
240
+ default: {
241
+ bodyMapper: Mappers.CloudError
242
+ }
243
+ },
244
+ requestBody: Parameters.parameters10,
245
+ queryParameters: [Parameters.apiVersion],
246
+ urlParameters: [
247
+ Parameters.$host,
248
+ Parameters.resourceGroupName,
249
+ Parameters.subscriptionId,
250
+ Parameters.accountName1,
251
+ Parameters.poolName
252
+ ],
253
+ headerParameters: [
254
+ Parameters.contentType,
255
+ Parameters.accept,
256
+ Parameters.ifMatch,
257
+ Parameters.ifNoneMatch
258
+ ],
259
+ mediaType: "json",
260
+ serializer
261
+ };
262
+ const updateOperationSpec = {
263
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
264
+ httpMethod: "PATCH",
265
+ responses: {
266
+ 200: {
267
+ bodyMapper: Mappers.Pool,
268
+ headersMapper: Mappers.PoolUpdateHeaders
269
+ },
270
+ default: {
271
+ bodyMapper: Mappers.CloudError
272
+ }
273
+ },
274
+ requestBody: Parameters.parameters10,
275
+ queryParameters: [Parameters.apiVersion],
276
+ urlParameters: [
277
+ Parameters.$host,
278
+ Parameters.resourceGroupName,
279
+ Parameters.subscriptionId,
280
+ Parameters.accountName1,
281
+ Parameters.poolName
282
+ ],
283
+ headerParameters: [
284
+ Parameters.contentType,
285
+ Parameters.accept,
286
+ Parameters.ifMatch
287
+ ],
288
+ mediaType: "json",
289
+ serializer
290
+ };
291
+ const deleteOperationSpec = {
292
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
293
+ httpMethod: "DELETE",
294
+ responses: {
295
+ 200: {},
296
+ 201: {},
297
+ 202: {},
298
+ 204: {},
299
+ default: {
300
+ bodyMapper: Mappers.CloudError
301
+ }
302
+ },
303
+ queryParameters: [Parameters.apiVersion],
304
+ urlParameters: [
305
+ Parameters.$host,
306
+ Parameters.resourceGroupName,
307
+ Parameters.subscriptionId,
308
+ Parameters.accountName1,
309
+ Parameters.poolName
310
+ ],
311
+ headerParameters: [Parameters.accept],
312
+ serializer
313
+ };
314
+ const getOperationSpec = {
315
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}",
316
+ httpMethod: "GET",
317
+ responses: {
318
+ 200: {
319
+ bodyMapper: Mappers.Pool,
320
+ headersMapper: Mappers.PoolGetHeaders
321
+ },
322
+ default: {
323
+ bodyMapper: Mappers.CloudError
324
+ }
325
+ },
326
+ queryParameters: [Parameters.apiVersion],
327
+ urlParameters: [
328
+ Parameters.$host,
329
+ Parameters.resourceGroupName,
330
+ Parameters.subscriptionId,
331
+ Parameters.accountName1,
332
+ Parameters.poolName
333
+ ],
334
+ headerParameters: [Parameters.accept],
335
+ serializer
336
+ };
337
+ const disableAutoScaleOperationSpec = {
338
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale",
339
+ httpMethod: "POST",
340
+ responses: {
341
+ 200: {
342
+ bodyMapper: Mappers.Pool,
343
+ headersMapper: Mappers.PoolDisableAutoScaleHeaders
344
+ },
345
+ default: {
346
+ bodyMapper: Mappers.CloudError
347
+ }
348
+ },
349
+ queryParameters: [Parameters.apiVersion],
350
+ urlParameters: [
351
+ Parameters.$host,
352
+ Parameters.resourceGroupName,
353
+ Parameters.subscriptionId,
354
+ Parameters.accountName1,
355
+ Parameters.poolName
356
+ ],
357
+ headerParameters: [Parameters.accept],
358
+ serializer
359
+ };
360
+ const stopResizeOperationSpec = {
361
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize",
362
+ httpMethod: "POST",
363
+ responses: {
364
+ 200: {
365
+ bodyMapper: Mappers.Pool,
366
+ headersMapper: Mappers.PoolStopResizeHeaders
367
+ },
368
+ default: {
369
+ bodyMapper: Mappers.CloudError
370
+ }
371
+ },
372
+ queryParameters: [Parameters.apiVersion],
373
+ urlParameters: [
374
+ Parameters.$host,
375
+ Parameters.resourceGroupName,
376
+ Parameters.subscriptionId,
377
+ Parameters.accountName1,
378
+ Parameters.poolName
379
+ ],
380
+ headerParameters: [Parameters.accept],
381
+ serializer
382
+ };
383
+ const listByBatchAccountNextOperationSpec = {
384
+ path: "{nextLink}",
385
+ httpMethod: "GET",
386
+ responses: {
387
+ 200: {
388
+ bodyMapper: Mappers.ListPoolsResult
389
+ },
390
+ default: {
391
+ bodyMapper: Mappers.CloudError
392
+ }
393
+ },
394
+ queryParameters: [
395
+ Parameters.apiVersion,
396
+ Parameters.maxresults,
397
+ Parameters.filter,
398
+ Parameters.select
399
+ ],
400
+ urlParameters: [
401
+ Parameters.$host,
402
+ Parameters.resourceGroupName,
403
+ Parameters.subscriptionId,
404
+ Parameters.accountName1,
405
+ Parameters.nextLink
406
+ ],
407
+ headerParameters: [Parameters.accept],
408
+ serializer
409
+ };
410
+ //# sourceMappingURL=poolOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poolOperations.js","sourceRoot":"","sources":["../../../src/operations/poolOperations.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;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAoBrC,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,kBAAkB,CACvB,iB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AClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;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;QACjB,UAAU,CAAC,MAAM;KAClB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,70 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PrivateEndpointConnectionOperations } from "../operationsInterfaces";
3
+ import { BatchManagementClientContext } from "../batchManagementClientContext";
4
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
5
+ import { PrivateEndpointConnection, PrivateEndpointConnectionListByBatchAccountOptionalParams, PrivateEndpointConnectionGetOptionalParams, PrivateEndpointConnectionGetResponse, PrivateEndpointConnectionUpdateOptionalParams, PrivateEndpointConnectionUpdateResponse } from "../models";
6
+ /** Class containing PrivateEndpointConnectionOperations operations. */
7
+ export declare class PrivateEndpointConnectionOperationsImpl implements PrivateEndpointConnectionOperations {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class PrivateEndpointConnectionOperations class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: BatchManagementClientContext);
14
+ /**
15
+ * Lists all of the private endpoint connections 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?: PrivateEndpointConnectionListByBatchAccountOptionalParams): PagedAsyncIterableIterator<PrivateEndpointConnection>;
21
+ private listByBatchAccountPagingPage;
22
+ private listByBatchAccountPagingAll;
23
+ /**
24
+ * Lists all of the private endpoint connections 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
+ * Gets information about the specified private endpoint connection.
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 privateEndpointConnectionName The private endpoint connection name. This must be unique
35
+ * within the account.
36
+ * @param options The options parameters.
37
+ */
38
+ get(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionGetOptionalParams): Promise<PrivateEndpointConnectionGetResponse>;
39
+ /**
40
+ * Updates the properties of an existing private endpoint connection.
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 privateEndpointConnectionName The private endpoint connection name. This must be unique
44
+ * within the account.
45
+ * @param parameters PrivateEndpointConnection properties that should be updated. Properties that are
46
+ * supplied will be updated, any property not supplied will be unchanged.
47
+ * @param options The options parameters.
48
+ */
49
+ beginUpdate(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionUpdateOptionalParams): Promise<PollerLike<PollOperationState<PrivateEndpointConnectionUpdateResponse>, PrivateEndpointConnectionUpdateResponse>>;
50
+ /**
51
+ * Updates the properties of an existing private endpoint connection.
52
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
53
+ * @param accountName The name of the Batch account.
54
+ * @param privateEndpointConnectionName The private endpoint connection name. This must be unique
55
+ * within the account.
56
+ * @param parameters PrivateEndpointConnection properties that should be updated. Properties that are
57
+ * supplied will be updated, any property not supplied will be unchanged.
58
+ * @param options The options parameters.
59
+ */
60
+ beginUpdateAndWait(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionUpdateOptionalParams): Promise<PrivateEndpointConnectionUpdateResponse>;
61
+ /**
62
+ * ListByBatchAccountNext
63
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
64
+ * @param accountName The name of the Batch account.
65
+ * @param nextLink The nextLink from the previous successful call to the ListByBatchAccount method.
66
+ * @param options The options parameters.
67
+ */
68
+ private _listByBatchAccountNext;
69
+ }
70
+ //# sourceMappingURL=privateEndpointConnectionOperations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnectionOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAI9E,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,yBAAyB,EAEzB,yDAAyD,EAEzD,0CAA0C,EAC1C,oCAAoC,EACpC,6CAA6C,EAC7C,uCAAuC,EAExC,MAAM,WAAW,CAAC;AAGnB,uEAAuE;AACvE,qBAAa,uCACX,YAAW,mCAAmC;IAC9C,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,yDAAyD,GAClE,0BAA0B,CAAC,yBAAyB,CAAC;YAuBzC,4BAA4B;YAwB5B,2BAA2B;IAc1C;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB;IAW3B;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MA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