@azure/arm-batch 5.0.0 → 7.0.0-alpha.20211214.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +72 -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 +1814 -1452
  31. package/dist-esm/src/models/mappers.js.map +1 -0
  32. package/dist-esm/src/models/parameters.d.ts +34 -0
  33. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  34. package/dist-esm/src/models/parameters.js +303 -0
  35. package/dist-esm/src/models/parameters.js.map +1 -0
  36. package/dist-esm/src/operations/applicationOperations.d.ts +71 -0
  37. package/dist-esm/src/operations/applicationOperations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/applicationOperations.js +269 -0
  39. package/dist-esm/src/operations/applicationOperations.js.map +1 -0
  40. package/dist-esm/src/operations/applicationPackageOperations.d.ts +83 -0
  41. package/dist-esm/src/operations/applicationPackageOperations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/applicationPackageOperations.js +294 -0
  43. package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -0
  44. package/dist-esm/src/operations/batchAccountOperations.d.ts +171 -0
  45. package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/batchAccountOperations.js +681 -0
  47. package/dist-esm/src/operations/batchAccountOperations.js.map +1 -0
  48. package/dist-esm/src/operations/certificateOperations.d.ts +106 -0
  49. package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -0
  50. package/dist-esm/src/operations/certificateOperations.js +388 -0
  51. package/dist-esm/src/operations/certificateOperations.js.map +1 -0
  52. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  53. package/dist-esm/src/operations/index.d.ts.map +1 -0
  54. package/{esm → dist-esm/src}/operations/index.js +3 -5
  55. package/dist-esm/src/operations/index.js.map +1 -0
  56. package/dist-esm/src/operations/location.d.ts +71 -0
  57. package/dist-esm/src/operations/location.d.ts.map +1 -0
  58. package/dist-esm/src/operations/location.js +316 -0
  59. package/dist-esm/src/operations/location.js.map +1 -0
  60. package/dist-esm/src/operations/operations.d.ts +32 -0
  61. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  62. package/dist-esm/src/operations/operations.js +120 -0
  63. package/dist-esm/src/operations/operations.js.map +1 -0
  64. package/dist-esm/src/operations/poolOperations.d.ts +103 -0
  65. package/dist-esm/src/operations/poolOperations.d.ts.map +1 -0
  66. package/dist-esm/src/operations/poolOperations.js +410 -0
  67. package/dist-esm/src/operations/poolOperations.js.map +1 -0
  68. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +70 -0
  69. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -0
  70. package/dist-esm/src/operations/privateEndpointConnectionOperations.js +278 -0
  71. package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -0
  72. package/dist-esm/src/operations/privateLinkResourceOperations.d.ts +47 -0
  73. package/dist-esm/src/operations/privateLinkResourceOperations.d.ts.map +1 -0
  74. package/dist-esm/src/operations/privateLinkResourceOperations.js +170 -0
  75. package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts +46 -0
  77. package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/applicationOperations.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/applicationOperations.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/applicationPackageOperations.d.ts +56 -0
  81. package/dist-esm/src/operationsInterfaces/applicationPackageOperations.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/applicationPackageOperations.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/applicationPackageOperations.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +112 -0
  85. package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/batchAccountOperations.js +9 -0
  87. package/dist-esm/src/operationsInterfaces/batchAccountOperations.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts +81 -0
  89. package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/certificateOperations.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/certificateOperations.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/index.d.ts +10 -0
  93. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/index.js +17 -0
  95. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/location.d.ts +31 -0
  97. package/dist-esm/src/operationsInterfaces/location.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/location.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/location.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  101. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/poolOperations.d.ts +78 -0
  105. package/dist-esm/src/operationsInterfaces/poolOperations.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/poolOperations.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/poolOperations.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts +45 -0
  109. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.d.ts +22 -0
  113. package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.js.map +1 -0
  116. package/dist-esm/test/sampleTest.d.ts +4 -0
  117. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  118. package/dist-esm/test/sampleTest.js +479 -0
  119. package/dist-esm/test/sampleTest.js.map +1 -0
  120. package/package.json +65 -29
  121. package/review/arm-batch.api.md +1459 -0
  122. package/rollup.config.js +181 -30
  123. package/src/batchManagementClient.ts +61 -45
  124. package/src/batchManagementClientContext.ts +48 -40
  125. package/src/index.ts +13 -0
  126. package/src/lroImpl.ts +34 -0
  127. package/src/models/index.ts +1469 -3055
  128. package/src/models/mappers.ts +1967 -1573
  129. package/src/models/parameters.ts +218 -120
  130. package/src/operations/applicationOperations.ts +217 -262
  131. package/src/operations/applicationPackageOperations.ts +254 -277
  132. package/src/operations/batchAccountOperations.ts +682 -466
  133. package/src/operations/certificateOperations.ts +365 -353
  134. package/src/operations/index.ts +3 -5
  135. package/src/operations/location.ts +344 -78
  136. package/src/operations/operations.ts +84 -70
  137. package/src/operations/poolOperations.ts +379 -375
  138. package/src/operations/privateEndpointConnectionOperations.ts +271 -168
  139. package/src/operations/privateLinkResourceOperations.ts +158 -125
  140. package/src/operationsInterfaces/applicationOperations.ts +90 -0
  141. package/src/operationsInterfaces/applicationPackageOperations.ts +106 -0
  142. package/src/operationsInterfaces/batchAccountOperations.ts +196 -0
  143. package/src/operationsInterfaces/certificateOperations.ts +139 -0
  144. package/src/operationsInterfaces/index.ts +17 -0
  145. package/src/operationsInterfaces/location.ts +62 -0
  146. package/src/operationsInterfaces/operations.ts +22 -0
  147. package/src/operationsInterfaces/poolOperations.ts +142 -0
  148. package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +87 -0
  149. package/src/operationsInterfaces/privateLinkResourceOperations.ts +45 -0
  150. package/tsconfig.json +3 -3
  151. package/types/arm-batch.d.ts +2528 -0
  152. package/types/tsdoc-metadata.json +11 -0
  153. package/dist/arm-batch.js +0 -6207
  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 -27
  158. package/esm/batchManagementClient.d.ts.map +0 -1
  159. package/esm/batchManagementClient.js +0 -42
  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 -9
  168. package/esm/models/applicationOperationsMappers.js.map +0 -1
  169. package/esm/models/applicationPackageOperationsMappers.d.ts +0 -2
  170. package/esm/models/applicationPackageOperationsMappers.d.ts.map +0 -1
  171. package/esm/models/applicationPackageOperationsMappers.js +0 -9
  172. package/esm/models/applicationPackageOperationsMappers.js.map +0 -1
  173. package/esm/models/batchAccountOperationsMappers.d.ts +0 -2
  174. package/esm/models/batchAccountOperationsMappers.d.ts.map +0 -1
  175. package/esm/models/batchAccountOperationsMappers.js +0 -9
  176. package/esm/models/batchAccountOperationsMappers.js.map +0 -1
  177. package/esm/models/certificateOperationsMappers.d.ts +0 -2
  178. package/esm/models/certificateOperationsMappers.d.ts.map +0 -1
  179. package/esm/models/certificateOperationsMappers.js +0 -9
  180. package/esm/models/certificateOperationsMappers.js.map +0 -1
  181. package/esm/models/index.d.ts +0 -3392
  182. package/esm/models/index.d.ts.map +0 -1
  183. package/esm/models/index.js +0 -8
  184. package/esm/models/index.js.map +0 -1
  185. package/esm/models/locationMappers.d.ts +0 -2
  186. package/esm/models/locationMappers.d.ts.map +0 -1
  187. package/esm/models/locationMappers.js +0 -9
  188. package/esm/models/locationMappers.js.map +0 -1
  189. package/esm/models/mappers.d.ts +0 -96
  190. package/esm/models/mappers.d.ts.map +0 -1
  191. package/esm/models/mappers.js.map +0 -1
  192. package/esm/models/operationsMappers.d.ts +0 -2
  193. package/esm/models/operationsMappers.d.ts.map +0 -1
  194. package/esm/models/operationsMappers.js +0 -9
  195. package/esm/models/operationsMappers.js.map +0 -1
  196. package/esm/models/parameters.d.ts +0 -21
  197. package/esm/models/parameters.d.ts.map +0 -1
  198. package/esm/models/parameters.js +0 -251
  199. package/esm/models/parameters.js.map +0 -1
  200. package/esm/models/poolOperationsMappers.d.ts +0 -2
  201. package/esm/models/poolOperationsMappers.d.ts.map +0 -1
  202. package/esm/models/poolOperationsMappers.js +0 -9
  203. package/esm/models/poolOperationsMappers.js.map +0 -1
  204. package/esm/models/privateEndpointConnectionOperationsMappers.d.ts +0 -2
  205. package/esm/models/privateEndpointConnectionOperationsMappers.d.ts.map +0 -1
  206. package/esm/models/privateEndpointConnectionOperationsMappers.js +0 -9
  207. package/esm/models/privateEndpointConnectionOperationsMappers.js.map +0 -1
  208. package/esm/models/privateLinkResourceOperationsMappers.d.ts +0 -2
  209. package/esm/models/privateLinkResourceOperationsMappers.d.ts.map +0 -1
  210. package/esm/models/privateLinkResourceOperationsMappers.js +0 -9
  211. package/esm/models/privateLinkResourceOperationsMappers.js.map +0 -1
  212. package/esm/operations/applicationOperations.d.ts +0 -151
  213. package/esm/operations/applicationOperations.d.ts.map +0 -1
  214. package/esm/operations/applicationOperations.js +0 -229
  215. package/esm/operations/applicationOperations.js.map +0 -1
  216. package/esm/operations/applicationPackageOperations.d.ts +0 -170
  217. package/esm/operations/applicationPackageOperations.d.ts.map +0 -1
  218. package/esm/operations/applicationPackageOperations.js +0 -241
  219. package/esm/operations/applicationPackageOperations.js.map +0 -1
  220. package/esm/operations/batchAccountOperations.d.ts +0 -246
  221. package/esm/operations/batchAccountOperations.d.ts.map +0 -1
  222. package/esm/operations/batchAccountOperations.js +0 -428
  223. package/esm/operations/batchAccountOperations.js.map +0 -1
  224. package/esm/operations/certificateOperations.d.ts +0 -198
  225. package/esm/operations/certificateOperations.d.ts.map +0 -1
  226. package/esm/operations/certificateOperations.js +0 -331
  227. package/esm/operations/certificateOperations.js.map +0 -1
  228. package/esm/operations/index.d.ts.map +0 -1
  229. package/esm/operations/index.js.map +0 -1
  230. package/esm/operations/location.d.ts +0 -52
  231. package/esm/operations/location.d.ts.map +0 -1
  232. package/esm/operations/location.js +0 -93
  233. package/esm/operations/location.js.map +0 -1
  234. package/esm/operations/operations.d.ts +0 -46
  235. package/esm/operations/operations.d.ts.map +0 -1
  236. package/esm/operations/operations.js +0 -77
  237. package/esm/operations/operations.js.map +0 -1
  238. package/esm/operations/poolOperations.d.ts +0 -199
  239. package/esm/operations/poolOperations.d.ts.map +0 -1
  240. package/esm/operations/poolOperations.js +0 -358
  241. package/esm/operations/poolOperations.js.map +0 -1
  242. package/esm/operations/privateEndpointConnectionOperations.d.ts +0 -104
  243. package/esm/operations/privateEndpointConnectionOperations.d.ts.map +0 -1
  244. package/esm/operations/privateEndpointConnectionOperations.js +0 -192
  245. package/esm/operations/privateEndpointConnectionOperations.js.map +0 -1
  246. package/esm/operations/privateLinkResourceOperations.d.ts +0 -79
  247. package/esm/operations/privateLinkResourceOperations.d.ts.map +0 -1
  248. package/esm/operations/privateLinkResourceOperations.js +0 -118
  249. package/esm/operations/privateLinkResourceOperations.js.map +0 -1
  250. package/src/models/applicationOperationsMappers.ts +0 -72
  251. package/src/models/applicationPackageOperationsMappers.ts +0 -73
  252. package/src/models/batchAccountOperationsMappers.ts +0 -78
  253. package/src/models/certificateOperationsMappers.ts +0 -77
  254. package/src/models/locationMappers.ts +0 -14
  255. package/src/models/operationsMappers.ts +0 -14
  256. package/src/models/poolOperationsMappers.ts +0 -78
  257. package/src/models/privateEndpointConnectionOperationsMappers.ts +0 -73
  258. package/src/models/privateLinkResourceOperationsMappers.ts +0 -72
