@azure/arm-batch 4.0.0 → 7.0.0-alpha.20211122.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 +72 -25
  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,901 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { BatchAccountOperations } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { BatchManagementClientContext } from "../batchManagementClientContext";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ BatchAccount,
19
+ BatchAccountListNextOptionalParams,
20
+ BatchAccountListOptionalParams,
21
+ BatchAccountListByResourceGroupNextOptionalParams,
22
+ BatchAccountListByResourceGroupOptionalParams,
23
+ OutboundEnvironmentEndpoint,
24
+ BatchAccountListOutboundNetworkDependenciesEndpointsNextOptionalParams,
25
+ BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams,
26
+ BatchAccountCreateParameters,
27
+ BatchAccountCreateOptionalParams,
28
+ BatchAccountCreateResponse,
29
+ BatchAccountUpdateParameters,
30
+ BatchAccountUpdateOptionalParams,
31
+ BatchAccountUpdateResponse,
32
+ BatchAccountDeleteOptionalParams,
33
+ BatchAccountGetOptionalParams,
34
+ BatchAccountGetResponse,
35
+ BatchAccountListResponse,
36
+ BatchAccountListByResourceGroupResponse,
37
+ BatchAccountSynchronizeAutoStorageKeysOptionalParams,
38
+ BatchAccountRegenerateKeyParameters,
39
+ BatchAccountRegenerateKeyOptionalParams,
40
+ BatchAccountRegenerateKeyResponse,
41
+ BatchAccountGetKeysOptionalParams,
42
+ BatchAccountGetKeysResponse,
43
+ BatchAccountListOutboundNetworkDependenciesEndpointsResponse,
44
+ BatchAccountListNextResponse,
45
+ BatchAccountListByResourceGroupNextResponse,
46
+ BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse
47
+ } from "../models";
48
+
49
+ /// <reference lib="esnext.asynciterable" />
50
+ /** Class containing BatchAccountOperations operations. */
51
+ export class BatchAccountOperationsImpl implements BatchAccountOperations {
52
+ private readonly client: BatchManagementClientContext;
53
+
54
+ /**
55
+ * Initialize a new instance of the class BatchAccountOperations class.
56
+ * @param client Reference to the service client
57
+ */
58
+ constructor(client: BatchManagementClientContext) {
59
+ this.client = client;
60
+ }
61
+
62
+ /**
63
+ * Gets information about the Batch accounts associated with the subscription.
64
+ * @param options The options parameters.
65
+ */
66
+ public list(
67
+ options?: BatchAccountListOptionalParams
68
+ ): PagedAsyncIterableIterator<BatchAccount> {
69
+ const iter = this.listPagingAll(options);
70
+ return {
71
+ next() {
72
+ return iter.next();
73
+ },
74
+ [Symbol.asyncIterator]() {
75
+ return this;
76
+ },
77
+ byPage: () => {
78
+ return this.listPagingPage(options);
79
+ }
80
+ };
81
+ }
82
+
83
+ private async *listPagingPage(
84
+ options?: BatchAccountListOptionalParams
85
+ ): AsyncIterableIterator<BatchAccount[]> {
86
+ let result = await this._list(options);
87
+ yield result.value || [];
88
+ let continuationToken = result.nextLink;
89
+ while (continuationToken) {
90
+ result = await this._listNext(continuationToken, options);
91
+ continuationToken = result.nextLink;
92
+ yield result.value || [];
93
+ }
94
+ }
95
+
96
+ private async *listPagingAll(
97
+ options?: BatchAccountListOptionalParams
98
+ ): AsyncIterableIterator<BatchAccount> {
99
+ for await (const page of this.listPagingPage(options)) {
100
+ yield* page;
101
+ }
102
+ }
103
+
104
+ /**
105
+ * Gets information about the Batch accounts associated with the specified resource group.
106
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
107
+ * @param options The options parameters.
108
+ */
109
+ public listByResourceGroup(
110
+ resourceGroupName: string,
111
+ options?: BatchAccountListByResourceGroupOptionalParams
112
+ ): PagedAsyncIterableIterator<BatchAccount> {
113
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
114
+ return {
115
+ next() {
116
+ return iter.next();
117
+ },
118
+ [Symbol.asyncIterator]() {
119
+ return this;
120
+ },
121
+ byPage: () => {
122
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
123
+ }
124
+ };
125
+ }
126
+
127
+ private async *listByResourceGroupPagingPage(
128
+ resourceGroupName: string,
129
+ options?: BatchAccountListByResourceGroupOptionalParams
130
+ ): AsyncIterableIterator<BatchAccount[]> {
131
+ let result = await this._listByResourceGroup(resourceGroupName, options);
132
+ yield result.value || [];
133
+ let continuationToken = result.nextLink;
134
+ while (continuationToken) {
135
+ result = await this._listByResourceGroupNext(
136
+ resourceGroupName,
137
+ continuationToken,
138
+ options
139
+ );
140
+ continuationToken = result.nextLink;
141
+ yield result.value || [];
142
+ }
143
+ }
144
+
145
+ private async *listByResourceGroupPagingAll(
146
+ resourceGroupName: string,
147
+ options?: BatchAccountListByResourceGroupOptionalParams
148
+ ): AsyncIterableIterator<BatchAccount> {
149
+ for await (const page of this.listByResourceGroupPagingPage(
150
+ resourceGroupName,
151
+ options
152
+ )) {
153
+ yield* page;
154
+ }
155
+ }
156
+
157
+ /**
158
+ * Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch
159
+ * service administration. If you are deploying a Pool inside of a virtual network that you specify,
160
+ * you must make sure your network allows outbound access to these endpoints. Failure to allow access
161
+ * to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
162
+ * about creating a pool inside of a virtual network, see
163
+ * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
164
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
165
+ * @param accountName The name of the Batch account.
166
+ * @param options The options parameters.
167
+ */
168
+ public listOutboundNetworkDependenciesEndpoints(
169
+ resourceGroupName: string,
170
+ accountName: string,
171
+ options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams
172
+ ): PagedAsyncIterableIterator<OutboundEnvironmentEndpoint> {
173
+ const iter = this.listOutboundNetworkDependenciesEndpointsPagingAll(
174
+ resourceGroupName,
175
+ accountName,
176
+ options
177
+ );
178
+ return {
179
+ next() {
180
+ return iter.next();
181
+ },
182
+ [Symbol.asyncIterator]() {
183
+ return this;
184
+ },
185
+ byPage: () => {
186
+ return this.listOutboundNetworkDependenciesEndpointsPagingPage(
187
+ resourceGroupName,
188
+ accountName,
189
+ options
190
+ );
191
+ }
192
+ };
193
+ }
194
+
195
+ private async *listOutboundNetworkDependenciesEndpointsPagingPage(
196
+ resourceGroupName: string,
197
+ accountName: string,
198
+ options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams
199
+ ): AsyncIterableIterator<OutboundEnvironmentEndpoint[]> {
200
+ let result = await this._listOutboundNetworkDependenciesEndpoints(
201
+ resourceGroupName,
202
+ accountName,
203
+ options
204
+ );
205
+ yield result.value || [];
206
+ let continuationToken = result.nextLink;
207
+ while (continuationToken) {
208
+ result = await this._listOutboundNetworkDependenciesEndpointsNext(
209
+ resourceGroupName,
210
+ accountName,
211
+ continuationToken,
212
+ options
213
+ );
214
+ continuationToken = result.nextLink;
215
+ yield result.value || [];
216
+ }
217
+ }
218
+
219
+ private async *listOutboundNetworkDependenciesEndpointsPagingAll(
220
+ resourceGroupName: string,
221
+ accountName: string,
222
+ options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams
223
+ ): AsyncIterableIterator<OutboundEnvironmentEndpoint> {
224
+ for await (const page of this.listOutboundNetworkDependenciesEndpointsPagingPage(
225
+ resourceGroupName,
226
+ accountName,
227
+ options
228
+ )) {
229
+ yield* page;
230
+ }
231
+ }
232
+
233
+ /**
234
+ * Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with
235
+ * this API and should instead be updated with the Update Batch Account API.
236
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
237
+ * @param accountName A name for the Batch account which must be unique within the region. Batch
238
+ * account names must be between 3 and 24 characters in length and must use only numbers and lowercase
239
+ * letters. This name is used as part of the DNS name that is used to access the Batch service in the
240
+ * region in which the account is created. For example: http://accountname.region.batch.azure.com/.
241
+ * @param parameters Additional parameters for account creation.
242
+ * @param options The options parameters.
243
+ */
244
+ async beginCreate(
245
+ resourceGroupName: string,
246
+ accountName: string,
247
+ parameters: BatchAccountCreateParameters,
248
+ options?: BatchAccountCreateOptionalParams
249
+ ): Promise<
250
+ PollerLike<
251
+ PollOperationState<BatchAccountCreateResponse>,
252
+ BatchAccountCreateResponse
253
+ >
254
+ > {
255
+ const directSendOperation = async (
256
+ args: coreClient.OperationArguments,
257
+ spec: coreClient.OperationSpec
258
+ ): Promise<BatchAccountCreateResponse> => {
259
+ return this.client.sendOperationRequest(args, spec);
260
+ };
261
+ const sendOperation = async (
262
+ args: coreClient.OperationArguments,
263
+ spec: coreClient.OperationSpec
264
+ ) => {
265
+ let currentRawResponse:
266
+ | coreClient.FullOperationResponse
267
+ | undefined = undefined;
268
+ const providedCallback = args.options?.onResponse;
269
+ const callback: coreClient.RawResponseCallback = (
270
+ rawResponse: coreClient.FullOperationResponse,
271
+ flatResponse: unknown
272
+ ) => {
273
+ currentRawResponse = rawResponse;
274
+ providedCallback?.(rawResponse, flatResponse);
275
+ };
276
+ const updatedArgs = {
277
+ ...args,
278
+ options: {
279
+ ...args.options,
280
+ onResponse: callback
281
+ }
282
+ };
283
+ const flatResponse = await directSendOperation(updatedArgs, spec);
284
+ return {
285
+ flatResponse,
286
+ rawResponse: {
287
+ statusCode: currentRawResponse!.status,
288
+ body: currentRawResponse!.parsedBody,
289
+ headers: currentRawResponse!.headers.toJSON()
290
+ }
291
+ };
292
+ };
293
+
294
+ const lro = new LroImpl(
295
+ sendOperation,
296
+ { resourceGroupName, accountName, parameters, options },
297
+ createOperationSpec
298
+ );
299
+ return new LroEngine(lro, {
300
+ resumeFrom: options?.resumeFrom,
301
+ intervalInMs: options?.updateIntervalInMs,
302
+ lroResourceLocationConfig: "location"
303
+ });
304
+ }
305
+
306
+ /**
307
+ * Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with
308
+ * this API and should instead be updated with the Update Batch Account API.
309
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
310
+ * @param accountName A name for the Batch account which must be unique within the region. Batch
311
+ * account names must be between 3 and 24 characters in length and must use only numbers and lowercase
312
+ * letters. This name is used as part of the DNS name that is used to access the Batch service in the
313
+ * region in which the account is created. For example: http://accountname.region.batch.azure.com/.
314
+ * @param parameters Additional parameters for account creation.
315
+ * @param options The options parameters.
316
+ */
317
+ async beginCreateAndWait(
318
+ resourceGroupName: string,
319
+ accountName: string,
320
+ parameters: BatchAccountCreateParameters,
321
+ options?: BatchAccountCreateOptionalParams
322
+ ): Promise<BatchAccountCreateResponse> {
323
+ const poller = await this.beginCreate(
324
+ resourceGroupName,
325
+ accountName,
326
+ parameters,
327
+ options
328
+ );
329
+ return poller.pollUntilDone();
330
+ }
331
+
332
+ /**
333
+ * Updates the properties of an existing Batch account.
334
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
335
+ * @param accountName The name of the Batch account.
336
+ * @param parameters Additional parameters for account update.
337
+ * @param options The options parameters.
338
+ */
339
+ update(
340
+ resourceGroupName: string,
341
+ accountName: string,
342
+ parameters: BatchAccountUpdateParameters,
343
+ options?: BatchAccountUpdateOptionalParams
344
+ ): Promise<BatchAccountUpdateResponse> {
345
+ return this.client.sendOperationRequest(
346
+ { resourceGroupName, accountName, parameters, options },
347
+ updateOperationSpec
348
+ );
349
+ }
350
+
351
+ /**
352
+ * Deletes the specified Batch account.
353
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
354
+ * @param accountName The name of the Batch account.
355
+ * @param options The options parameters.
356
+ */
357
+ async beginDelete(
358
+ resourceGroupName: string,
359
+ accountName: string,
360
+ options?: BatchAccountDeleteOptionalParams
361
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
362
+ const directSendOperation = async (
363
+ args: coreClient.OperationArguments,
364
+ spec: coreClient.OperationSpec
365
+ ): Promise<void> => {
366
+ return this.client.sendOperationRequest(args, spec);
367
+ };
368
+ const sendOperation = async (
369
+ args: coreClient.OperationArguments,
370
+ spec: coreClient.OperationSpec
371
+ ) => {
372
+ let currentRawResponse:
373
+ | coreClient.FullOperationResponse
374
+ | undefined = undefined;
375
+ const providedCallback = args.options?.onResponse;
376
+ const callback: coreClient.RawResponseCallback = (
377
+ rawResponse: coreClient.FullOperationResponse,
378
+ flatResponse: unknown
379
+ ) => {
380
+ currentRawResponse = rawResponse;
381
+ providedCallback?.(rawResponse, flatResponse);
382
+ };
383
+ const updatedArgs = {
384
+ ...args,
385
+ options: {
386
+ ...args.options,
387
+ onResponse: callback
388
+ }
389
+ };
390
+ const flatResponse = await directSendOperation(updatedArgs, spec);
391
+ return {
392
+ flatResponse,
393
+ rawResponse: {
394
+ statusCode: currentRawResponse!.status,
395
+ body: currentRawResponse!.parsedBody,
396
+ headers: currentRawResponse!.headers.toJSON()
397
+ }
398
+ };
399
+ };
400
+
401
+ const lro = new LroImpl(
402
+ sendOperation,
403
+ { resourceGroupName, accountName, options },
404
+ deleteOperationSpec
405
+ );
406
+ return new LroEngine(lro, {
407
+ resumeFrom: options?.resumeFrom,
408
+ intervalInMs: options?.updateIntervalInMs,
409
+ lroResourceLocationConfig: "location"
410
+ });
411
+ }
412
+
413
+ /**
414
+ * Deletes the specified Batch account.
415
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
416
+ * @param accountName The name of the Batch account.
417
+ * @param options The options parameters.
418
+ */
419
+ async beginDeleteAndWait(
420
+ resourceGroupName: string,
421
+ accountName: string,
422
+ options?: BatchAccountDeleteOptionalParams
423
+ ): Promise<void> {
424
+ const poller = await this.beginDelete(
425
+ resourceGroupName,
426
+ accountName,
427
+ options
428
+ );
429
+ return poller.pollUntilDone();
430
+ }
431
+
432
+ /**
433
+ * Gets information about the specified Batch account.
434
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
435
+ * @param accountName The name of the Batch account.
436
+ * @param options The options parameters.
437
+ */
438
+ get(
439
+ resourceGroupName: string,
440
+ accountName: string,
441
+ options?: BatchAccountGetOptionalParams
442
+ ): Promise<BatchAccountGetResponse> {
443
+ return this.client.sendOperationRequest(
444
+ { resourceGroupName, accountName, options },
445
+ getOperationSpec
446
+ );
447
+ }
448
+
449
+ /**
450
+ * Gets information about the Batch accounts associated with the subscription.
451
+ * @param options The options parameters.
452
+ */
453
+ private _list(
454
+ options?: BatchAccountListOptionalParams
455
+ ): Promise<BatchAccountListResponse> {
456
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
457
+ }
458
+
459
+ /**
460
+ * Gets information about the Batch accounts associated with the specified resource group.
461
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
462
+ * @param options The options parameters.
463
+ */
464
+ private _listByResourceGroup(
465
+ resourceGroupName: string,
466
+ options?: BatchAccountListByResourceGroupOptionalParams
467
+ ): Promise<BatchAccountListByResourceGroupResponse> {
468
+ return this.client.sendOperationRequest(
469
+ { resourceGroupName, options },
470
+ listByResourceGroupOperationSpec
471
+ );
472
+ }
473
+
474
+ /**
475
+ * Synchronizes access keys for the auto-storage account configured for the specified Batch account,
476
+ * only if storage key authentication is being used.
477
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
478
+ * @param accountName The name of the Batch account.
479
+ * @param options The options parameters.
480
+ */
481
+ synchronizeAutoStorageKeys(
482
+ resourceGroupName: string,
483
+ accountName: string,
484
+ options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams
485
+ ): Promise<void> {
486
+ return this.client.sendOperationRequest(
487
+ { resourceGroupName, accountName, options },
488
+ synchronizeAutoStorageKeysOperationSpec
489
+ );
490
+ }
491
+
492
+ /**
493
+ * This operation applies only to Batch accounts with allowedAuthenticationModes containing
494
+ * 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode,
495
+ * clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes
496
+ * instead. In this case, regenerating the keys will fail.
497
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
498
+ * @param accountName The name of the Batch account.
499
+ * @param parameters The type of key to regenerate.
500
+ * @param options The options parameters.
501
+ */
502
+ regenerateKey(
503
+ resourceGroupName: string,
504
+ accountName: string,
505
+ parameters: BatchAccountRegenerateKeyParameters,
506
+ options?: BatchAccountRegenerateKeyOptionalParams
507
+ ): Promise<BatchAccountRegenerateKeyResponse> {
508
+ return this.client.sendOperationRequest(
509
+ { resourceGroupName, accountName, parameters, options },
510
+ regenerateKeyOperationSpec
511
+ );
512
+ }
513
+
514
+ /**
515
+ * This operation applies only to Batch accounts with allowedAuthenticationModes containing
516
+ * 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode,
517
+ * clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes
518
+ * instead. In this case, getting the keys will fail.
519
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
520
+ * @param accountName The name of the Batch account.
521
+ * @param options The options parameters.
522
+ */
523
+ getKeys(
524
+ resourceGroupName: string,
525
+ accountName: string,
526
+ options?: BatchAccountGetKeysOptionalParams
527
+ ): Promise<BatchAccountGetKeysResponse> {
528
+ return this.client.sendOperationRequest(
529
+ { resourceGroupName, accountName, options },
530
+ getKeysOperationSpec
531
+ );
532
+ }
533
+
534
+ /**
535
+ * Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch
536
+ * service administration. If you are deploying a Pool inside of a virtual network that you specify,
537
+ * you must make sure your network allows outbound access to these endpoints. Failure to allow access
538
+ * to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
539
+ * about creating a pool inside of a virtual network, see
540
+ * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
541
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
542
+ * @param accountName The name of the Batch account.
543
+ * @param options The options parameters.
544
+ */
545
+ private _listOutboundNetworkDependenciesEndpoints(
546
+ resourceGroupName: string,
547
+ accountName: string,
548
+ options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams
549
+ ): Promise<BatchAccountListOutboundNetworkDependenciesEndpointsResponse> {
550
+ return this.client.sendOperationRequest(
551
+ { resourceGroupName, accountName, options },
552
+ listOutboundNetworkDependenciesEndpointsOperationSpec
553
+ );
554
+ }
555
+
556
+ /**
557
+ * ListNext
558
+ * @param nextLink The nextLink from the previous successful call to the List method.
559
+ * @param options The options parameters.
560
+ */
561
+ private _listNext(
562
+ nextLink: string,
563
+ options?: BatchAccountListNextOptionalParams
564
+ ): Promise<BatchAccountListNextResponse> {
565
+ return this.client.sendOperationRequest(
566
+ { nextLink, options },
567
+ listNextOperationSpec
568
+ );
569
+ }
570
+
571
+ /**
572
+ * ListByResourceGroupNext
573
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
574
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
575
+ * @param options The options parameters.
576
+ */
577
+ private _listByResourceGroupNext(
578
+ resourceGroupName: string,
579
+ nextLink: string,
580
+ options?: BatchAccountListByResourceGroupNextOptionalParams
581
+ ): Promise<BatchAccountListByResourceGroupNextResponse> {
582
+ return this.client.sendOperationRequest(
583
+ { resourceGroupName, nextLink, options },
584
+ listByResourceGroupNextOperationSpec
585
+ );
586
+ }
587
+
588
+ /**
589
+ * ListOutboundNetworkDependenciesEndpointsNext
590
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
591
+ * @param accountName The name of the Batch account.
592
+ * @param nextLink The nextLink from the previous successful call to the
593
+ * ListOutboundNetworkDependenciesEndpoints method.
594
+ * @param options The options parameters.
595
+ */
596
+ private _listOutboundNetworkDependenciesEndpointsNext(
597
+ resourceGroupName: string,
598
+ accountName: string,
599
+ nextLink: string,
600
+ options?: BatchAccountListOutboundNetworkDependenciesEndpointsNextOptionalParams
601
+ ): Promise<BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse> {
602
+ return this.client.sendOperationRequest(
603
+ { resourceGroupName, accountName, nextLink, options },
604
+ listOutboundNetworkDependenciesEndpointsNextOperationSpec
605
+ );
606
+ }
607
+ }
608
+ // Operation Specifications
609
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
610
+
611
+ const createOperationSpec: coreClient.OperationSpec = {
612
+ path:
613
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
614
+ httpMethod: "PUT",
615
+ responses: {
616
+ 200: {
617
+ bodyMapper: Mappers.BatchAccount
618
+ },
619
+ 201: {
620
+ bodyMapper: Mappers.BatchAccount
621
+ },
622
+ 202: {
623
+ bodyMapper: Mappers.BatchAccount
624
+ },
625
+ 204: {
626
+ bodyMapper: Mappers.BatchAccount
627
+ },
628
+ default: {
629
+ bodyMapper: Mappers.CloudError
630
+ }
631
+ },
632
+ requestBody: Parameters.parameters,
633
+ queryParameters: [Parameters.apiVersion],
634
+ urlParameters: [
635
+ Parameters.$host,
636
+ Parameters.resourceGroupName,
637
+ Parameters.accountName,
638
+ Parameters.subscriptionId
639
+ ],
640
+ headerParameters: [Parameters.contentType, Parameters.accept],
641
+ mediaType: "json",
642
+ serializer
643
+ };
644
+ const updateOperationSpec: coreClient.OperationSpec = {
645
+ path:
646
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
647
+ httpMethod: "PATCH",
648
+ responses: {
649
+ 200: {
650
+ bodyMapper: Mappers.BatchAccount
651
+ },
652
+ default: {
653
+ bodyMapper: Mappers.CloudError
654
+ }
655
+ },
656
+ requestBody: Parameters.parameters1,
657
+ queryParameters: [Parameters.apiVersion],
658
+ urlParameters: [
659
+ Parameters.$host,
660
+ Parameters.resourceGroupName,
661
+ Parameters.subscriptionId,
662
+ Parameters.accountName1
663
+ ],
664
+ headerParameters: [Parameters.contentType, Parameters.accept],
665
+ mediaType: "json",
666
+ serializer
667
+ };
668
+ const deleteOperationSpec: coreClient.OperationSpec = {
669
+ path:
670
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
671
+ httpMethod: "DELETE",
672
+ responses: {
673
+ 200: {},
674
+ 201: {},
675
+ 202: {},
676
+ 204: {},
677
+ default: {
678
+ bodyMapper: Mappers.CloudError
679
+ }
680
+ },
681
+ queryParameters: [Parameters.apiVersion],
682
+ urlParameters: [
683
+ Parameters.$host,
684
+ Parameters.resourceGroupName,
685
+ Parameters.subscriptionId,
686
+ Parameters.accountName1
687
+ ],
688
+ headerParameters: [Parameters.accept],
689
+ serializer
690
+ };
691
+ const getOperationSpec: coreClient.OperationSpec = {
692
+ path:
693
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
694
+ httpMethod: "GET",
695
+ responses: {
696
+ 200: {
697
+ bodyMapper: Mappers.BatchAccount
698
+ },
699
+ default: {
700
+ bodyMapper: Mappers.CloudError
701
+ }
702
+ },
703
+ queryParameters: [Parameters.apiVersion],
704
+ urlParameters: [
705
+ Parameters.$host,
706
+ Parameters.resourceGroupName,
707
+ Parameters.subscriptionId,
708
+ Parameters.accountName1
709
+ ],
710
+ headerParameters: [Parameters.accept],
711
+ serializer
712
+ };
713
+ const listOperationSpec: coreClient.OperationSpec = {
714
+ path:
715
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts",
716
+ httpMethod: "GET",
717
+ responses: {
718
+ 200: {
719
+ bodyMapper: Mappers.BatchAccountListResult
720
+ },
721
+ default: {
722
+ bodyMapper: Mappers.CloudError
723
+ }
724
+ },
725
+ queryParameters: [Parameters.apiVersion],
726
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
727
+ headerParameters: [Parameters.accept],
728
+ serializer
729
+ };
730
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
731
+ path:
732
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts",
733
+ httpMethod: "GET",
734
+ responses: {
735
+ 200: {
736
+ bodyMapper: Mappers.BatchAccountListResult
737
+ },
738
+ default: {
739
+ bodyMapper: Mappers.CloudError
740
+ }
741
+ },
742
+ queryParameters: [Parameters.apiVersion],
743
+ urlParameters: [
744
+ Parameters.$host,
745
+ Parameters.resourceGroupName,
746
+ Parameters.subscriptionId
747
+ ],
748
+ headerParameters: [Parameters.accept],
749
+ serializer
750
+ };
751
+ const synchronizeAutoStorageKeysOperationSpec: coreClient.OperationSpec = {
752
+ path:
753
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys",
754
+ httpMethod: "POST",
755
+ responses: {
756
+ 204: {},
757
+ default: {
758
+ bodyMapper: Mappers.CloudError
759
+ }
760
+ },
761
+ queryParameters: [Parameters.apiVersion],
762
+ urlParameters: [
763
+ Parameters.$host,
764
+ Parameters.resourceGroupName,
765
+ Parameters.subscriptionId,
766
+ Parameters.accountName1
767
+ ],
768
+ headerParameters: [Parameters.accept],
769
+ serializer
770
+ };
771
+ const regenerateKeyOperationSpec: coreClient.OperationSpec = {
772
+ path:
773
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys",
774
+ httpMethod: "POST",
775
+ responses: {
776
+ 200: {
777
+ bodyMapper: Mappers.BatchAccountKeys
778
+ },
779
+ default: {
780
+ bodyMapper: Mappers.CloudError
781
+ }
782
+ },
783
+ requestBody: Parameters.parameters2,
784
+ queryParameters: [Parameters.apiVersion],
785
+ urlParameters: [
786
+ Parameters.$host,
787
+ Parameters.resourceGroupName,
788
+ Parameters.subscriptionId,
789
+ Parameters.accountName1
790
+ ],
791
+ headerParameters: [Parameters.contentType, Parameters.accept],
792
+ mediaType: "json",
793
+ serializer
794
+ };
795
+ const getKeysOperationSpec: coreClient.OperationSpec = {
796
+ path:
797
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys",
798
+ httpMethod: "POST",
799
+ responses: {
800
+ 200: {
801
+ bodyMapper: Mappers.BatchAccountKeys
802
+ },
803
+ default: {
804
+ bodyMapper: Mappers.CloudError
805
+ }
806
+ },
807
+ queryParameters: [Parameters.apiVersion],
808
+ urlParameters: [
809
+ Parameters.$host,
810
+ Parameters.resourceGroupName,
811
+ Parameters.subscriptionId,
812
+ Parameters.accountName1
813
+ ],
814
+ headerParameters: [Parameters.accept],
815
+ serializer
816
+ };
817
+ const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = {
818
+ path:
819
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints",
820
+ httpMethod: "GET",
821
+ responses: {
822
+ 200: {
823
+ bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
824
+ },
825
+ default: {
826
+ bodyMapper: Mappers.CloudError
827
+ }
828
+ },
829
+ queryParameters: [Parameters.apiVersion],
830
+ urlParameters: [
831
+ Parameters.$host,
832
+ Parameters.resourceGroupName,
833
+ Parameters.subscriptionId,
834
+ Parameters.accountName1
835
+ ],
836
+ headerParameters: [Parameters.accept],
837
+ serializer
838
+ };
839
+ const listNextOperationSpec: coreClient.OperationSpec = {
840
+ path: "{nextLink}",
841
+ httpMethod: "GET",
842
+ responses: {
843
+ 200: {
844
+ bodyMapper: Mappers.BatchAccountListResult
845
+ },
846
+ default: {
847
+ bodyMapper: Mappers.CloudError
848
+ }
849
+ },
850
+ queryParameters: [Parameters.apiVersion],
851
+ urlParameters: [
852
+ Parameters.$host,
853
+ Parameters.subscriptionId,
854
+ Parameters.nextLink
855
+ ],
856
+ headerParameters: [Parameters.accept],
857
+ serializer
858
+ };
859
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
860
+ path: "{nextLink}",
861
+ httpMethod: "GET",
862
+ responses: {
863
+ 200: {
864
+ bodyMapper: Mappers.BatchAccountListResult
865
+ },
866
+ default: {
867
+ bodyMapper: Mappers.CloudError
868
+ }
869
+ },
870
+ queryParameters: [Parameters.apiVersion],
871
+ urlParameters: [
872
+ Parameters.$host,
873
+ Parameters.resourceGroupName,
874
+ Parameters.subscriptionId,
875
+ Parameters.nextLink
876
+ ],
877
+ headerParameters: [Parameters.accept],
878
+ serializer
879
+ };
880
+ const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = {
881
+ path: "{nextLink}",
882
+ httpMethod: "GET",
883
+ responses: {
884
+ 200: {
885
+ bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
886
+ },
887
+ default: {
888
+ bodyMapper: Mappers.CloudError
889
+ }
890
+ },
891
+ queryParameters: [Parameters.apiVersion],
892
+ urlParameters: [
893
+ Parameters.$host,
894
+ Parameters.resourceGroupName,
895
+ Parameters.subscriptionId,
896
+ Parameters.accountName1,
897
+ Parameters.nextLink
898
+ ],
899
+ headerParameters: [Parameters.accept],
900
+ serializer
901
+ };