@@ -1,413 +1,650 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as msRestAzure from "@azure/ms-rest-azure-js";
13
- import * as Models from "../models";
14
- import * as Mappers from "../models/batchAccountOperationsMappers";
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";
15
13
  import * as Parameters from "../models/parameters";
16
14
  import { BatchManagementClientContext } from "../batchManagementClientContext";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ 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";
17
48
 
18
- /** Class representing a BatchAccountOperations. */
19
- export class BatchAccountOperations {
49
+ /// <reference lib="esnext.asynciterable" />
50
+ /** Class containing BatchAccountOperations operations. */
51
+ export class BatchAccountOperationsImpl implements BatchAccountOperations {
20
52
  private readonly client: BatchManagementClientContext;
21
53
 
22
54
  /**
23
- * Create a BatchAccountOperations.
24
- * @param {BatchManagementClientContext} client Reference to the service client.
55
+ * Initialize a new instance of the class BatchAccountOperations class.
56
+ * @param client Reference to the service client
25
57
  */
26
58
  constructor(client: BatchManagementClientContext) {
27
59
  this.client = client;
28
60
  }
29
61
 
30
62
  /**
31
- * Creates a new Batch account with the specified parameters. Existing accounts cannot be updated
32
- * with this API and should instead be updated with the Update Batch Account API.
33
- * @param resourceGroupName The name of the resource group that contains the Batch account.
34
- * @param accountName A name for the Batch account which must be unique within the region. Batch
35
- * account names must be between 3 and 24 characters in length and must use only numbers and
36
- * lowercase letters. This name is used as part of the DNS name that is used to access the Batch
37
- * service in the region in which the account is created. For example:
38
- * http://accountname.region.batch.azure.com/.
39
- * @param parameters Additional parameters for account creation.
40
- * @param [options] The optional parameters
41
- * @returns Promise<Models.BatchAccountCreateResponse>
42
- */
43
- create(resourceGroupName: string, accountName: string, parameters: Models.BatchAccountCreateParameters, options?: msRest.RequestOptionsBase): Promise<Models.BatchAccountCreateResponse> {
44
- return this.beginCreate(resourceGroupName,accountName,parameters,options)
45
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.BatchAccountCreateResponse>;
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
+ }
46
102
  }
47
103
 
48
104
  /**
49
- * Updates the properties of an existing Batch account.
50
- * @param resourceGroupName The name of the resource group that contains the Batch account.
51
- * @param accountName The name of the Batch account.
52
- * @param parameters Additional parameters for account update.
53
- * @param [options] The optional parameters
54
- * @returns Promise<Models.BatchAccountUpdateResponse>
55
- */
56
- update(resourceGroupName: string, accountName: string, parameters: Models.BatchAccountUpdateParameters, options?: msRest.RequestOptionsBase): Promise<Models.BatchAccountUpdateResponse>;
57
- /**
58
- * @param resourceGroupName The name of the resource group that contains the Batch account.
59
- * @param accountName The name of the Batch account.
60
- * @param parameters Additional parameters for account update.
61
- * @param callback The callback
62
- */
63
- update(resourceGroupName: string, accountName: string, parameters: Models.BatchAccountUpdateParameters, callback: msRest.ServiceCallback<Models.BatchAccount>): void;
64
- /**
105
+ * Gets information about the Batch accounts associated with the specified resource group.
65
106
  * @param resourceGroupName The name of the resource group that contains the Batch account.
66
- * @param accountName The name of the Batch account.
67
- * @param parameters Additional parameters for account update.
68
- * @param options The optional parameters
69
- * @param callback The callback
70
- */
71
- update(resourceGroupName: string, accountName: string, parameters: Models.BatchAccountUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BatchAccount>): void;
72
- update(resourceGroupName: string, accountName: string, parameters: Models.BatchAccountUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.BatchAccount>, callback?: msRest.ServiceCallback<Models.BatchAccount>): Promise<Models.BatchAccountUpdateResponse> {
73
- return this.client.sendOperationRequest(
74
- {
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(
75
136
  resourceGroupName,
76
- accountName,
77
- parameters,
137
+ continuationToken,
78
138
  options
79
- },
80
- updateOperationSpec,
81
- callback) as Promise<Models.BatchAccountUpdateResponse>;
139
+ );
140
+ continuationToken = result.nextLink;
141
+ yield result.value || [];
142
+ }
82
143
  }
83
144
 
84
- /**
85
- * Deletes the specified Batch account.
86
- * @param resourceGroupName The name of the resource group that contains the Batch account.
87
- * @param accountName The name of the Batch account.
88
- * @param [options] The optional parameters
89
- * @returns Promise<Models.BatchAccountDeleteResponse>
90
- */
91
- deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.BatchAccountDeleteResponse> {
92
- return this.beginDeleteMethod(resourceGroupName,accountName,options)
93
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.BatchAccountDeleteResponse>;
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
+ }
94
155
  }
95
156
 
96
157
  /**
97
- * Gets information about the specified Batch account.
98
- * @param resourceGroupName The name of the resource group that contains the Batch account.
99
- * @param accountName The name of the Batch account.
100
- * @param [options] The optional parameters
101
- * @returns Promise<Models.BatchAccountGetResponse>
102
- */
103
- get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.BatchAccountGetResponse>;
104
- /**
105
- * @param resourceGroupName The name of the resource group that contains the Batch account.
106
- * @param accountName The name of the Batch account.
107
- * @param callback The callback
108
- */
109
- get(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.BatchAccount>): void;
110
- /**
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.
111
164
  * @param resourceGroupName The name of the resource group that contains the Batch account.
112
165
  * @param accountName The name of the Batch account.
113
- * @param options The optional parameters
114
- * @param callback The callback
115
- */
116
- get(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BatchAccount>): void;
117
- get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.BatchAccount>, callback?: msRest.ServiceCallback<Models.BatchAccount>): Promise<Models.BatchAccountGetResponse> {
118
- return this.client.sendOperationRequest(
119
- {
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(
120
209
  resourceGroupName,
121
210
  accountName,
211
+ continuationToken,
122
212
  options
123
- },
124
- getOperationSpec,
125
- callback) as Promise<Models.BatchAccountGetResponse>;
213
+ );
214
+ continuationToken = result.nextLink;
215
+ yield result.value || [];
216
+ }
126
217
  }
127
218
 
128
- /**
129
- * Gets information about the Batch accounts associated with the subscription.
130
- * @param [options] The optional parameters
131
- * @returns Promise<Models.BatchAccountListResponse>
132
- */
133
- list(options?: msRest.RequestOptionsBase): Promise<Models.BatchAccountListResponse>;
134
- /**
135
- * @param callback The callback
136
- */
137
- list(callback: msRest.ServiceCallback<Models.BatchAccountListResult>): void;
138
- /**
139
- * @param options The optional parameters
140
- * @param callback The callback
141
- */
142
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BatchAccountListResult>): void;
143
- list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.BatchAccountListResult>, callback?: msRest.ServiceCallback<Models.BatchAccountListResult>): Promise<Models.BatchAccountListResponse> {
144
- return this.client.sendOperationRequest(
145
- {
146
- options
147
- },
148
- listOperationSpec,
149
- callback) as Promise<Models.BatchAccountListResponse>;
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
+ }
150
231
  }
151
232
 
152
233
  /**
153
- * Gets information about the Batch accounts associated with the specified resource group.
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.
154
236
  * @param resourceGroupName The name of the resource group that contains the Batch account.
155
- * @param [options] The optional parameters
156
- * @returns Promise<Models.BatchAccountListByResourceGroupResponse>
157
- */
158
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.BatchAccountListByResourceGroupResponse>;
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
+
159
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.
160
309
  * @param resourceGroupName The name of the resource group that contains the Batch account.
161
- * @param callback The callback
162
- */
163
- listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.BatchAccountListResult>): void;
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
+
164
332
  /**
333
+ * Updates the properties of an existing Batch account.
165
334
  * @param resourceGroupName The name of the resource group that contains the Batch account.
166
- * @param options The optional parameters
167
- * @param callback The callback
168
- */
169
- listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BatchAccountListResult>): void;
170
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.BatchAccountListResult>, callback?: msRest.ServiceCallback<Models.BatchAccountListResult>): Promise<Models.BatchAccountListByResourceGroupResponse> {
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> {
171
345
  return this.client.sendOperationRequest(
172
- {
173
- resourceGroupName,
174
- options
175
- },
176
- listByResourceGroupOperationSpec,
177
- callback) as Promise<Models.BatchAccountListByResourceGroupResponse>;
346
+ { resourceGroupName, accountName, parameters, options },
347
+ updateOperationSpec
348
+ );
178
349
  }
179
350
 
180
351
  /**
181
- * Synchronizes access keys for the auto-storage account configured for the specified Batch
182
- * account.
352
+ * Deletes the specified Batch account.
183
353
  * @param resourceGroupName The name of the resource group that contains the Batch account.
184
354
  * @param accountName The name of the Batch account.
185
- * @param [options] The optional parameters
186
- * @returns Promise<msRest.RestResponse>
187
- */
188
- synchronizeAutoStorageKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
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
+
189
413
  /**
414
+ * Deletes the specified Batch account.
190
415
  * @param resourceGroupName The name of the resource group that contains the Batch account.
191
416
  * @param accountName The name of the Batch account.
192
- * @param callback The callback
193
- */
194
- synchronizeAutoStorageKeys(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<void>): void;
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
+
195
432
  /**
433
+ * Gets information about the specified Batch account.
196
434
  * @param resourceGroupName The name of the resource group that contains the Batch account.
197
435
  * @param accountName The name of the Batch account.
198
- * @param options The optional parameters
199
- * @param callback The callback
436
+ * @param options The options parameters.
200
437
  */
201
- synchronizeAutoStorageKeys(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
202
- synchronizeAutoStorageKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
438
+ get(
439
+ resourceGroupName: string,
440
+ accountName: string,
441
+ options?: BatchAccountGetOptionalParams
442
+ ): Promise<BatchAccountGetResponse> {
203
443
  return this.client.sendOperationRequest(
204
- {
205
- resourceGroupName,
206
- accountName,
207
- options
208
- },
209
- synchronizeAutoStorageKeysOperationSpec,
210
- callback);
444
+ { resourceGroupName, accountName, options },
445
+ getOperationSpec
446
+ );
211
447
  }
212
448
 
213
449
  /**
214
- * Regenerates the specified account key for the Batch account.
215
- * @param resourceGroupName The name of the resource group that contains the Batch account.
216
- * @param accountName The name of the Batch account.
217
- * @param keyName The type of account key to regenerate. Possible values include: 'Primary',
218
- * 'Secondary'
219
- * @param [options] The optional parameters
220
- * @returns Promise<Models.BatchAccountRegenerateKeyResponse>
221
- */
222
- regenerateKey(resourceGroupName: string, accountName: string, keyName: Models.AccountKeyType, options?: msRest.RequestOptionsBase): Promise<Models.BatchAccountRegenerateKeyResponse>;
223
- /**
224
- * @param resourceGroupName The name of the resource group that contains the Batch account.
225
- * @param accountName The name of the Batch account.
226
- * @param keyName The type of account key to regenerate. Possible values include: 'Primary',
227
- * 'Secondary'
228
- * @param callback The callback
450
+ * Gets information about the Batch accounts associated with the subscription.
451
+ * @param options The options parameters.
229
452
  */
230
- regenerateKey(resourceGroupName: string, accountName: string, keyName: Models.AccountKeyType, callback: msRest.ServiceCallback<Models.BatchAccountKeys>): void;
453
+ private _list(
454
+ options?: BatchAccountListOptionalParams
455
+ ): Promise<BatchAccountListResponse> {
456
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
457
+ }
458
+
231
459
  /**
460
+ * Gets information about the Batch accounts associated with the specified resource group.
232
461
  * @param resourceGroupName The name of the resource group that contains the Batch account.
233
- * @param accountName The name of the Batch account.
234
- * @param keyName The type of account key to regenerate. Possible values include: 'Primary',
235
- * 'Secondary'
236
- * @param options The optional parameters
237
- * @param callback The callback
462
+ * @param options The options parameters.
238
463
  */
239
- regenerateKey(resourceGroupName: string, accountName: string, keyName: Models.AccountKeyType, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BatchAccountKeys>): void;
240
- regenerateKey(resourceGroupName: string, accountName: string, keyName: Models.AccountKeyType, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.BatchAccountKeys>, callback?: msRest.ServiceCallback<Models.BatchAccountKeys>): Promise<Models.BatchAccountRegenerateKeyResponse> {
464
+ private _listByResourceGroup(
465
+ resourceGroupName: string,
466
+ options?: BatchAccountListByResourceGroupOptionalParams
467
+ ): Promise<BatchAccountListByResourceGroupResponse> {
241
468
  return this.client.sendOperationRequest(
242
- {
243
- resourceGroupName,
244
- accountName,
245
- keyName,
246
- options
247
- },
248
- regenerateKeyOperationSpec,
249
- callback) as Promise<Models.BatchAccountRegenerateKeyResponse>;
469
+ { resourceGroupName, options },
470
+ listByResourceGroupOperationSpec
471
+ );
250
472
  }
251
473
 
252
474
  /**
253
- * This operation applies only to Batch accounts created with a poolAllocationMode of
254
- * 'BatchService'. If the Batch account was created with a poolAllocationMode of
255
- * 'UserSubscription', clients cannot use access to keys to authenticate, and must use Azure Active
256
- * Directory instead. In this case, getting the keys will fail.
257
- * @summary Gets the account keys for the specified Batch account.
475
+ * Synchronizes access keys for the auto-storage account configured for the specified Batch account,
476
+ * only if storage key authentication is being used.
258
477
  * @param resourceGroupName The name of the resource group that contains the Batch account.
259
478
  * @param accountName The name of the Batch account.
260
- * @param [options] The optional parameters
261
- * @returns Promise<Models.BatchAccountGetKeysResponse>
479
+ * @param options The options parameters.
262
480
  */
263
- getKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.BatchAccountGetKeysResponse>;
264
- /**
265
- * @param resourceGroupName The name of the resource group that contains the Batch account.
266
- * @param accountName The name of the Batch account.
267
- * @param callback The callback
268
- */
269
- getKeys(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.BatchAccountKeys>): void;
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
+
270
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.
271
497
  * @param resourceGroupName The name of the resource group that contains the Batch account.
272
498
  * @param accountName The name of the Batch account.
273
- * @param options The optional parameters
274
- * @param callback The callback
275
- */
276
- getKeys(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BatchAccountKeys>): void;
277
- getKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.BatchAccountKeys>, callback?: msRest.ServiceCallback<Models.BatchAccountKeys>): Promise<Models.BatchAccountGetKeysResponse> {
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> {
278
508
  return this.client.sendOperationRequest(
279
- {
280
- resourceGroupName,
281
- accountName,
282
- options
283
- },
284
- getKeysOperationSpec,
285
- callback) as Promise<Models.BatchAccountGetKeysResponse>;
509
+ { resourceGroupName, accountName, parameters, options },
510
+ regenerateKeyOperationSpec
511
+ );
286
512
  }
287
513
 
288
514
  /**
289
- * Creates a new Batch account with the specified parameters. Existing accounts cannot be updated
290
- * with this API and should instead be updated with the Update Batch Account API.
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.
291
519
  * @param resourceGroupName The name of the resource group that contains the Batch account.
292
- * @param accountName A name for the Batch account which must be unique within the region. Batch
293
- * account names must be between 3 and 24 characters in length and must use only numbers and
294
- * lowercase letters. This name is used as part of the DNS name that is used to access the Batch
295
- * service in the region in which the account is created. For example:
296
- * http://accountname.region.batch.azure.com/.
297
- * @param parameters Additional parameters for account creation.
298
- * @param [options] The optional parameters
299
- * @returns Promise<msRestAzure.LROPoller>
520
+ * @param accountName The name of the Batch account.
521
+ * @param options The options parameters.
300
522
  */
301
- beginCreate(resourceGroupName: string, accountName: string, parameters: Models.BatchAccountCreateParameters, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
302
- return this.client.sendLRORequest(
303
- {
304
- resourceGroupName,
305
- accountName,
306
- parameters,
307
- options
308
- },
309
- beginCreateOperationSpec,
310
- options);
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
+ );
311
532
  }
312
533
 
313
534
  /**
314
- * Deletes the specified Batch account.
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.
315
541
  * @param resourceGroupName The name of the resource group that contains the Batch account.
316
542
  * @param accountName The name of the Batch account.
317
- * @param [options] The optional parameters
318
- * @returns Promise<msRestAzure.LROPoller>
543
+ * @param options The options parameters.
319
544
  */
320
- beginDeleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
321
- return this.client.sendLRORequest(
322
- {
323
- resourceGroupName,
324
- accountName,
325
- options
326
- },
327
- beginDeleteMethodOperationSpec,
328
- options);
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
+ );
329
554
  }
330
555
 
331
556
  /**
332
- * Gets information about the Batch accounts associated with the subscription.
333
- * @param nextPageLink The NextLink from the previous successful call to List operation.
334
- * @param [options] The optional parameters
335
- * @returns Promise<Models.BatchAccountListNextResponse>
336
- */
337
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.BatchAccountListNextResponse>;
338
- /**
339
- * @param nextPageLink The NextLink from the previous successful call to List operation.
340
- * @param callback The callback
557
+ * ListNext
558
+ * @param nextLink The nextLink from the previous successful call to the List method.
559
+ * @param options The options parameters.
341
560
  */
342
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.BatchAccountListResult>): void;
343
- /**
344
- * @param nextPageLink The NextLink from the previous successful call to List operation.
345
- * @param options The optional parameters
346
- * @param callback The callback
347
- */
348
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BatchAccountListResult>): void;
349
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.BatchAccountListResult>, callback?: msRest.ServiceCallback<Models.BatchAccountListResult>): Promise<Models.BatchAccountListNextResponse> {
561
+ private _listNext(
562
+ nextLink: string,
563
+ options?: BatchAccountListNextOptionalParams
564
+ ): Promise<BatchAccountListNextResponse> {
350
565
  return this.client.sendOperationRequest(
351
- {
352
- nextPageLink,
353
- options
354
- },
355
- listNextOperationSpec,
356
- callback) as Promise<Models.BatchAccountListNextResponse>;
566
+ { nextLink, options },
567
+ listNextOperationSpec
568
+ );
357
569
  }
358
570
 
359
571
  /**
360
- * Gets information about the Batch accounts associated with the specified resource group.
361
- * @param nextPageLink The NextLink from the previous successful call to List operation.
362
- * @param [options] The optional parameters
363
- * @returns Promise<Models.BatchAccountListByResourceGroupNextResponse>
364
- */
365
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.BatchAccountListByResourceGroupNextResponse>;
366
- /**
367
- * @param nextPageLink The NextLink from the previous successful call to List operation.
368
- * @param callback The callback
369
- */
370
- listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.BatchAccountListResult>): void;
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
+
371
588
  /**
372
- * @param nextPageLink The NextLink from the previous successful call to List operation.
373
- * @param options The optional parameters
374
- * @param callback The callback
375
- */
376
- listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BatchAccountListResult>): void;
377
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.BatchAccountListResult>, callback?: msRest.ServiceCallback<Models.BatchAccountListResult>): Promise<Models.BatchAccountListByResourceGroupNextResponse> {
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> {
378
602
  return this.client.sendOperationRequest(
379
- {
380
- nextPageLink,
381
- options
382
- },
383
- listByResourceGroupNextOperationSpec,
384
- callback) as Promise<Models.BatchAccountListByResourceGroupNextResponse>;
603
+ { resourceGroupName, accountName, nextLink, options },
604
+ listOutboundNetworkDependenciesEndpointsNextOperationSpec
605
+ );
385
606
  }
386
607
  }
387
-
388
608
  // Operation Specifications
389
- const serializer = new msRest.Serializer(Mappers);
390
- const updateOperationSpec: msRest.OperationSpec = {
391
- httpMethod: "PATCH",
392
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
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],
393
634
  urlParameters: [
635
+ Parameters.$host,
394
636
  Parameters.resourceGroupName,
395
- Parameters.accountName1,
637
+ Parameters.accountName,
396
638
  Parameters.subscriptionId
397
639
  ],
398
- queryParameters: [
399
- Parameters.apiVersion
400
- ],
401
- headerParameters: [
402
- Parameters.acceptLanguage
403
- ],
404
- requestBody: {
405
- parameterPath: "parameters",
406
- mapper: {
407
- ...Mappers.BatchAccountUpdateParameters,
408
- required: true
409
- }
410
- },
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",
411
648
  responses: {
412
649
  200: {
413
650
  bodyMapper: Mappers.BatchAccount
@@ -416,23 +653,45 @@ const updateOperationSpec: msRest.OperationSpec = {
416
653
  bodyMapper: Mappers.CloudError
417
654
  }
418
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",
419
666
  serializer
420
667
  };
421
-
422
- const getOperationSpec: msRest.OperationSpec = {
423
- httpMethod: "GET",
424
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
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],
425
682
  urlParameters: [
683
+ Parameters.$host,
426
684
  Parameters.resourceGroupName,
427
- Parameters.accountName1,
428
- Parameters.subscriptionId
429
- ],
430
- queryParameters: [
431
- Parameters.apiVersion
432
- ],
433
- headerParameters: [
434
- Parameters.acceptLanguage
685
+ Parameters.subscriptionId,
686
+ Parameters.accountName1
435
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",
436
695
  responses: {
437
696
  200: {
438
697
  bodyMapper: Mappers.BatchAccount
@@ -441,21 +700,20 @@ const getOperationSpec: msRest.OperationSpec = {
441
700
  bodyMapper: Mappers.CloudError
442
701
  }
443
702
  },
703
+ queryParameters: [Parameters.apiVersion],
704
+ urlParameters: [
705
+ Parameters.$host,
706
+ Parameters.resourceGroupName,
707
+ Parameters.subscriptionId,
708
+ Parameters.accountName1
709
+ ],
710
+ headerParameters: [Parameters.accept],
444
711
  serializer
445
712
  };
446
-
447
- const listOperationSpec: msRest.OperationSpec = {
713
+ const listOperationSpec: coreClient.OperationSpec = {
714
+ path:
715
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts",
448
716
  httpMethod: "GET",
449
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts",
450
- urlParameters: [
451
- Parameters.subscriptionId
452
- ],
453
- queryParameters: [
454
- Parameters.apiVersion
455
- ],
456
- headerParameters: [
457
- Parameters.acceptLanguage
458
- ],
459
717
  responses: {
460
718
  200: {
461
719
  bodyMapper: Mappers.BatchAccountListResult
@@ -464,22 +722,15 @@ const listOperationSpec: msRest.OperationSpec = {
464
722
  bodyMapper: Mappers.CloudError
465
723
  }
466
724
  },
725
+ queryParameters: [Parameters.apiVersion],
726
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
727
+ headerParameters: [Parameters.accept],
467
728
  serializer
468
729
  };
469
-
470
- const listByResourceGroupOperationSpec: msRest.OperationSpec = {
730
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
731
+ path:
732
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts",
471
733
  httpMethod: "GET",
472
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts",
473
- urlParameters: [
474
- Parameters.resourceGroupName,
475
- Parameters.subscriptionId
476
- ],
477
- queryParameters: [
478
- Parameters.apiVersion
479
- ],
480
- headerParameters: [
481
- Parameters.acceptLanguage
482
- ],
483
734
  responses: {
484
735
  200: {
485
736
  bodyMapper: Mappers.BatchAccountListResult
@@ -488,55 +739,39 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
488
739
  bodyMapper: Mappers.CloudError
489
740
  }
490
741
  },
491
- serializer
492
- };
493
-
494
- const synchronizeAutoStorageKeysOperationSpec: msRest.OperationSpec = {
495
- httpMethod: "POST",
496
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys",
742
+ queryParameters: [Parameters.apiVersion],
497
743
  urlParameters: [
744
+ Parameters.$host,
498
745
  Parameters.resourceGroupName,
499
- Parameters.accountName1,
500
746
  Parameters.subscriptionId
501
747
  ],
502
- queryParameters: [
503
- Parameters.apiVersion
504
- ],
505
- headerParameters: [
506
- Parameters.acceptLanguage
507
- ],
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",
508
755
  responses: {
509
756
  204: {},
510
757
  default: {
511
758
  bodyMapper: Mappers.CloudError
512
759
  }
513
760
  },
514
- serializer
515
- };
516
-
517
- const regenerateKeyOperationSpec: msRest.OperationSpec = {
518
- httpMethod: "POST",
519
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys",
761
+ queryParameters: [Parameters.apiVersion],
520
762
  urlParameters: [
763
+ Parameters.$host,
521
764
  Parameters.resourceGroupName,
522
- Parameters.accountName1,
523
- Parameters.subscriptionId
765
+ Parameters.subscriptionId,
766
+ Parameters.accountName1
524
767
  ],
525
- queryParameters: [
526
- Parameters.apiVersion
527
- ],
528
- headerParameters: [
529
- Parameters.acceptLanguage
530
- ],
531
- requestBody: {
532
- parameterPath: {
533
- keyName: "keyName"
534
- },
535
- mapper: {
536
- ...Mappers.BatchAccountRegenerateKeyParameters,
537
- required: true
538
- }
539
- },
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",
540
775
  responses: {
541
776
  200: {
542
777
  bodyMapper: Mappers.BatchAccountKeys
@@ -545,23 +780,22 @@ const regenerateKeyOperationSpec: msRest.OperationSpec = {
545
780
  bodyMapper: Mappers.CloudError
546
781
  }
547
782
  },
548
- serializer
549
- };
550
-
551
- const getKeysOperationSpec: msRest.OperationSpec = {
552
- httpMethod: "POST",
553
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys",
783
+ requestBody: Parameters.parameters2,
784
+ queryParameters: [Parameters.apiVersion],
554
785
  urlParameters: [
786
+ Parameters.$host,
555
787
  Parameters.resourceGroupName,
556
- Parameters.accountName1,
557
- Parameters.subscriptionId
558
- ],
559
- queryParameters: [
560
- Parameters.apiVersion
561
- ],
562
- headerParameters: [
563
- Parameters.acceptLanguage
788
+ Parameters.subscriptionId,
789
+ Parameters.accountName1
564
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",
565
799
  responses: {
566
800
  200: {
567
801
  bodyMapper: Mappers.BatchAccountKeys
@@ -570,88 +804,61 @@ const getKeysOperationSpec: msRest.OperationSpec = {
570
804
  bodyMapper: Mappers.CloudError
571
805
  }
572
806
  },
573
- serializer
574
- };
575
-
576
- const beginCreateOperationSpec: msRest.OperationSpec = {
577
- httpMethod: "PUT",
578
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
807
+ queryParameters: [Parameters.apiVersion],
579
808
  urlParameters: [
809
+ Parameters.$host,
580
810
  Parameters.resourceGroupName,
581
- Parameters.accountName0,
582
- Parameters.subscriptionId
583
- ],
584
- queryParameters: [
585
- Parameters.apiVersion
811
+ Parameters.subscriptionId,
812
+ Parameters.accountName1
586
813
  ],
587
- headerParameters: [
588
- Parameters.acceptLanguage
589
- ],
590
- requestBody: {
591
- parameterPath: "parameters",
592
- mapper: {
593
- ...Mappers.BatchAccountCreateParameters,
594
- required: true
595
- }
596
- },
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",
597
821
  responses: {
598
822
  200: {
599
- bodyMapper: Mappers.BatchAccount,
600
- headersMapper: Mappers.BatchAccountCreateHeaders
601
- },
602
- 202: {
603
- headersMapper: Mappers.BatchAccountCreateHeaders
823
+ bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
604
824
  },
605
825
  default: {
606
- bodyMapper: Mappers.CloudError,
607
- headersMapper: Mappers.BatchAccountCreateHeaders
826
+ bodyMapper: Mappers.CloudError
608
827
  }
609
828
  },
610
- serializer
611
- };
612
-
613
- const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
614
- httpMethod: "DELETE",
615
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}",
829
+ queryParameters: [Parameters.apiVersion],
616
830
  urlParameters: [
831
+ Parameters.$host,
617
832
  Parameters.resourceGroupName,
618
- Parameters.accountName1,
619
- Parameters.subscriptionId
620
- ],
621
- queryParameters: [
622
- Parameters.apiVersion
623
- ],
624
- headerParameters: [
625
- Parameters.acceptLanguage
833
+ Parameters.subscriptionId,
834
+ Parameters.accountName1
626
835
  ],
836
+ headerParameters: [Parameters.accept],
837
+ serializer
838
+ };
839
+ const listNextOperationSpec: coreClient.OperationSpec = {
840
+ path: "{nextLink}",
841
+ httpMethod: "GET",
627
842
  responses: {
628
843
  200: {
629
- headersMapper: Mappers.BatchAccountDeleteHeaders
630
- },
631
- 202: {
632
- headersMapper: Mappers.BatchAccountDeleteHeaders
633
- },
634
- 204: {
635
- headersMapper: Mappers.BatchAccountDeleteHeaders
844
+ bodyMapper: Mappers.BatchAccountListResult
636
845
  },
637
846
  default: {
638
- bodyMapper: Mappers.CloudError,
639
- headersMapper: Mappers.BatchAccountDeleteHeaders
847
+ bodyMapper: Mappers.CloudError
640
848
  }
641
849
  },
850
+ queryParameters: [Parameters.apiVersion],
851
+ urlParameters: [
852
+ Parameters.$host,
853
+ Parameters.subscriptionId,
854
+ Parameters.nextLink
855
+ ],
856
+ headerParameters: [Parameters.accept],
642
857
  serializer
643
858
  };
644
-
645
- const listNextOperationSpec: msRest.OperationSpec = {
646
- httpMethod: "GET",
647
- baseUrl: "https://management.azure.com",
859
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
648
860
  path: "{nextLink}",
649
- urlParameters: [
650
- Parameters.nextPageLink
651
- ],
652
- headerParameters: [
653
- Parameters.acceptLanguage
654
- ],
861
+ httpMethod: "GET",
655
862
  responses: {
656
863
  200: {
657
864
  bodyMapper: Mappers.BatchAccountListResult
@@ -660,26 +867,35 @@ const listNextOperationSpec: msRest.OperationSpec = {
660
867
  bodyMapper: Mappers.CloudError
661
868
  }
662
869
  },
870
+ queryParameters: [Parameters.apiVersion],
871
+ urlParameters: [
872
+ Parameters.$host,
873
+ Parameters.resourceGroupName,
874
+ Parameters.subscriptionId,
875
+ Parameters.nextLink
876
+ ],
877
+ headerParameters: [Parameters.accept],
663
878
  serializer
664
879
  };
665
-
666
- const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
667
- httpMethod: "GET",
668
- baseUrl: "https://management.azure.com",
880
+ const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = {
669
881
  path: "{nextLink}",
670
- urlParameters: [
671
- Parameters.nextPageLink
672
- ],
673
- headerParameters: [
674
- Parameters.acceptLanguage
675
- ],
882
+ httpMethod: "GET",
676
883
  responses: {
677
884
  200: {
678
- bodyMapper: Mappers.BatchAccountListResult
885
+ bodyMapper: Mappers.OutboundEnvironmentEndpointCollection
679
886
  },
680
887
  default: {
681
888
  bodyMapper: Mappers.CloudError
682
889
  }
683
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],
684
900
  serializer
685
901
  };